- Source:
- Author:
-
- Copyright:
- License:
CSV mixin for ish.js
Methods
[mixin]
ish.io.csv.parse(sCSV, sDelimiteropt) → {Array.<object>}
- Source:
- See:
-
Parses the passed value into a Javascript object representing the CSV data.
From Mixin: ish.io.csv.js
must be included for ishJS
to access this functionality.
Parameters:
Name |
Type |
Attributes |
Default |
Description |
sCSV |
string
|
|
|
Value representing the CSV data to parse. |
sDelimiter |
string
|
<optional>
|
','
|
Value representing the CSV delimiter. |
Returns:
Type |
Description |
Array.<object>
|
Value representing the CSV data. |
[mixin]
ish.io.csv.stringify(a_oData, vOptionsopt) → {string}
- Source:
Converts the passed value to a CSV string.
From Mixin: ish.io.csv.js
must be included for ishJS
to access this functionality.
Parameters:
Name |
Type |
Attributes |
Description |
a_oData |
Array.<object>
|
|
Value representing the data to serialize into a CSV string. |
vOptions |
string
|
object
|
<optional>
|
Value representing the CSV delimiter or the desired options:
Properties
Name |
Type |
Attributes |
Default |
Description |
delimiter |
string
|
<optional>
|
','
|
Value representing the CSV delimiter. |
quotes |
boolean
|
<optional>
|
false
|
Value representing each serialized value is to be surrounded by double-quotes (e.g. " ). |
keys |
Array.<string>
|
<optional>
|
|
Value representing the keys to include within the serialized CSV string. |
|
Returns:
Type |
Description |
string
|
Value representing the CSV data. |