minMax()

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

This function is valid in v2.12.0 to v2.24.3. This function has been downloaded 60 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 directly requires the following function which is included automatically:

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

Requiring Function

This function is directly required by the following function:

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