This website collects cookies to deliver better user experience

How to get the index of an object from an array of objects in JavaScript?