Bug in parsing: Reduant line in output
Author: vladyslavv-uaCreated Sep 12, 2026Updated Sep 13, 2026
Hi, I found out that parsing from CSV creates a redundant element in the result array. For example, this code:
const csv = 'id,meaning\n' + '1,sleep\n' + '2,cook';
const parsed = Papa.parse(csv, {header:true});
console.log(parsed.data);returns an output like this:
However, there is no third line.
In case when header:false, I got 4 elements in arrays not 3
papaparse version 5.7.0 nodejs version: 24
Source: mholt/PapaParse