Difference between array & object in js?
<p>How to recognize array &amp; object in js where typeof doesn’t come in handy?</p>

<pre><code> var arr = [], ob = {};
</code></pre>

<p>As everything in js are objects, </p>

<pre><code>if(typeof arr == typeof ob)  =&gt; returns true
</code></pre>

<p>I want a operator or ... that will tell me that the variable is an array. I can then use only the arrayfunctions to objects which are array. How is that possible?</p>
