try
Updated on August 26, 2024Source code
createTry
is a pipe that transforms a function to its return value, or if the function fails, an Error
.
In other words, createTry
is a try
-catch
block in the form of a function.
Create try
Call createTry
with no parameters to create your try
function.