minMax()

Get the (first) minimum value and the (first) maximum value in an array.

This function is valid in v2.12.0 to v2.14.0. This function has been downloaded 34 times.

Parameter

{Array} array
Array which contains the minimum value and the maximum value that should be found.

Returns

{*}
An object containing a min property which will be the (first) minimum value in array. The object will also contain a max property which will be the (first) maximum value in array. If array is empty undefined will be the value of the min and max properties.

Required Function

This function requires the following function which is included automatically:

  • minIndex()
    Get the index of the (first) minimum value in an array.