map
Last updated
Last updated
map(project: Function, thisArg: any): Observable
New to transformation operators? Check out the article Get started transforming streams with map, pluck, and mapTo!
Example 1: Add 10 to each number
( StackBlitz | jsBin | jsFiddle )
Example 2: Map to single property
( StackBlitz | jsBin | jsFiddle )
map 📰 - Official docs
map - In Depth Dev Reference
map vs flatMap 🎥 - Ben Lesh
Transformation operator: map and mapTo 🎥 💵 - André Staltz
Build your own map operator 🎥 - Kwinten Pisman
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/map.ts