Aller au contenu principal

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