code: function calcDSVDelta(code, delimiter) {
    let rows, delta;
  
    try {
      csv.COLUMN_SEPARATOR = delimiter;
      rows = csv.parse(code);
  
      if (rows[0].length < 2) {
        // parsing completely failed
        throw new Error('parser fail');
      }
  
      // sum of all length difference of all rows
      delta = rows.map(row => row.length)
        .reduce((a, b) => ({
          deltaSum: a.deltaSum + Math.abs(a.length - b),
          length: b
        }), {
          deltaSum: 0,
          length: rows[0].length
        }).deltaSum;
    } catch (e) {
      delta = Infinity;
    }
  
    return delta;
  }
docs: calculate delta(sum of length difference of rows) values of given DSV
  @param {string} code - code to be test
  @param {string|RegExp} delimiter - delimiter to test
  @returns {number} delta value for code
  @ignore