// use findIndex() let index = myArray.findIndex((item) => item.color === 'blue'); // value of index will be "1"