build/modelscript.umd.js
function (lines, params, idx) {
              if (params._needParseJson) {
                if (!params._headers) {
                  params._headers = [];
                }
                if (!params.parseRules) {
                  var row = params._headers;
                  params.parseRules = parserMgr.initParsers(row, params);
                }
                return processRows(lines, params, idx);
              } else {
                return justReturnRows(lines, params, idx);
              }
            }
function (lines, params, idx) {
              if (params._needParseJson) {
                if (!params._headers) {
                  params._headers = [];
                }
                if (!params.parseRules) {
                  var row = params._headers;
                  params.parseRules = parserMgr.initParsers(row, params);
                }
                return processRows(lines, params, idx);
              } else {
                return justReturnRows(lines, params, idx);
              }
            }
function ( lines , params , idx ) { if ( params . _needParseJson ) { if ( ! params . _headers ) { params . _headers = [ ] ; } if ( ! params . parseRules ) { var row = params . _headers ; params . parseRules = parserMgr . initParsers ( row , params ) ; } return processRows ( lines , params , idx ) ; } else { return justReturnRows ( lines , params , idx ) ; } }
Convert lines of csv array into json
@param  {[type]} lines  [[col1,col2,col3]]
@param  {[type]} params Converter params with _headers field populated
@param  {[type]} idx start pos of the lines
@return {[type]}   [{err:null,json:obj,index:line,row:[csv row]}]
Convert lines of csv array into json