title: Is it ok to do a type-converting comparison when checking if something is a string?
body: <p>Since <code>typeof someVariable === string</code> will not return true for strings that were instantiated with <code>new String()</code>, is it ok to do this:</p>
  
  <pre><code>if(typeof someVariable == 'string') {
    // do something
  }
  </code></pre>
  
  <p>To make sure that the comparison will catch those cases as well, or will such a comparison have unintended side effects?</p>