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

feat(unique): let toKey return any kind of value #10

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

aleclarson
Copy link
Member

Description

Allow unique's toKey parameter to return any value, instead of only values that can be identified through a key or those that can be used as keys themselves.

Checklist

  • Changes are covered by tests if behavior has been changed or added
  • Tests have 100% coverage
  • If code changes were made, the documentation (in the /docs directory) has been updated

Resolves

Resolves sodiray/radash#342

…instead of only values that can be identified through a key or can be used as keys themselves.
Thanks to @jordydhoker for contributing this test: sodiray/radash#343
@aleclarson aleclarson merged commit 3fd8446 into main Jun 25, 2024
4 checks passed
Copy link

github-actions bot commented Jun 25, 2024

A new beta version 12.2.0-beta.362659f has been published to NPM.

To install:

See the changes

@aleclarson aleclarson added the new feature This PR adds a new function or extends an existing one label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This PR adds a new function or extends an existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unique does not handle non string, number or symbol values correctly
1 participant