import { avg } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/math/index.js";
Returns the average value of the given values.
Examples
Example 1
Example 1
import { avg } from "@ayonli/jsext/math";
console.log(avg(1, 2, 3)); // 2
console.log(avg(1, 2, 3, 4, 5)); // 3