forked from linkong/planet
first commit
This commit is contained in:
commit
e7033775d8
20657 files changed
+1988940
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
function mergeProps(...items) {
|
||||
const ret = {};
|
||||
items.forEach(item => {
|
||||
if (item) {
|
||||
Object.keys(item).forEach(key => {
|
||||
if (item[key] !== undefined) {
|
||||
ret[key] = item[key];
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
export default mergeProps;
|
||||
Reference in new issue
Block a user