how to find current index of array item in js code example Example: js find index in list Click to copylet myList = ['foo', 'bar', 'qux']; myList.indexOf('bar'); // 1