Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrays.filter #217

Closed
3 tasks done
evanplaice opened this issue Jan 15, 2020 · 1 comment
Closed
3 tasks done

arrays.filter #217

evanplaice opened this issue Jan 15, 2020 · 1 comment
Labels
enhancement New feature or request operator

Comments

@evanplaice
Copy link
Member

evanplaice commented Jan 15, 2020

Checks each element with a provided predicate function. Returns all that return truthy

Checklist

  • implementation
  • tests
  • jsdoc

Details

console.log(arrays.filter([1, 2, 3, 4], (x) => x % 2 === 0));
> [2, 4]

References

@evanplaice evanplaice added enhancement New feature or request operator labels Jan 15, 2020
@evanplaice
Copy link
Member Author

evanplaice commented Jan 15, 2020

Added in v0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request operator
Projects
None yet
Development

No branches or pull requests

1 participant