@binarymuse/ts-stdlib
    Preparing search index...

    Function Some

    • Creates a Some value.

      Type Parameters

      • T

        The type of the wrapped value.

      Parameters

      • value: undefined | null | T

        The value to wrap in a Some.

      • nullAndUndefinedToNone: boolean = true

        Whether to convert null and undefined to None; defaults to true.

      Returns Option<T>

      A Some value containing the given value.