-
Notifications
You must be signed in to change notification settings - Fork 632
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
feat(collections): Add pick
and omit
#4218
Conversation
287bb50
to
e51c1a6
Compare
Isn't this very similar to |
Look like a bit restricted versions of I'm slightly in favor of including this |
Ah, I didn't notice that there is |
e51c1a6
to
04eb6c6
Compare
Co-authored-by: Kenta Moriuchi <moriken@kimamass.com>
86b8497
to
ef8df5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have more positive feedbacks to this.
LGTM
I'm -1 for the following reasons:
Now that I'm thinking about it, I'm not even sure why we have |
Thank you for providing your perspective. The statement below does not align with the discussed topic but reflects my personal view. Both |
Sorry, I didn't notice the return type was different from My question about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea! Cleanly done. LGTM.
Landing as there seem only supportive opinions from the community and the core team. @lambdalisue Thanks for your contribution! |
…0/deno_std into fix/expect-custom-equality-case * 'fix/expect-custom-equality-case' of github.com:eryue0220/deno_std: (63 commits) docs: link to `assertThrows()` and `assertRejects()` (denoland#4395) chore(log): sync `level` and `levelName` in BaseHandler (denoland#4393) docs: ignore bad snippet examples (denoland#4388) chore(media_types): format test names (denoland#4380) docs: clarify underscore guidance in README (denoland#4385) feat(collections): add `pick` and `omit` (denoland#4218) chore(msgpack): format test names (denoland#4381) refactor(encoding): prepare for `noUncheckedIndexedAccess` (denoland#4275) refactor(streams): prepare for `noUncheckedIndexedAccess` (denoland#4377) chore: fix .editorconfig syntax (denoland#4376) chore(semver): remove legacy `Range.ranges` object definition (denoland#4374) chore(semver): move breaking versions (denoland#4372) refactor(semver): rename `comparatorFormat()` to `formatComparator()` (denoland#4373) test(semver): add test for parse_range (denoland#4345) chore: use 'release' event for triggering jsr publish (denoland#4370) chore(http): fix spawned tests after migration script (denoland#4368) chore(crypto): move test scripts to own files (denoland#4367) 0.217.0 (denoland#4369) build: update _ to - in workspace converter script (denoland#4357) chore(media_types): move `extensions` utility (denoland#4358) ...
This is like Lodash's pick and omit, but it's a bit more restrictive. Specifically, it only accepts an array of strings (
string[]
) rather than just a single string.