minIndex()
Get the index of the (first) minimum value in an array.
This function is valid in
v2.12.0 to v2.24.2.
This function has been downloaded 40 times.
Parameter
{Array}
array
Array which contains the minimum value that should be found and for which the corresponding index should be returned.
Returns
{number}
The index of the (first) minimum value within array
. If array
is empty 1
will be returned.
Required Functions
This function directly requires the following functions which are included automatically:

getAt()
Gets the value under the given root
object and path
.

max()
Get the (first) maximum value in an array.

maxBy()
Get the (first) maximum value in an array determined by valuer
.

maxIndex()
Get the index of the (first) maximum value in an array.

maxIndexBy()
Get the index of the (first) maximum value in an array determined by valuer
.

min()
Get the (first) minimum value in an array.

minBy()
Get the (first) minimum value in an array determined by valuer
.

minIndexBy()
Get the index of the (first) minimum value in an array determined by valuer
.

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

minMaxBy()
Get the (first) maximum value in an array determined by valuer
.

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

minMaxIndexBy()
Get the index of the (first) minimum value and the index of the (first) maximum value in an array determined by valuer
.
Requiring Functions
This function is directly required by the following functions:

max()
Get the (first) maximum value in an array.

maxBy()
Get the (first) maximum value in an array determined by valuer
.

maxIndex()
Get the index of the (first) maximum value in an array.

maxIndexBy()
Get the index of the (first) maximum value in an array determined by valuer
.

min()
Get the (first) minimum value in an array.

minBy()
Get the (first) minimum value in an array determined by valuer
.

minIndexBy()
Get the index of the (first) minimum value in an array determined by valuer
.

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

minMaxBy()
Get the (first) maximum value in an array determined by valuer
.

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

minMaxIndexBy()
Get the index of the (first) minimum value and the index of the (first) maximum value in an array determined by valuer
.