@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 929 B
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/findindex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG1D;;GAEG;AACH,MAAM,UAAU,cAAc,CAE5B,OAAuB;IAEvB,OAAO,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,SAAS,GAAG,cAAc,CAAC","file":"findindex.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { findIndex } from '../../asynciterable/findindex';\nimport { FindOptions } from '../../asynciterable/findoptions';\n\n/**\n * @ignore\n */\nexport function findIndexProto<T>(\n this: AsyncIterable<T>,\n options: FindOptions<T>\n): Promise<number> {\n return findIndex(this, options);\n}\n\nAsyncIterableX.prototype.findIndex = findIndexProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n findIndex: typeof findIndexProto;\n }\n}\n"]}