code: function csv_parse(text) {
          var header;
          return csv_parseRows(text, function(row, i) {
              if (i) {
                  var o = {}, j = -1, m = header.length;
                  while (++j < m) o[header[j]] = row[j];
                  return o;
              } else {
                  header = row;
                  return null;
              }
          });
      }
docs: Extracted from d3