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

File diff suppressed because one or more lines are too long

View File

@ -739,7 +739,7 @@
"fileName": "countOccurrences.md", "fileName": "countOccurrences.md",
"text": "Counts the occurrences of a value in an array.\n\nUse `Array.reduce()` to increment a counter each time you encounter the specific value inside the array.", "text": "Counts the occurrences of a value in an array.\n\nUse `Array.reduce()` to increment a counter each time you encounter the specific value inside the array.",
"codeBlocks": [ "codeBlocks": [
"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);",
"countOccurrences([1, 1, 2, 1, 2, 3], 1); // 3" "countOccurrences([1, 1, 2, 1, 2, 3], 1); // 3"
], ],
"tags": [ "tags": [
@ -748,7 +748,7 @@
}, },
"meta": { "meta": {
"archived": false, "archived": false,
"hash": "0c33f328b89ba8b79ab2b6c5fe3b75653110e36b155227729a69247c2c0b4ee3" "hash": "8d268b66806bbfee8a6bf73bd4979d061fcdc77f23729acca7a3d30b454bd70c"
} }
}, },
{ {

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; module.exports = countOccurrences;

View File

@ -1,4 +1,4 @@
Test log for: Mon Jun 04 2018 21:21:25 GMT+0000 (UTC) Test log for: Tue Jun 05 2018 21:20:34 GMT+0000 (UTC)
> 30-seconds-of-code@0.0.3 test /home/travis/build/Chalarangelo/30-seconds-of-code > 30-seconds-of-code@0.0.3 test /home/travis/build/Chalarangelo/30-seconds-of-code
> tape test/**/*.test.js | tap-spec > tape test/**/*.test.js | tap-spec