source: node_modules/xtend/immutable.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 384 bytes
Line 
1module.exports = extend
2
3var hasOwnProperty = Object.prototype.hasOwnProperty;
4
5function extend() {
6 var target = {}
7
8 for (var i = 0; i < arguments.length; i++) {
9 var source = arguments[i]
10
11 for (var key in source) {
12 if (hasOwnProperty.call(source, key)) {
13 target[key] = source[key]
14 }
15 }
16 }
17
18 return target
19}
Note: See TracBrowser for help on using the repository browser.