Function take

  • Only take 'amount' elements and then stop.

    (Beware: if the source is an Observable or a stream, it will not know that we stopped, so the buffer will keep building up. The observable or stream should be closed by the user!)

    Type Parameters

    • TIn

    Parameters

    • count: number = Infinity

    Returns TTransIteratorSyncOrAsync<TIn, TIn>

Generated using TypeDoc