join Function

Joins an array of objects and returns a new object containing the result. The result of the join is determined by the order of the objects in the array. If an object is specified as the second argument, the objects will be joined on it. If "deep" is set to "true", objects within the objects will also be joined recursively.

Summary

ElementFunction
ReturnsObject

Arguments

objsArray[required] Array of object to join.
objObjectObject to join the new object with. (default) Object
deepBooleanIf set to "true" will also join all objects within the objects recursively. (default) false

Example

nano.join([foo, bar], {}, true);