I want to merge all the properties from an array of objects into one single object using lodash? I can iterate the array or call apply on _.merge:
const arr = [{1:1, 2:2},{3:3},{4:4}];
_.merge.apply(_, arr); //{1:1, 2:2, 3:3, 4:4};
is there an alternative without using apply?