How do you access the length of the array inside of this object?
<p>I have an object that looks like this:</p>

<pre><code>[ { _id: 507351805725f3457b000055,
    audioFiles: [ [Object], [Object] ] } ]
</code></pre>

<p>I want to access the length property of audioFiles so that I can loop through its contents.  However I keep getting undefined or 1.  Can someone tell me the correct way?</p>

<p>Here's what I've tried so far (note that the object variable is named audios).</p>

<pre><code>audios.audioFiles.length
audios.length
audios[0].audioFiles.length
</code></pre>
