javascript array find value base on id : <p>I have an array of json objects:</p>

<pre><code>[ {id:0, name:'A'}, {id:1, name:'B'}...{id:n, name:'N'} ]
</code></pre>

<p>How do i get the value (name) base on a given id, without iterating the array? Perhaps using map or some filter method...</p>
