takeLast
Last updated
Last updated
takeLast(count: number): Observable
💡 If you want only the last emission from multiple observables, on completion of multiple observables, try forkJoin!
Example 1: take the last 2 emitted values before completion
( StackBlitz )
takeLast 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/takeLast.ts