📜  在 js 返回索引中查找 NaN - Javascript 代码示例

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

代码示例1
let index = [1,3,4,'hello',NaN,3].findIndex(Number.isNaN)
console.log(index)