defaultRows
Generic types: | T |
Filters out the rows we already have and provides a default row for the ones we don't have.
Presentation
function defaultRows (
ids: string[],
entities: Dictionary<T> | undefined,
defaultRow: (id: string) => T,
): T[];
Returns
T[]
-The default rows for the ids that are missing
Parameters
Name | Type | Description |
---|---|---|
ids | string[] | The ids to check |
entities | Dictionary<T> | undefined | The Dictionary of rows |
defaultRow | (id: string) => T | The defaultRow function to use to |