Returns the first element of an array with the maximum value according to an iteratee function.
The iteratee is invoked for each element, and the element with the largest
resulting value is returned. If multiple elements tie for the maximum, the
first one encountered is kept. If the array is empty, undefined is returned.
Returns the first element of an array with the maximum value according to an iteratee function.
The iteratee is invoked for each element, and the element with the largest resulting value is returned. If multiple elements tie for the maximum, the first one encountered is kept. If the array is empty,
undefinedis returned.根据迭代函数返回数组中对应值最大的第一个元素。
对每个元素调用迭代函数,返回结果值最大的那个元素。若多个元素并列最大,则保留最先遇到的元素。若数组为空,返回
undefined。