@mucfe/matui
Version:
基于Vue和ElementUi的PC组件库
17 lines (15 loc) • 406 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) {
// eslint-disable-next-line no-prototype-builtins
if (source.hasOwnProperty(prop)) {
const value = source[prop]
if (value !== undefined) {
target[prop] = value
}
}
}
}
return target
};