tap / do
Last updated
Last updated
tap(nextOrObserver: function, error: function, complete: function): Observable
💡 If you are using as a pipeable operator, do
is known as tap
!
Example 1: Logging with tap
( StackBlitz | jsBin | jsFiddle )
Example 2: Using tap with object
( StackBlitz)
tap 📰 - Official docs
tap - In Depth Dev Reference
Logging a stream with do 🎥 💵 - John Linquist
Utility operator: do 🎥 💵 - André Staltz
Build your own tap operator 🎥 - Kwinten Pisman
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/tap.ts