🌈 搜索
📅  最后修改于: 2022-03-11 15:02:34.251000             🧑  作者: Mango
const flatten = (ary) => ary.reduce((a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [])