Encontre Nan no Índice de Retorno JS
let index = [1,3,4,'hello',NaN,3].findIndex(Number.isNaN)
console.log(index)
Abror
let index = [1,3,4,'hello',NaN,3].findIndex(Number.isNaN)
console.log(index)