1 line
88 B
JavaScript
1 line
88 B
JavaScript
module.exports = arr => arr.reduce((a, v) => a.concat(a.map(r => [v].concat(r))), [[]]); |