While it's great to use the RxJS built-in operators, it's also important to realize you now have the knowledge to write them by yourself if needed. The map
operator turns out to be a simple MapSubscriber
which takes a function and applies it to the value passed to next
.