“equalsignorecase typescript” Ответ

Сравнение нечувствительного случая JavaScript.

var name1 = "Taylor Johnson";
var name2 ="taylor johnson";

//convert to lowercase for case insensitive comparison
if(name1.toLowerCase() === name2.toLowerCase()){
    //names are the same
}

Grepper

equalsignorecase typescript

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

str1 === str2; // false
str1.toLowerCase() === str2.toLowerCase(); // true
Vivacious Vendace

Ответы похожие на “equalsignorecase typescript”

Вопросы похожие на “equalsignorecase typescript”

Смотреть популярные ответы по языку

Смотреть другие языки программирования