This commit is contained in:
yanran200730
2022-07-22 14:44:55 +08:00
parent 04beb515d0
commit 0eb642a625
8 changed files with 1540 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
export default function(target) {
for (let i = 1, j = arguments.length; i < j; i++) {
let source = arguments[i] || {};
for (let prop in source) {
if (source.hasOwnProperty(prop)) {
let value = source[prop];
if (value !== undefined) {
target[prop] = value;
}
}
}
}
return target;
}