( f: (...a: A) => B )
| 878 | * @since 4.0.0 |
| 879 | */ |
| 880 | export const liftNullishOr = <A extends ReadonlyArray<unknown>, B>( |
| 881 | f: (...a: A) => B |
| 882 | ): (...a: A) => Option<NonNullable<B>> => |
| 883 | (...a) => fromNullishOr(f(...a)) |
| 884 | |
| 885 | /** |
| 886 | * Extracts the value from a `Some`, or returns `null` for `None`. |
nothing calls this directly
no test coverage detected