improve assign() util performance

pull/609/head
Luke Edwards 8 years ago committed by GitHub
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…
Cancel
Save