forked from geolba/tethys.backend
12 lines
255 B
TypeScript
12 lines
255 B
TypeScript
// extend an object with properties of one or more other objects
|
|
export function extend(dest) {
|
|
var i, j, len, src;
|
|
|
|
for (j = 1, len = arguments.length; j < len; j++) {
|
|
src = arguments[j];
|
|
for (i in src) {
|
|
dest[i] = src[i];
|
|
}
|
|
}
|
|
return dest;
|
|
} |