MessagesForMacintosh/JS/node_modules/apollo-utilities/lib/util/assign.js

19 lines
550 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function assign(target) {
var sources = [];
for (var _i = 1; _i < arguments.length; _i++) {
sources[_i - 1] = arguments[_i];
}
sources.forEach(function (source) {
if (typeof source === 'undefined' || source === null) {
return;
}
Object.keys(source).forEach(function (key) {
target[key] = source[key];
});
});
return target;
}
exports.assign = assign;
//# sourceMappingURL=assign.js.map