SyntaxFix
Write A Post
Hire A Developer
Questions
You can make both arguments lower case, and that way you will always end up with a case insensitive search.
var string1 = "aBc"; var string2 = "AbC"; if (string1.toLowerCase() === string2.toLowerCase()) { #stuff }