Wraps a function with a try catch, creating a new function with the same arguments but returning Ok if successful, Err if the function throws
Ok
Err
function to wrap with ok on success or err on failure
Optional
when an error is thrown, this will wrap the error result if provided
Rest
Generated using TypeDoc
Wraps a function with a try catch, creating a new function with the same arguments but returning
Ok
if successful,Err
if the function throws