Remix
Remix
remix/data-table/sql-helpers · FunctionView 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.