polyfills.Object.assign.raw.js Maven / Gradle / Ivy
The newest version!
// Object.assign
Object.assign = function assign(target, source) { // eslint-disable-line no-unused-vars
for (var index = 1, key, src; index < arguments.length; ++index) {
src = arguments[index];
for (key in src) {
if (Object.prototype.hasOwnProperty.call(src, key)) {
target[key] = src[key];
}
}
}
return target;
};