11 lines
No EOL
410 B
JavaScript
11 lines
No EOL
410 B
JavaScript
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
|