Travis build: 2163 [cron]

This commit is contained in:
30secondsofcode
2018-06-18 21:28:08 +00:00
parent 3197d6ddce
commit 3e16d2ffa4
10 changed files with 1473 additions and 1444 deletions

View File

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