I'm facing a challenge with handling an array consisting of arrays, each containing three elements. My goal is to execute the function calcMe(a,b,c){...}
for every element in my main array using the forEach()
method. However, I find myself stuck and unable to figure out how to make it work.
arr = [[1,5,4], [8,5,4], [3,4,5], [1,2,3]]
function calcMe(a,b,c){...}
arr.forEach(calcMe.Apply(-----, -----));
I need assistance on how to pass arguments from each inner array as parameters to my function using the Apply()
method.