我正在尝试使用reduce连接一个数组数组,我想我可以像这样使用Array.prototype.concat函数:arr.reduce((a, b) => Array.prototype.concat然后,我想我可以更聪明,这样做:arr.reduce(Array.prototype.concat, [])TypeError:Array.prototype.concat called on null o
我所拥有的是var result = array.reduce(Array.prototype.concat, []); // Causes Uncaught TypeError: Array.prototype.concat called on null or undefined
var result = array.reduce(Array.prototype.concat.call, []); // Causes Un