{"version":3,"sources":["add/asynciterable-operators/maxby.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAE5D;;GAEG;AACH,MAAM,UAAU,UAAU,CAExB,WAAiD,EACjD,QAAyD;IAEzD,OAAO,KAAK,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC;AAED,cAAc,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC","file":"maxby.js","sourcesContent":["import { AsyncIterableX } from '../../asynciterable/asynciterablex';\nimport { maxBy } from '../../asynciterable/operators/maxby';\n\n/**\n * @ignore\n */\nexport function maxByProto<TSource, TKey>(\n  this: AsyncIterableX<TSource>,\n  keySelector: (x: TSource) => TKey | Promise<TKey>,\n  comparer?: (x: TKey, y: TKey) => number | Promise<number>\n): AsyncIterableX<TSource> {\n  return maxBy(keySelector, comparer)(this);\n}\n\nAsyncIterableX.prototype.maxBy = maxByProto;\n\ndeclare module '../../asynciterable/asynciterablex' {\n  interface AsyncIterableX<T> {\n    maxBy: typeof maxByProto;\n  }\n}\n"]}