What\'s the best method to get the index of an array which contains objects?
Imagine this scenario:
var hello = { hello: \'world\', foo: \'ba
Use _.findIndex from underscore.js library
_.findIndex
Here's the example _.findIndex([{a:1},{a: 2,c:10},{a: 3}], {a:2,c:10}) //1
_.findIndex([{a:1},{a: 2,c:10},{a: 3}], {a:2,c:10}) //1