@n3okill/utils
Version:
Many javascript helpers
20 lines • 662 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.mixIn = mixIn;
const isNullOrUndefined_1 = require("../type/isNullOrUndefined");
const mixInOne_1 = require("./mixInOne");
/**
* Merge multiple objects into the target
* @param target The object to merge into
* @param args The objects to be merged
* @returns Return the target object with other arguments merged into it
*/
function mixIn(target, ...args) {
for (const obj of args) {
if (!(0, isNullOrUndefined_1.isNullOrUndefined)(obj)) {
(0, mixInOne_1.mixInOne)(target, obj);
}
}
return target;
}
//# sourceMappingURL=mixIn.js.map
;