Deprecate utility tag
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: CSVToArray
|
||||
tags: string,array,utility,intermediate
|
||||
tags: string,array,intermediate
|
||||
---
|
||||
|
||||
Converts a comma-separated values (CSV) string to a 2D array.
|
||||
@ -22,4 +22,4 @@ const CSVToArray = (data, delimiter = ',', omitFirstRow = false) =>
|
||||
CSVToArray('a,b\nc,d'); // [['a','b'],['c','d']];
|
||||
CSVToArray('a;b\nc;d', ';'); // [['a','b'],['c','d']];
|
||||
CSVToArray('col1,col2\na,b\nc,d', ',', true); // [['a','b'],['c','d']];
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user