function fromNullable Since 0.1.0 fromNullable<T>(value: T | null | undefined): Option<T> Converts a nullable value to an Option. Type Parameters T The contained value type Parameters value: T | null | undefined The possibly null/undefined value Return Type Option<T> Some when the value is neither null nor undefined, else None