UNPKG

@litecanvas/utils

Version:

Utilities to help build litecanvas games

12 lines (10 loc) 216 B
import sum from "./sum" /** * Computes the mean of the values in a array. * * @param {number[]} values list of numbers * @returns {number} */ export default (values) => { return sum(values) / values.length }