Appearance
KBE3D / KBCore / utils / deepMergeAll
函数: deepMergeAll()
deepMergeAll<
T>(array:T[],optionsArgument?: {clone:boolean; }):T[]
合并多个对象或数组
类型参数
T
T extends object
参数
array
T[]
多个对象或数组的联合数组
optionsArgument?
其他选项
clone
boolean
是否克隆为新的对象
返回
T[]
合并后的对象或数组
抛出
ts
new Error(
'first argument should be an array with at least two elements',
)