root 3bf41bf355 update | vor 1 Jahr | |
---|---|---|
.. | ||
.jshintrc | vor 1 Jahr | |
.npmignore | vor 1 Jahr | |
LICENCE | vor 1 Jahr | |
README.md | vor 1 Jahr | |
immutable.js | vor 1 Jahr | |
mutable.js | vor 1 Jahr | |
package.json | vor 1 Jahr | |
test.js | vor 1 Jahr |
Extend like a boss
xtend 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.
var extend = require("xtend")
// extend returns a new object. Does not mutate arguments
var combination = extend({
a: "a",
b: 'c'
}, {
b: "b"
})
// { a: "a", b: "b" }