ran npm run tdd
This commit is contained in:
@ -1 +1,2 @@
|
||||
module.exports = minBy = (arr, fn) => Math.min(...arr.map(typeof fn === 'function' ? fn : val => val[fn]));
|
||||
const minBy = (arr, fn) => Math.min(...arr.map(typeof fn === 'function' ? fn : val => val[fn]));
|
||||
module.exports = minBy
|
||||
Reference in New Issue
Block a user