Model - CSV
API reference for src/lanes/tables/csv on @huukhanhnguyen/model, reachable from ..
See the Guide for the ModelJSON / evaluate pipeline.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
parseCsv
function
Parse RFC 4180 CSV text into { columns, rows } — the same shape tableChainFromArrays expects (columns: string[], rows: unknown[][], one value per column, numeric cells auto-coerced — see this module's doc for the exact rule). The first row is the header; an empty document returns { columns: [], rows: [] }.
parseCsv(text: string): { columns: string[]; rows: unknown[][]; }