15 lines
311 B
JavaScript
15 lines
311 B
JavaScript
export default function(destination, source) {
|
|
destination = destination || {};
|
|
var value, property;
|
|
if (!source) {
|
|
return destination;
|
|
}
|
|
for (property in source) {
|
|
value = source[property];
|
|
if (value !== undefined) {
|
|
destination[property] = value;
|
|
}
|
|
}
|
|
return destination;
|
|
}
|