Skip to content

Commit

Permalink
BREAKING(collections): deprecate groupBy() (#3663)
Browse files Browse the repository at this point in the history
Co-authored-by: Asher Gomez <[email protected]>
  • Loading branch information
NotWoods and iuioiua authored Nov 22, 2023
1 parent 0643203 commit 7f5229e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions collections/group_by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// This module is browser compatible.

/**
* @deprecated (will be removed in 0.211.0) Use {@linkcode Object.groupBy} instead.
*
* Applies the given selector to each element in the given array, returning a
* Record containing the results as keys and all values that produced that key
* as values.
Expand Down
4 changes: 2 additions & 2 deletions collections/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* will likely include a lot of code that you might not use.
*
* Consider importing the function directly. For example to import
* {@linkcode groupBy} import the module using the snake cased version of the
* {@linkcode distinctBy} import the module using the snake cased version of the
* module:
*
* ```ts
* import { groupBy } from "https://deno.land/std@$STD_VERSION/collections/group_by.ts";
* import { distinctBy } from "https://deno.land/std@$STD_VERSION/collections/distinct_by.ts";
* ```
*
* @module
Expand Down

0 comments on commit 7f5229e

Please sign in to comment.