UNPKG
xe-utils-es
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
JavaScript 函数库、工具类
xe-utils-es
/
types
/
groupBy.d.ts
11 lines
(10 loc)
•
324 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * 集合分组,默认使用键值分组,如果有iterate则使用结果进行分组 * *
@param
{
Array
} obj 对象 *
@param
{
Function
} iterate 回调/对象属性 *
@param
{
object
} context 上下文 *
@return
{
object
} */
declare
function
groupBy
(
obj
:
any
,
iterate
:
any
,
context
?:
any
): {};
export
default
groupBy;