Created
December 5, 2018 22:06
-
-
Save jrsinclair/08e2a564350e2a8071039fc7f889ea8c 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 processRows(headerFields) { | |
return function processRowsWithHeaderFields(dataRows) { | |
// Note this is Array map, not Either map. | |
return dataRows.map(row => processRow(headerFields, row)); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment