Checking if object is an object literal
<p>Going on from this question here: <a href="http://stackoverflow.com/questions/15423765/checking-for-undefined">Checking for undefined</a></p>

<p>I wanted to know if an object was an <code>Array</code>, now I need to test to see if an Object is specifically an <code>Object</code> and not just a subclass of an <code>Object</code> </p>

<p>Because at the moment an <code>Array</code> would return true if checked to see if it is an instance of an <code>Object</code>. Are there any other types that would evaluate to true? </p>

<p><img src="http://i.stack.imgur.com/DRC8W.png" alt="enter image description here"></p>

<p><strong>EXTRA INFO</strong></p>

<p>I have found that if you call <code>toString</code> on an <code>Array</code> that has one string element it resolves to that string element and not <code>"[object Array]"</code> so you need to be careful of that. For example:</p>

<pre><code>["str1", "str2"].toString() === "[object Array]"
</code></pre>

<p>but </p>

<pre><code>["str1"].toString() === "str1"
</code></pre>
