Filter Events with RxJS Operators takeLast and last

André Staltz
InstructorAndré Staltz

Share this video with your friends

Send Tweet

Operators take(), skip(), and first() all refer to values emitted in the beginning of an Observable execution. In this lesson we will see similar operators which refer instead to the end of an Observable execution, such as takeLast().

🚨 Since we are importing interval from RxJS, we don't need to preface our Observables with Rx.Observable. You can no longer .{operator}, you need to .pipe({operator}) instead.

Jin
Jin
~ 4 years ago

skipLast doesn't seems to exist, i am using RXjs 5.0.3