Tests for averageBy, maxBy, minBy

Fixed examples in minBy
This commit is contained in:
Angelos Chalaris
2018-01-24 17:38:08 +02:00
parent cb51f56388
commit 79a70885ad
6 changed files with 22 additions and 10 deletions

View File

@@ -1,2 +1,2 @@
const xProd = (a, b) => a.reduce((acc,x) => acc.concat(b.map(y => [x, y])),[]);
const xProd = (a, b) => a.reduce((acc, x) => acc.concat(b.map(y => [x, y])), []);
module.exports = xProd