@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 932 B
Source Map (JSON)
{"version":3,"sources":["add/asynciterable-operators/maxby.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD;;GAEG;AACH,MAAM,UAAU,UAAU,CAExB,OAAuC;IAEvC,OAAO,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9B,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC","file":"maxby.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { maxBy } from '../../asynciterable/maxby';\nimport { ExtremaOptions } from '../../asynciterable/extremaoptions';\n\n/**\n * @ignore\n */\nexport function maxByProto<TSource, TKey>(\n this: AsyncIterable<TSource>,\n options?: ExtremaOptions<TSource, TKey>\n): Promise<TSource[]> {\n return maxBy(this, options);\n}\n\nAsyncIterableX.prototype.maxBy = maxByProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n interface AsyncIterableX<T> {\n maxBy: typeof maxByProto;\n }\n}\n"]}