Codacy style changes for test files
This commit is contained in:
@ -1,5 +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;
|
||||
|
||||
Reference in New Issue
Block a user