conglomerate-extend
Etend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
// This method does not mutate the object // This method mutates object // extend returns a new object. Does not mutate argumentsvar combination = // { a: "a", b: "b" }
Documentation
assign
Extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
This method mutates the object
Parameters
one
...object or more objectstarget
Returns object the combined object
extend
Extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence.
This method does not mutate the object
Parameters
one
...object or more objects
Returns object the combined object
Thanks
Thanks to Jake Verbaten
Thanks to Sauce Labs for providing the infrastructure that allows us to run our build in real browsers.
License
conglomerate-extend is released under the terms of the BSD-3-Clause license.
This software includes or is derivative of works distributed under the licenses listed below. Please refer to the specific files and/or packages for more detailed information about the authors, copyright notices, and licenses.
- Jake Verbaten's xtend is is released under the terms of the MIT license.