Skip to main

takeLast

takeLast

Signature - source.ts#L2854

function takeLast(amount: number): IdentityOperator

Ignores all received Push events. When the source emits an End event, the last N=amount received Push event will be emitted along with the End event.

Parameters

ParameterTypeDescription
amount
number

The amount of events to keep and distribute at the end.