Skip to content

min

min(x): number

Defined in: src/min.js:13

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

If any value is NaN, the result is NaN, wherever that value appears.

number[]

sample of one or more data points

number

minimum value

if the length of x is less than one

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