Creates an object composed of keys generated from the results of running
each element of an array through the given function.
The opposite of groupBy, this function creates an object where each key
is the result of the iteratee function, and the value is the last element
that produced that key.
Creates an object composed of keys generated from the results of running each element of an array through the given function.
The opposite of
groupBy, this function creates an object where each key is the result of the iteratee function, and the value is the last element that produced that key.创建一个对象,键由数组的每个元素经过给定函数运行后的结果生成。
与
groupBy相反,此函数创建一个对象,其中每个键是 iteratee 函数的结果, 值是产生该键的最后一个元素。