diff options
Diffstat (limited to 'node_modules/xtend/immutable.js')
-rw-r--r-- | node_modules/xtend/immutable.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/node_modules/xtend/immutable.js b/node_modules/xtend/immutable.js new file mode 100644 index 000000000..5b760152b --- /dev/null +++ b/node_modules/xtend/immutable.js @@ -0,0 +1,17 @@ +module.exports = extend + +function extend() { + var target = {} + + for (var i = 0; i < arguments.length; i++) { + var source = arguments[i] + + for (var key in source) { + if (source.hasOwnProperty(key)) { + target[key] = source[key] + } + } + } + + return target +} |