diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/map.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm5/internal/operators/map.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/map.js b/node_modules/rxjs/dist/esm5/internal/operators/map.js new file mode 100644 index 0000000..84d27b4 --- /dev/null +++ b/node_modules/rxjs/dist/esm5/internal/operators/map.js @@ -0,0 +1,11 @@ +import { operate } from '../util/lift'; +import { createOperatorSubscriber } from './OperatorSubscriber'; +export function map(project, thisArg) { + return operate(function (source, subscriber) { + var index = 0; + source.subscribe(createOperatorSubscriber(subscriber, function (value) { + subscriber.next(project.call(thisArg, value, index++)); + })); + }); +} +//# sourceMappingURL=map.js.map
\ No newline at end of file |
