tables.isarray.md
June 23, 2023 ยท View on GitHub
Home > @datashaper/tables > isArray
isArray() function
Detect if a string is an array by looking for the delimiter. It's expected that in a CSV any array cells will be quoted. Also note that if the default delimiter, comma, is used, these may be detected as valid numbers if checked first.
Signature:
export declare function isArray(delimiter: string, format: DataFormat): (value: unknown) => boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| delimiter | string | |
| format | DataFormat |
Returns:
(value: unknown) => boolean