Added some tests
Also fixed xProd. Tests for xProd, unzipWith, unzip and is.
This commit is contained in:
@ -1,2 +1,2 @@
|
||||
const xProd = (a, b) => a.map(x => b.map(y => [x, y]));
|
||||
const xProd = (a, b) => a.reduce((acc,x) => acc.concat(b.map(y => [x, y])),[]);
|
||||
module.exports = xProd
|
||||
Reference in New Issue
Block a user