@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 927 B
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/reduce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAGpD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAE/B,OAA4B;IAE5B,OAAO,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC/B,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,MAAM,GAAG,WAAW,CAAC","file":"reduce.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { reduce } from '../../asynciterable/reduce';\nimport { ReduceOptions } from '../../asynciterable/reduceoptions';\n\n/**\n * @ignore\n */\nexport async function reduceProto<T, R = T>(\n this: AsyncIterableX<T>,\n options: ReduceOptions<T, R>\n): Promise<R> {\n return reduce(this, options);\n}\n\nAsyncIterableX.prototype.reduce = reduceProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n reduce: typeof reduceProto;\n }\n}\n"]}