Observable.prototype.map ReactiveX - Map operator Observable.prototype.map API Document Observable.prototype.map Source Code Array.prototype.map でもおなじみのものです。動きについては説明は不要でしょう。 import { Observable } from 'rx'; Observable .from([1, 2, 3]) .map(value => value * 2) .subscribe( value => console.log(`onNext: ${value}`), error => console.log(`onError: ${error}`), () => console.log(`onCompleted`) ); // onN
![RxJS の Operators (2) - Observable の変換 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/99778f623329a69aa9f1976db7a916f7495bfd7b/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Fadvent-calendar-ogp-background-7940cd1c8db80a7ec40711d90f43539e.jpg%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9UnhKUyUyMCVFMyU4MSVBRSUyME9wZXJhdG9ycyUyMCUyODIlMjklMjAtJTIwT2JzZXJ2YWJsZSUyMCVFMyU4MSVBRSVFNSVBNCU4OSVFNiU4RiU5QiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZ0eHQtY29sb3I9JTIzM0EzQzNDJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTU2JnM9Y2UyYWZhMjdhY2Y3ZTgyN2E0MDY0ZWE0YTg3ZDYwZmQ%26mark-x%3D120%26mark-y%3D96%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9OTcyJnR4dD0lNDBib3V6dXlhJnR4dC1jb2xvcj0lMjMzQTNDM0MmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz1lM2U5YTAxOTM4NDI3MTczZDMyNDhmNGYxMzY1NjU4MA%26blend-x%3D120%26blend-y%3D500%26blend-mode%3Dnormal%26s%3Dbe18f5a8765ed4be36b518668cf0ec32)