Travis build: 2129 [cron]

This commit is contained in:
30secondsofcode
2018-06-05 21:20:41 +00:00
parent 29175107ef
commit 039c2c66fa
4 changed files with 29 additions and 17 deletions

View File

@ -1,2 +1,2 @@
const countOccurrences = (arr, val) => arr.reduce((a, v) => (v === val ? a + 1 : a + 0), 0);
const countOccurrences = (arr, val) => arr.reduce((a, v) => (v === val ? a + 1 : a), 0);
module.exports = countOccurrences;