Installation
Quick Take
Purpose
- Sorts rows in correct order that follows the double-entry format.
- Trims the empty columns and rows (so-called 2D-Trim^).
In later releases, we would like to be able to recognise and fix any offset columns caused by misinterpreted commas as values.
^ 1D-Trim would be trim of a string. 3D-Trim would be some sort of spatial data trim.
API — sort()
The main function sort()
is imported like this:
It’s a function which takes one input argument:
It returns a plain object:
output object | Type | Description |
---|---|---|
res Type: Array | ||
res | Array | Array of arrays, each containing a column’s value. |
msgContent Type: String | ||
msgContent | String | This application outputs the messages here. |
msgType Type: String | ||
msgType | String | Can be either alert or info . That’s similar to an icon on the hypothetical UI. |
If the input is anything else than a string
, it will throw
.
If the input is an empty string, the output object’s res
key will be equal to [['']]
.
API — version
You can import version
: