source: node_modules/es-toolkit/dist/compat/math/maxBy.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 460 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const maxBy$1 = require('../../array/maxBy.js');
6const identity = require('../../function/identity.js');
7const iteratee = require('../util/iteratee.js');
8
9function maxBy(items, iteratee$1) {
10 if (items == null) {
11 return undefined;
12 }
13 return maxBy$1.maxBy(Array.from(items), iteratee.iteratee(iteratee$1 ?? identity.identity));
14}
15
16exports.maxBy = maxBy;
Note: See TracBrowser for help on using the repository browser.