@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 958 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;AAE1D;;GAEG;AACH,MAAM,UAAU,cAAc,CAE5B,SAAkE,EAClE,OAAa;IAEb,OAAO,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,SAAS,GAAG,cAAc,CAAC","file":"findindex.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { findIndex } from '../../asynciterable/findindex';\n\n/**\n * @ignore\n */\nexport function findIndexProto<T>(\n this: AsyncIterableX<T>,\n predicate: (value: T, index: number) => boolean | Promise<boolean>,\n thisArg?: any\n): Promise<number> {\n return findIndex(this, predicate, thisArg);\n}\n\nAsyncIterableX.prototype.findIndex = findIndexProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n findIndex: typeof findIndexProto;\n }\n}\n"]}