Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Function: groupBy()

groupBy<T>(array, predicate): Record<string, T[]>

Groups the array of values by function predicate. Internal use only.

Type Parameters

T

Parameters

array: T[]

the array of values.

predicate

the function that returns a string to group the values of the array.

Returns

Record<string, T[]>

the Record with grouped values.

Stay in the know
Quickly Build Drag-and-Drop Forms
Star us on GitHub