how to find index of an array of object in javascript code example
Example: js find index in list
let myList = ['foo', 'bar', 'qux'];
myList.indexOf('bar'); // 1
let myList = ['foo', 'bar', 'qux'];
myList.indexOf('bar'); // 1