Consider values
as an undetermined list of objects.
I want an effective ES5 version of this:
var result = _.merge({}, ...values); // <-- This is what I want
Since ...anything
is not allowed I've made this:
var result _.reduce(response, function(result, value) {
return _.merge(result, value);
}, {});
But I'm pretty sure it's not the best way to do ...
Any ideas ?