-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(collection): reordered overloads of
groupBy
function
Reordered the overloads of the `groupBy` function for better type inference and usability. The change swaps the positions of the overloads to prioritize the more common use case where the `groupBy` function is used with an iterator function over the version that groups by a property path. This adjustment ensures that TypeScript correctly infers the types in scenarios where the distinction between the use cases is subtle, enhancing developer experience when working with the `groupBy` function.
- Loading branch information
Showing
1 changed file
with
10 additions
and
9 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