mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-12-27 05:15:25 +00:00
19 lines
505 B
JavaScript
19 lines
505 B
JavaScript
import { root } from './root';
|
|
export function assignImpl(target, ...sources) {
|
|
const len = sources.length;
|
|
for (let i = 0; i < len; i++) {
|
|
const source = sources[i];
|
|
for (let k in source) {
|
|
if (source.hasOwnProperty(k)) {
|
|
target[k] = source[k];
|
|
}
|
|
}
|
|
}
|
|
return target;
|
|
}
|
|
;
|
|
export function getAssign(root) {
|
|
return root.Object.assign || assignImpl;
|
|
}
|
|
export const assign = getAssign(root);
|
|
//# sourceMappingURL=assign.js.map
|