GT2/GT2-Android/node_modules/es-abstract/helpers/assign.js

13 lines
273 B
JavaScript
Raw Normal View History

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;
};