javascript ignore case string code example
Example 1: equalsignorecase typescript
const str1 = '[email protected]';
const str2 = '[email protected]';
str1 === str2; // false
str1.toLowerCase() === str2.toLowerCase(); // true
Example 2: js ignore case
var str = "Visit W3Schools!";
var patt1 = /W3S/i;
var res = patt1.ignoreCase