📜  javascript笛卡尔积 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:03.350000             🧑  作者: Mango

代码示例2
const cartesian =
  (...a) => a.reduce((a, b) => a.flatMap(d => b.map(e => [d, e].flat())));