( a: A )
| 839 | * @since 4.0.0 |
| 840 | */ |
| 841 | export const fromNullOr = <A>( |
| 842 | a: A |
| 843 | ): Option<Exclude<A, null>> => (a === null ? none() : some(a as Exclude<A, null>)) |
| 844 | |
| 845 | /** |
| 846 | * Lifts a function that may return `null` or `undefined` into one that returns |