array find value by index code example
Example 1: js find index in list
let myList = ['foo', 'bar', 'qux'];
myList.indexOf('bar'); // 1
Example 2: get item in array from index
var valueAtIndex1 = myValues[1];
let myList = ['foo', 'bar', 'qux'];
myList.indexOf('bar'); // 1
var valueAtIndex1 = myValues[1];