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

normalizeAggregationRows

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

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

Selects unique rows at a maximum relative depth in encounter order. Branches that end before the requested depth contribute their deepest row.

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Parameters

rows

readonly Row<TFeatures, TData>[]

maxDepth?

number = 0

Returns

Row<TFeatures, TData>[]