How could I scan an array of objects in order to find an object by matching the object property:
$scope.items = [ { id: 1, name: \'one\' }, { id: 2, name: \
I Used Underscore js
$scope.item = _.where($scope.items, { id: 1 });