how to search for the property of an object in an array , without using for loops in JavaScript ? If array is a simple one , I can use array.indexOf(value) to get the index but if array is array of objects ? other than looping any other way ?
e.g. ar = [{x,y},{p,q},{u,v}]
if searched for v , it should return array index as 2.