How to use indexOf to find the Index of objects in JavaScript Array?

How to use indexOf to find the Index of objects in JavaScript Array?

More to explore

Based on this image's title: “How to use indexOf to find the Index of objects in JavaScript Array?