GrauKatze 26e3d1a21c инициализация проекта | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
.jshintrc | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
immutable.js | %!s(int64=2) %!d(string=hai) anos | |
mutable.js | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos | |
test.js | %!s(int64=2) %!d(string=hai) anos |
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" }