ran npm run tdd
This commit is contained in:
1
test/maxBy/maxBy.js
Normal file
1
test/maxBy/maxBy.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = maxBy = (arr, fn) => Math.max(...arr.map(typeof fn === 'function' ? fn : val => val[fn]));
|
||||
Reference in New Issue
Block a user