Optional
map: Functionan optional map function to run on all elements
an index from the input array, or undefined if the array has no length.
Return the index of the smallest value in the array. An optional map function parameter can be provided to map the values into another state before searching for the minimum value.
an array of any comparable type