title: Is there a JavaScript strcmp()?
body: <p>Can anyone verify this for me? JavaScript does not have a version of strcmp(), so you have to write out something like:</p>
  
  <pre><code> ( str1 &lt; str2 ) ? 
              -1 : 
               ( str1 &gt; str2 ? 1 : 0 );
  </code></pre>