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