Beta (still building)

takeLast

takeLast operator emits the latest values of source observable wh en it is finished

Example: takeLast operator

import { interval } from 'rxjs';
import { takeLast, take } from 'rxjs/operators';

const source$ = interval(1000).pipe(take(4));
const result$ = source$.pipe(takeLast(2));

Official Doc: rxjs.takeLast