BREAKING(collections): deprecate groupBy() (#3663)

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
Tiger Oakes 2023-11-22 00:33:26 -08:00 committed by GitHub
parent 0643203103
commit 7f5229e4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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