Efficient way of iterating over a array of objects in javascript/node.js
<p>I've defined an object </p>

<pre><code>var Person = function(name,age,group){
this.name = name,
this.age = age,
this.group = group
}

var ArrPerson = [];
ArrPerson.push(new Person("john",12,"M1"));
ArrPerson.push(new Person("sam",2,"M0"));
</code></pre>

<p>Now I need an efficient mechanism to identify if the array of objects ArrPerson contains a particular name or not?</p>

<p>I know we can iterate over the array using for loop and check.Assuming the array is huge,is there any other efficient way of doing this?</p>