Travis build: 29

This commit is contained in:
30secondsofcode
2018-06-27 17:59:04 +00:00
parent 906cea6c83
commit 9f180a93ac
13 changed files with 57 additions and 14 deletions

View File

@ -9,7 +9,10 @@ Omit the third argument, `omitFirstRow`, to include the first row (title row) of
```js
const CSVToArray = (data, delimiter = ',', omitFirstRow = false) =>
data.slice(omitFirstRow ? data.indexOf('\n')+1 : 0).split('\n').map(v => v.split(delimiter));
data
.slice(omitFirstRow ? data.indexOf('\n') + 1 : 0)
.split('\n')
.map(v => v.split(delimiter));
```
```js