Commit 6494c17c by ryan

fix typos

parent e2be194b
......@@ -84,17 +84,17 @@ function makeColumns(values: any[]): Column[] {
}
/**
* Convert text into a valid TableData object
* Convert CSV text into a valid TableData object
*
* @param text
* @param config
* @param details, if exists the result will be filled with parse details
* @param details, if exists the result will be filled with debugging details
*/
export function parseCSV(text: string, config?: ParseConfig, details?: ParseDetails): TableData {
const results = Papa.parse(text, { ...config, dynamicTyping: true, skipEmptyLines: true });
const { data, meta, errors } = results;
// Fill the parse details fro debugging
// Fill the parse details for debugging
if (details) {
details.errors = errors;
details.meta = meta;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment