indexOf method in an object array?
<p>What's the best method to get the index of an array which contains objects?</p>

<p>Imagine this scenario:</p>

<pre><code>var hello = {
    hello: 'world',
    foo: 'bar'
};
var qaz = {
    hello: 'stevie',
    foo: 'baz'
}

var myArray = [];
myArray.push(hello,qaz);
</code></pre>

<p>Now I would like to have the <code>indexOf</code> the object which <code>hello</code> property is <code>'stevie'</code> which, in this example, would be <code>1</code>.</p>

<p>I'm pretty newbie with JavaScript and I don't know if there is a simple method or if I should build my own function to do that.</p>
