What\'s the best method to get the index of an array which contains objects?
Imagine this scenario:
var hello = { hello: \'world\', foo: \'ba
I will prefer to use findIndex() method:
findIndex()
var index = myArray.findIndex('hello','stevie');
index will give you the index number.
index