Simple Array Map Issue - JavaScript : <p>I am having a simple problem with my Javascript program. The problem is when I try to map the lengths of nested arrays, the last array is being excluded.</p>

<pre><code>// the length doesnt matter, its N number of arrays
var exampleArray = [ [nested array], ..., [nested array] ];

function findArrayLengths() {
  var arrayLengths = exampleArray.map(function(x) {
    return x.length; });
  return arrayLengths; }
</code></pre>

<p>My question is, is there something obvious I'm missing. Or should this code not in theory produce a new array that contains the lengths of all the nested arrays?</p>
