UNPKG

cli-legend

Version:

"A fun command-line rogurelike dungeon game"

11 lines 432 B
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