testplane
Version:
Tests framework based on mocha and wdio
18 lines • 632 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.assign = void 0;
/** ES5-safe Object.assign polyfill for use in browser bundles targeting old browsers */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function assign(target, ...sources) {
for (let i = 0; i < sources.length; i++) {
const source = sources[i];
for (const key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
}
exports.assign = assign;
//# sourceMappingURL=assign.js.map