mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
BREAKING(collections): deprecate groupBy()
(#3663)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
parent
0643203103
commit
7f5229e4da
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user