forEach() and Apply() methods for two dimensional array in JavaScript
<p>I have an array whose elements are also arrays, each containing three elements. I want to call the <code>function calcMe(a,b,c){...}</code> for each of the elements of my main array using <code>forEach()</code> method, but I got really confused and don't know how to get it to work.</p>
<pre><code>arr = [[1,5,4], [8,5,4], [3,4,5], [1,2,3]]
function calcMe(a,b,c){...}
arr.forEach(calcMe.Apply(-----, -----));
</code></pre>
<p>How do I pass each of the inner array's elements as arguments to my function using <code>Apply()</code>?</p>