3.0.1 • Published 8 years ago

conglomerate-extend v3.0.1

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
8 years ago

NPM version Build Status

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

src/index.js:44-57

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 objects
  • target

Returns object the combined object

extend

src/index.js:16-31

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

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.