Здесь я сделал несколько симуляций, чтобы вы сами убедились, когда какая операция выполняется быстрее, чем другая.Не стесняйтесь играть с ним.
// ===
console.time();
console.log("1 === 1", 1 === 1);
console.timeEnd();
console.time();
console.log("1 === '1'", 1 === '1');
console.timeEnd();
// !==
console.time();
console.log("1 !== 1", 1 !== 1);
console.timeEnd();
console.time();
console.log("1 !== '1'", 1 !== '1');
console.timeEnd();
Подводя итог, можно сказать, что !==
быстрее ===
.