2023-04-12 07:26:45 +00:00
|
|
|
// extend an object with properties of one or more other objects
|
|
|
|
export function extend(dest) {
|
2023-06-27 16:23:18 +00:00
|
|
|
var i, j, len, src;
|
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++) {
|
|
|
|
src = arguments[j];
|
|
|
|
for (i in src) {
|
|
|
|
dest[i] = src[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return dest;
|
|
|
|
}
|