Answers for "js get position of element in array without indexof"

1

get index of item array

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

js get index of item in array

array.indexOf("item");
Posted by: Guest on May-13-2020

Code answers related to "js get position of element in array without indexof"

Code answers related to "Javascript"

Browse Popular Code Answers by Language