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
[FEATURE] Add reject #511
[FEATURE] Add reject #511
Conversation
Use `Array.filter()` and the not operator (`!`) to return the elements in the array for which `fn` returns `false`. | ||
|
||
```js | ||
const reject = (arr, fn) => arr.filter((e,i,arr) => !fn(e,i,arr)); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I just approved that it works right. I have no suggestion about whether or not we should add this. :) |
I'm closing and marking in #100 that this will not be implemented. Might mark a few more as well. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for any follow-up tasks. |
Description
Lodash #100 -> https://lodash.com/docs/4.17.4#reject
What does your PR belong to?
Types of changes
Checklist: