what would be the reason that any framework, or anyone, would ever need to use String/Number/Boolean object as opposed to the primitive versions?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5514367/why-are-there-two-kinds-of-javascript-strings">Why are there two kinds of JavaScript strings?</a>  </p>
</blockquote>



<p>For example, we need to use <code>new RegExp()</code> instead of the regex literal if we need the regex expression to be dynamically calculated.</p>

<p>However exactly what are the <em>edge cases</em> when anyone will ever need to use String/Number/Boolean objects as opposed to their primitive versions ? (because I can't seem to even think of one where it will ever  be needed)</p>
