Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ type Indicator = Nullary | Unary | Binary;
* var out = groupOwn( obj, indicator );
* // e.g., returns { 'b': [ 'beep', 'boop', 'bar' ], 'f': [ 'foo' ] }
*/
declare function groupOwn( obj: any, indicator: Indicator ): any;
declare function groupOwn( obj: Record<string, any>, indicator: Indicator ): Record<string, string[]>;

/**
* Groups an object's own property values according to an indicator function.
Expand Down Expand Up @@ -173,7 +173,7 @@ declare function groupOwn( obj: any, indicator: Indicator ): any;
* var out = groupOwn( obj, opts, indicator );
* // e.g., returns { 'b': [ [ 'a', 'beep' ], [ 'b', 'boop' ], [ 'd', 'bar' ] ], 'f': [ [ 'c', 'foo' ] ] }
*/
declare function groupOwn( obj: any, options: Options, indicator: Indicator ): any;
declare function groupOwn( obj: Record<string, any>, indicator: Indicator ): Record<string, string[]>;


// EXPORTS //
Expand Down