Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js indexof nested array

// use findIndex()
let index = myArray.findIndex((item) => item.color === 'blue');
// value of index will be "1"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #indexof #nested #array
ADD COMMENT
Topic
Name
8+1 =