You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
677 B
26 lines
677 B
"use strict"; |
|
var root_1 = require('./root'); |
|
function assignImpl(target) { |
|
var sources = []; |
|
for (var _i = 1; _i < arguments.length; _i++) { |
|
sources[_i - 1] = arguments[_i]; |
|
} |
|
var len = sources.length; |
|
for (var i = 0; i < len; i++) { |
|
var source = sources[i]; |
|
for (var k in source) { |
|
if (source.hasOwnProperty(k)) { |
|
target[k] = source[k]; |
|
} |
|
} |
|
} |
|
return target; |
|
} |
|
exports.assignImpl = assignImpl; |
|
; |
|
function getAssign(root) { |
|
return root.Object.assign || assignImpl; |
|
} |
|
exports.getAssign = getAssign; |
|
exports.assign = getAssign(root_1.root); |
|
//# sourceMappingURL=assign.js.map
|