Files
30-seconds-of-code/test/xProd/xProd.js
2018-01-24 16:48:43 +02:00

2 lines
78 B
JavaScript

const xProd = (a, b) => a.map(x => b.map(y => [x, y]));
module.exports = xProd