popup component
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export default function(target, ...sources) {
|
||||
for (let i = 1, j = sources.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;
|
||||
};
|
||||
Reference in New Issue
Block a user