source: node_modules/es-toolkit/dist/math/medianBy.mjs

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

Added visualizations

  • Property mode set to 100644
File size: 172 bytes
Line 
1import { median } from './median.mjs';
2
3function medianBy(items, getValue) {
4 const nums = items.map(x => getValue(x));
5 return median(nums);
6}
7
8export { medianBy };
Note: See TracBrowser for help on using the repository browser.