Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/maxBy/maxBy.js
Normal file
2
test/maxBy/maxBy.js
Normal file
@ -0,0 +1,2 @@
|
||||
const maxBy = (arr, fn) => Math.max(...arr.map(typeof fn === 'function' ? fn : val => val[fn]));
|
||||
module.exports = maxBy;
|
||||
Reference in New Issue
Block a user