GT2/GT2-iOS/node_modules/es-abstract/helpers/assign.js
2018-02-12 17:26:06 +00:00

12 lines
273 B
JavaScript

var has = Object.prototype.hasOwnProperty;
module.exports = function assign(target, source) {
if (Object.assign) {
return Object.assign(target, source);
}
for (var key in source) {
if (has.call(source, key)) {
target[key] = source[key];
}
}
return target;
};