Travis build: 1072

This commit is contained in:
30secondsofcode
2019-03-19 07:41:59 +00:00
parent 63a70ee86d
commit fdfb1a9b52
9 changed files with 32 additions and 19 deletions

View File

@ -8,7 +8,9 @@ Omit the second argument, `delimiter`, to use a default delimiter of `,`.
```js
const arrayToCSV = (arr, delimiter = ',') =>
arr.map(v => v.map(x => isNaN(x) ? `"${x.replace(/"/g, '""')}"` : x ).join(delimiter)).join('\n');
arr
.map(v => v.map(x => (isNaN(x) ? `"${x.replace(/"/g, '""')}"` : x)).join(delimiter))
.join('\n');
```
```js