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:
parent
fcfbffe50b
commit
c753396cab
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user