0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

update util/assign for 5x gain

This commit is contained in:
Luke Edwards 2018-03-26 21:13:16 -07:00
parent fcfbffe50b
commit c753396cab

View File

@ -1,14 +1,6 @@
export function noop() {}
export function assign(target) {
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;
export function assign(tar, src) {
for (var k in src) tar[k] = src[k];
return tar;
}