UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

1 lines 869 B
{"version":3,"sources":["add/iterable-operators/maxby.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C;;GAEG;AACH,MAAM,UAAU,UAAU,CAExB,OAAuC;IAEvC,OAAO,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC","file":"maxby.js","sourcesContent":["import { IterableX } from '../../iterable/iterablex';\nimport { maxBy } from '../../iterable/maxby';\nimport { ExtremaOptions } from '../../iterable/extremaoptions';\n\n/**\n * @ignore\n */\nexport function maxByProto<TSource, TKey>(\n this: IterableX<TSource>,\n options?: ExtremaOptions<TSource, TKey>\n): TSource[] {\n return maxBy(this, options);\n}\n\nIterableX.prototype.maxBy = maxByProto;\n\ndeclare module '../../iterable/iterablex' {\n interface IterableX<T> {\n maxBy: typeof maxByProto;\n }\n}\n"]}