🌈 搜索
📅  最后修改于: 2022-03-11 15:03:24.278000             🧑  作者: Mango
const powerset = arr => arr.reduce((a, v) => a.concat(a.map(r => [v].concat(r))), [[]]);