@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 857 B
Source Map (JSON)
{"version":3,"sources":["add/iterable-operators/findindex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD;;GAEG;AACH,MAAM,UAAU,cAAc,CAAwB,OAAuB;IAC3E,OAAO,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,SAAS,GAAG,cAAc,CAAC","file":"findindex.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { findIndex } from '../../iterable/findindex';\nimport { FindOptions } from '../../iterable/findoptions';\n\n/**\n * @ignore\n */\nexport function findIndexProto<T>(this: IterableX<T>, options: FindOptions<T>): number {\n return findIndex(this, options);\n}\n\nIterableX.prototype.findIndex = findIndexProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n findIndex: typeof findIndexProto;\n }\n}\n"]}