A5.u.array.dsvto Method
Syntax
Arguments
- arrayarray
The array of data to be converted.
- settingsobjectstring
The settings to use when parsing the passed in string. If only the "value" separator needs to be specified a string with that character maybe used.
- separatorobjectstring
The specification for what characters are used to separate values and rows. If only the "value" separator needs to be specified a string with that character maybe used.
- valuestring
The character to use for delimiting values. The default is ",".
- rowstring
The character to use delimiting rows. The default is a new line.
- quoteobjectstring
The specification for what character is used to create a quoted value. If only the "value" of the quote character needs to be specified a string with that character maybe used. The "escape" character will be the same as the "value" character.
- valuestring
The character to use when creating a quoted value. The default is a quote (").
- escapestringboolean
The character to use for escaping the quote character by placing the escape character before the quote character. The default is a quote (").
- convertobject
Rules for converting values in the passed in data to specific variable types.
- numberstringboolean
An optional format to use when outputting numbers. See Number.toFormat.
- nullsstringboolean
The value to use for a null value in the data.
- booleansobjectboolean
If an object is passed in, then the conversion of booleans will use the specified strings for true and false values.
- truthystring
The string to use in the output data for a true value.
- falseystring
The string to use in the output data for a false value.
- arrayarray
The resulting data array.
Description
Convert an array of data into string of delimiter-separated values.
Discussion
The A5.u.array.dsv.to method can convert an array of data to one of the many delimiter-separated values formats. The names of columns in the data will always be assumed to be the first row of text.