@univerjs/core v0.5.0-beta.1 • Docs
Function: groupBy()
function groupBy<T>(arr, keyFn): Map<string, T[]>
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
arr | readonly T [] |
keyFn | (v ) => string |
Returns
Map
<string
, T
[]>
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/array.ts:69