Is there a JavaScript strcmp()?

What about

str1.localeCompare(str2)

Leave a Comment