source: node_modules/es-toolkit/dist/compat/math/meanBy.mjs@ ba17441

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

Added visualizations

  • Property mode set to 100644
File size: 350 bytes
Line 
1import { identity } from '../../function/identity.mjs';
2import { meanBy as meanBy$1 } from '../../math/meanBy.mjs';
3import { iteratee } from '../util/iteratee.mjs';
4
5function meanBy(items, iteratee$1) {
6 if (items == null) {
7 return NaN;
8 }
9 return meanBy$1(Array.from(items), iteratee(iteratee$1 ?? identity));
10}
11
12export { meanBy };
Note: See TracBrowser for help on using the repository browser.