Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript includes case insensitive

stringtodetect.toLowerCase().includes("stringtocompare");

// OR, Alternatively...
stringtodetect.toLowerCase().includes(variable.toLowerCase());
 
PREVIOUS NEXT
Tagged: #javascript #includes #case #insensitive
ADD COMMENT
Topic
Name
5+8 =