我正在尝试使用reduce连接一个数组数组,我想我可以像这样使用Array.prototype.concat函数:arr.reduce((a, b) => Array.prototype.concat然后,我想我可以更聪明,这样做:arr.reduce(Array.prototype.concat, [])TypeError:Array.protot
:44 at CompileMetadataResolver.Array.concat.CompileMetadataResolver.getNgModuleMetadataJitCompiler.Array.concat.JitCompiler.70)
at JitCompiler.Array.concat.JitCompiler.~/@
:1270:0 <- src/test.ts:2030:12) [angular] at ReflectiveInjector_.Array.concat.ReflectiveInjector_.]
at ReflectiveInjector_.Array.concat.ReflectiveInjector_.at Reflective