element-plus/packages/utils/merge.ts
JeremyWuuuuu 5b98819a85 feat/migrate-utilities
- [WIP] migrate utility methods.
2020-07-29 11:44:12 +08:00

8 lines
190 B
TypeScript

export default function(target: Object, ...args: Array<Object>) {
target = { ...target }
for (let i = 0; i < args.length; i++) {
Object.assign(target, args[i])
}
return target
}