How to Get the Index of an Array that Contains Objects in JavaScript

How to Get the Index of an Array that Contains Objects in JavaScript