Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Legacy API Reference

normalizeUniqueAggregationRows

ts
function normalizeUniqueAggregationRows<TFeatures, TData>(rows, maxDepth?): readonly Row<TFeatures, TData>[];
function normalizeUniqueAggregationRows<TFeatures, TData>(rows, maxDepth?): readonly Row<TFeatures, TData>[];

Defined in: features/row-aggregation/rowAggregationFeature.utils.ts:139

Frontier selection for rows that are distinct nodes of a single row tree — the row models the table builds itself. Skips normalizeAggregationRows' duplicate-id guard (disjoint subtrees cannot revisit a row) and returns rows unchanged when no row descends, so the default maxDepth: 0 case costs nothing per aggregation.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

rows

readonly Row<TFeatures, TData>[]

maxDepth?

number = 0

Returns

readonly Row<TFeatures, TData>[]