iwmlib/lib/3rdparty/systemjs/babel-helpers/extends.js

13 lines
297 B
JavaScript
Raw Permalink Normal View History

2019-04-05 10:09:27 +02:00
export default Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};