@univerjscorefunctionsGroupby

@univerjs/core v0.5.4


Function: groupBy()

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

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

Type Parameters

Type Parameter
T

Parameters

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

Returns

Map<string, T[]>