Skip to content

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[]>
NameTypeDescription
rowsT[]The rows to extract values from
fieldsobject[]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