element3
Version:
A Component Library for Vue3
16 lines (14 loc) • 362 B
JavaScript
export default function (target) {
for (let i = 1, j = arguments.length; i < j; i++) {
const source = arguments[i] || {}
for (const prop in source) {
if (Object.hasOwnProperty.call(source, prop)) {
const value = source[prop]
if (value !== undefined) {
target[prop] = value
}
}
}
}
return target
}