source:
node_modules/es-toolkit/dist/math/mean.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 112 bytes | |
| Line | |
|---|---|
| 1 | import { sum } from './sum.mjs'; |
| 2 | |
| 3 | function mean(nums) { |
| 4 | return sum(nums) / nums.length; |
| 5 | } |
| 6 | |
| 7 | export { mean }; |
Note:
See TracBrowser
for help on using the repository browser.
