Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 12:44:46 +02:00
parent 68e1d9ac07
commit 3c93fc370a
4 changed files with 6 additions and 6 deletions

View File

@ -7,8 +7,8 @@ lastUpdated: 2020-11-03T21:55:08+02:00
Converts a 2D array to a comma-separated values (CSV) string.
- Use `Array.prototype.map()` and `Array.prototype.join(delimiter)` to combine individual 1D arrays (rows) into strings.
- Use `Array.prototype.join('\n')` to combine all rows into a CSV string, separating each row with a newline.
- Use `Array.prototype.map()` and `Array.prototype.join()` to combine individual 1D arrays (rows) into strings, using the provided `delimiter`.
- Use `Array.prototype.join()` to combine all rows into a CSV string, separating each row with a newline (`\n`).
- Omit the second argument, `delimiter`, to use a default delimiter of `,`.
```js