Skip to main content

Function: flattenClusterListItems()

function flattenClusterListItems<T>(...args: (
| {
[cluster: string]: T[] | null;
}
| null)[]): T[] | null;

Defined in: lib/util.ts:320

This function joins a list of items per cluster into a single list of items.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
...args( | { [cluster: string]: T[] | null; } | null)[]The list of objects per cluster to join.

Returns

T[] | null

The joined list of items, or null if there are no items.