getUniqueValuesBatch
Extract unique values for multiple fields in a single pass through the rows.
This is more efficient than calling getUniqueValues N times when
computing derived state for several set filters at once.
function getUniqueValuesBatch(rows: T[], fields: object[]): Map<string, unknown[]>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
rows | T[] | The rows to extract values from |
fields | object[] | Array of { field, filterValue? } descriptors |
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt