Created
August 9, 2018 23:01
-
-
Save mikehibm/bff9620073dd58ff5093c6fcfae5cc3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mapCSVToArray(csv: string): string[][] { | |
return csv.split('\n').map((row) => row.split(',')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment