fix(core): update

This commit is contained in:
2018-06-10 14:29:09 +02:00
parent ddb8c5c77d
commit 2ee19d9ff6
5 changed files with 844 additions and 529 deletions

View File

@ -54,8 +54,12 @@ export class Csv {
return resultArray;
}
public getRows() {
return this.csvString.split('\n');
public getRows(): string[] {
const rowsArray = this.csvString.split('\n');
if (rowsArray[rowsArray.length - 1] === '') {
rowsArray.pop();
}
return rowsArray;
}
public getHeaders() {