wishthis/node_modules/rxjs/dist/esm/internal/operators/map.js

11 lines
410 B
JavaScript
Raw Normal View History

2022-04-07 07:06:43 +00:00
import { operate } from '../util/lift';
import { createOperatorSubscriber } from './OperatorSubscriber';
export function map(project, thisArg) {
return operate((source, subscriber) => {
let index = 0;
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
subscriber.next(project.call(thisArg, value, index++));
}));
});
}
//# sourceMappingURL=map.js.map