string - Is there a JavaScript strcmp()? -


Can someone verify this for me? There is no version of strcmp () in javascript, so you have to type it:

  (str1  str2? 1: 0);  

about

  str1.localeCompare ( Str2)  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c - Different access levels with PAM -