collectColumns
Summary
Returns stable column order from the union of keys in the provided rows.
Signature
function collectColumns(rows: Record<string, unknown>[]): string[];
Params
rows
Row objects to scan for keys.
Returns
Deduplicated key list in encounter order.