Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simplestatistics/src/min.js>default

simple statistics for node & browser javascript
Go to Latest
function default
import { default } from "https://deno.land/x/simplestatistics@v7.7.6/src/min.js";

The min is the lowest number in the array. This runs in O(n), linear time, with respect to the length of the array.

Examples

min([1, 5, -10, 100, 2]); // => -10

Parameters

x

sample of one or more data points