🌈 搜索
📅  最后修改于: 2022-03-11 15:02:03.350000             🧑  作者: Mango
const cartesian = (...a) => a.reduce((a, b) => a.flatMap(d => b.map(e => [d, e].flat())));