title: How to get exactly typeof is object/array/null..?
body: <pre><code>var obj = {},ar = [],nothing=null,empty=undefined,word ='string',headorTail = true;
  
  console.log(typeof obj) //object
  console.log(typeof ar)//object
  console.log(typeof nothing)//object
  console.log(typeof empty)//undefined
  console.log(typeof word)//string
  console.log(typeof headorTail)//boolean
  </code></pre>
  
  <p>But how can i get the type of obj,ar,nothing as <code>"object, array,null"</code> - what is the best way to achieve this?</p>