• Returns the elements of the specified sequence or the default value in a singleton sequence if the sequence is empty.

    Type Parameters

    • T

      The type of elements in the source sequence.

    Parameters

    • defaultValue: T

      The value to return if the sequence is empty.

    Returns MonoTypeOperatorFunction<T>

    An operator which returns the elements of the source sequence or the default value as a singleton.

Generated using TypeDoc