search json/javascript object

Find the first occurrence of object in list, Similar to JQuery  $.grep, but stops searching after the first one was found