avocado-old/packages/core/merge.js

11 lines
196 B
JavaScript
Raw Normal View History

2019-05-17 04:31:37 -05:00
import mergeWith from 'lodash.mergewith';
export function merge(...args) {
args.push((l, r) => {
if (Array.isArray(l)) {
return r;
}
});
return mergeWith.apply(null, args);
}