Is there a function similar to map() that can take more then one array as input.
I am talking about something like this:
arr1 = [0,1,2];
arr2 = [2,4,6];
result = [arr1, arr2].multiMap((item1, item2) => item1 + item2);
console.out(result);
// output: [2,5,8]
I'm sure that it should exist, but I just cant find it.
map, though or using a third party library, if you wish.