23 lines
474 B
JavaScript
23 lines
474 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = assign;
|
|
|
|
function assign(target, object) {
|
|
if (target == null) {
|
|
throw new TypeError('assign requires that input parameter not be null or undefined');
|
|
}
|
|
|
|
for (var property in object) {
|
|
if (Object.prototype.hasOwnProperty.call(object, property)) {
|
|
;
|
|
target[property] = object[property];
|
|
}
|
|
}
|
|
|
|
return target;
|
|
}
|
|
|
|
module.exports = exports.default; |