remix/data-table/sql-helpers · Function

View Source

collectColumns

Summary

Returns stable column order from the union of keys in the provided rows.

Signature

function collectColumns(rows: Record<string, unknown>[]): string[]

Parameters

rows

Row objects to scan for keys.

Returns

Deduplicated key list in encounter order.