Expose the ability to skip initial rows in CSV parser.
This commit is contained in:
@@ -169,6 +169,9 @@ this.recline.Backend.CSV = this.recline.Backend.CSV || {};
|
||||
row.push(field);
|
||||
out.push(row);
|
||||
|
||||
// Expose the ability to discard initial rows
|
||||
if (options.skipInitialRows) out = out.slice(options.skipInitialRows);
|
||||
|
||||
return out;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user