layui-js/node_modules/xtend
2017-08-21 08:50:25 +08:00
..
.jshintrc clear 2017-08-21 08:50:25 +08:00
.npmignore clear 2017-08-21 08:50:25 +08:00
immutable.js clear 2017-08-21 08:50:25 +08:00
LICENCE clear 2017-08-21 08:50:25 +08:00
Makefile clear 2017-08-21 08:50:25 +08:00
mutable.js clear 2017-08-21 08:50:25 +08:00
package.json clear 2017-08-21 08:50:25 +08:00
README.md clear 2017-08-21 08:50:25 +08:00
test.js clear 2017-08-21 08:50:25 +08:00

xtend

browser support

locked

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" }

Stability status: Locked

MIT Licenced