How to get index of object by its property in javascript
<p>For example i have:</p>

<pre><code>var Data = [
    {id_list:1, name:'Nick',token:'312312'},{id_list:2,name:'John',token:'123123'}
    ]
</code></pre>

<p>Then i want to sort/reverse this object by name, for example. I get something like this:</p>

<pre><code>var Data = [
    {id_list:2,name:'John',token:'123123'},{id_list:1, name:'Nick',token:'312312'}
    ]
</code></pre>

<p>And now i want to know index of object with property name='John' to get value of property token.</p>
