Piping through functions that can throw an exception - Javascript Recipe
If you're dealing with data flows or pipelines where functions can throw an exception, here's a recipe that can make writing and handling these pipelines much easier.
Tags: javascript, cookbook, vanillajs, functional