What\'s the best method to get the index of an array which contains objects?
Imagine this scenario:
var hello = { hello: \'world\', foo: \'ba
var idx = myArray.reduce( function( cur, val, index ){ if( val.hello === "stevie" && cur === -1 ) { return index; } return cur; }, -1 );