ran npm run tester -> logged invertKeyValues test are invalid

This commit is contained in:
King
2018-01-24 06:29:38 -05:00
parent d835cf4b40
commit 737acd870d
270 changed files with 1141 additions and 872 deletions

View File

@ -1,4 +1,4 @@
const averageBy = (arr, fn) =>
arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val) => acc + val, 0) /
arr.length;
module.exports = averageBy
module.exports = averageBy