@univerjscorefunctionsGroupby

@univerjs/core v0.5.0-beta.1Docs


Function: groupBy()

function groupBy<T>(arr, keyFn): Map<string, T[]>

Type Parameters

Type Parameter
T

Parameters

ParameterType
arrreadonly T[]
keyFn(v) => string

Returns

Map<string, T[]>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/array.ts:69