Answers for "js includes case insensitive"

0

javascript includes case insensitive

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

// OR, Alternatively...
stringtodetect.toLowerCase().includes(variable.toLowerCase());
Posted by: Guest on September-27-2021
-2

js includes case insensitive

var passedinstring = localStorage.getItem("passedinstring").toLowerCase();
Posted by: Guest on November-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language