const arr = [1, NaN, 3];
const found1 = arr.includes(NaN);
const found2 = arr.indexOf(NaN);
console.log(found1, found2);
WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const arr = [1, NaN, 3];
const found1 = arr.includes(NaN);
const found2 = arr.indexOf(NaN);
console.log(found1, found2);