The most accurate way to check JS object type?
<p>as you know - the typeof operator doesnt really help us to find the real type of an object.</p>

<p>I met the following code : </p>

<pre><code>Object.prototype.toString.apply(t)  
</code></pre>

<p>which tells me excatly whats the true type.</p>

<p>The question : is it the <strong>most</strong> accurate way ?</p>

<p>p.s. there is another question here on StackOverFlow  - but only with one answer which is someone's else large function code which checks.</p>

<p>it suppose to be 1,2 lines.. no ? :)</p>
