emoji-mart-lazyload/src/polyfills/extends.js

17 lines
340 B
JavaScript
Raw Normal View History

2017-09-17 08:54:22 +00:00
const _Object = Object
2017-10-07 04:02:02 +00:00
export default _Object.assign ||
function(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i]
2017-09-17 08:54:22 +00:00
2017-10-07 04:02:02 +00:00
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key]
}
2017-09-17 08:54:22 +00:00
}
}
2017-10-07 04:02:02 +00:00
return target
}