Finds the element in an array that results in the maximum value when passed through the iteratee function. *
The array to iterate over.
The function to execute on each element to get the value to compare.
The element that produced the maximum value, or undefined if the array is empty.
Finds the element in an array that results in the maximum value when passed through the iteratee function. *