2023-04-12 07:26:45 +00:00
|
|
|
// extend an object with properties of one or more other objects
|
|
|
|
export function extend(dest) {
|
2023-07-17 17:13:30 +00:00
|
|
|
let i;
|
|
|
|
let j;
|
|
|
|
let len;
|
2023-04-12 07:26:45 +00:00
|
|
|
|
2023-06-27 16:23:18 +00:00
|
|
|
for (j = 1, len = arguments.length; j < len; j++) {
|
2023-07-17 17:13:30 +00:00
|
|
|
let src = arguments[j];
|
2023-06-27 16:23:18 +00:00
|
|
|
for (i in src) {
|
|
|
|
dest[i] = src[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return dest;
|
|
|
|
}
|