I want to sum each value of an array of numbers with its corresponding value in a different array of numbers, and I want to do this without looping through each individual v
You can use the _.unzipWith method from the Lodash library.
var array1 = [1, 2, 3, 4]; var array2 = [5, 6, 7, 8]; var array = [array1, array2]; console.log(_.unzipWith(array, _.add));