mirror of https://github.com/lukechilds/rollup.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
313 B
19 lines
313 B
export function augment ( x ) {
|
|
var prop, source;
|
|
|
|
var i = arguments.length;
|
|
var sources = Array( i - 1 );
|
|
while ( i-- ) {
|
|
sources[i-1] = arguments[i];
|
|
}
|
|
|
|
while (source = sources.shift()) {
|
|
for (prop in source) {
|
|
if (hasOwn.call(source, prop)) {
|
|
x[prop] = source[prop];
|
|
}
|
|
}
|
|
}
|
|
|
|
return x;
|
|
}
|
|
|