Function Some

  • Construct an Option containing the provided value.

    Type Parameters

    • A

    Parameters

    • value: A

    Returns Option<A>

    const option: Option<string> = Some("Hello Joe");