Last row is omitted if input string doesn't end in a newline
johnholbrook opened this issue · 1 comments
johnholbrook commented
Example:
const { convertCSVToArray } = require('convert-csv-to-array');
const s = "1,2,3\n4,5,6";
let a = convertCSVToArray(s, {
type: "array",
separator: ","
});
a
will be set to [[1,2,3]]
instead of [[1,2,3],[4,5,6]]
.