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 96103be72d
commit a9d67950d9
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