181
rated 0 times
[
182]
[
1]
/ answers: 1 / hits: 84681
/ 8 Years ago, fri, february 19, 2016, 12:00:00
I have simple function to return me object which meets my criteria.
Code looks like:
var res = _.find($state.get(), function(i) {
var match = i.name.match(re);
return match &&
(!i.restrict || i.restrict($rootScope.user));
});
How can I find all results (not just first) which meets this criteria but all results.
Thanks for any advise.
More From » lodash