( f: (...a: A) => B | null | undefined )
| 719 | * @since 2.0.0 |
| 720 | */ |
| 721 | export const liftNullable = <A extends ReadonlyArray<unknown>, B>( |
| 722 | f: (...a: A) => B | null | undefined |
| 723 | ): (...a: A) => Option<NonNullable<B>> => |
| 724 | (...a) => fromNullable(f(...a)) |
| 725 | |
| 726 | /** |
| 727 | * Returns the value contained in the `Option` if it is `Some`; otherwise, |
nothing calls this directly
no test coverage detected
searching dependent graphs…