Counts the occurrences of each value returned by the iteratee function.
This function takes an array and an iteratee function, and returns an object
where each key is a value returned by the iteratee function, and the value
is the count of elements that produced that key.
Counts the occurrences of each value returned by the iteratee function.
This function takes an array and an iteratee function, and returns an object where each key is a value returned by the iteratee function, and the value is the count of elements that produced that key.
统计 iteratee 函数返回的每个值的出现次数。
此函数接收一个数组和一个 iteratee 函数,返回一个对象,其中每个键是 iteratee 函数返回的值, 值是产生该键的元素数量。