mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-09-16 04:29:06 +00:00
update
This commit is contained in:
19
node_modules/rxjs/_esm2015/util/assign.js
generated
vendored
Normal file
19
node_modules/rxjs/_esm2015/util/assign.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
Reference in New Issue
Block a user