min
arrayFinds the minimum value in an array
Syntax
min(array) Parameters
array (array) The array to find the minimum value from
Returns
number The minimum value in the array
Examples
Input:
[5, 2, 8, 1] | min Output:
1 Input:
[100, 50, 75] | min Output:
50 The min() function finds and returns the minimum value from an array of numbers. It compares all elements and returns the smallest value.
Usage
This function is useful for finding the lowest price, earliest date, smallest quantity, or any other minimum value in a dataset.