title: what is the shortest way to check for typeof any type?
body: <p>I found this today to check if something is a boolean:</p>
  
  <p>Instead of:</p>
  
  <pre><code>typeof a === 'boolean' &amp;&amp; //do sth
  </code></pre>
  
  <p>You can use:</p>
  
  <pre><code>a === !!a &amp;&amp; //do sth
  </code></pre>
  
  <p>Are there any other methods like this to check for <code>typeof string/number/obj/arr</code> etc?</p>
  
  <p>I'm not looking for best practices but rather for clever ways to do " typechecking "  .</p>