Formats the specified array of object rows as tab-separated values, returning a string.
This operation is the inverse of tsvParse. Each row will be separated by a newline (\n),
and each column within each row will be separated by the tab-delimiter.
Values that contain either the tab-delimiter, a double-quote (") or a newline will be escaped using double-quotes.
If columns is not specified, the list of column names that forms the header row is determined by the union of all properties on all objects in rows;
the order of columns is nondeterministic.
Equivalent to dsvFormat("\t").format.
Type Parameters
T extends object
Parameters
rows: readonly T[]
Array of object rows.
Optionalcolumns: readonly (keyof T)[]
An array of strings representing the column names.
Formats the specified array of object rows as tab-separated values, returning a string. This operation is the inverse of tsvParse. Each row will be separated by a newline (\n), and each column within each row will be separated by the tab-delimiter. Values that contain either the tab-delimiter, a double-quote (") or a newline will be escaped using double-quotes.
If columns is not specified, the list of column names that forms the header row is determined by the union of all properties on all objects in rows; the order of columns is nondeterministic.
Equivalent to
dsvFormat("\t").format
.