-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(unique): let
toKey
return any kind of value (#10)
* fix(unique): support any value …instead of only values that can be identified through a key or can be used as keys themselves. * test: add a test Thanks to @jordydhoker for contributing this test: sodiray/radash#343 * fix(unique): skip `reduce` call if `toKey` is not defined Co-authored-by: jordydhoker <[email protected]>
- Loading branch information
1 parent
57c354c
commit 3fd8446
Showing
2 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters