Codacy style changes for test files

This commit is contained in:
Angelos Chalaris
2018-08-02 13:49:33 +03:00
parent 067447bdfa
commit f0db074807
338 changed files with 2283 additions and 2619 deletions

View File

@ -1,4 +1,3 @@
const percentile = (arr, val) =>
(100 * arr.reduce((acc, v) => acc + (v < val ? 1 : 0) + (v === val ? 0.5 : 0), 0)) / arr.length;
module.exports = percentile;
module.exports = percentile;