I couldn\'t find an example here what I\'m really looking for. I\'d like to multiply all array elements, so if an array contains [1,2,3] the sum would be 1*2*3=6; So far I\'
Using Lodash >=4.7:
_.reduce(array, _.multiply)
or, using all three arguments:
_.reduce(array, _.multiply, 1)