WHFF521 / WHFF521.github.io

个人博客仓库
http://blog.whff521.xyz/
0 stars 0 forks source link

Eloquent JavaScript 05 Exercises | AiRomance #10

Open WHFF521 opened 3 months ago

WHFF521 commented 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)