tryCatchK()
tryCatchK<
A,B>(f): (...a) =>Option<B>
Lifts a function to return an Option when called.
Type Parametersβ
A: A extends readonly unknown[]β
The argument types.
B: Bβ
The return type.
Parametersβ
f: (...a) => Bβ
The function to lift.
Returnsβ
A lifted function that returns an Option.
Sinceβ
2.0.0