📌  相关文章
📜  javascript 字符串不敏感比较 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:56.883000             🧑  作者: Mango

代码示例3
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' });