What\'s the best method to get the index of an array which contains objects?
Imagine this scenario:
var hello = { hello: \'world\', foo: \'ba
See this example: http://jsfiddle.net/89C54/
for (i = 0; i < myArray.length; i++) { if (myArray[i].hello === 'stevie') { alert('position: ' + i); return; } }
It starts to count with zero.