The type of objects in the input array.
The input array to group.
The key to group the objects by. Can be a dot-separated string to group by nested properties.
Optional
propertiesToInclude: (keyof T)[]An array of GroupedObjects, each containing a group name and an array of grouped items.
Generated using TypeDoc v0.24.7
Groups an array of objects by a single key and returns an array of GroupedObjects.
Example
Example
Handle an invalid input: