Is there a simple way to find an object in a list based on an attribute value, without looping on the list?
For example given a list like the following :
var lst = [{name : "foo", value : "fooValue"}, {name: "bar", value: "barValue"}];
is there some kind of "find
" method, such that lst.find("name", "foo")
would return the object which has a "name" attribute with the value "foo"?
filterFilter
service. – Yoshi Dec 4 '13 at 15:22