📅  最后修改于: 2022-03-11 15:03:56.883000             🧑  作者: Mango
const str1 = 'Bill@microsoft.com';
const str2 = 'bill@microsoft.com';
str1 === str2; // false
// will return 0, means these two strings are equal according to `localeCompare()`
str1.localeCompare(str2, undefined, { sensitivity: 'accent' });