This is an online tester for the Lodash Library . Simply type your code in the box below and press Execute . It will run your code and then show the results in the Results section.
Enter your code below. Set the value of
result
to what you would like to show in the results section.
var users = [
{ user: 'barney', age: 36, active: true },
{ user: 'fred', age: 40, active: false },
{ user: 'travis', age: 37, active: true}
];
result = _.filter(users, function(o) { return o.active; });
Brought to you by Form.io