Javascript count of array elements
<p>I have the following array:</p>

<pre><code>var arr = [undefined, undefined, 2, 5, undefined, undefined];
</code></pre>

<p>I'm interested is there approach to get count of not undefined elements instead loop?</p>
