Updated comments

This commit is contained in:
n1474335 2018-11-13 18:05:52 +00:00
parent 12ebd35c4d
commit 69df2e4183
2 changed files with 22 additions and 50 deletions

View file

@ -46,12 +46,11 @@ class JSONToCSV extends Operation {
run(input, args) {
const [cellDelim, rowDelim] = args;
// Record values so they don't have to be passed to other functions explicitly
this.cellDelim = cellDelim;
this.rowDelim = rowDelim;
const self = this;
// TODO: Escape cells correctly.
try {
// If the JSON is an array of arrays, this is easy
if (input[0] instanceof Array) {