Closed
Description
I've noticed that the callback to _.merge is passed an empty object instead of an array. Consider the following:
_ = require('lodash');
_.merge({
foo: [1, 2]
}, {
foo: {
bar: 'baz'
}
}, function(origProp, overrideProp) {
console.log(origProp, overrideProp);
});
/**
* Expected output: [1, 2], 'baz'
* Actual output: {}, 'baz'
*/
This seems like counter-intuitive behavior.