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