• Converts a nullable value to an Option. If the value is null or undefined, returns None. Otherwise, returns Some(value).

    Type Parameters

    • A

    Parameters

    • value: undefined | null | A

      The value to convert

    Returns Option<A>

    An Option representing the nullable value