aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm5/internal/operators/max.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/max.js')
-rw-r--r--node_modules/rxjs/dist/esm5/internal/operators/max.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/max.js b/node_modules/rxjs/dist/esm5/internal/operators/max.js
new file mode 100644
index 0000000..5e16431
--- /dev/null
+++ b/node_modules/rxjs/dist/esm5/internal/operators/max.js
@@ -0,0 +1,6 @@
+import { reduce } from './reduce';
+import { isFunction } from '../util/isFunction';
+export function max(comparer) {
+ return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); });
+}
+//# sourceMappingURL=max.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage