js ignore case includes code example
Example 1: js includes case insensitive
var passedinstring = localStorage.getItem("passedinstring").toLowerCase();
Example 2: js ignore case
var str = "Visit W3Schools!";
var patt1 = /W3S/i;
var res = patt1.ignoreCase