tethys.backend/resources/js/Components/Map/utilities.ts

12 lines
255 B
TypeScript
Raw Normal View History

// 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;
}