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

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -