@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 909 B
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAE7B,OAAuB;IAEvB,OAAO,IAAI,CAAC,IAAI,EAAE,OAAc,CAAC,CAAC;AACpC,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC","file":"find.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { find } from '../../asynciterable/find';\nimport { FindOptions } from '../../asynciterable/findoptions';\n\n/**\n * @ignore\n */\nexport async function findProto<T>(\n this: AsyncIterable<T>,\n options: FindOptions<T>\n): Promise<T | undefined> {\n return find(this, options as any);\n}\n\nAsyncIterableX.prototype.find = findProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n find: typeof findProto;\n }\n}\n"]}