merge<T>(...objs): Record<string, T[]>
深度合并多个对象
| Name | Description |
|---|---|
T |
对象值的类型 |
| Name | Type | Description |
|---|---|---|
...objs |
Record<string, T>[] |
要合并的对象数组 |
Record<string, T[]>
合并后的新对象
Description
将多个对象的属性深度合并,数组属性会被展开合并,非数组属性会被转换为数组
Throws
当输入参数不是对象时抛出
Example