• If the specified condition evaluates true, select the thenSource sequence. Otherwise, select the elseSource sequence.

    Type Parameters

    • TSource

      The type of the elements in the result sequence.

    Parameters

    • fn: (() => boolean)
        • (): boolean
        • Returns boolean

    • thenSource: Iterable<TSource>

      Sequence returned in case evaluates true.

    • Optional elseSource: Iterable<TSource> = ...

      Sequence returned in case condition evaluates false.

    Returns Iterable<TSource>

    thenSource if condition evaluates true; elseSource otherwise.

Generated using TypeDoc