UNPKG

@soil/arch

Version:

Architectural constructs for web applications.

13 lines 425 B
/** * Extend `target` with the enumerable own properties in `source`. Similar to * `Object.assign()`, but including getters and setters. */ export function extend(target, source) { for (var prop in source) { if (source.hasOwnProperty(prop)) { Object.defineProperty(target, prop, Object.getOwnPropertyDescriptor(source, prop)); } } return target; } //# sourceMappingURL=extend.js.map