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 think you can solve it in one line using the map function:
pos = myArray.map(function(e) { return e.hello; }).indexOf('stevie');