extend.js 286 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 import { hasOwn } from './hasOwn' export const extend = Object.assign || function (target) { for (let i = 1; i < arguments.length; i++) { let source = arguments[i] for (let key in source) { if (hasOwn(source, key)) target[key] = source[key] } } return target }