ArrayMin()
Returns the smallest numeric value in an array. If the array parameter value is an empty array, returns zero. All elements must contain values that can be automatically converted to numeric values.
ArrayMin( array=array );
Returns: Number
Examples
Get the min value in the array
aNames = array(10412,42,33,2,999,12769,888);
dump(arrayMin(aNames));
//member function
dump(aNames.min());
See also
- Arrays
- array.min()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)