how to make case insensitive in javascript code example
Example 1: compare string camelcase and lowercase javascript
str.toUpperCase() === str || str.toLowerCase() === str;
Example 2: equalsignorecase typescript
const str1 = '[email protected]';
const str2 = '[email protected]';
str1 === str2; // false
str1.toLowerCase() === str2.toLowerCase(); // true