Created
December 5, 2018 06:54
-
-
Save jrsinclair/19c1f4de68eae11d27d098a12808aaab to your computer and use it in GitHub Desktop.
Elegant Error Handling Code Samples
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 csvToMessages(csvData) { | |
const csvRows = splitCSVToRows(csvData); | |
const headerFields = csvRows.map(_.head).map(splitFields); | |
const dataRows = csvRows.map(_.tail); | |
// What’s next? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment