Answers for "find index of array function"

18

how to find the index of a value in an array in javascript

var list = ["apple","banana","orange"]

var index_of_apple = list.indexOf("apple") // 0
Posted by: Guest on February-01-2020
1

get index of item array

const array = ['a', 'b', 'c']
array.indexOf('a')
 > 0
Posted by: Guest on November-02-2021

Code answers related to "find index of array function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language