Travis build: 53

This commit is contained in:
30secondsofcode
2018-07-06 17:33:49 +00:00
parent bf8ecdf0c9
commit 50d1141fd8
3 changed files with 10 additions and 7 deletions

View File

@ -7,7 +7,8 @@ Use `Array.join('\n')` to combine all rows into a CSV string, separating each ro
Omit the second argument, `delimiter`, to use a default delimiter of `,`.
```js
const arrayToCSV = (arr, delimiter = ',') => arr.map(v => v.map(x => `"${x}"`).join(delimiter)).join('\n');
const arrayToCSV = (arr, delimiter = ',') =>
arr.map(v => v.map(x => `"${x}"`).join(delimiter)).join('\n');
```
```js