Travis build: 2127

This commit is contained in:
30secondsofcode
2018-06-05 15:11:04 +00:00
parent c947d28d7c
commit 0c671060a7
2 changed files with 2 additions and 2 deletions

View File

@ -973,7 +973,7 @@ Counts the occurrences of a value in an array.
Use `Array.reduce()` to increment a counter each time you encounter the specific value inside the array.
```js
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);
```
<details>