mirror of
https://github.com/nodejs/node.git
synced 2025-05-03 20:29:36 +00:00
![]() PR-URL: https://github.com/nodejs/node/pull/21817 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> |
||
---|---|---|
.. | ||
immutable.js | ||
LICENCE | ||
Makefile | ||
mutable.js | ||
package.json | ||
README.md |
xtend
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.
Examples
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" }