main
Last change
on this file since e48199a was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
369 bytes
|
Line | |
---|
1 | module.exports = extend
|
---|
2 |
|
---|
3 | var hasOwnProperty = Object.prototype.hasOwnProperty;
|
---|
4 |
|
---|
5 | function extend(target) {
|
---|
6 | for (var i = 1; i < arguments.length; i++) {
|
---|
7 | var source = arguments[i]
|
---|
8 |
|
---|
9 | for (var key in source) {
|
---|
10 | if (hasOwnProperty.call(source, key)) {
|
---|
11 | target[key] = source[key]
|
---|
12 | }
|
---|
13 | }
|
---|
14 | }
|
---|
15 |
|
---|
16 | return target
|
---|
17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.