@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 1.28 kB
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAgB9D,MAAM,UAAU,WAAW,CAEzB,SAAkE,EAClE,OAAa;IAEb,OAAO,MAAM,CAAI,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,MAAM,GAAG,WAAW,CAAC","file":"filter.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { filter } from '../../asynciterable/operators/filter';\n\n/**\n * @ignore\n */\n\nexport function filterProto<T, S extends T>(\n this: AsyncIterableX<T>,\n predicate: (value: T, index: number) => value is S,\n thisArg?: any\n): AsyncIterableX<S>;\nexport function filterProto<T>(\n this: AsyncIterableX<T>,\n predicate: (value: T, index: number) => boolean | Promise<boolean>,\n thisArg?: any\n): AsyncIterableX<T>;\nexport function filterProto<T>(\n this: AsyncIterableX<T>,\n predicate: (value: T, index: number) => boolean | Promise<boolean>,\n thisArg?: any\n): AsyncIterableX<T> {\n return filter<T>(predicate, thisArg)(this);\n}\n\nAsyncIterableX.prototype.filter = filterProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n filter: typeof filterProto;\n }\n}\n"]}