Open WHFF521 opened 3 months ago
https://blog.whff521.xyz/2024/06/17/Eloquent-JavaScript-05-Exercises/
记录一下这本书的习题的答案,这是第五章的练习。 To the book page Flattening将包含数组的数组展开,即只有一对中括号的数组。 1234567let arrays = [[1, 2, 3], [4, 5], [6]];// Your code here.let combineArrays = arrays.reduce((accumulator,currentArray)
https://blog.whff521.xyz/2024/06/17/Eloquent-JavaScript-05-Exercises/
记录一下这本书的习题的答案,这是第五章的练习。 To the book page Flattening将包含数组的数组展开,即只有一对中括号的数组。 1234567let arrays = [[1, 2, 3], [4, 5], [6]];// Your code here.let combineArrays = arrays.reduce((accumulator,currentArray)