Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to compare strings in javascript ignoring case sensitive

const str1 = 'Bill@microsoft.com';
const str2 = 'bill@microsoft.com';

str1 === str2; // false
str1.toLowerCase() === str2.toLowerCase(); // true
Source by masteringjs.io #
 
PREVIOUS NEXT
Tagged: #compare #strings #javascript #ignoring #case #sensitive
ADD COMMENT
Topic
Name
6+2 =