mirror of https://github.com/sveltejs/svelte
parent
79d3c44785
commit
869ae4b3cf
@ -1,10 +1,11 @@
|
||||
export function noop () {}
|
||||
|
||||
export function assign ( target ) {
|
||||
for ( var i = 1; i < arguments.length; i += 1 ) {
|
||||
var source = arguments[i];
|
||||
for ( var k in source ) target[k] = source[k];
|
||||
var k, source, i = 1, len = arguments.length;
|
||||
for ( ; i < len; i++ ) {
|
||||
source = arguments[i];
|
||||
for ( k in source ) target[k] = source[k];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue