conglomerate-extend
v3.0.1
Published
extend an object by appending all of the properties from each object in a list
Downloads
2
Readme
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
import extend from conglomerate-extend
// This method mutates object
import assign from conglomerate-extend
// extend returns a new object. Does not mutate arguments
var combination = extend({
a: "a",
b: 'c'
}, {
b: "b"
})
// { 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.