Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find NaN in js return index

let index = [1,3,4,'hello',NaN,3].findIndex(Number.isNaN)
console.log(index)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #NaN #js #return #index
ADD COMMENT
Topic
Name
6+5 =