From 1aa9d783656c3af70bc7e2f512b8fcf95544c4c4 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 26 Oct 2018 18:34:57 +0300 Subject: [PATCH] Updated extractor, removed analyzer --- package.json | 1 - scripts/analyze.js | 58 - scripts/extract.js | 87 +- scripts/util.js | 10 +- snippet_data/snippetAnalytics.json | 4822 ------------------- snippet_data/snippetArchiveAnalytics.json | 292 -- snippet_data/snippetList.json | 5259 +++++++++++++++++++++ snippet_data/snippets.json | 4812 +++++++++++-------- snippet_data/snippetsArchive.json | 497 -- 9 files changed, 8132 insertions(+), 7706 deletions(-) delete mode 100644 scripts/analyze.js delete mode 100644 snippet_data/snippetAnalytics.json delete mode 100644 snippet_data/snippetArchiveAnalytics.json create mode 100644 snippet_data/snippetList.json delete mode 100644 snippet_data/snippetsArchive.json diff --git a/package.json b/package.json index f5e92ed78..10736c25b 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "extractor": "node ./scripts/extract.js", "packager": "node ./scripts/module.js", "localizer": "node ./scripts/localize.js", - "analyzer": "node ./scripts/analyze.js", "test": "jest --verbose" }, "repository": { diff --git a/scripts/analyze.js b/scripts/analyze.js deleted file mode 100644 index 70c1666f5..000000000 --- a/scripts/analyze.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - This is the analyzer script that generates the snippetAnalytics.json and snippetArchiveAnalytics.json files. - Run using `npm run analyzer`. -*/ -// Load modules -const fs = require('fs-extra'); -const path = require('path'); -const chalk = require('chalk'); -const prism = require('prismjs'); -let snippetsData = require('../snippet_data/snippets.json'); -let snippetsArchiveData = require('../snippet_data/snippetsArchive.json'); -// Paths -const OUTPUT_PATH = './snippet_data'; -console.time('Analyzer'); -// Read data -let [snippetTokens, snippetArchiveTokens] = [snippetsData, snippetsArchiveData].map(v => ({ - data: v.data.map(snippet => { - let tokens = prism.tokenize( - snippet.attributes.codeBlocks[0], - prism.languages.javascript, - 'javascript' - ); - return { - id: snippet.id, - type: 'snippetAnalysis', - attributes: { - codeLength: snippet.attributes.codeBlocks[0].trim().length, - tokenCount: tokens.length, - functionCount: tokens.filter(t => t.type === 'function').length, - operatorCount: tokens.filter(t => t.type === 'operator').length, - keywordCount: tokens.filter(t => t.type === 'keyword').length, - distinctFunctionCount: [ - ...new Set(tokens.filter(t => t.type === 'function').map(t => t.content)) - ].length - }, - meta: { - hash: snippet.meta.hash - } - }; - }), - meta: { specification: 'http://jsonapi.org/format/' } -})); -// Write data -fs.writeFileSync( - path.join(OUTPUT_PATH, 'snippetAnalytics.json'), - JSON.stringify(snippetTokens, null, 2) -); -fs.writeFileSync( - path.join(OUTPUT_PATH, 'snippetArchiveAnalytics.json'), - JSON.stringify(snippetArchiveTokens, null, 2) -); -// Display messages and time -console.log( - `${chalk.green( - 'SUCCESS!' - )} snippetAnalyticss.json and snippetArchiveAnalytics.json files generated!` -); -console.timeEnd('Analyzer'); diff --git a/scripts/extract.js b/scripts/extract.js index 985865978..aab30cda0 100644 --- a/scripts/extract.js +++ b/scripts/extract.js @@ -29,59 +29,66 @@ snippets = util.readSnippets(SNIPPETS_PATH); archivedSnippets = util.readSnippets(SNIPPETS_ARCHIVE_PATH); tagDbData = util.readTags(); // Extract snippet data -let snippetData = { - data: Object.keys(snippets).map(key => { - return { - id: key.slice(0, -3), - type: 'snippet', - attributes: { - fileName: key, - text: util.getTextualContent(snippets[key]).trim(), - codeBlocks: util - .getCodeBlocks(snippets[key]) - .map(v => v.replace(/```js([\s\S]*?)```/g, '$1').trim()), - tags: tagDbData[key.slice(0, -3)] - }, - meta: { - archived: false, - hash: util.hashData(snippets[key]) - } - }; - }), +let snippetData = Object.keys(snippets).map(key => { + return { + id: key.slice(0, -3), + type: 'snippet', + attributes: { + fileName: key, + text: util.getTextualContent(snippets[key]).trim(), + codeBlocks: util.getCodeBlocks(snippets[key]), + tags: tagDbData[key.slice(0, -3)] + }, + meta: { + archived: false, + hash: util.hashData(snippets[key]) + } + }; +}); +// Extract archived snippet data +let snippetArchiveData = Object.keys(archivedSnippets).map(key => { + return { + id: key.slice(0, -3), + type: 'snippet', + attributes: { + fileName: key, + text: util.getTextualContent(archivedSnippets[key]).trim(), + codeBlocks: util.getCodeBlocks(archivedSnippets[key]), + tags: [] + }, + meta: { + archived: true, + hash: util.hashData(archivedSnippets[key]) + } + }; +}); +const completeData = { + data: [...snippetData, ...snippetArchiveData], meta: { specification: 'http://jsonapi.org/format/' } }; -// Extract archived snippet data -let snippetArchiveData = { - data: Object.keys(archivedSnippets).map(key => { - return { - id: key.slice(0, -3), - type: 'snippet', +let listingData = { + data: + completeData.data.map(v => ({ + id: v.id, + type: 'snippetListing', attributes: { - fileName: key, - text: util.getTextualContent(archivedSnippets[key]).trim(), - codeBlocks: util - .getCodeBlocks(archivedSnippets[key]) - .map(v => v.replace(/```js([\s\S]*?)```/g, '$1').trim()), - tags: [] + tags: v.attributes.tags, + archived: v.meta.archived }, meta: { - archived: true, - hash: util.hashData(archivedSnippets[key]) + hash: v.meta.hash } - }; - }), + })) + , meta: { specification: 'http://jsonapi.org/format/' } }; // Write files -fs.writeFileSync(path.join(OUTPUT_PATH, 'snippets.json'), JSON.stringify(snippetData, null, 2)); -fs.writeFileSync( - path.join(OUTPUT_PATH, 'snippetsArchive.json'), - JSON.stringify(snippetArchiveData, null, 2) -); +fs.writeFileSync(path.join(OUTPUT_PATH, 'snippets.json'), JSON.stringify(completeData, null, 2)); +fs.writeFileSync(path.join(OUTPUT_PATH, 'snippetList.json'), JSON.stringify(listingData, null, 2)); // Display messages and time console.log(`${chalk.green('SUCCESS!')} snippets.json and snippetsArchive.json files generated!`); console.timeEnd('Extractor'); diff --git a/scripts/util.js b/scripts/util.js index 266b8ab98..cf25b1ad9 100644 --- a/scripts/util.js +++ b/scripts/util.js @@ -2,6 +2,7 @@ const fs = require('fs-extra'), path = require('path'), chalk = require('chalk'), crypto = require('crypto'); +const babel = require('@babel/core'); const getMarkDownAnchor = paragraphTitle => paragraphTitle @@ -117,7 +118,7 @@ const hashData = val => // Gets the code blocks for a snippet file. const getCodeBlocks = str => { const regex = /```[.\S\s]*?```/g; - const results = []; + let results = []; let m = null; while ((m = regex.exec(str)) !== null) { if (m.index === regex.lastIndex) @@ -127,7 +128,12 @@ const getCodeBlocks = str => { results.push(match); }); } - return results; + results = results.map(v => v.replace(/```js([\s\S]*?)```/g, '$1').trim()); + return { + es6: results[0], + es5: babel.transformSync(results[0], { presets: ['@babel/preset-env'] }).code, + example: results[1] + } }; // Gets the textual content for a snippet file. const getTextualContent = str => { diff --git a/snippet_data/snippetAnalytics.json b/snippet_data/snippetAnalytics.json deleted file mode 100644 index 3546dbd64..000000000 --- a/snippet_data/snippetAnalytics.json +++ /dev/null @@ -1,4822 +0,0 @@ -{ - "data": [ - { - "id": "all", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 49, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "8a036b5ffee127e5456d59e36f3c9abb24f1692f6a398b61c20ebacaae8380e4" - } - }, - { - "id": "allEqual", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 57, - "tokenCount": 21, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "aa5122e8272d9ef81a634e960da9b0ddbe6d670cb3e801d7ffd17ba36cd1630a" - } - }, - { - "id": "any", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 48, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "15bee4484e96a2d052368ef9dd743819b30d8d883b52575bee65fdc194dc9e93" - } - }, - { - "id": "approximatelyEqual", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 84, - "tokenCount": 30, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "4fa8b87ac30ec67afe40c80101a702986dd1e5cab3cd8b9653f1b7c8cbac7540" - } - }, - { - "id": "arrayToCSV", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 109, - "tokenCount": 41, - "functionCount": 4, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "47f27df615f87cf59e53ae3a618249f8413dd9d9c8939296a8b8f3785697de3d" - } - }, - { - "id": "arrayToHtmlList", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 175, - "tokenCount": 61, - "functionCount": 3, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "71d7b2d9a38cff92cda899e1be04c7995f097781b48ef89e3f766e27d9272fa7" - } - }, - { - "id": "ary", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 60, - "tokenCount": 34, - "functionCount": 2, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "41109ef32647c55ece0a9dba06c840250979124e790c944d732683d27ac26f1f" - } - }, - { - "id": "atob", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 65, - "tokenCount": 23, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b0f4a972f1e217c5f558359fa17693140a8b97a04a48ec1261691f10fb0c2a3e" - } - }, - { - "id": "attempt", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 139, - "tokenCount": 63, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 7, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "ac8ac4dc2ac7d0e2de1cf9f6afff46350aa530a51275658e8b34072740d10b0f" - } - }, - { - "id": "average", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 83, - "tokenCount": 36, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "992835ed744ef767f4cdf46f9881cca57a73695e2a8637a383490bf44369d31b" - } - }, - { - "id": "averageBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 139, - "tokenCount": 56, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "0ad10d648c24e0c27cfbb5cf65f18ad3fc7e072e6459c0bfc2d9936a0e497a03" - } - }, - { - "id": "bifurcate", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 116, - "tokenCount": 63, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "dd427f7304a3c161c95f9b1ae11f0adbe0d687076a5ed16ce2404ed29c136067" - } - }, - { - "id": "bifurcateBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 115, - "tokenCount": 65, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "65534a8995d70358bf0faeb62cfa1e241147c8142e0bb62dd9015219cf367f9f" - } - }, - { - "id": "bind", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 100, - "tokenCount": 41, - "functionCount": 1, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "4909c73d0435a32df36abef06a58c21362ed3991aedc95421516a5d0ea83264a" - } - }, - { - "id": "bindAll", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 159, - "tokenCount": 64, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "791096ce761f35096c86403c6bc290381982d7a9bfc9bda4b70270aaf6ec4df2" - } - }, - { - "id": "bindKey", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 114, - "tokenCount": 44, - "functionCount": 1, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "cfbb9759a71b09d9351a02f39f828578290e389aeb5390ce760957ee43be0297" - } - }, - { - "id": "binomialCoefficient", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 328, - "tokenCount": 164, - "functionCount": 3, - "operatorCount": 25, - "keywordCount": 14, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "0fca1b134c1a13fef45cde62e8f04c70361b477be88222aa7d81ac5d153b3a13" - } - }, - { - "id": "bottomVisible", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 171, - "tokenCount": 35, - "functionCount": 0, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "a40dc0094d62d44e7d086513bca6afb74734dd1e5e56a0ce66e91517b459f50c" - } - }, - { - "id": "btoa", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 65, - "tokenCount": 23, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "ddbab0e7190004d5240469256d66629aa2fcf3c22348818edc01a8beb64831a6" - } - }, - { - "id": "byteSize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 45, - "tokenCount": 19, - "functionCount": 0, - "operatorCount": 2, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "5a7936489c66b541e2e1caf4254540a75557e049d1a10c7da0b38bd3b247f00b" - } - }, - { - "id": "call", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 64, - "tokenCount": 26, - "functionCount": 0, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "732d63737f940a76c33a42ae3a1dcbf72b93149f57e14e34e301dad7ce245236" - } - }, - { - "id": "capitalize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 142, - "tokenCount": 53, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "6f2f03a62a2b6f4a1a79d9864543d87297a1e2550ca5988d23b110fbc5c6a870" - } - }, - { - "id": "capitalizeEveryWord", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 87, - "tokenCount": 22, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "a5d1dd83d8cceafaa3d628655b8595942b549835f90e587202ef972c31e2ca3a" - } - }, - { - "id": "castArray", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 60, - "tokenCount": 25, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b746ad19e2ea713891fb4c625a4c0cbaaad08e2189ecfbb1763ecaf8f2802ec7" - } - }, - { - "id": "chainAsync", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 96, - "tokenCount": 44, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 3, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "8c245a7fc94edffaf5cae4c28f37ed2e989772a9663a5f5bce98147f708a712e" - } - }, - { - "id": "chunk", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 139, - "tokenCount": 58, - "functionCount": 2, - "operatorCount": 7, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "ae5220ae568a7482ee8f82b1af8816f5be99211ff99d7f290a0408d41ca58014" - } - }, - { - "id": "clampNumber", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 91, - "tokenCount": 45, - "functionCount": 4, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "8e63c143d08d73cae1038ca8c6622ddf728b661528b246b55d6eb3b1ae41fe76" - } - }, - { - "id": "cloneRegExp", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 70, - "tokenCount": 21, - "functionCount": 0, - "operatorCount": 2, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "57532d74214897181db46b09dc0be86d26e9877785ec85c3acd1113d5371fa95" - } - }, - { - "id": "coalesce", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 77, - "tokenCount": 33, - "functionCount": 2, - "operatorCount": 5, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "9b2c0c5b8dda71c75580f5f7214e93fffddf6ac872f39206fe26793ab60403ce" - } - }, - { - "id": "coalesceFactory", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 63, - "tokenCount": 21, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "3f2182bea1d9f17e2f315f6e8d72b3c31a42ff427e2a90d38fe50d6b86483f2e" - } - }, - { - "id": "collectInto", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 48, - "tokenCount": 20, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "6b57cac68ad177d8fbb30e9c586f8f9c088acf755c6c956b5387441ea3850fce" - } - }, - { - "id": "colorize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 713, - "tokenCount": 98, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "30fc60a8ab8c8005f7d31b82f4386ba17caa9fed690916581b2c18fa0a125215" - } - }, - { - "id": "compact", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 43, - "tokenCount": 14, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "2b349628df5c87359dfe7b113c4002212490693bb1dc1342f25775018764efd7" - } - }, - { - "id": "compose", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 77, - "tokenCount": 41, - "functionCount": 3, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "99383d2b505d6afcd239d6369ab28b319b0ea0b1bcf2cc9176ac5762516e4413" - } - }, - { - "id": "composeRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 82, - "tokenCount": 41, - "functionCount": 3, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "dd019505c88315f8744dd12bc7a66f5bd2aac07e2bbb3f6b3be100a1c1b96484" - } - }, - { - "id": "converge", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 100, - "tokenCount": 41, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "12ac9307e4f8d368f6c1fa85caa9a16365fbbbd09ede026992155067f18b20f9" - } - }, - { - "id": "copyToClipboard", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 541, - "tokenCount": 150, - "functionCount": 13, - "operatorCount": 9, - "keywordCount": 4, - "distinctFunctionCount": 10 - }, - "meta": { - "hash": "9d6a47c41fe4f5e0c006e29daef0c3eb7d9df37fa98c3498f938a6d2e4daf197" - } - }, - { - "id": "countBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 174, - "tokenCount": 81, - "functionCount": 2, - "operatorCount": 9, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "3d377baf4b065d0780e77bbded1bd2eac67ee72161bf3ff6fea061bb0e852453" - } - }, - { - "id": "counter", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 461, - "tokenCount": 144, - "functionCount": 6, - "operatorCount": 20, - "keywordCount": 5, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "5bf0c865aba5b748d185b9415c3b66ed61c77a0c5c052d44cfb745661f9a5802" - } - }, - { - "id": "countOccurrences", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 88, - "tokenCount": 43, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "8d268b66806bbfee8a6bf73bd4979d061fcdc77f23729acca7a3d30b454bd70c" - } - }, - { - "id": "createElement", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 130, - "tokenCount": 35, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 3, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "90ce0d4ef6e6fece19d008d21e0201864dafbe48a62dbc7226f31f4b9c834090" - } - }, - { - "id": "createEventHub", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 407, - "tokenCount": 179, - "functionCount": 9, - "operatorCount": 12, - "keywordCount": 11, - "distinctFunctionCount": 9 - }, - "meta": { - "hash": "e952a30a27c1465ea9ac465d4b7de3f9dda6e58279c176bc7c0e98fb6d99f1fc" - } - }, - { - "id": "CSVToArray", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 180, - "tokenCount": 60, - "functionCount": 5, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "323a85ce03cc446dcfc3dfd8a89b4501b217b0e846fa73b99a6c3e2ee51a1caf" - } - }, - { - "id": "CSVToJSON", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 341, - "tokenCount": 126, - "functionCount": 9, - "operatorCount": 9, - "keywordCount": 5, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "de42726725b56d870fa0a7b16dc327589bbeba5a6d821d5f43d09b8a478a139a" - } - }, - { - "id": "currentURL", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 46, - "tokenCount": 16, - "functionCount": 0, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "965397215e067e73b7c7bbd8f376f5773c79bb82f370747603647b01dee09a28" - } - }, - { - "id": "curry", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 126, - "tokenCount": 50, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "e3b0d5ff10d79034d6ccc448282097089b084ed71c608bc8f3468c0a8533ec14" - } - }, - { - "id": "debounce", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 177, - "tokenCount": 65, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 5, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "2c956f3d572d8d1a8534827e4ff3e8c41f47ca6e4e899715146413162d8cd72a" - } - }, - { - "id": "decapitalize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 144, - "tokenCount": 53, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "c787309273fe531dcbc4ebc32b078cef19b3205c78f1e5c3863acac06ce23df4" - } - }, - { - "id": "deepClone", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 278, - "tokenCount": 107, - "functionCount": 5, - "operatorCount": 10, - "keywordCount": 5, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "348cfded2d11812e84ba6416f258b90bf01ec50515f0aa97052c1f166b51a489" - } - }, - { - "id": "deepFlatten", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 95, - "tokenCount": 42, - "functionCount": 4, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "31714831376eeddd863a295af778632f584468745fbeb4e9a6f62b5275ea3562" - } - }, - { - "id": "deepFreeze", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 188, - "tokenCount": 64, - "functionCount": 5, - "operatorCount": 7, - "keywordCount": 3, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "24b3dd66c4b69577d70917ba4f0c119a7ad21497d18704b7150c3693673b5e53" - } - }, - { - "id": "defaults", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 82, - "tokenCount": 35, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "067c820cb1b4afca0eca5ff9c3f9a835360224ac513fc50b247118adf54fea2b" - } - }, - { - "id": "defer", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 58, - "tokenCount": 28, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "eeeaf78d587fe1afdef8eb4b8c3f9f7887e364894d4efb1beecc0adf59250009" - } - }, - { - "id": "degreesToRads", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 53, - "tokenCount": 20, - "functionCount": 0, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "7f34bce958e51235318edc3a1fba0acf0fa110e533f3e92f87d27e74d7c1532b" - } - }, - { - "id": "delay", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 67, - "tokenCount": 29, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "818427da43b193ebf9f10dccd7399c405c437cc5d0040add0df40fd25e940218" - } - }, - { - "id": "detectDeviceType", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 155, - "tokenCount": 28, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "2262275b7adcd7d9b2dd8f31da2a3a2dbcc663584928f46131a0d273b587403b" - } - }, - { - "id": "difference", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 92, - "tokenCount": 48, - "functionCount": 2, - "operatorCount": 5, - "keywordCount": 4, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "e516410de0d0625f9673ba17858a2aeaea84918ebd58e27f53cd300519992ffd" - } - }, - { - "id": "differenceBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 118, - "tokenCount": 64, - "functionCount": 5, - "operatorCount": 6, - "keywordCount": 4, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "34b876f5bf471d60d20a0e04c8e489de256ce0d5cef28de3bd70789d1b93d919" - } - }, - { - "id": "differenceWith", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 98, - "tokenCount": 42, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "e80b6619b9690e2a5d5cfd9d5fbe77fc25b6698e580e4b36e2c3c5fc54e3e572" - } - }, - { - "id": "dig", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 236, - "tokenCount": 79, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 7, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "0f53175b7bf367b55e612ccca6061c8e2a3db68af00950af2fda92746055cc05" - } - }, - { - "id": "digitize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 56, - "tokenCount": 24, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "24c310daf1753360f1227331a36b1bfa6e1a165a65ca1c74acd9d90050b67bbe" - } - }, - { - "id": "distance", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 66, - "tokenCount": 30, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "7023fa4063eaa53d06b0efd531455be981b3a14e6e0443cb9a04a639653103cc" - } - }, - { - "id": "drop", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 42, - "tokenCount": 23, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "d890ae5478fb895bf8dd02c48afd2ba157a8a10953459486a1ef1a3907960344" - } - }, - { - "id": "dropRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 51, - "tokenCount": 27, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "363950cfd962ab27b0a0e8cac684d67a6e2b68e889af62e01ab1b4723ec0e2aa" - } - }, - { - "id": "dropRightWhile", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 135, - "tokenCount": 62, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "78b914b8c51d1cfdac70746979b8e25d8649c4543d14da14e2950f63f889e2e4" - } - }, - { - "id": "dropWhile", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 113, - "tokenCount": 53, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "5d6353c95ab328b21e84f4a5cf2c49bea9516e4945a91658bed14309c8919990" - } - }, - { - "id": "elementContains", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 86, - "tokenCount": 24, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "2f2c68c3368f5658fd54cb70b6264dce87ee68b23e805a95c62d55eef1854958" - } - }, - { - "id": "elementIsVisibleInViewport", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 450, - "tokenCount": 137, - "functionCount": 1, - "operatorCount": 28, - "keywordCount": 4, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "d38bc0cd234c57cb95db1e60c47eb11a4d89775a4694acc520a8f113d03e3a39" - } - }, - { - "id": "elo", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 580, - "tokenCount": 248, - "functionCount": 4, - "operatorCount": 30, - "keywordCount": 11, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "3fc1fe2b64b13a3064c547933e759c0782bd43f357056a467d0ce2cc7e9a38e3" - } - }, - { - "id": "equals", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 490, - "tokenCount": 197, - "functionCount": 6, - "operatorCount": 24, - "keywordCount": 21, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "7682a58d7745903fc19aa4341b8594d85714d563cfda1b44779bc0663338c3cf" - } - }, - { - "id": "escapeHTML", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 210, - "tokenCount": 60, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "ae852a538f18374cd16ddd80cbac643bcbd6ed1ff70c49fa01b59e517fad69c9" - } - }, - { - "id": "escapeRegExp", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 71, - "tokenCount": 17, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "d328f5aca40c6ee25ff1d6ad4fe813a6bdd2e7dc2bf01567ba8cf8fd2470be83" - } - }, - { - "id": "everyNth", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 73, - "tokenCount": 34, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "bcf1b2900f8cd6ca9b62cc02e102cb94b494ab142d8f1d6f99dbaae0677d0fe9" - } - }, - { - "id": "extendHex", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 144, - "tokenCount": 53, - "functionCount": 5, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "f0f0a6da4c1fc17507cc956b0fa76d12efa81379b5626eb5ab739714ba139864" - } - }, - { - "id": "factorial", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 175, - "tokenCount": 59, - "functionCount": 1, - "operatorCount": 9, - "keywordCount": 3, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "319e1a8fb41490965ee6e28db3e139e65c4ea5b7f43e332bc7216cd790e5d409" - } - }, - { - "id": "fibonacci", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 140, - "tokenCount": 67, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "51d2fb1f44adfb7dde99fbe118ed9101b6e8848512cfd29324cccff15c4e3c1d" - } - }, - { - "id": "filterNonUnique", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 86, - "tokenCount": 29, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "8f319457b4350e041ba31cd4b4d02135013d8ea6716d0a4d00cf1b1bfd214ffa" - } - }, - { - "id": "filterNonUniqueBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 113, - "tokenCount": 57, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "39812240e9f09488915843a8ecb6373908513a7a469c00b120779ca462c651c5" - } - }, - { - "id": "findKey", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 82, - "tokenCount": 38, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "3ffa31973db7065ca8be2e550838839b555e07e8022647f8288da7ae3dc9680c" - } - }, - { - "id": "findLast", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 51, - "tokenCount": 24, - "functionCount": 2, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "5ee9242026e09ac101ace1edb4c5b1d01ab00dd5c718118ab2bf5cb38193abab" - } - }, - { - "id": "findLastIndex", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 129, - "tokenCount": 63, - "functionCount": 4, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "1af02f52c6aef95d92a27280477d30d4a677600433809267a04ed8bcb5b8f549" - } - }, - { - "id": "findLastKey", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 108, - "tokenCount": 44, - "functionCount": 4, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "c06e83c16f06394a29a029019a33c3ce0eb942f84ad6f1ef2b149ef09f836837" - } - }, - { - "id": "flatten", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 132, - "tokenCount": 65, - "functionCount": 4, - "operatorCount": 8, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "976416611eef7ea7ec02cfa6ddc08711f633e2a87d4f04b3b255cf5cd6bd9b9f" - } - }, - { - "id": "flattenObject", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 280, - "tokenCount": 110, - "functionCount": 4, - "operatorCount": 11, - "keywordCount": 6, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "445459e7eb304ee9069d72088883128e487c8bbac8f5b13f518b0332a99758a4" - } - }, - { - "id": "flip", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 58, - "tokenCount": 26, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "57a42eb12cc7d4535c25d9945db9abb115ca9520e298fbaed64549ee22ac76aa" - } - }, - { - "id": "forEachRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 98, - "tokenCount": 31, - "functionCount": 3, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "c1d57024a1a572f9b8a4f7449aae2065e62fbd942709b9f4f6f09b64f518a1ca" - } - }, - { - "id": "formatDuration", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 421, - "tokenCount": 154, - "functionCount": 9, - "operatorCount": 17, - "keywordCount": 4, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "fcaccacf92e1a1e5f8610cf78b840a6b897fc5e6cadb54d7a32efadb71b99f80" - } - }, - { - "id": "forOwn", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 84, - "tokenCount": 38, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "9f0a397890471bc6cab05493ae03780a0edca56e684c896a7f2e3fc773ab4642" - } - }, - { - "id": "forOwnRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 111, - "tokenCount": 44, - "functionCount": 4, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "6f320512c0362081df614d61e17ed8562bb7ee07bbcb62def3f3ac459b5be6bf" - } - }, - { - "id": "fromCamelCase", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 198, - "tokenCount": 50, - "functionCount": 3, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "09fc37c37860d58380c6ce23d61f872193415d1cfe7446fe7ff6943d0b7d9968" - } - }, - { - "id": "functionName", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 56, - "tokenCount": 21, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "66e540b754a02d3deba942aa9854d1051ec54c81f22e0dea859c5d3305b89fec" - } - }, - { - "id": "functions", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 204, - "tokenCount": 71, - "functionCount": 5, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "89af4f514247f8d9702dfa3d6a77df187ca7ab5994dd8074da1f293cec24ff61" - } - }, - { - "id": "gcd", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 127, - "tokenCount": 75, - "functionCount": 3, - "operatorCount": 10, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "1e35c8e3f0346e387fd97c25ecd0560270860bae65cc4a2d333b949f8187fa92" - } - }, - { - "id": "geometricProgression", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 181, - "tokenCount": 74, - "functionCount": 4, - "operatorCount": 10, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "b94f3a44fb67360e307a17096a743c8616f1a194ba08a549064d090ef86c31ee" - } - }, - { - "id": "get", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 215, - "tokenCount": 75, - "functionCount": 5, - "operatorCount": 9, - "keywordCount": 3, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "85d56939e95b4f3015a2ee7b7a74ed2855e4e387ce5eb03d7d3c6c3a071dcf5c" - } - }, - { - "id": "getColonTimeFromDate", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 69, - "tokenCount": 21, - "functionCount": 2, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "757e7f51ea8c8b5803769c92b60966580c3fa3a227036cb3ca41406c22c6632b" - } - }, - { - "id": "getDaysDiffBetweenDates", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 109, - "tokenCount": 34, - "functionCount": 0, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "baeec5f4220f1e457b11034e29d84277dbdc9fc5c9e69c1a225bb22f13b843ec" - } - }, - { - "id": "getMeridiemSuffixOfInteger", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 192, - "tokenCount": 72, - "functionCount": 0, - "operatorCount": 16, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "561d55a2f839596b336a04badbd160a3b895e9ebb9c1d392998ecccdbe5fb98d" - } - }, - { - "id": "getScrollPosition", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 183, - "tokenCount": 50, - "functionCount": 0, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "4033549c80f649c2a9b9b50d1af42410811ff72914c5eb576445219bddfc792f" - } - }, - { - "id": "getStyle", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 66, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b9668334e0fd077c4e43d616765e4343b3770a0a3bd6b846ecc743ca7d65a804" - } - }, - { - "id": "getType", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 110, - "tokenCount": 35, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "7fb09e3f807459959cae5fcb87ac323286e0a36ed4500b699c292c19b709af38" - } - }, - { - "id": "getURLParameters", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 177, - "tokenCount": 79, - "functionCount": 6, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "1083da3e052cd8a654bc85150a434fe1a31729be0b78c2fa573887a9a7318ba3" - } - }, - { - "id": "groupBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 186, - "tokenCount": 86, - "functionCount": 3, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "16d1dadd1272a4627adf5788c6419a8c0ea578db3769f13995471067e621198e" - } - }, - { - "id": "hammingDistance", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 93, - "tokenCount": 38, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "e75b1c53cb28dce1ac4f8e1d1289f96da22e2b24e6c3a28bd5fd5adc5f4ec5de" - } - }, - { - "id": "hasClass", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 69, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "edb16de35e0a033f7dece0ff7854b17cb6c5ed0ed68438556ee38b68b219e7fe" - } - }, - { - "id": "hasFlags", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 119, - "tokenCount": 42, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "3ea93481e9752f37b1b4fae54740a49df11068de7fea73e7a90db2d79019eb29" - } - }, - { - "id": "hashBrowser", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 317, - "tokenCount": 115, - "functionCount": 8, - "operatorCount": 10, - "keywordCount": 7, - "distinctFunctionCount": 8 - }, - "meta": { - "hash": "aa8ba51d9419e05e0d2962221c0a65311ad54b4b38f278a1d4ab546ca5b29bc9" - } - }, - { - "id": "hashNode", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 260, - "tokenCount": 63, - "functionCount": 6, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "80adea6b33dacdfc5f2d25ce270472f232208fa688794b71ba042ea368e1ad63" - } - }, - { - "id": "head", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 27, - "tokenCount": 12, - "functionCount": 0, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "cd65a1dea363ab1e3773705c33b30afd44fd1ab2ecb57f732c35fd4e737ada11" - } - }, - { - "id": "hexToRGB", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 521, - "tokenCount": 238, - "functionCount": 5, - "operatorCount": 34, - "keywordCount": 6, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "181b4df31bcbafebd7960725d19c945925a2dc5ee79ef30668d4becae0c82518" - } - }, - { - "id": "hide", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 65, - "tokenCount": 26, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "8b7b70809f93fd9392315a5c63aa4cbbf9b45eb1165a7d44db314186d407816b" - } - }, - { - "id": "httpGet", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 249, - "tokenCount": 87, - "functionCount": 4, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "beb6cc37601ceaae4203ff5a6dbd6f8bf9ba83cb24b159e5e6d7d18a7d0efb2a" - } - }, - { - "id": "httpPost", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 340, - "tokenCount": 100, - "functionCount": 5, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "a74182199fce00d578629f774e05c256a30a624e254da6ea6aee532803ad08d6" - } - }, - { - "id": "httpsRedirect", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 131, - "tokenCount": 46, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "15f1d0142c25cc971b11c18db69dbc7cc4492877661a7b7b471add15dd6c5316" - } - }, - { - "id": "hz", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 183, - "tokenCount": 76, - "functionCount": 3, - "operatorCount": 10, - "keywordCount": 5, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "4c8c44d8677b7b591d36d043e3c1347b50ad21e2b24aa371ea50b515ee98254f" - } - }, - { - "id": "indexOfAll", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 98, - "tokenCount": 49, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "643cb7b5df16c9da268e21b65b4cf73bb572e7b93a5859d09bb3bc949665f65b" - } - }, - { - "id": "initial", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 40, - "tokenCount": 18, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "fbb48fd534c60e0b78ddc84eb7dcdc74e0cb8487545da6a49ca53149915af632" - } - }, - { - "id": "initialize2DArray", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 123, - "tokenCount": 52, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 4, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "bb9a475bb49367ff2cb0a58f47992d69f2fecbc5f614c1a6e41c469495e93af3" - } - }, - { - "id": "initializeArrayWithRange", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 153, - "tokenCount": 62, - "functionCount": 1, - "operatorCount": 10, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "f2cb7d6d0d34691affe17f7c06ee5c45944bd9515298560a18543f0798b4fe13" - } - }, - { - "id": "initializeArrayWithRangeRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 194, - "tokenCount": 79, - "functionCount": 2, - "operatorCount": 12, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "25359e2d70e26266be459ea522d6272581c099089ae79b5bc48116cfb88cc088" - } - }, - { - "id": "initializeArrayWithValues", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 69, - "tokenCount": 27, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "f6e42080918660d432e391965815f7e2106ba2be536432f6c4aefdd658324d0b" - } - }, - { - "id": "initializeNDArray", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 164, - "tokenCount": 62, - "functionCount": 3, - "operatorCount": 7, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "30158adba400501632e1ac4d55a5f0fcc2d9416f77aee9156844450689c929dc" - } - }, - { - "id": "inRange", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 169, - "tokenCount": 74, - "functionCount": 0, - "operatorCount": 14, - "keywordCount": 5, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "cb00d1c23e02506fc968515ce8c18dcec8837d447cd47a99f73777574308fb49" - } - }, - { - "id": "insertAfter", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 86, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "6fb50a82d884c18e13fce553a0027ab6816697d3be1dd4c5e22d0c8f833744bf" - } - }, - { - "id": "insertBefore", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 90, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "bd45d57d669eeecd55bb507ab12c09839dc35ee90f99bcc182dae0a41649a19d" - } - }, - { - "id": "intersection", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 93, - "tokenCount": 46, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 4, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "3a8920e513726008197584769c01a4fffd26e93d945e40a944189872c7585730" - } - }, - { - "id": "intersectionBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 111, - "tokenCount": 56, - "functionCount": 4, - "operatorCount": 4, - "keywordCount": 4, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "78c90426a81372be83af6ef2bdee0147263361673ab99fa2315ead2720d991b8" - } - }, - { - "id": "intersectionWith", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 92, - "tokenCount": 42, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "66050987342924eff56a42b04bb50287f8d46d8f504d186478141dbcd2fb1f4b" - } - }, - { - "id": "invertKeyValues", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 205, - "tokenCount": 90, - "functionCount": 4, - "operatorCount": 7, - "keywordCount": 3, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "9a0cd8cae3d3901bf78fad156e810f80738e7ee3e51b288dc89fa7b9eb54c866" - } - }, - { - "id": "is", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 78, - "tokenCount": 33, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b89d0ccfdf527ef90c49a4b4e54b9d5106691abe8c94a94ba8fda3a43c77391b" - } - }, - { - "id": "isAbsoluteURL", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 61, - "tokenCount": 15, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "74e18a4c018b09d172b04daec6aeab29297b83986bb846028fc20ab1300c84a5" - } - }, - { - "id": "isAnagram", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 222, - "tokenCount": 73, - "functionCount": 7, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "2bda59143e64383a94ba8fd9c519db16b50566b2810030493a1d77d229ce7841" - } - }, - { - "id": "isArrayLike", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 85, - "tokenCount": 26, - "functionCount": 0, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "00b43a2b430d5d9205046ad6fbf7442f0d4507895c82545753253b5b5f97fa3a" - } - }, - { - "id": "isBoolean", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 50, - "tokenCount": 14, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "e1adac3af11702cb65c30ecaf573659d215b3e2c2b5825e9993d36d889c5fd52" - } - }, - { - "id": "isBrowser", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 80, - "tokenCount": 26, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 3, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b207815a1a26a3161f3c79e64052e8feac65e44a34cef545851300c8b9f08d0d" - } - }, - { - "id": "isBrowserTabFocused", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 51, - "tokenCount": 16, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "af819966e11f4832bfc0129d1d0e148fa0157775d9a07d26f4c17f7096c6a176" - } - }, - { - "id": "isDivisible", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 68, - "tokenCount": 20, - "functionCount": 0, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "660aff9a5f540384603a2ab18d24e933b37e71972bd6bbc708b7bfb77ac13a50" - } - }, - { - "id": "isEmpty", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 72, - "tokenCount": 29, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "55954fcfb879542225f7d1861ae7de6faac288e28ca857367b6a2eeba9a54786" - } - }, - { - "id": "isEven", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 36, - "tokenCount": 16, - "functionCount": 0, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "1c88249edc75925e83e8a4abc28f300c27bf9be1440bcc30b1b798b7d7ea8596" - } - }, - { - "id": "isFunction", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 52, - "tokenCount": 14, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "22009c1df55cca53bc9b227d4f8f2e3d475abe5f5eecfbf9ab3cb30948c9d783" - } - }, - { - "id": "isLowerCase", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 53, - "tokenCount": 15, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "e23c295c6c1d85cbeae2cfad15be98d3d8093ba59266f14af7dc47d19a68f43b" - } - }, - { - "id": "isNil", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 55, - "tokenCount": 16, - "functionCount": 0, - "operatorCount": 5, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "8a0c679926f99b1f710ad093e3ca2ae845eea383740b4aa655e2e3beb99472ca" - } - }, - { - "id": "isNull", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 35, - "tokenCount": 12, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "e38f39701757feb6e2515736d446b2de580f19c77f9eaacb5d0d5b3e787209f8" - } - }, - { - "id": "isNumber", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 48, - "tokenCount": 14, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "446ed50e100f18a606c8443be196992b74b235ed98646632463fdc3d01f9eb04" - } - }, - { - "id": "isObject", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 44, - "tokenCount": 15, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "64de55a580b3db52f79f2bc3168e312d4087891216853e51f8585e30c6eb3d3d" - } - }, - { - "id": "isObjectLike", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 68, - "tokenCount": 20, - "functionCount": 0, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "5388bdd5320b8b68511c1a6b77683e8320177a9c6561e5e952a60193c1b73844" - } - }, - { - "id": "isPlainObject", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 92, - "tokenCount": 26, - "functionCount": 0, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "f57c53ec6964e15510cd9bf9ad53429721c6a6547b59bd302ebcbc4cd19557ea" - } - }, - { - "id": "isPrime", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 164, - "tokenCount": 68, - "functionCount": 2, - "operatorCount": 9, - "keywordCount": 7, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "023b7e9fded22fad9cd776f01c60c8238236cb2921523d7d612034bb465cba7d" - } - }, - { - "id": "isPrimitive", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 88, - "tokenCount": 28, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "f71ccc907c6ffd6bc29d461f12529872a78a78f871633fceeceed4e60a666c6f" - } - }, - { - "id": "isPromiseLike", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 140, - "tokenCount": 40, - "functionCount": 0, - "operatorCount": 9, - "keywordCount": 5, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "fa8bfc91bfa09eb76f7131c3cc7b890598f8a30ec9e9872f7ffd9c282d37ba72" - } - }, - { - "id": "isSorted", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 299, - "tokenCount": 135, - "functionCount": 1, - "operatorCount": 19, - "keywordCount": 10, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "2dfe9101a9ab2945ffddb46ecbca0fdd5dea384683d310e8adb852ac9c51970f" - } - }, - { - "id": "isString", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 48, - "tokenCount": 14, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "1292c2a3504428962a0851e2f433aac67bfdd581f5abf08df967f5c8fef0954b" - } - }, - { - "id": "isSymbol", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 48, - "tokenCount": 14, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "680fe44539f63a13c6586153e9ffdddd2a9a9b83c2736a69eaf5fe24080675e3" - } - }, - { - "id": "isTravisCI", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 72, - "tokenCount": 26, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 3, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "1528bcadc4afcb7240a9f5d53b49243d512d8c98814b3fe841889d0772ad2030" - } - }, - { - "id": "isUndefined", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 45, - "tokenCount": 11, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "00eca9d29a66b8b8cee4b059a88bdae8f60cdc557cdff52817edd811cde5281b" - } - }, - { - "id": "isUpperCase", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 53, - "tokenCount": 15, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b4fea8a827ecac55b823edbeac26371b6ab29321180ca71bf3a47fa2fedcabb6" - } - }, - { - "id": "isValidJSON", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 115, - "tokenCount": 46, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 5, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b4417a972f391836241e88587797a8cd995f32ee71fbfcfe9e590c8fa8675558" - } - }, - { - "id": "join", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 243, - "tokenCount": 73, - "functionCount": 1, - "operatorCount": 16, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "05c13ad111a5815d05ba0d2ca0bb17a7ab7e02fc3b33f0e5e049acc25fc2cbb4" - } - }, - { - "id": "JSONtoCSV", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 263, - "tokenCount": 62, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "65457b943f03456c28e947f21177ffd0c9d8a00eb37aab7f7f76cb666f8c0acc" - } - }, - { - "id": "JSONToFile", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 129, - "tokenCount": 44, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "1428086b630fa917dbb5a4ecd2854e9371b07244b3968bc3eb3184b4b589ea0c" - } - }, - { - "id": "last", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 40, - "tokenCount": 17, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "49eb0b667109a372349e32fbcb809894ed62b5a1a3dab305876b810f8adfef29" - } - }, - { - "id": "lcm", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 172, - "tokenCount": 105, - "functionCount": 4, - "operatorCount": 14, - "keywordCount": 4, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "ac4ec1ff763b005ddd65e6ed5bdb49b18a4ce53f8b7ccf79536fa49ebeb6efa8" - } - }, - { - "id": "longestItem", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 103, - "tokenCount": 49, - "functionCount": 1, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "cb9de7acf3a94ee67a24d7d5926944124ad0bd3459126c2f740f868fbffc655b" - } - }, - { - "id": "lowercaseKeys", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 135, - "tokenCount": 52, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "683925a82b5ff50494e589d9e1aa6ac66696263718613bf29ab03203c1247bdb" - } - }, - { - "id": "luhnCheck", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 294, - "tokenCount": 137, - "functionCount": 6, - "operatorCount": 19, - "keywordCount": 5, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "874ac349f65a3787c4579dfe94efc068441b1b4cd38892a35352d43ece8e7ca4" - } - }, - { - "id": "mapKeys", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 132, - "tokenCount": 64, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "a0d5ec06ceb092d7473d95ce8f4124edcdf7d3659969f2f1e7d21834fc682ee6" - } - }, - { - "id": "mapObject", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 144, - "tokenCount": 83, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "c7f0f9b6b22590a17c41057c56ea5cf14e74dfbbd4fb7e4bc5c08db3760ef76d" - } - }, - { - "id": "mapString", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 100, - "tokenCount": 47, - "functionCount": 4, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "828991c05b86fc84f46155e1452cada09bd3cb64f734533af7bf4cabe3077aab" - } - }, - { - "id": "mapValues", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 129, - "tokenCount": 62, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "c98a3dde46797b4d6c38d7bac7689bbfbcf24892a62de06f4aaeb665f1e9607c" - } - }, - { - "id": "mask", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 113, - "tokenCount": 58, - "functionCount": 3, - "operatorCount": 9, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "c229055a0698ea0a36daa96a36172d1401e80ca98012752804d86f007cf721d3" - } - }, - { - "id": "matches", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 121, - "tokenCount": 44, - "functionCount": 3, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "b8b36705d0f588dca63c57c248d0683852d6f14aab68831595be5f2f1568c9df" - } - }, - { - "id": "matchesWith", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 209, - "tokenCount": 70, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "c1fd11b1c4376ec9a31d3e1ed3f9910e97ffa20db06ce2ecf3a3afc1d25daff9" - } - }, - { - "id": "maxBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 96, - "tokenCount": 40, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "1e428e3359905eca8f86da81afcbcca3b93c44ac7500c1736ca9c83f9c66a135" - } - }, - { - "id": "maxN", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 72, - "tokenCount": 43, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "a6b2f1c58b863814ad76a4b98a3ed995d17ce7b19ee01fe4d7455ef5d35b704c" - } - }, - { - "id": "median", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 188, - "tokenCount": 91, - "functionCount": 2, - "operatorCount": 14, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "a6b933371f622f4dde77359e73c6d12ba14b3c21171a86830e59c4e620be8cb1" - } - }, - { - "id": "memoize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 231, - "tokenCount": 91, - "functionCount": 2, - "operatorCount": 7, - "keywordCount": 11, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "b0de7050159a7c0fab5a089e2118d3e20d48d96a4aae6a0ddb98f489882bb80f" - } - }, - { - "id": "merge", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 236, - "tokenCount": 104, - "functionCount": 6, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "6ed1518bf260b792cb9e06eec51cc88ad4d81aca1ec59c2bf5d0bf9bb57d47fa" - } - }, - { - "id": "minBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 96, - "tokenCount": 40, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "b6ccebafe03f65d47a1e6036043ea279a540e7056a5cc4a0917e007bc2a0e460" - } - }, - { - "id": "minN", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 72, - "tokenCount": 43, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "f780a2df19c5fc40d2663314d2a7a7244971aa76f0efb6d73b64fab055fafdb7" - } - }, - { - "id": "mostPerformant", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 262, - "tokenCount": 95, - "functionCount": 6, - "operatorCount": 11, - "keywordCount": 7, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "741dc61327ac90180fbc751011539c34c25e8ed70740cf4033a3acddee573530" - } - }, - { - "id": "negate", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 51, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "7cc8011d1cb158b7371144dff98b6243752e862d9dc3786caac77e50539060ed" - } - }, - { - "id": "nest", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 166, - "tokenCount": 62, - "functionCount": 3, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "923043e5861c743a77b182f90ad810f57b866d14470ac0337435287768ee2919" - } - }, - { - "id": "nodeListToArray", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 50, - "tokenCount": 13, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "50e0b97be1cc2256f34991c379bae0bba8c99db160dcd5842112752074de92ec" - } - }, - { - "id": "none", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 50, - "tokenCount": 24, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "84dab3ab837bb27a0470097336a8f0c843052e722dbb7af86895dc5e588d2137" - } - }, - { - "id": "nthArg", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 50, - "tokenCount": 24, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "3cf559381bdbb30631347fa1e02c5552c47963737da6737455992f6fb39652af" - } - }, - { - "id": "nthElement", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 86, - "tokenCount": 49, - "functionCount": 2, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "94f23b748d064fc620e820b9f858e0b191c68be84c9af6d8740fe48618005870" - } - }, - { - "id": "objectFromPairs", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 86, - "tokenCount": 43, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "5dac82c5ca1e0d36ddc13bd1d3e643676c271f86eebf8aa4fb1afb382e07e771" - } - }, - { - "id": "objectToPairs", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 68, - "tokenCount": 29, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "9d0834d532c92f02e06428a693600b65c293803175398d0d2549bf965dbc3b0a" - } - }, - { - "id": "observeMutations", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 437, - "tokenCount": 98, - "functionCount": 4, - "operatorCount": 5, - "keywordCount": 4, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "184249efedeae899be6f64b8a514f5ecdede5caa73add1973172351e9b129c6b" - } - }, - { - "id": "off", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 81, - "tokenCount": 31, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "875854e1205203c8e8bff08adbf474ff88cbca4d33d49cb68417a72620096171" - } - }, - { - "id": "offset", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 80, - "tokenCount": 35, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "ac3331392815f5a6496304df0d9b25aca464dd3b1cb5d01396c233b5f179f722" - } - }, - { - "id": "omit", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 141, - "tokenCount": 68, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "047964b4409ac519c62909c0ca6f50b4db18bdf3cfb9bfc645d43e6438858b99" - } - }, - { - "id": "omitBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 140, - "tokenCount": 71, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "c9087e8945c10e2e0cc951fc9e2bcd62316347aebb0e127bc7f6c6dbf52cd11c" - } - }, - { - "id": "on", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 247, - "tokenCount": 91, - "functionCount": 3, - "operatorCount": 8, - "keywordCount": 4, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "9baea961cebb81bcaec83515bc98ca1e77affc03b2550c88e5d559973025d3d7" - } - }, - { - "id": "once", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 155, - "tokenCount": 57, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 8, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "66051661cb13aa6295a539dda924cb6d55964fc0a438448414decaadbcc64637" - } - }, - { - "id": "onUserInputChange", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 493, - "tokenCount": 140, - "functionCount": 6, - "operatorCount": 14, - "keywordCount": 7, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "f42b7a49b6b92be7da1537a058588818c05d1110150fcad063c4325665a4d4e3" - } - }, - { - "id": "orderBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 311, - "tokenCount": 142, - "functionCount": 2, - "operatorCount": 16, - "keywordCount": 4, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "22503211c50141af520926b607fb38527e2667ce22de64f07942db9ef2de3ff1" - } - }, - { - "id": "over", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 74, - "tokenCount": 35, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "247a0bbb83498d826178298d52a73ee8720e958e1f8afea599a3727217a45ed6" - } - }, - { - "id": "overArgs", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 98, - "tokenCount": 45, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "af95e891903e7ee7aff4f5cf8254b2ad904086938ae1058482fd599b08824deb" - } - }, - { - "id": "pad", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 110, - "tokenCount": 42, - "functionCount": 2, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "9a7c678e67831c68d0589a63a2928d4b68e4defa7a015d598dda253710401902" - } - }, - { - "id": "palindrome", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 125, - "tokenCount": 49, - "functionCount": 4, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "f57075c283729a7585935df63d6e7a24c25b16865a28058e0973d42a314dadd9" - } - }, - { - "id": "parseCookie", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 210, - "tokenCount": 80, - "functionCount": 8, - "operatorCount": 5, - "keywordCount": 2, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "73024d687cf93478ce209b0f0ccc81f5841ca785effdd664d07a31fade8340b3" - } - }, - { - "id": "partial", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 75, - "tokenCount": 33, - "functionCount": 1, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "b57e228d9f4be72f0b54e613db0d03f8f580c79e48cd7ba43673eaac874fd057" - } - }, - { - "id": "partialRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 80, - "tokenCount": 33, - "functionCount": 1, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "907872c83c8820b239838c65f4d5174783e372275e85fd96050d9218932325b4" - } - }, - { - "id": "partition", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 161, - "tokenCount": 75, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "34b5219f73fd8ec4733a6fe59b9995782c4788b2a33f09acc21c7b925e837c6a" - } - }, - { - "id": "percentile", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 131, - "tokenCount": 70, - "functionCount": 1, - "operatorCount": 11, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "5d181e4f610b1dd80004f022c7db0162c77fb8be96a7b250f4b9bbbc58287ec3" - } - }, - { - "id": "permutations", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 285, - "tokenCount": 124, - "functionCount": 6, - "operatorCount": 11, - "keywordCount": 4, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "81aa651d55dd837cf9e2f39185fd5b1594c180eb80a6dd4fbab884e393fb3b6b" - } - }, - { - "id": "pick", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 106, - "tokenCount": 52, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "6d0f02cf40092134297d3ffc37a91bacc72f320b17740aed41b53241c5f7eace" - } - }, - { - "id": "pickBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 139, - "tokenCount": 70, - "functionCount": 4, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "a40f7c3f340322bd9d951d6ceb90984c279854a728417857c4c0fbb0098c96b3" - } - }, - { - "id": "pipeAsyncFunctions", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 100, - "tokenCount": 40, - "functionCount": 3, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "23257e36931b9d7dea6102e9cc92c4735be4dd5725d8bfa55200b84aeb08c134" - } - }, - { - "id": "pipeFunctions", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 83, - "tokenCount": 41, - "functionCount": 3, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "ab0f2bb919fa16a54af9bbef603aafb02415db196df198f50d4f2b02b627600f" - } - }, - { - "id": "pluralize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 293, - "tokenCount": 109, - "functionCount": 4, - "operatorCount": 12, - "keywordCount": 6, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "9270afe4dfddee1974a2535ea2625e6130c41cbb890784ca837dd34df4efd030" - } - }, - { - "id": "powerset", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 88, - "tokenCount": 47, - "functionCount": 4, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "17fa313ab2e105ddcf0ca9b557534a5f84ce79187f33ae1aadb7ce4bf2f1e606" - } - }, - { - "id": "prefix", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 365, - "tokenCount": 121, - "functionCount": 4, - "operatorCount": 16, - "keywordCount": 7, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "a529eb02a24025131ea7efa345a07d66186a8bddc0b94e298031631144a651e8" - } - }, - { - "id": "prettyBytes", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 470, - "tokenCount": 218, - "functionCount": 6, - "operatorCount": 27, - "keywordCount": 7, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "5f269ecc2da6d263be94fb94725167f0a2002e1eeb3fd2123ffc9403a2ef2933" - } - }, - { - "id": "primes", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 305, - "tokenCount": 127, - "functionCount": 6, - "operatorCount": 18, - "keywordCount": 5, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "c330b6020332343dab6980f9a42a85f7871e60da28ddb23b26dd7a60e143519a" - } - }, - { - "id": "promisify", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 152, - "tokenCount": 61, - "functionCount": 3, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "d269b5a8124cd646189075c2679331bbadbb3cd535a1e3135d12f7de46836dda" - } - }, - { - "id": "pull", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 207, - "tokenCount": 89, - "functionCount": 5, - "operatorCount": 10, - "keywordCount": 3, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "3169f10481f6c589961d19d4c23ba0fc25f104a2cbe299bc9a94e5ab6fd2b384" - } - }, - { - "id": "pullAtIndex", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 262, - "tokenCount": 108, - "functionCount": 7, - "operatorCount": 10, - "keywordCount": 4, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "e2aa1ead7e75caf768128d168ec9ebc1972c2f13fd89d28ea74ff3f4c6db31f9" - } - }, - { - "id": "pullAtValue", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 282, - "tokenCount": 109, - "functionCount": 7, - "operatorCount": 11, - "keywordCount": 3, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "c6826dfdd96e9325603138fa82cf71bb80766a058a163eccb009827d1ef51cb8" - } - }, - { - "id": "pullBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 382, - "tokenCount": 159, - "functionCount": 9, - "operatorCount": 19, - "keywordCount": 6, - "distinctFunctionCount": 8 - }, - "meta": { - "hash": "b47f00777e924d7f7afa8c879bdf1e84ff74f8b67aca91ade9b86444b658a336" - } - }, - { - "id": "radsToDegrees", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 53, - "tokenCount": 20, - "functionCount": 0, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "b749df623cb50779135ffb38d968cc58d9a8d5d1eadeacfa1d9eec43641c8e9e" - } - }, - { - "id": "randomHexColorCode", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 127, - "tokenCount": 57, - "functionCount": 3, - "operatorCount": 6, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "038ef05a24294c7bb16d04d465628066418099465e99c020a21d073372ebe0cc" - } - }, - { - "id": "randomIntArrayInRange", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 136, - "tokenCount": 59, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "f5c5c857e9d57ef7c22734163098e058d050ad0a9e3f28c57b307695ee982514" - } - }, - { - "id": "randomIntegerInRange", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 93, - "tokenCount": 38, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "791ff20ffbb7736f586cafa1106f6e77e8e89d497bc8a479c0a0cd708fb907ce" - } - }, - { - "id": "randomNumberInRange", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 76, - "tokenCount": 30, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "0ebc2c972fac7d4a8438188025158e0f75456b3787ecf2faae9d3db8d12ee677" - } - }, - { - "id": "readFileLines", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 132, - "tokenCount": 36, - "functionCount": 4, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "8463ee2c8b3e9165b105ee90b59e143a4f1c8b60f8080770d94ec0bbcb455bb6" - } - }, - { - "id": "rearg", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 77, - "tokenCount": 37, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "ed859f031cdc8a778bcec23817f79dab36f7607424fedda33d8d997172404de1" - } - }, - { - "id": "recordAnimationFrames", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 408, - "tokenCount": 150, - "functionCount": 6, - "operatorCount": 14, - "keywordCount": 8, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "461445d77d76f9f3bc05c2bc534cfb551689a99b1b73995ba7f4066a38c60fc7" - } - }, - { - "id": "redirect", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 112, - "tokenCount": 39, - "functionCount": 1, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "dba349eee909dff1e13e6708ac067e1e7e776ff5862e79097aca630548846ed6" - } - }, - { - "id": "reducedFilter", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 161, - "tokenCount": 64, - "functionCount": 3, - "operatorCount": 5, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "1ff03e381cda89ab13128f4df776de43967f09470520ad8e850cea8d7284dafc" - } - }, - { - "id": "reduceSuccessive", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 137, - "tokenCount": 66, - "functionCount": 4, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "1953f4b4dd3e22e6c17c40dd0f34269662b10bd8610f19b0bc5b428d810c42a6" - } - }, - { - "id": "reduceWhich", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 115, - "tokenCount": 56, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "1f27b4d91e5f0141d4c2c712ac04d7633f759426e2703eba5627782e563b300d" - } - }, - { - "id": "reject", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 74, - "tokenCount": 32, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "34e33d53f3671741d428581c1915599dca98524ee5dee0d45567e8b817ca28f4" - } - }, - { - "id": "remove", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 192, - "tokenCount": 76, - "functionCount": 6, - "operatorCount": 4, - "keywordCount": 2, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "baf94ec265ffb8bd14950cb76022a483f6d6a0a1f840fea7774ac40db1fb237e" - } - }, - { - "id": "removeNonASCII", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 63, - "tokenCount": 17, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "00483703389f0ba2b0ed4bdb8ef9f68e4de1a19b209655d85e4fcef0a16a660c" - } - }, - { - "id": "renameKeys", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 163, - "tokenCount": 67, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "082d9c8f508ca5870d652e905bf9556d2ffa6681f5342edd807a596393ed6a3a" - } - }, - { - "id": "reverseString", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 57, - "tokenCount": 22, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "7f3ec1d135d7ab73d9f83d89e03945302dc08746037d132f7ce753f923c7e242" - } - }, - { - "id": "RGBToHex", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 87, - "tokenCount": 50, - "functionCount": 2, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "92e4282492b80dbbd7efa34ae308bcda2c8c6865615e64049bf34dd8eb3f4810" - } - }, - { - "id": "round", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 92, - "tokenCount": 31, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "6170ee4eec91a2bf73961a9cc15ce90c48fbf15caf11363c12b3d6478efa48ea" - } - }, - { - "id": "runAsync", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 384, - "tokenCount": 121, - "functionCount": 5, - "operatorCount": 8, - "keywordCount": 6, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "bc05700c2010133ef91894f88b2cfa3bb71fce55d1a54626e262b522d64821dc" - } - }, - { - "id": "runPromisesInSeries", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 90, - "tokenCount": 32, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "93cd98db49ec69efe8565f94e1305b4ff7724eaccd9fa58a88ac6474c4f2e74e" - } - }, - { - "id": "sample", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 66, - "tokenCount": 26, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "675b72d4bac05f71773ba4d1c1e95e085fed9f7020e2e8edd0e418fb06501d96" - } - }, - { - "id": "sampleSize", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 198, - "tokenCount": 99, - "functionCount": 3, - "operatorCount": 9, - "keywordCount": 5, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "80c6cab3caeedd2dd971a1a5999999c1f181c643d0aa68c3202aa55ad9a574fb" - } - }, - { - "id": "scrollToTop", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 206, - "tokenCount": 65, - "functionCount": 2, - "operatorCount": 7, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "9d097840156322f4316042fe727f6887b9cef948a92ffdbda4c92e0161f3389d" - } - }, - { - "id": "sdbm", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 206, - "tokenCount": 75, - "functionCount": 3, - "operatorCount": 10, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "acbcb526b3937b1d17e6736f361d8ed444311882f47b0895f3e966695bdde67a" - } - }, - { - "id": "serializeCookie", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 96, - "tokenCount": 16, - "functionCount": 0, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "a69e2913ccc5c7ca2100de571087a44c14b7ca475154740bace342852357b379" - } - }, - { - "id": "setStyle", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 67, - "tokenCount": 28, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "12eb5e821413b38e0e5d19ed1c12b7dcdf47071d1e795e9e72ffb71e693e922b" - } - }, - { - "id": "shallowClone", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 51, - "tokenCount": 17, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "a5a49641c0de1a0a80f192c5be195c448ab0fe0856bba4e1f246fe70af7b5431" - } - }, - { - "id": "show", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 69, - "tokenCount": 35, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "c2a9e0ec75d7c2268bf40bd02f7542d294fc2b273ac156e49968f6e77e6b3491" - } - }, - { - "id": "shuffle", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 176, - "tokenCount": 87, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 5, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "df6c93b6e25c87f12c6ee57a8c4d1b877119bdc422588b4cb2db230b91be3ca2" - } - }, - { - "id": "similarity", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 72, - "tokenCount": 27, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "e1b495505ee844027b53e2537560373d9c341bccf6743beb3129e82fe7408131" - } - }, - { - "id": "size", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 228, - "tokenCount": 69, - "functionCount": 2, - "operatorCount": 10, - "keywordCount": 4, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "ac93ebf2905bbaeec36266cb011753e11c3895f78771e332c6694e05c62a3535" - } - }, - { - "id": "sleep", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 68, - "tokenCount": 23, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "cf97f402b25ec7ffd2b670d4b541093b567334595439167c0c7a5534962ad2a1" - } - }, - { - "id": "smoothScroll", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 111, - "tokenCount": 25, - "functionCount": 2, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "160e603850eac9489b210f1a3de5486944e23c0f799eb06936c6524af117fd06" - } - }, - { - "id": "sortCharactersInString", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 91, - "tokenCount": 35, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "48dcaf1f31d3e112630071392fcb9a8736f3bf198ac28c0683887ba1955d05cd" - } - }, - { - "id": "sortedIndex", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 206, - "tokenCount": 77, - "functionCount": 1, - "operatorCount": 13, - "keywordCount": 4, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "63136a5f7c3ae51bea360baa0b2177f7c8cd5e83eabe48be531507e94ba6ac2a" - } - }, - { - "id": "sortedIndexBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 253, - "tokenCount": 106, - "functionCount": 6, - "operatorCount": 14, - "keywordCount": 5, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "36e338d577b307113b69192c9ee3a64a1fd50967270810dc5eb9f0710cfbbe29" - } - }, - { - "id": "sortedLastIndex", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 224, - "tokenCount": 85, - "functionCount": 2, - "operatorCount": 14, - "keywordCount": 4, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "3b00265cc1c52e964c97fa3b393ad3b4f9eb1c529839d77352582719a396d39c" - } - }, - { - "id": "sortedLastIndexBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 286, - "tokenCount": 112, - "functionCount": 6, - "operatorCount": 15, - "keywordCount": 5, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "66a8b09b9f50d22778c339a3e71242f802d98bd8ec56bdc2c56e9213c49f9f2b" - } - }, - { - "id": "splitLines", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 45, - "tokenCount": 14, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "fa5d75df025039e77d627019f675c6bb458d340716c44d9692298028750857be" - } - }, - { - "id": "spreadOver", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 51, - "tokenCount": 16, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "9a79940f01badd37efb5156b8e3d220c85601c99a6908b79fe9508d0cd4d8ff5" - } - }, - { - "id": "stableSort", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 183, - "tokenCount": 79, - "functionCount": 4, - "operatorCount": 7, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "517ae5281131d9360320c187499754b5e45a7251865cce556a7aa614671cd251" - } - }, - { - "id": "standardDeviation", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 301, - "tokenCount": 125, - "functionCount": 5, - "operatorCount": 15, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "610461bbbe050f9ce1bbfbf58f4553bb465b1fd6a14059d9fa266492bb451eda" - } - }, - { - "id": "stringPermutations", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 303, - "tokenCount": 120, - "functionCount": 7, - "operatorCount": 11, - "keywordCount": 4, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "46ef6d1d747d34b10276f4ac721c56b1fe9176d69da6437b942d3f2035a473b0" - } - }, - { - "id": "stripHTMLTags", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 57, - "tokenCount": 17, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "a46d835b66eead91516d7c00db7e80bd396a7d410ee8dddb1a79a0aad8666036" - } - }, - { - "id": "sum", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 68, - "tokenCount": 35, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "1f18c078a7be8d03ea320ae44b5216206c6fd59b0bd4606368c4752c38d4a09a" - } - }, - { - "id": "sumBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 120, - "tokenCount": 51, - "functionCount": 2, - "operatorCount": 7, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "0ce76ed4d6b2e6da5027e3ae193467472d70c74c1399fcc48c53632cc61e3a29" - } - }, - { - "id": "sumPower", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 159, - "tokenCount": 78, - "functionCount": 4, - "operatorCount": 11, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "7eb9a2618de13c069bfecdd0a575a8fc2371bc82c416128e119f8d6c262e154d" - } - }, - { - "id": "symmetricDifference", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 159, - "tokenCount": 80, - "functionCount": 4, - "operatorCount": 10, - "keywordCount": 5, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "476d7ee29bd0750a4c0f428c7e17a612ea50ee002eb865733f8d312b79a0c5a3" - } - }, - { - "id": "symmetricDifferenceBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 205, - "tokenCount": 110, - "functionCount": 10, - "operatorCount": 12, - "keywordCount": 5, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "f96bf0b07e98ad829a138e224fad50ceff771b4dd9beac6e10a553805fb33ead" - } - }, - { - "id": "symmetricDifferenceWith", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 177, - "tokenCount": 77, - "functionCount": 6, - "operatorCount": 12, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "7242f560cae759c6f157a3619ff7333f666bc3fbccf1d538aa2e3c39c5abc671" - } - }, - { - "id": "tail", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 58, - "tokenCount": 28, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "d51becdc0cd038245800933f698c5555bcef7660de1805231411a75883289f43" - } - }, - { - "id": "take", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 45, - "tokenCount": 25, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "6400f64dd09e23349b302091c0bf6e01f8fe052e5c3d4bacf005c2ccfbb5184b" - } - }, - { - "id": "takeRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 72, - "tokenCount": 31, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "7c1d00488af4859ff33f72472699f083036f936a84240cded84e3f18f2ff0916" - } - }, - { - "id": "takeRightWhile", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 172, - "tokenCount": 72, - "functionCount": 5, - "operatorCount": 3, - "keywordCount": 7, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "2abf3aa16fb21b9694ef54dbece79ab9c49e8e5292f6eac7d3815c1afd21e3b1" - } - }, - { - "id": "takeWhile", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 130, - "tokenCount": 61, - "functionCount": 3, - "operatorCount": 2, - "keywordCount": 7, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "9983a71a3b6930d02ef5508d3f0cce2107fc19ec4a16b10d68ef0ae634a932cc" - } - }, - { - "id": "throttle", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 507, - "tokenCount": 157, - "functionCount": 8, - "operatorCount": 13, - "keywordCount": 10, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "87909289c906a7a48b2d2b11eb976c501ed903080b7a2a1d473d852d8dbc53ad" - } - }, - { - "id": "times", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 117, - "tokenCount": 56, - "functionCount": 1, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "90ab922b56f62b3eafff4a31b2a1f1345d2126e712f02360cb8a6e8b31adee96" - } - }, - { - "id": "timeTaken", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 131, - "tokenCount": 39, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "48d1e866b152eacd9fa16d8bf5c3136d01072522a58ad005a13d9b1792a3c37f" - } - }, - { - "id": "toCamelCase", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 283, - "tokenCount": 87, - "functionCount": 10, - "operatorCount": 7, - "keywordCount": 3, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "870a6ab0b2c7a69e26af06ce5f1cb2bd1706ae678139d2c2c3f59ce277c0cea3" - } - }, - { - "id": "toCurrency", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 145, - "tokenCount": 41, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "85a601168285577950b9fd0f28fa0d0283261dda12a2cb0e1a0e1cc78a6e81ae" - } - }, - { - "id": "toDecimalMark", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 57, - "tokenCount": 14, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "37225304d6109741f6ccb03fc845b2dbe84e0e2142861dfc73f5d3b5d770bde7" - } - }, - { - "id": "toggleClass", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 70, - "tokenCount": 22, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "c1fec7508780ad0ceacbf58c049668201e9f88eee043234394e11666530cfb21" - } - }, - { - "id": "toHash", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 159, - "tokenCount": 62, - "functionCount": 1, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "c7a62b55b5a90661bf3f9c956f075906439a50151a3aee4023ad8fe878cae2e6" - } - }, - { - "id": "toKebabCase", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 169, - "tokenCount": 34, - "functionCount": 4, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "40bb52f6eb89e1b796af964316c93bee286e44952d8d2e410ac7f8124b6cd8ac" - } - }, - { - "id": "tomorrow", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 262, - "tokenCount": 63, - "functionCount": 2, - "operatorCount": 8, - "keywordCount": 5, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "55531d99aa0019593ea79a1bf0a3383857d88f6c7fdb33399a7812c0d184eb72" - } - }, - { - "id": "toOrdinalSuffix", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 355, - "tokenCount": 148, - "functionCount": 3, - "operatorCount": 15, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "9e162528df1b8dd803a71a770f3c5e1555ca5995005e26e416f5652024b3fd1e" - } - }, - { - "id": "toSafeInteger", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 117, - "tokenCount": 32, - "functionCount": 3, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "9f1ec1d236c7cd6787078f8eb21ac9076a2049b9e63b99bb67017be40a0f833b" - } - }, - { - "id": "toSnakeCase", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 169, - "tokenCount": 34, - "functionCount": 4, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "07be50b2d41b64458085b8f48a361023061fff8cc6db5813ce56cb3e5d22ccfa" - } - }, - { - "id": "transform", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 98, - "tokenCount": 49, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "8f844b53d1104ae0169235916fe2f1bcce82e4f2503b4009e842078e8611405c" - } - }, - { - "id": "triggerEvent", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 127, - "tokenCount": 36, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "0089f0db0ccfaae631ff2935a1eb7b5ff38d789255777a8f05188552a527520c" - } - }, - { - "id": "truncateString", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 110, - "tokenCount": 47, - "functionCount": 1, - "operatorCount": 8, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "656e754cd1a8ef1a738557d1453b8f6c65e5f0f67e829179c88f3d9b6d3c4ee7" - } - }, - { - "id": "truthCheckCollection", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 84, - "tokenCount": 25, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "680b063587a145c90b3072bc7e775ebe93b5527ad3f91bba5e5b575811895b9c" - } - }, - { - "id": "unary", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 35, - "tokenCount": 15, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "522df418a2b451115c7514afc7480a2f5a0f813dd320faf6e577c9eff71d379b" - } - }, - { - "id": "uncurry", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 216, - "tokenCount": 96, - "functionCount": 4, - "operatorCount": 10, - "keywordCount": 6, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "7f7774fd60e664bf1d12c9ae36f498cf22d303ef72f51f8b8e2e2d7630bc4c61" - } - }, - { - "id": "unescapeHTML", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 233, - "tokenCount": 60, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "15f1da1fe7a39443d4a3a09f7d43e3fb253f9b3dd9cea31d71599ce9a8609f8d" - } - }, - { - "id": "unflattenObject", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 428, - "tokenCount": 154, - "functionCount": 9, - "operatorCount": 14, - "keywordCount": 5, - "distinctFunctionCount": 9 - }, - "meta": { - "hash": "aee8b10b831e676337688628f9204cea2019a008c30005f0760432d86498fc3f" - } - }, - { - "id": "unfold", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 143, - "tokenCount": 66, - "functionCount": 2, - "operatorCount": 5, - "keywordCount": 5, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "ccc6b2e5db6224ca96a835f8242e6a5934b99b011b62b69e7e10f7cb494c5593" - } - }, - { - "id": "union", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 58, - "tokenCount": 32, - "functionCount": 0, - "operatorCount": 4, - "keywordCount": 3, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "89bdbb02f2dd1c5bc9d1272ff3f2d5249af763115b596e9f8bc801d0f2256ac3" - } - }, - { - "id": "unionBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 145, - "tokenCount": 81, - "functionCount": 5, - "operatorCount": 8, - "keywordCount": 6, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "e77db9a39dfcae80c2a0d79dee802a05de9811c28f35e732300ce5144c61be00" - } - }, - { - "id": "unionWith", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 119, - "tokenCount": 59, - "functionCount": 3, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "8fae842111490c84497f36491833532e4b03e838b79e08f01d1aa72d15c36d99" - } - }, - { - "id": "uniqueElements", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 48, - "tokenCount": 18, - "functionCount": 0, - "operatorCount": 3, - "keywordCount": 2, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "e45f1af52564b0b1d91ce8bce53fe98ce888f3c943e1c1828682893393540256" - } - }, - { - "id": "uniqueElementsBy", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 137, - "tokenCount": 65, - "functionCount": 4, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "8640aeb79ced5defcc89555176a88acd66bca74f4359dc41388b5687f2050015" - } - }, - { - "id": "uniqueElementsByRight", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 147, - "tokenCount": 65, - "functionCount": 4, - "operatorCount": 5, - "keywordCount": 3, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "853887ad00b7c39a719c5b7e16dd3464a85f08da43d9d1bd1e7b7ebeaa897c95" - } - }, - { - "id": "uniqueSymmetricDifference", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 131, - "tokenCount": 61, - "functionCount": 4, - "operatorCount": 9, - "keywordCount": 2, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "58712a3aee2c952a18d9f0d2f21d0002ac720d0d0f8fe082d02f891e3912bf1d" - } - }, - { - "id": "untildify", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 84, - "tokenCount": 17, - "functionCount": 1, - "operatorCount": 2, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "152bde711895999ed98d4ee19cf6564b1a70a2ea358060ebdd3c1f8fbcfbf5d8" - } - }, - { - "id": "unzip", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 190, - "tokenCount": 84, - "functionCount": 6, - "operatorCount": 7, - "keywordCount": 2, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "941c783ce75bd3bf53b13a5641d26f275c16dbbf87170ddea41d5b4570d4bf31" - } - }, - { - "id": "unzipWith", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 243, - "tokenCount": 103, - "functionCount": 8, - "operatorCount": 9, - "keywordCount": 2, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "90e4fd44654dd3cc7ad2a78fc0aa28bbb57d4215f5b984a4265c12a47dfe1f81" - } - }, - { - "id": "URLJoin", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 232, - "tokenCount": 73, - "functionCount": 7, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "c1f6ed028c9da75a21b93485f56d04cf2f10a512998ebeaa44f33377ab42139b" - } - }, - { - "id": "UUIDGeneratorBrowser", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 189, - "tokenCount": 88, - "functionCount": 3, - "operatorCount": 15, - "keywordCount": 2, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "f43ad3f7f82d15a02cacb2b93c6324c64b55de1c630398ae501ff9b65bd9cb35" - } - }, - { - "id": "UUIDGeneratorNode", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 200, - "tokenCount": 93, - "functionCount": 4, - "operatorCount": 16, - "keywordCount": 2, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "119c813d32e4aa4faed7a497cbf1806e98da0f7c9090656ae02297fe9224b6a1" - } - }, - { - "id": "validateNumber", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 83, - "tokenCount": 34, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 1, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "8fb993b0cf78fa83a170aca132bf5eb13430e2cef5ae06f85b9763f286bb792c" - } - }, - { - "id": "when", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 66, - "tokenCount": 33, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "4c3fb917581972b732dbf8a998c377df247721790afa904956420d0e75b3b40a" - } - }, - { - "id": "without", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 69, - "tokenCount": 31, - "functionCount": 2, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "0f0a7a5960cb9b6523950d582434f55f63bc3cf4802d60aaf22a29f563d00549" - } - }, - { - "id": "words", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 83, - "tokenCount": 26, - "functionCount": 2, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "e89bcf45e8a87a5e69462152727960e050cc3236f6e30cb26dc2a5bbb35cf32c" - } - }, - { - "id": "xProd", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 81, - "tokenCount": 48, - "functionCount": 3, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "1261dc9be854efaec6064c397b19fe09ec65f04002b63e057f25bf7afc33c398" - } - }, - { - "id": "yesNo", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 106, - "tokenCount": 44, - "functionCount": 2, - "operatorCount": 5, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "86e7f2674d08de8520abe029aa6be760449367102a6578bb8efd9703508c63a2" - } - }, - { - "id": "zip", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 230, - "tokenCount": 97, - "functionCount": 3, - "operatorCount": 8, - "keywordCount": 6, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "66cedb84131bd3704fc8dc3f9a8692d7a08a990ae749ff8cff688ced18239126" - } - }, - { - "id": "zipObject", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 114, - "tokenCount": 49, - "functionCount": 1, - "operatorCount": 4, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "3d01158c9146610c3ae1661b0681fb46db677426e7d614cb7b8f295c8defbdfd" - } - }, - { - "id": "zipWith", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 273, - "tokenCount": 121, - "functionCount": 6, - "operatorCount": 14, - "keywordCount": 5, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "c30a9938878dbc4f535c16d16c59e0a7c09643164332f7790345f95557b44303" - } - } - ], - "meta": { - "specification": "http://jsonapi.org/format/" - } -} \ No newline at end of file diff --git a/snippet_data/snippetArchiveAnalytics.json b/snippet_data/snippetArchiveAnalytics.json deleted file mode 100644 index d7f8678ab..000000000 --- a/snippet_data/snippetArchiveAnalytics.json +++ /dev/null @@ -1,292 +0,0 @@ -{ - "data": [ - { - "id": "binarySearch", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 297, - "tokenCount": 127, - "functionCount": 3, - "operatorCount": 14, - "keywordCount": 9, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "2e9aff504a7716c4b49b30702ee3b922c707fac70efc099422ae5ba5a7d0e009" - } - }, - { - "id": "cleanObj", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 280, - "tokenCount": 95, - "functionCount": 4, - "operatorCount": 6, - "keywordCount": 6, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "ec33abb9423c49520400becb5183d87b37bbf6eb60012673c8df5a0a672a6af0" - } - }, - { - "id": "collatz", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 55, - "tokenCount": 35, - "functionCount": 0, - "operatorCount": 8, - "keywordCount": 1, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "650c91d557244ee0e3f64a00d457d63b47271aa0b963728bfc37dc5c3c88c67e" - } - }, - { - "id": "countVowels", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 65, - "tokenCount": 24, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "333c7a72864d3249f1f409dee1f23214ec47701a54d561a69078e0092137fa4c" - } - }, - { - "id": "factors", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 580, - "tokenCount": 236, - "functionCount": 8, - "operatorCount": 30, - "keywordCount": 14, - "distinctFunctionCount": 6 - }, - "meta": { - "hash": "dcef8352bcfcbbd210467de2541b2d3b55c9c06b207c1253cf44ae8ea865559b" - } - }, - { - "id": "fibonacciCountUntilNum", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 123, - "tokenCount": 57, - "functionCount": 5, - "operatorCount": 8, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "d93d0af81aeca41981ed58548672652f9c5ca4b2a6bb887c2c7e0595112dd035" - } - }, - { - "id": "fibonacciUntilNum", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 256, - "tokenCount": 128, - "functionCount": 7, - "operatorCount": 15, - "keywordCount": 4, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "1c765ad82aedd1cc090d1c33498ce8426825ab5cb8a74882516ce07343f77f8d" - } - }, - { - "id": "howManyTimes", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 237, - "tokenCount": 90, - "functionCount": 1, - "operatorCount": 12, - "keywordCount": 8, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "41f76138f7e673020c6eecd592baea18016869d7d0161edd9d7669f3a991c398" - } - }, - { - "id": "httpDelete", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 242, - "tokenCount": 85, - "functionCount": 4, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 4 - }, - "meta": { - "hash": "0b543697856c3c91e3e0a58d3928d743dbe8a369e7263fbc9806aedf487ff723" - } - }, - { - "id": "httpPut", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 324, - "tokenCount": 97, - "functionCount": 5, - "operatorCount": 8, - "keywordCount": 3, - "distinctFunctionCount": 5 - }, - "meta": { - "hash": "59572ee267c7f0bc7c4e411ebde24834a2f5e8e928e2e50c16ac787034b1a53a" - } - }, - { - "id": "isArmstrongNumber", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 145, - "tokenCount": 58, - "functionCount": 3, - "operatorCount": 8, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "28a3c44cfc4ec7d34e00b2866b67bff9b3fb100f6f72c767b893159b869fd8f4" - } - }, - { - "id": "isSimilar", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 251, - "tokenCount": 78, - "functionCount": 3, - "operatorCount": 10, - "keywordCount": 1, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "570b1b21e29f3793d7c1f001958ec68a7c27b913d65e37cf5f078b1e6a839437" - } - }, - { - "id": "JSONToDate", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 158, - "tokenCount": 41, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 4, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "eb80d886a67c11c9395bcb414beb1e684c875b1318025609b7e12c44a58d99e9" - } - }, - { - "id": "levenshteinDistance", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 733, - "tokenCount": 3, - "functionCount": 0, - "operatorCount": 0, - "keywordCount": 0, - "distinctFunctionCount": 0 - }, - "meta": { - "hash": "3cc34a842404de0aea2752a6b1398b8a0825cb1a359ff36ab5275f7d15eff107" - } - }, - { - "id": "quickSort", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 231, - "tokenCount": 92, - "functionCount": 5, - "operatorCount": 15, - "keywordCount": 1, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "396d8fec22d42453b2556d4428fb35e7ef06b9844f7d6ad163923f292a96a6b5" - } - }, - { - "id": "README", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 158, - "tokenCount": 41, - "functionCount": 3, - "operatorCount": 3, - "keywordCount": 4, - "distinctFunctionCount": 3 - }, - "meta": { - "hash": "86af9032bb3fd1afc0b6e32aeca6a25c69549594804ff93f9eb0fe6e9e37236b" - } - }, - { - "id": "removeVowels", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 72, - "tokenCount": 23, - "functionCount": 1, - "operatorCount": 3, - "keywordCount": 1, - "distinctFunctionCount": 1 - }, - "meta": { - "hash": "5f3ccc861fd5a18aa561957aadb6494402c1b3bdc1ec38b768e524c600ac756b" - } - }, - { - "id": "solveRPN", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 816, - "tokenCount": 300, - "functionCount": 17, - "operatorCount": 23, - "keywordCount": 13, - "distinctFunctionCount": 12 - }, - "meta": { - "hash": "6b02ad139d3edcc41e767b6768cc53439c5316f5c14e00a4e2a56b2da102d1e9" - } - }, - { - "id": "speechSynthesis", - "type": "snippetAnalysis", - "attributes": { - "codeLength": 182, - "tokenCount": 48, - "functionCount": 2, - "operatorCount": 4, - "keywordCount": 3, - "distinctFunctionCount": 2 - }, - "meta": { - "hash": "21409f3b5ea7aaa9ad0041508b14c64dcaeff234121aca148e14fe26cf8b5f93" - } - } - ], - "meta": { - "specification": "http://jsonapi.org/format/" - } -} \ No newline at end of file diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json new file mode 100644 index 000000000..eb4bbef82 --- /dev/null +++ b/snippet_data/snippetList.json @@ -0,0 +1,5259 @@ +{ + "data": [ + { + "id": "all", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "d9aec5efedaa39586f2b1210394b345cb1abbb9348fad952e785badbb2d598ac" + } + }, + { + "id": "allEqual", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "76704202f5987a78625746ef4f2ca5650a8d87b10252b06b60c5d39cd26a7335" + } + }, + { + "id": "any", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "b34cb378a31ae73335f941448fe873edf9c06e10d5a1e28895275a29dd471c39" + } + }, + { + "id": "approximatelyEqual", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2b68e79d3ebb806379c3b84ae70152e033297d6e4fd4bc779b10be81ca2fc0cf" + } + }, + { + "id": "arrayToCSV", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "string", + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0ba7229cc896c4efeb982ea313166afa79aee16cbf337a643243a4f8c3a4bcd9" + } + }, + { + "id": "arrayToHtmlList", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "027ae8128f3c52af07224b87baf362f0ad92e5a9847ebf426027ac3f06ab7deb" + } + }, + { + "id": "ary", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3822911df3a06d2a58df4f5f8733b72bb655a6b9c7c99a9ab85bf418abcf7de7" + } + }, + { + "id": "atob", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "string", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2b16386c3d31f0d68f1bd76034202f8927d0a126312cb20b310fc141c6e654f5" + } + }, + { + "id": "attempt", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "27131b8fc8afb7f3140b85981747c0dd6106b5a8bb54ccd43d542e4245f934de" + } + }, + { + "id": "average", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "5547ee57c7a19624435c01594130bfe6c1613b637fa0810aca6856e5bccda95a" + } + }, + { + "id": "averageBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3896ad3ab0120ba12943877f33fdd1e48d7887f7c69bea7310517aac56020502" + } + }, + { + "id": "bifurcate", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b869b8c45f39e8f6cceb8478f2e4ae2248a46c6cc2c39d112868f8e235a6d936" + } + }, + { + "id": "bifurcateBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b0a461c6da6f561d7a9fcb373adb622692480cc36650145d6d8f94e126f0f849" + } + }, + { + "id": "bind", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d0bc023d8258b2cc336d66f27ec01986488ef2d8d2fd030491e47dae63900a6f" + } + }, + { + "id": "bindAll", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "1c10caabd13b779a41850342f76585848c645c36950d3f068f373a53f3ee1f6f" + } + }, + { + "id": "bindKey", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "12681c9545cf304d7b507938150f48a33d321e2b0338d965aadd3bf0165a5ae3" + } + }, + { + "id": "binomialCoefficient", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "66414040b3a4dfca8312e0c0d4b276ded342b18abd9a14a0a90cec2983bc0b7c" + } + }, + { + "id": "bottomVisible", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d4e645f834e7eb763b85bc99289c983f9e1d4314257701c94cea84ac8806ca3d" + } + }, + { + "id": "btoa", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "string", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "24ca94284f2c3d83ed2ae5ea5c185b6dd84417ad7e0effb047c32847825d6550" + } + }, + { + "id": "byteSize", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "8608c5658af598504bc2e20d329c674cd989540907598e372c75241179cff029" + } + }, + { + "id": "call", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "302f71c01eddd94edd597dc50e9f76115c6117d9a06df54bf69813ef2728ba12" + } + }, + { + "id": "capitalize", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c1e2fa38cb32a0c6aeb5fdd61116095a2f131e0471d904cd0272892356a0b968" + } + }, + { + "id": "capitalizeEveryWord", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "060d09969ecbc08a609e546c9dd30c984d840f44fd55d2cc6d1d31263e4c8d56" + } + }, + { + "id": "castArray", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "array", + "type", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "6fef4b839b04d3df22e1b9b34215f5d3a93edab0a7eb0b88dca291a427df04a0" + } + }, + { + "id": "chainAsync", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8b6d33fba612cac3b4e97a42fc7bfaa5b52fc96a47d6e580528f6aeae789606d" + } + }, + { + "id": "chunk", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8bcbcf5500940d591c2d1497a04964ec04b35730833742353cfbd27a992fecd0" + } + }, + { + "id": "clampNumber", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "a3eca18648e657fc0277f4b00d2a51cf7c4bf03eb695fc6ce9e4cad64e569490" + } + }, + { + "id": "cloneRegExp", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "ee8e6e19269907273e58f0820bdbfc57022b6673453283058aedbbfc76586658" + } + }, + { + "id": "coalesce", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "29199c10609ed7d5e3e5491d7d81622de9521c2b76d2d220141f3abb97d9ee07" + } + }, + { + "id": "coalesceFactory", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "69da8c5511c6c85eec38605ad9560b021d6fc3794cb47ec963987b783f48ad2f" + } + }, + { + "id": "collectInto", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "6b57cac68ad177d8fbb30e9c586f8f9c088acf755c6c956b5387441ea3850fce" + } + }, + { + "id": "colorize", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "utility", + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "4f42f00e7d675d21829a5fcd2ab2e3fa2058d1c1b1d6850ff28f2a424364593e" + } + }, + { + "id": "compact", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "8215bb36c367643c3e3f9db8af00d5d5067c95704f528864182a43d393faaef0" + } + }, + { + "id": "compose", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d7aa6d5f12cb3d1c2dce4b16f4f96196aa26706583c994282509703735a2ce64" + } + }, + { + "id": "composeRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "08e9a82139b17ce4fcbd5c55e38fcaec116c8f81fc321339c19e0d9946941a57" + } + }, + { + "id": "converge", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "75104822649aeb0f500d7092e0a8c68d9eca2ce9f539888a98e3ac14b7d21f17" + } + }, + { + "id": "copyToClipboard", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "string", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "161045368b3aa7f1e47b38df0e0d3703190480d974787880559ea99c272f8cdc" + } + }, + { + "id": "countBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "189bcc5b973aac951739b98e717736a57f7f716ffacfa19dc27e46df7b8766db" + } + }, + { + "id": "counter", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "654b93b073e0ea2d1688a50e45ace9c2566e596a6d17f3134461fcd30e6f7b5d" + } + }, + { + "id": "countOccurrences", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9a16e15ae31b0f92a48693d0cc2e805dae6df196d7b8157945b43474131979c3" + } + }, + { + "id": "createElement", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "c700b4d0695f1916842fa8b2b68e63a3735b9b87681e54addb23e92c6404a5f5" + } + }, + { + "id": "createEventHub", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "event", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "367f1dfe6e5b3cdc1f65075caf615f8c60d720a1115badd5f6b1f05cec049af7" + } + }, + { + "id": "CSVToArray", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "array", + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "adb3e42ef8c3a6ad09cd8255728e537d0ae643c59e285da001488695ab156649" + } + }, + { + "id": "CSVToJSON", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "array", + "object", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "b381c586300a954da065c82a0985ce2bb60fed1aeeff4b17ba908e96e412801b" + } + }, + { + "id": "currentURL", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "url", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "ff342b61fa948cb342e55016b4ec70069bef00a16adaf8744e00fbbd2568d3d7" + } + }, + { + "id": "curry", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "recursion", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "be5dd6c29e66bfdf52e21f5e4ec0bc2bf8e0ed4e7d797d3dbd03d283cfb99e8c" + } + }, + { + "id": "dayOfYear", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "4dcea3347738e917c8671bc34be4ef0094f8cc03a2992155a9abc511327def57" + } + }, + { + "id": "debounce", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "21be6f73f47044757d9a18e0a7028f05849a638c49b7f622c089df2c94cd61ac" + } + }, + { + "id": "decapitalize", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "96a0f2ff883d467f0ac28bb599b1ff8632d09dc19a80d732dc0ac4ce338812d0" + } + }, + { + "id": "deepClone", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "recursion", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "869333b93315ee8c3420df1a6c9b8f7ad21581500ceb269d3b4504ebb62eb39b" + } + }, + { + "id": "deepFlatten", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "recursion", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9bf5527a1fb3a8da9c06ec158986c3c6ceb311fecc2ff42938820536991b4a67" + } + }, + { + "id": "deepFreeze", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "recursion", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8058bb919f4b1013bc71001df5309e448babab469cbc082480155546e2fc802b" + } + }, + { + "id": "defaults", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "5af57e0dc189d20c9433c4ebb9893d6e40f3c98676e5062c802f7b22549f673b" + } + }, + { + "id": "defer", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "1dc86e2aa970881077f10f5947fc9c6d935fc1a36618a05e6012014304f424ef" + } + }, + { + "id": "degreesToRads", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "4ec588f479731db926b74e3939e070e93a363713ddd8122da45d36f7c3962f87" + } + }, + { + "id": "delay", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "bcfc86542ccf08bcd721e099f4db41618737a3d619052045a2ec7556e62d1322" + } + }, + { + "id": "detectDeviceType", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3a62b59d3b79180758a6d0e6838edd020476d5b68f74e8fa7b54bcc1670dbc19" + } + }, + { + "id": "difference", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "8f95f4680452feb2467760a15333f67622efd772bbfa629c4b449d2e7f531a96" + } + }, + { + "id": "differenceBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "25806197fefa0dc577f87d8011bbe5839a8af6ab82e3da16136d5896f5c7abab" + } + }, + { + "id": "differenceWith", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "2df9a6f4e37f87aa387577de54db4b203025bc9329447065c9f7b0b792b1bc67" + } + }, + { + "id": "dig", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "recursion", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "91e05fa632509c91fad4770339e0f8a4ffc5d0c3a90694f2fd59af2321cac9fb" + } + }, + { + "id": "digitize", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "145863ea8feb1ab916e06291ed7b21a70e7cde22cf8d12fd10195648818c5f8d" + } + }, + { + "id": "distance", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "e10120caae62c4170bd49229b5ad6c4300b15096dc2c239482ed5d8729e48c1b" + } + }, + { + "id": "drop", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "114bde42125816cd1a457b4e4f1288b33d0fc1abaafa18c72f5ddc6b69020681" + } + }, + { + "id": "dropRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "140097c693edb184424813852a93653c78fcd7a1f3b5698902a32747d93e1d97" + } + }, + { + "id": "dropRightWhile", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "953b02c7436b6e08d29450e2115a8d64dcb91c2ccbde7c27ef6ee4c29a83bb93" + } + }, + { + "id": "dropWhile", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3dae6b05d092ad5c51eff8070a8d5acd3005e5e42ec3b0e0a3943f8aefc7a073" + } + }, + { + "id": "elementContains", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3b9f6f8b8be5ddcd3a23143d9eb2a5df147c0d6945ee79ad8b79f84a1551bc36" + } + }, + { + "id": "elementIsVisibleInViewport", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "5e3460fdb78dad66100007a6d9da872c1dfc10e60d0a422106c55db7d0f48786" + } + }, + { + "id": "elo", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "1242d0263c8ed3f8722006358673fe594c21b258def4e20c148b400b8fc3e92a" + } + }, + { + "id": "equals", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "type", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "6dd8dccb7040e1a892f9616fe28133ea82967a83dba3aa20fdf4a2f9dd00e66c" + } + }, + { + "id": "escapeHTML", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "browser", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "931bf80a58491834a07b59e070e0dfa14db7faf4e7a22bb39a8df1d91878f1ba" + } + }, + { + "id": "escapeRegExp", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "6212e5c102fb98831ae0e8f8ca55bf977ca05a56d557544006c6820949464cb8" + } + }, + { + "id": "everyNth", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "f5b381d043f197842877fe5b5f646a58ebbfb52d9e4a74b580a912a7d89fa2a8" + } + }, + { + "id": "extendHex", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0d671b6661781dfdea58e916be21c17dd5212060744fefefa1684a663f323716" + } + }, + { + "id": "factorial", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "recursion", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "683bb22450b09dc717ef83b36ffcc6729a48891fcc47bab587b389f232597563" + } + }, + { + "id": "fibonacci", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "206443c4bd7ea01153efc17b3e7bbca1256b3ca43b8291f75c425207d0e96dbd" + } + }, + { + "id": "filterNonUnique", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "9e439e957249cf549d905b67b570d9ecbc040b4905b612b6bfc871956e894084" + } + }, + { + "id": "filterNonUniqueBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "da240b0489cb7760840cc2f2e2b4d5d46dffc5a984b1822fe327b1d9df0806c7" + } + }, + { + "id": "findKey", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a4e2f98a1e3d3b1c4828350905359916e49fe85f1bdc4877358231c8d738af62" + } + }, + { + "id": "findLast", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "f05345f5a94f2c3a81c0c522b3c8b3237e0af27fdd9c128fdbb1b8a48688afc4" + } + }, + { + "id": "findLastIndex", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8a610d6e82ab7c37817d43c2117ebad9b2206afde6899b7dc72f7ac14302f9fb" + } + }, + { + "id": "findLastKey", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a5d563bc1ab4b93d549a7e1ff22af3098579f88bfea00bc7e31e7f634294f547" + } + }, + { + "id": "flatten", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "422aa422a3cd6925918cb816765a8345a7b0b7a5f877d58e3ef59ec6f9b6e7e8" + } + }, + { + "id": "flattenObject", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "recursion", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c2cda36e7c2d595a1cd4ee324e58e02df5440e7dcf9bbf6cbe634f4be1cefc25" + } + }, + { + "id": "flip", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "57a42eb12cc7d4535c25d9945db9abb115ca9520e298fbaed64549ee22ac76aa" + } + }, + { + "id": "forEachRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "efaa9eb73bc8c25ba94f45101e0b650a35d9ffd5b8fbeb220bf918da4c0590b4" + } + }, + { + "id": "formatDuration", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "math", + "string", + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "68ab69ced2c344d8f029c9de961f1ca5bb6e04433ecc85b24ae567c25beb2ced" + } + }, + { + "id": "forOwn", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b0d4959736817ca83264900b606e7ecca1e37b104765f6b71d4d289927e9178e" + } + }, + { + "id": "forOwnRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "313498edf714166fe504bb214dcda25737ba53b1172fef939de4dcf3404fc257" + } + }, + { + "id": "fromCamelCase", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8de124b684994279d28abd5ac146ccaf7d71b6c0dd774fb8f5b071622177b366" + } + }, + { + "id": "functionName", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "f349bb299f8ed9c30fc4a0782f78488b08efd98d2d81dc93591e20c01c4eae5b" + } + }, + { + "id": "functions", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "30fbe8a31c99617e3bcae84b190c669f4064fdbe2a314bdabaa7aeb22b677b7e" + } + }, + { + "id": "gcd", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "recursion", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "a089cfa14c8316d2604567eeabb660394eaa447b3b55f8877d2bffd0e74ba8e8" + } + }, + { + "id": "geometricProgression", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "1bc034bd0cfdadfaa7b8f17d28436fd735be7986d10d5e4d066c15cb2abfb350" + } + }, + { + "id": "get", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "6e341280f2a1e617184bc4cd201ea8a2e8e3f24610a9d51ccb956ed74da05365" + } + }, + { + "id": "getColonTimeFromDate", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a9be5e8fcca0abd22cac1e24ce7ede5798536a7fec685ba935ba4f6aeeec393f" + } + }, + { + "id": "getDaysDiffBetweenDates", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b236101b97d43f507c9d8e5bc549d3466ca6ab8dd77a0cdfe79ac54f3da8a501" + } + }, + { + "id": "getImages", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "30c22e10f8b425ca56ab6147ad6a6ca22493bd5dc74763b47d4537794e5faa8b" + } + }, + { + "id": "getMeridiemSuffixOfInteger", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "bddc2aa28057295a443f3c712d0afe790967269ace01a593f8ebd3161959746a" + } + }, + { + "id": "getScrollPosition", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8317d2ba88c3313df22b4a3c7b8c584a9695a3e47929769498c998a191e33a65" + } + }, + { + "id": "getStyle", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "css", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "7ef8abe35c1f73ae254dc94809c02e5592c6cdae1d228bf5b0049024aded7ae8" + } + }, + { + "id": "getType", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "70f912b7b6050a1e45db91e52108f955be199e67bc418e44350ca75dbc95fa2b" + } + }, + { + "id": "getURLParameters", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "browser", + "string", + "url", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "ad8f7359e02f2a451ace63878352b5277f4b465b81d42517d7a7da860fe06a0d" + } + }, + { + "id": "groupBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "6fa953c682555ba0ba21d95ea94200bcdbf0fd750e9166ba4e420f6743f6f962" + } + }, + { + "id": "hammingDistance", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "8b6b537dee230112369c56921909edfa7057563ff4b303126d39d20a0daf42ca" + } + }, + { + "id": "hasClass", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "css", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "0154a5cfde5731e51d52d1247c2c1a099f6505b00bce807bded0b6d310007a27" + } + }, + { + "id": "hasFlags", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "42c520b4003b990fcb4874a5d74d3b8fc0560535b75eb536067ac13be2396fe6" + } + }, + { + "id": "hashBrowser", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "utility", + "advanced", + "promise", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "5023bba7071042ed934cffc9c7c10879e1d83159d667d0f7cbd02a7b6563a59c" + } + }, + { + "id": "hashNode", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "utility", + "promise", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "e50f540cf0fa0cfab53b5fd6d6db5c75458c9c532635530adcfb6296929e5815" + } + }, + { + "id": "head", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "e4007add6bbc4141026107f3aad18346a563997cb66533ca36cc18692c495e4b" + } + }, + { + "id": "hexToRGB", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "string", + "math", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "7d73c1510e8f03bcb0d19577515dc558cecdae697f9f67227dff9d8d94db2576" + } + }, + { + "id": "hide", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "css", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "078f1ffeaa850cbde3383fe6c799950f24c68d73f29e324559616b0ced212f2b" + } + }, + { + "id": "httpGet", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "url", + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "77e6b9f23db17fd9ca9ed468d852e3a57a860c2a4f17374d37d836347a47eba8" + } + }, + { + "id": "httpPost", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "url", + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b2bee353fc87d478c7f2d25571af44cae021975b0b250a25a9bfbfa21fb09c2a" + } + }, + { + "id": "httpsRedirect", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "url", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "4c9bcb42d2e5062fa701676082215ecada42907647b458fb2728f162f50239b9" + } + }, + { + "id": "hz", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "5ff39c77c58c0923fa62cc280d327b3da92452ac93d67addce6c4a755ac391fb" + } + }, + { + "id": "indentString", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "12795f514a9a20c966b45c1e08b428a89decf02ab8ab25e95351c842e14af38d" + } + }, + { + "id": "indexOfAll", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "1d722ccb2ba2ba2343e7e5a4267267cb428c8023f3bc715efbd12a7b345dc6d8" + } + }, + { + "id": "initial", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "d1fbb8b0dbecd03f84283818ee89afea941aadb1825bdaf7310b1de6b73b7c3a" + } + }, + { + "id": "initialize2DArray", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "821e5747c844336d0d5257bea695e4596be44f4dab46e3911c615c0f8fe300fa" + } + }, + { + "id": "initializeArrayWithRange", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "7cfa14e36abfba9adcf9a94db02dcd299e016e530ebe97688bf3fec21a0472db" + } + }, + { + "id": "initializeArrayWithRangeRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "e0323c660334e54d299cf6309c6e9b9779c83a9f8a57276b6ebd7fdb82bd111f" + } + }, + { + "id": "initializeArrayWithValues", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "5310f9e3df5f17fdaa576d3d925ebff1156b07a13b247982523026717938c367" + } + }, + { + "id": "initializeNDArray", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "recursion", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "e22aafd7601076113089156e8c5bef5b58a0b871c75a62fd7645557b1cb8b2bf" + } + }, + { + "id": "inRange", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "c4fe47e6f86e2885cd13013fd76c9655de903a6d6381e0a0310259fe509c348f" + } + }, + { + "id": "insertAfter", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "afae345b486b46947328d2b9861a1fc978d6f31e0f9ee239c147497fd0af2fbd" + } + }, + { + "id": "insertBefore", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "c84982df57741120f043b95900b6ced00df759ba32006dfe4ba6cbecd8951210" + } + }, + { + "id": "intersection", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "6357fe80459843ea6063ea1d45708d2a830027ca15404f83f7207076453acff4" + } + }, + { + "id": "intersectionBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "e1ad1e48023b486e60f19dbbe020cb1e801ff5ed4912afc9823b2bd63bf5871a" + } + }, + { + "id": "intersectionWith", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3040d5fbc00eda16be6cef9a34bd14c32bca039a9361414975b704a778e7374f" + } + }, + { + "id": "invertKeyValues", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a964d973bc0b0a51e79d6cc8917c74662df6a7fe784b394847e1f73c7d0b49a7" + } + }, + { + "id": "is", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "array", + "regexp", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "1a8bf513deeb8d16670015c9c47066e542cfadcb49ee1f792b7222525349877a" + } + }, + { + "id": "isAbsoluteURL", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "utility", + "browser", + "url", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a1c0b0ccf3608b21f23e16d72172d50d7b8eddd6575417553b24ad12fdce0984" + } + }, + { + "id": "isAfterDate", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "3ab6b5f71b08d335b401edcfa5cd9a4a50375f7002c20c44e4aa1b092c9409ba" + } + }, + { + "id": "isAnagram", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3d0d439e0439f0ee897643fd2d55103d13ceb6b29bbfbf25ef96fb5ec4aff175" + } + }, + { + "id": "isArrayLike", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d94fb1197edca9a124d462a6ff350eac157a1cef4b074e6577300a98c22bd974" + } + }, + { + "id": "isBeforeDate", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2f685997689173e988f2a037920a51e87b8beb9968d7847c1138bb5443b8e39b" + } + }, + { + "id": "isBoolean", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "84a180e77eb415f95590f098a79dfa3a4c0bb26f7ab61ddf50cee6199988b852" + } + }, + { + "id": "isBrowser", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a350af7cb869b0ad84481e0fb61ba40e4e0f15e713fe9aa8f134ca2a34aa8288" + } + }, + { + "id": "isBrowserTabFocused", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2e85f8e453867fa4fe115a815b7f8ae85450fcbcb265898ed3104fe128ad7917" + } + }, + { + "id": "isDivisible", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "a6da1a53283096a1ff6d58964c4cca939d2c52c69bd39a01b32fd82da474768c" + } + }, + { + "id": "isDuplexStream", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "type", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "51f4d59108d951823e041169354fb120e0e58f20aa2dce19b44957d349beb252" + } + }, + { + "id": "isEmpty", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "array", + "object", + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "243117a13cd98f68b115e68906166c518101a5a59eb18b39b677a355853c6c0e" + } + }, + { + "id": "isEven", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "41fba276ec7dca06006425cc1b8905ad9f9b7918e04ccbd211bdfa1bc4645f62" + } + }, + { + "id": "isFunction", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "608f4b36d061a98a0f8203ba3cecb48f87ccc6f7720fd5449e34b576f98aaecf" + } + }, + { + "id": "isLowerCase", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "db0ceaf0fe1e662750aabd1bd54032b17c471efc2511a120354cccc1f7d0808d" + } + }, + { + "id": "isNil", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "6098b98799252bd8297351aaae52530f6d70454e9bc00491d47e401a28e92e11" + } + }, + { + "id": "isNull", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "3286793e1526d264a82f61f3ea3ec24be21f735e6df3a4349a5d124de52f8096" + } + }, + { + "id": "isNumber", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2cab1f1a58e46b779843d02b11a4198c749071fc07d0a9487b99936a19bf17e4" + } + }, + { + "id": "isObject", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "object", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "6bbd64bdaada44df70084acbe3aebe1057ae3cb63d3c397272a88069c27023f6" + } + }, + { + "id": "isObjectLike", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "object", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "c54f1c3d860b85ead765941dc29927c814df798be381d4b7af15145aa5248866" + } + }, + { + "id": "isPlainObject", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "145da6b8fa6d399c9d53c1a49627a9aa12588ba08f22e8c0237663cdd29a3540" + } + }, + { + "id": "isPrime", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8f2dc25121cc870f19c7e4614d1e2bfb80f69abb9f940e34506dd282d8b8b64f" + } + }, + { + "id": "isPrimitive", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "function", + "array", + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "567d6c3bb1c007c196d42d13e909499471f2da46f8d0ce88462d1a31d8157c26" + } + }, + { + "id": "isPromiseLike", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "function", + "promise", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "42a7fea8a7f6348aad1a916f980af5c14d29da68748242340ff7298305117657" + } + }, + { + "id": "isReadableStream", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "type", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8140e663feed7bf07d9f3167ded4948b6789aa8ee8e9ed3ceb35cb4f5a0a44b0" + } + }, + { + "id": "isSameDate", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "42aa1e60ace8c5d452c7b6ed073e8ae58e7b5a78dabcdfa6f919b03ad54b4553" + } + }, + { + "id": "isSorted", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9c2a20c29c3b1b3052f45f2eefe83b51e01cbdf68c4929490f57e5227adab6ee" + } + }, + { + "id": "isStream", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "type", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b85cb6228c080ea8fd86de80811ab8b746896c8dcc62bdc38ab1728d8a7d6d41" + } + }, + { + "id": "isString", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "8ef7ed2456af6774730b68e254ad66625718f7a049d13541c7d60410ae610ab4" + } + }, + { + "id": "isSymbol", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "5147f4f9545f644e366535c20eecbcc4a49e5e2606901df1d938b9f02fe56575" + } + }, + { + "id": "isTravisCI", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c9e8be3686e292a4db56f8f6068ed75705b3260373689a10b57401703581f5cf" + } + }, + { + "id": "isUndefined", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2eeeb674c5f4947224fb065e5a1fa0b0adbbefd9b7fab99190cc9a4b65bab724" + } + }, + { + "id": "isUpperCase", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "3d4d902eafdad5694f899ef9f763f7a11a7d7ad179526a03b3cf5377692b5ec1" + } + }, + { + "id": "isValidJSON", + "type": "snippetListing", + "attributes": { + "tags": [ + "type", + "json", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a0ce043d4ed321c92f30bba8fd9e27270581e0bfae327e6efe3e637cc51700d5" + } + }, + { + "id": "isWritableStream", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "type", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a093149c0e471ec54ecd6fda4a44729011522875c57111144eb561319409f839" + } + }, + { + "id": "join", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b9f4274b86fe464c48cd52578742e631cb00789bd9b3cb14dbaf7bf906238d38" + } + }, + { + "id": "JSONtoCSV", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "string", + "object", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "61fddf2f1f1772e890978dfadecfd1f65f52556f1d0f4493c542274b5806ffae" + } + }, + { + "id": "JSONToFile", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "json", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b35d2fdeb87912b6bbe3e6db3f5c91059c4b1d631e5e26c6c980b28001cc2b9f" + } + }, + { + "id": "last", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "32027cb017b2f88a2454f66537f8e53f80129f1db56a4d264a8473320f4d4a77" + } + }, + { + "id": "lcm", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "recursion", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "039b259f403f96a12db85dbc75c49947ed0cd4c9f271c1b2330b962e79c94eaa" + } + }, + { + "id": "longestItem", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "string", + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "68d8649e37c7dc4582dd931e632cc53bc7c6fdd89b77ebe6e2ed87237e2c8f20" + } + }, + { + "id": "lowercaseKeys", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b0f3076f0b76269e7968e123b12ecd0fcd5ecf9d53c354d263a8edcaef9295fa" + } + }, + { + "id": "luhnCheck", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "utility", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "dc47d703003778e02bcff6ba3679a18f496ef292c99150e9a1ef47ee7bcbbefb" + } + }, + { + "id": "mapKeys", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b16bf4999821f3e490db221683715bab83929fbb7dda3681107c9fd354f72410" + } + }, + { + "id": "mapObject", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "object", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "8f1c1eb90b25ffc444c5304d0cb57b6c378aed95a92af14fac972a277c592fd8" + } + }, + { + "id": "mapString", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "array", + "function", + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "e6fd375fff17a417326d159f49f99bc59defb7efbe3efb1d0154fcc915bf0b0f" + } + }, + { + "id": "mapValues", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "80d19ac6f58d14b862f9c876ec073b30df4320a2d6ddcdd65c7c2e340bd6a86c" + } + }, + { + "id": "mask", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "utility", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3da462a0771e4e021727ea956c720e384455d7bc22be7a41034ec164a0918c2c" + } + }, + { + "id": "matches", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "type", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "5e55988a85c6df1e7d207f856fed5360f4cb1f21cb25e0baa4da702c44562f43" + } + }, + { + "id": "matchesWith", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "type", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "36b4b1ff9e305cb6378ae7d6bebe6f2272bf3355719d455dab37322975598686" + } + }, + { + "id": "maxBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "d491f95acc203a508ef388448e4ad3fb841a9a368d8c1a401a8b98e33e90d908" + } + }, + { + "id": "maxDate", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "1b236c9ae2f4f640415e63c954b6902e7e6346b3b32c34be8d003e42a283b2f6" + } + }, + { + "id": "maxN", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "f22f57bbab2b420a0105e9a5492abdb3763970f27f6cc94e84658ad6dccabb84" + } + }, + { + "id": "median", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c9812cc00b275ea43c2833cd3466997441348fba6baa13169b3733b04ec92c4a" + } + }, + { + "id": "memoize", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "90e3a88fc1d6657c0abad7ef8bf1d16d63ad79e0a3b3e3333b8d9113dd71b319" + } + }, + { + "id": "merge", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "dee7c1bd5e81ac82ced21987d3d0236d5355b79f2fb9755062b77d5c7c13d990" + } + }, + { + "id": "minBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "d067d7b40685a5266757f37ade2f917149faac3eaa5faee2810fc4cef578e75a" + } + }, + { + "id": "minDate", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2c1a723b2b59c4b20dd60eca4c8bc3fc90bab1351684205f5b9bf6ca95e279b9" + } + }, + { + "id": "minN", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "ec485952e6c1e67c11a8a8a92abede71530f5b26dafcd4a2523f85062c434126" + } + }, + { + "id": "mostPerformant", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "function" + ], + "archived": false + }, + "meta": { + "hash": "882a756a416c2458e19592002efd2fa77069a5707a369b6379690700a474840c" + } + }, + { + "id": "negate", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "8938f36bd51423282e19bf1d4547b8a8a1ebf1882abf7ec4e7ff371922e078e0" + } + }, + { + "id": "nest", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c38b3afe1ae7f731a1066e48fe4fae6cf397ee5a052702736c2c4695a29db06e" + } + }, + { + "id": "nodeListToArray", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "9ff0d5e19de5bf65e96f4b206ac107c7df1ba17741ff0394748af64ec69e61e7" + } + }, + { + "id": "none", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "d3656fbcb01673a6fc2eabf1724b5f6f3dce1dc00598a56a096bbd708276d6ec" + } + }, + { + "id": "nthArg", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "function", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "644bb127b78c7b61928b339be65c240412170fd7f83d48801284a6ba1dde61d0" + } + }, + { + "id": "nthElement", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "e6150d0dcf1f124b718dd99d61e167abbdc861a2c67f1d4e681cd8ba13329361" + } + }, + { + "id": "objectFromPairs", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "238beb417839e2f97f5b5b7280d4aa379f2a4ca7a6c04439f056574ed01a48eb" + } + }, + { + "id": "objectToPairs", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "530332df39ab0e9669de9fc039cfd90a36f984977d449a572da3b06092da7017" + } + }, + { + "id": "observeMutations", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "event", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "b66745bdc310babb7f8b44d27dff3ffc14b665aa95f569fde6d2a05082808890" + } + }, + { + "id": "off", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "event", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "613baa2166459b02d033323f517bd6a646eab362ac6ecb74841757353ac41482" + } + }, + { + "id": "offset", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "459a1219cd120f25d786b945fa76b9875f22bb803cc2e1541e8bbfa596a0072c" + } + }, + { + "id": "omit", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9a569def20e0de06c19e532769db17a4475b4c431e426bd6923422f3e2b9fee9" + } + }, + { + "id": "omitBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "f89538ff95a3fff3efdf13b0765dd03ccdeaa1fcc7242d61b5a0e73aca9fdc6e" + } + }, + { + "id": "on", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "event", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c5f26491c28670e971d9049b74ff79ed933a2d92ad29a117d324c131e8205be5" + } + }, + { + "id": "once", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "60c1b3e83e55b2cef66ffc26f92f419998b1aff51c6194a176c35c20384930cb" + } + }, + { + "id": "onUserInputChange", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "event", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "63a0e9adf1f1a85654347946c634d49a3b84bfa1a11cd609c00102ec523171d9" + } + }, + { + "id": "orderBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "64804da8497f144eb45aba279229225d446133c09e32592eae96789ca1f36cfb" + } + }, + { + "id": "over", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "fb4809f344855c8a97ea2bad4f0aba5a8a55f7211739a70bb9a0700952cc822a" + } + }, + { + "id": "overArgs", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b6382880e8c13b2dcc19dbf8530b9f8aee18fd967494e68a1c0afb2a62952173" + } + }, + { + "id": "pad", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "cd37c59287935e9cb0c9061c86f80b307252f6f64e47b5fbd6045970d492e59f" + } + }, + { + "id": "palindrome", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3d740895ae6737664c616285a734c79fa01896a1cc7dfdf434046bac3ce972c7" + } + }, + { + "id": "parseCookie", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "59cb5560cf5dd5696c1d8b664db8c12f9c9dbf43d5e5fdb4ec6be6cac4ee88dc" + } + }, + { + "id": "partial", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d3827db0162532e28149d341c08b1d2ae72f36b0b3b480407ef7dca211c9abb1" + } + }, + { + "id": "partialRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d7e22ab0e1ce71ae47687441dd234141f2a2f70fab5f3a6b59d7015e924e517a" + } + }, + { + "id": "partition", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "object", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "f36dd78818c8651d6318a2bd6777dca10c7f8f3cbea010ac877c1e3ff0b2f89a" + } + }, + { + "id": "percentile", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d19b9746c57b6acf9596a3ea840b5e1b9a3e4bad9212a3b155a6b7f00df70662" + } + }, + { + "id": "permutations", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "recursion", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "f19fae2a6a1340bfaeab71ce9e7bd6e4ac9eb691134ff31993631fb83043a548" + } + }, + { + "id": "pick", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "cd4dd587b174804aa64f07e96ba9ed1f7d39833014eb569c30f8689a61825a3d" + } + }, + { + "id": "pickBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "30b1d3168c53ea5658e2707cb03bef76c1864d5c0900d50ae8b9d25f0237bf1a" + } + }, + { + "id": "pipeAsyncFunctions", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "promise", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "12276cbe7dde6659e4ab67ed3fbe81ac57d1e7766b41dc879f946f226b7b76ab" + } + }, + { + "id": "pipeFunctions", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d9cd8f57c25f07245ee3e1dddd678e8cc1bde159ed0e1e39e4ab78d59100c2c3" + } + }, + { + "id": "pluralize", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "68a521d9ba019afbdd726791f0a2aaab948ad142f3b64b657e5a88239f9e6cb8" + } + }, + { + "id": "powerset", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "07e75d7e2e690176f49a9c730ba84a3715b1bd6af4a8b661818997efb13def35" + } + }, + { + "id": "prefix", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "020ca3b3b1c660acc9735d2b331008c2c2a3d8ba587fbfa3be932a3fce0e5dcc" + } + }, + { + "id": "prettyBytes", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "string", + "math", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "08cbd19f78bf3794926f6c3d138587567efcff45dd176d9d4f76466be174f99b" + } + }, + { + "id": "primes", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "396e855d00edac72c4a96c10926f7c74888260527db1fe077f2621a2d7326c1b" + } + }, + { + "id": "promisify", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "promise", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "ff6279ccbfbe62a34cebe03db88ba4be61d227224a3f4c51775f8a480ef1dffb" + } + }, + { + "id": "pull", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0dc16efb9147bf354edfd96360c92fbc9dea6ac781cddda720e79a66bfce9d5b" + } + }, + { + "id": "pullAtIndex", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "fa081f50a7b00bd86731269741dfef4dd2d9af97cbe1588dc3f3fe3f258c88a4" + } + }, + { + "id": "pullAtValue", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "672673d9b11ad533f4d70732d1ccb1cb3d4e4bf2884c64506e577f1765f0d265" + } + }, + { + "id": "pullBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "fa4acc5a88a324bc7fed7971a3cca499f936f0f6ceda490d11d19edeeee1a947" + } + }, + { + "id": "radsToDegrees", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "4210a848f9b827e5305d7fbe20af9e4bb6b762235fda60c865e1d86d122995da" + } + }, + { + "id": "randomHexColorCode", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "random", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "6af176c0007886231038d513047c089a03200647c960ecb27b7b624e2629c913" + } + }, + { + "id": "randomIntArrayInRange", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "utility", + "random", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0e2974d577b4265fee1d9996d563571c50baed64300e7e26a58e5afe2460d606" + } + }, + { + "id": "randomIntegerInRange", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "utility", + "random", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "3671edd45cd63b16e866873a2b7537de33e1e0cbd2a7add3508e710866bcfec2" + } + }, + { + "id": "randomNumberInRange", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "utility", + "random", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "cd948adcd19d7fb08a7b2cc4a6fb05b6f4e778a2ffd67a7b6395020ee15c54ff" + } + }, + { + "id": "readFileLines", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "array", + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "a9b7afa2742b948b79cc30f06512c0b6db396f6e27c299c5280da4b5a423975b" + } + }, + { + "id": "rearg", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "4cd92aefc779a6c7ef6bb2ff6676666e77ebe7f1b8ea9fbe5b37f42b158774f9" + } + }, + { + "id": "recordAnimationFrames", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c5a8561508b12f6698e8b9e3195ac8e1002ca429eb9679f3e752bec2114c1e72" + } + }, + { + "id": "redirect", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "url", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "61bf6a1efcf5c0191d77af67f93e8e7abbe6963aba8e16058d2b5dfdc353dd40" + } + }, + { + "id": "reducedFilter", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "ec119d6e6b0af832bf8fa4983f08710becf372e2deb3c5f4d87f3327c25b48d4" + } + }, + { + "id": "reduceSuccessive", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "f81e4a576e8f8db8a15a4f95162a840c38686b68dd9665567388d098950d6386" + } + }, + { + "id": "reduceWhich", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "bb8227393be4c10ae717e4452b194258b7b49864925e40aa18c84d7be154d858" + } + }, + { + "id": "reject", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "6009ce058c2a733ee2e0541f45a6bb96fad7bec1ff7d2cee9262bf1cd388b654" + } + }, + { + "id": "remove", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "5aac190c69a2a7d42dd4f17caabe760270ac8c82b8b54b760d3d6b1de86362d7" + } + }, + { + "id": "removeNonASCII", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "e16f5691d22aa4cd48e1b64f33ae50f973fffa168264c15c4602c595b9fdfec7" + } + }, + { + "id": "renameKeys", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "2b9a2f5456f0ed9bdd3726cf88a69775f2e3448d301fb77448015bee3f95bad4" + } + }, + { + "id": "reverseString", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "f570571660f62af4f962b7271d9f377d9c2bde92e2cca567ce5c357a5659afcf" + } + }, + { + "id": "RGBToHex", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "120d6ff54bbe75a7c58ad50a14f77a895a5369cb71157826642e8d5bd1434ad9" + } + }, + { + "id": "round", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "19b33182a5dc111794b5d04b39cdbd6efc8a9140d8008e9563c99f4e3e5d4d42" + } + }, + { + "id": "runAsync", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "function", + "advanced", + "promise", + "url" + ], + "archived": false + }, + "meta": { + "hash": "e3055f01701b8ac5da52f81cf8ba84e1866bee92ea70a3f34689a18cbeb2a581" + } + }, + { + "id": "runPromisesInSeries", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "promise", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "60866df7986ecdf0883b9dd4b3416f45a88da2e5baea6d785923c0092b9216e1" + } + }, + { + "id": "sample", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "random", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "3b37603f7ba773dd6b5c4c3884226631c56b9c801be822cb30c5a76eb85b0355" + } + }, + { + "id": "sampleSize", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "random", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0cf699cb81f73bf1e7dcfa26066bead7f10a5245c2bbc3de5aefd119833745bd" + } + }, + { + "id": "scrollToTop", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0059b3877b1e464316a970fa4b6c1f3e66c6d3d8eba0fd71ffc6da3765139574" + } + }, + { + "id": "sdbm", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c3a8304fde85dde84a90efb998f0dd4444b7c04a6b4114386bacfa7b8b2de150" + } + }, + { + "id": "serializeCookie", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d00538ab5aba3ac223daa0e5301037622296acab3127eaca3066870570709f1a" + } + }, + { + "id": "setStyle", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "5e77fc312562bb285245db9ce463b2f60319c72f5f80f4b29911c7e088a320d8" + } + }, + { + "id": "shallowClone", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "7de60380be40a762fe0044242860c228a01a92a6ad1a71875967f7055db84b96" + } + }, + { + "id": "shank", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3228d4e5587f403b90361e8bc82b6c08fc5ff65bf21df4745a3e3f9adefc229b" + } + }, + { + "id": "show", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "css", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "1077fab3112f8fd532be9c54f28f3df6a0a82bc68b494e957bd97bd503f8cc78" + } + }, + { + "id": "shuffle", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "random", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9e8a43e9082f882ff6f7a475686dfbf3fcb4ce8899029cceca3be1e1debcc68f" + } + }, + { + "id": "similarity", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "2c6b1ffb9d8fe5252cf66adba920c81e0e7cb6949df0a9490f85fb202c015aef" + } + }, + { + "id": "size", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "string", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "e4f6fa3b1f22174524005847896827239a9f4d48da77759e21085392bf19fa1b" + } + }, + { + "id": "sleep", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "promise", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "2ade7a5abc3492e93d9375e2f1e4ebea2722a4070d3c0c0fef9737da4d3274fc" + } + }, + { + "id": "smoothScroll", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "css", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0c981dba030ad350d16695c96ff9435b55d53ed96b025e80e297719be979a633" + } + }, + { + "id": "sortCharactersInString", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "34db8148aab6bca2e91f1cb4546e0e54736a8183f9d7d51021d857ea9c6c8b56" + } + }, + { + "id": "sortedIndex", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "775b9b28ebb0a3f88abcb353bb3363f0b032ecf420661aa57c20e80b6b6f881c" + } + }, + { + "id": "sortedIndexBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "117e9e577d11361253bc2d335f07bf6114e76b8a7a7d468c1ba40418c0089f83" + } + }, + { + "id": "sortedLastIndex", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "8c8b3cc4fef1fdfc6d4eaf3169d4372c668694f6e130547c276667506a1c369f" + } + }, + { + "id": "sortedLastIndexBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "f3aef4ca67a728875ef21fa009c5300d6d5e30779fd7ee91934701895b8274af" + } + }, + { + "id": "splitLines", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "46d9f6904481a9e344befffc48159fc1205c1a1e558a03d8e4bb0073c73b83f7" + } + }, + { + "id": "spreadOver", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9a79940f01badd37efb5156b8e3d220c85601c99a6908b79fe9508d0cd4d8ff5" + } + }, + { + "id": "stableSort", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "sort", + "advanced", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "897ec7ae6a43dc99a72316d53116b6634b9841909550106e2341ee279e309f25" + } + }, + { + "id": "standardDeviation", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "3e34cb48380b9ec4aa52f1603892a8db1d760e3b8387d309f3627e7ad1731aa9" + } + }, + { + "id": "stringPermutations", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "recursion", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "e23e28ef5264da4e5028b40bce557241cff8ded1e942dda0aef6e79d7577eade" + } + }, + { + "id": "stripHTMLTags", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "utility", + "regexp", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "ee2f284cf513dc1d61b4d366698555c240131d5fe8fc17bd19a4cf055091ce58" + } + }, + { + "id": "sum", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "03a3fcdac74dd3311ed80241e6de8cb6f9ee1cac3add8c908b60e6bfd97c4ba9" + } + }, + { + "id": "sumBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "74556a01701c709d8c9f8da03fd7fedfc9d5721c9f71e3093acff8bd30ce282f" + } + }, + { + "id": "sumPower", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b4dfe86ed9855ac7c917e34e1b39df5d43178af2c13881627d277efc9600b9a0" + } + }, + { + "id": "symmetricDifference", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "7d60d7d8c42880de0a12a91df558cd04c2bc86e74631fd618b5f222323226527" + } + }, + { + "id": "symmetricDifferenceBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "b8a1146c956e5ac9a8d3f3a347b946cfa066b2b656557ba9f0a35ac3ac13da57" + } + }, + { + "id": "symmetricDifferenceWith", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0d611c3d7fa609a620b79b66674e51211ed28d5e4ef602b7804cc04ca69bd6e7" + } + }, + { + "id": "tail", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "af54ed912eebf9b9e09a7ada2dba2a495a99cfd7953b52f2dd14875dbc24eb42" + } + }, + { + "id": "take", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "297711965d0910a5d06ef3da57218325a5c73fd1f69aa68ca4692d96678c0520" + } + }, + { + "id": "takeRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "71eb17c86a261044dde77e2b6f56ac511042974672d61ecc90b52efaf7612754" + } + }, + { + "id": "takeRightWhile", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c2abf1b7d9a9622ef6da9ce57d8e5dbdaa6bc02220c7e9cea8d1bf423d6b4acf" + } + }, + { + "id": "takeWhile", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c42316fd32bf6ade69e5af6fa674e17b85478af5bc43d88af8c1800a2710c508" + } + }, + { + "id": "throttle", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "ecdc293930030c0da79e4cb0b21a9fc811219583ab36391428553fd25da0c822" + } + }, + { + "id": "times", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "81177986848b8ea067f9019c43923709a9798d1e599fb9ddbb6005096600db37" + } + }, + { + "id": "timeTaken", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "10f04aac7ae6a3183c934a0d29dfce0896c43ef1808018f8dc1ccf8f72b03574" + } + }, + { + "id": "toCamelCase", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "16d119f2579322223f4643ae75df9c634046d58cc45a833e7037b0ec3e9d30a8" + } + }, + { + "id": "toCurrency", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "f00f4a2229ed6b9f98356e6b0ea9e245f1d53bdbd616eb4c2babb87d7cf350b9" + } + }, + { + "id": "toDecimalMark", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "60a6869c136463b7cd17169c91a3df8baba1c4d5482918b6f93b7d898f1ed725" + } + }, + { + "id": "toggleClass", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "a7fe1eafbf16bb18ebc334acb4c3e865ac640b2da8c4c59084b92e47b1f2c31e" + } + }, + { + "id": "toHash", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "1a0fe2710f33b65dd26898a49d82cfe32fbbe20fcc770793bd480492ce803161" + } + }, + { + "id": "toKebabCase", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "a181eea015033d5741a3bd2f2d1375806f2d30b20f176de2e6a2c91ce52fdbe0" + } + }, + { + "id": "tomorrow", + "type": "snippetListing", + "attributes": { + "tags": [ + "date", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "bb0a10f680644b437d61c2c69ea3ddd9dacc87ba9036bd66dd81eb0fb98dd671" + } + }, + { + "id": "toOrdinalSuffix", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "fc3f0e8b7f06d0114d589549e255298d40c7954386e74c74ab842d421f472f6e" + } + }, + { + "id": "toSafeInteger", + "type": "snippetListing", + "attributes": { + "tags": [ + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "8416d92bd5d190468f9c9c73318228aa5898191983d1d941d6e43115d7ce63ba" + } + }, + { + "id": "toSnakeCase", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "6e6eab17f7ffa0d8330c38e6f250d07c149d1c382c7e30c983b20c100867a091" + } + }, + { + "id": "toTitleCase", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regepx", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9c48e8bbe56982fa64b6272cbae696dc81c252a33291bac29661b9cc211e9843" + } + }, + { + "id": "transform", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "9915776188ba8fe2ba9bb6bc119f3ec2e15e39e9694a26691f874706e94d536f" + } + }, + { + "id": "triggerEvent", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "event", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "5a75139673bae9fb7b5fd89409c3ef0b5b248cb3560a311f92fc95c91f8e3e55" + } + }, + { + "id": "truncateString", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "9c817dfd7257af2b39b9767f103d7ddc52fa9faeb58266809c4dad096f269f5f" + } + }, + { + "id": "truthCheckCollection", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "logic", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "f12f13e91351b4d6d38606d44c89bc3fe89c09d230ac44f2cc68f07e2199f35d" + } + }, + { + "id": "unary", + "type": "snippetListing", + "attributes": { + "tags": [ + "adapter", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "80672a8ef916cbfd3c144c24d9a2ba8f61aae96d83fb6c65b788598f39b61086" + } + }, + { + "id": "uncurry", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "40c66397d2aa4096b7cdfca13d83e87535ebd372f2124e28ed4e7574200a1fea" + } + }, + { + "id": "unescapeHTML", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "browser", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "db2bce039d4c1c4b0f856856ab5dcc1f5bc0738e558f67e49bd4a0db222d5eb4" + } + }, + { + "id": "unflattenObject", + "type": "snippetListing", + "attributes": { + "tags": [ + "object", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "3637ef66fb8116bfa346100017cd05c145444ca59163feae74490ffcfa8bb95c" + } + }, + { + "id": "unfold", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c878474228bd386796ac702a400dba511230fe1b66f8fa78ca9fe62a2959a036" + } + }, + { + "id": "union", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "6a38d221f7ffe44866abd3c70be9f98fb83a2ce7c68914dd68af475a4790d093" + } + }, + { + "id": "unionBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "90210f1e62a7f5bb991cb3b7603bc2ffef0e4aa02193fe2b12f6269e951bc473" + } + }, + { + "id": "unionWith", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "96c49643e166f51a9ec78e0c75ce4bd2e799e8bc913794657fa718ad16723f22" + } + }, + { + "id": "uniqueElements", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "cd300f39aa0ae59abeca10f9e0af65983a8c57c9884723792956647e341bf869" + } + }, + { + "id": "uniqueElementsBy", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "f19f8f2980c9430121f0ffc5e391d348d5715a3d3e8aca5c435bae418fec4f50" + } + }, + { + "id": "uniqueElementsByRight", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "c5eb849038ee18cf97df69583d46e9c0fac073f62acaf155f2af2c48195082af" + } + }, + { + "id": "uniqueSymmetricDifference", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "4c6f94f5a26fc102a09abba066329d25d63d90f3312b0233a49a99124681a2c2" + } + }, + { + "id": "untildify", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "string", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "e734ca2c62a5a59b69379b0b6ef38d916f9554c0c9dc4341ff64e34f66e8fa0c" + } + }, + { + "id": "unzip", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "ba5dee3a521239141017caa48cd332c905a674034b6b533c1c8d4e8dabaf1df2" + } + }, + { + "id": "unzipWith", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "2fc5ed2400dea5b93cdf9dd1972bf8b8d0231c9b1ae298ec03f745c6c566a691" + } + }, + { + "id": "URLJoin", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "utility", + "regexp", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "938156c9c01f7c8c74ad42b0ece2e6eb6410703087456bfe4ab2fe09aeb8d25d" + } + }, + { + "id": "UUIDGeneratorBrowser", + "type": "snippetListing", + "attributes": { + "tags": [ + "browser", + "utility", + "random", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "39fce8487764a7d52c559693609125008c36577db2fd99441935df862156b48a" + } + }, + { + "id": "UUIDGeneratorNode", + "type": "snippetListing", + "attributes": { + "tags": [ + "node", + "utility", + "random", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d14ea2a4e10db39f93430d5bc17f4524898488c59fbcbfcecff57c46d36d277e" + } + }, + { + "id": "validateNumber", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "7123c105b911ef6292d48bedbd0cd80d594df41ce745346c1c8dccdaac76c151" + } + }, + { + "id": "when", + "type": "snippetListing", + "attributes": { + "tags": [ + "function", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "d106e35355d7f98ecbaff8f935a9c7d27b31f5c9fa062ab62cdf3bed57bc2890" + } + }, + { + "id": "without", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "beginner" + ], + "archived": false + }, + "meta": { + "hash": "e57dabd910cdfce6f948f00542a2f2a6a47c1a2c5ad6c8482b5c6945be31e293" + } + }, + { + "id": "words", + "type": "snippetListing", + "attributes": { + "tags": [ + "string", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "7d876a51aa2dea887594ad07ac87e68fad8db83cc7fe86aa5d7c553f494a9f65" + } + }, + { + "id": "xProd", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "math", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "e6a53f3ba53df9e740fe88e0a9dc1b51160cebad901cca96babc601e6c19a320" + } + }, + { + "id": "yesNo", + "type": "snippetListing", + "attributes": { + "tags": [ + "utility", + "regexp", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "60e89489f96442e8b9094b70188f4cfbd37564efcee09ef9a82ecceacd2af815" + } + }, + { + "id": "zip", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "0d8644bb092295e54744ecf56cab6b7da495f03376c6339e47bfc3045befb681" + } + }, + { + "id": "zipObject", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "object", + "intermediate" + ], + "archived": false + }, + "meta": { + "hash": "319b81dff475910008f9902ae8ffd64921a6b9fa13b84b03a42cfc6c45bb636d" + } + }, + { + "id": "zipWith", + "type": "snippetListing", + "attributes": { + "tags": [ + "array", + "function", + "advanced" + ], + "archived": false + }, + "meta": { + "hash": "7cb99869abe8e7ff857b7876fd00cb9ebad3d97b0262845365ed7f75350c10e7" + } + }, + { + "id": "binarySearch", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "6d7326f2e5c78b2817a5bfe03d3e48af4426fdc4d04f7e3604368b84c854df51" + } + }, + { + "id": "celsiusToFahrenheit", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "b300cd6f0789d2a6e66d27acad45435287eff0baa645406b23397b434a730de7" + } + }, + { + "id": "cleanObj", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "66cf60e71546519e93d751ce363a10f755997faa792394e84e9f60c56d843f24" + } + }, + { + "id": "collatz", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "df0a454dda6ddcb7eba46db54ed886f2f7bfbf71560aa401ea41249b64107a2a" + } + }, + { + "id": "countVowels", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "18385086893ea0a1374288df5111493894047a9c72b12be4bba515da2b4e5dd0" + } + }, + { + "id": "factors", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "fa177ca9bbfa710d76d72e60fa358a02ed5876e9f0996ef04947a3274a3b30bd" + } + }, + { + "id": "fahrenheitToCelsius", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "266ed1a67c5016ee80aa293181de33bda78aa4b07f80154408114032949d070c" + } + }, + { + "id": "fibonacciCountUntilNum", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "a905797a88f8f9a83aeee8150e13da9c0ea1d7ad80291a1e85d2dab7f374956b" + } + }, + { + "id": "fibonacciUntilNum", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "6974e513b0ad03399cf580ba25dd83300a5a23ee8e33c77bbfb4b4144be405d3" + } + }, + { + "id": "heronArea", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "e712f8b19919f33e188272490c2f57cc87453f6153c8e768cc2dc41c7f0422e8" + } + }, + { + "id": "howManyTimes", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "91cc5a7f2f61b5f5245e385e4f18012a274ee79a955cc970d957be4e774ca9d4" + } + }, + { + "id": "httpDelete", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "aee45d11de7013fa418f08a174b35d2b4004f022951b646b7b0fa9fffc14fbc4" + } + }, + { + "id": "httpPut", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "b6488d7a3d127ca002f24da8d45c2f5fe0e097f505aa4f77450e56062321af9e" + } + }, + { + "id": "isArmstrongNumber", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "58775e2141232e9e0fe9b57248561dc3171c89e027ad3bf423c90656aedb3f0b" + } + }, + { + "id": "isSimilar", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "6c7ad3b71e49012e12d07a9183aeba6ee7c7b800ed7a20550777d90bb64b92f7" + } + }, + { + "id": "JSONToDate", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "a1b8e5a615907cb7603fb6079d31a4182d8dbfa2479a2b55f48669515442a1a9" + } + }, + { + "id": "kmphToMph", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "5d1569be30b8c4008f3012f4eae220cc8bb81b0249bcf3ce4ce84f32d0327b9e" + } + }, + { + "id": "levenshteinDistance", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "3ed000d3ef2f14d922dcaa172363e6627d22b2fff480a93549b51089098486b4" + } + }, + { + "id": "mphToKmph", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "14576a85e48e41a6ad28320b9b62cf828337b0eebfd8cd832e058f7571a4b191" + } + }, + { + "id": "pipeLog", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "90ec0e513ee0b3f81877b56fc0f0d2f4ecab60ab6145d5c43a8ef662ed095821" + } + }, + { + "id": "quickSort", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "db13fb83fc0b26dd85af291e54659a2d3ceb0b3c2779f9563a75e12cbefabcb6" + } + }, + { + "id": "README", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "43390a0c44f832218026a1a12537cb520ab76f7b045ef99bc74c7a4fb0e3f44c" + } + }, + { + "id": "removeVowels", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "844c395b6b8d69963e1d181473e7a69bcc87f7c157f7dff402af9556c5f55abd" + } + }, + { + "id": "solveRPN", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "264e780d7cd76874cc1913b545d01b6e22e98fcad78a5d82fe3c107c6310a5cd" + } + }, + { + "id": "speechSynthesis", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "b556b1d2bb7b2dc2c42f8b7c4d63f9fb80a6685ca742029f26c1575fb8aa4649" + } + }, + { + "id": "squareSum", + "type": "snippetListing", + "attributes": { + "tags": [], + "archived": true + }, + "meta": { + "hash": "ce4c4ecd3fe24d838fa5c7a3d5106c393275943c2af0de53252a2e205ada5cb2" + } + } + ], + "meta": { + "specification": "http://jsonapi.org/format/" + } +} \ No newline at end of file diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index e761fa586..787b4a287 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -5,11 +5,12 @@ "type": "snippet", "attributes": { "fileName": "all.md", - "text": "Returns `true` if the provided predicate function returns `true` for all elements in a collection, `false` otherwise.\n\nUse `Array.prototype.every()` to test if all elements in the collection return `true` based on `fn`.\nOmit the second argument, `fn`, to use `Boolean` as a default.", - "codeBlocks": [ - "const all = (arr, fn = Boolean) => arr.every(fn);", - "all([4, 2, 3], x => x > 1); // true\nall([1, 2, 3]); // true" - ], + "text": "Returns `true` if the provided predicate function returns `true` for all elements in a collection, `false` otherwise.\r\n\r\nUse `Array.prototype.every()` to test if all elements in the collection return `true` based on `fn`.\r\nOmit the second argument, `fn`, to use `Boolean` as a default.", + "codeBlocks": { + "es6": "const all = (arr, fn = Boolean) => arr.every(fn);", + "es5": "\"use strict\";\n\nvar all = function all(arr) {\n var fn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Boolean;\n return arr.every(fn);\n};", + "example": "all([4, 2, 3], x => x > 1); // true\r\nall([1, 2, 3]); // true" + }, "tags": [ "array", "function", @@ -18,7 +19,7 @@ }, "meta": { "archived": false, - "hash": "2cf407f0e2df6eb320de1906d8cb4f1d252ac189af3a390dda264e8637a44e7e" + "hash": "d9aec5efedaa39586f2b1210394b345cb1abbb9348fad952e785badbb2d598ac" } }, { @@ -26,11 +27,12 @@ "type": "snippet", "attributes": { "fileName": "allEqual.md", - "text": "Check if all elements in an array are equal.\n\nUse `Array.prototype.every()` to check if all the elements of the array are the same as the first one.", - "codeBlocks": [ - "const allEqual = arr => arr.every(val => val === arr[0]);", - "allEqual([1, 2, 3, 4, 5, 6]); // false\nallEqual([1, 1, 1, 1]); // true" - ], + "text": "Check if all elements in an array are equal.\r\n\r\nUse `Array.prototype.every()` to check if all the elements of the array are the same as the first one.", + "codeBlocks": { + "es6": "const allEqual = arr => arr.every(val => val === arr[0]);", + "es5": "\"use strict\";\n\nvar allEqual = function allEqual(arr) {\n return arr.every(function (val) {\n return val === arr[0];\n });\n};", + "example": "allEqual([1, 2, 3, 4, 5, 6]); // false\r\nallEqual([1, 1, 1, 1]); // true" + }, "tags": [ "array", "function", @@ -39,7 +41,7 @@ }, "meta": { "archived": false, - "hash": "690147b9d4d90d37d9f42ec6596decc3e99eb8104f51d27a392ee3b50041878e" + "hash": "76704202f5987a78625746ef4f2ca5650a8d87b10252b06b60c5d39cd26a7335" } }, { @@ -47,11 +49,12 @@ "type": "snippet", "attributes": { "fileName": "any.md", - "text": "Returns `true` if the provided predicate function returns `true` for at least one element in a collection, `false` otherwise.\n\nUse `Array.prototype.some()` to test if any elements in the collection return `true` based on `fn`.\nOmit the second argument, `fn`, to use `Boolean` as a default.", - "codeBlocks": [ - "const any = (arr, fn = Boolean) => arr.some(fn);", - "any([0, 1, 2, 0], x => x >= 2); // true\nany([0, 0, 1, 0]); // true" - ], + "text": "Returns `true` if the provided predicate function returns `true` for at least one element in a collection, `false` otherwise.\r\n\r\nUse `Array.prototype.some()` to test if any elements in the collection return `true` based on `fn`.\r\nOmit the second argument, `fn`, to use `Boolean` as a default.", + "codeBlocks": { + "es6": "const any = (arr, fn = Boolean) => arr.some(fn);", + "es5": "\"use strict\";\n\nvar any = function any(arr) {\n var fn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Boolean;\n return arr.some(fn);\n};", + "example": "any([0, 1, 2, 0], x => x >= 2); // true\r\nany([0, 0, 1, 0]); // true" + }, "tags": [ "array", "function", @@ -60,7 +63,7 @@ }, "meta": { "archived": false, - "hash": "b045bd03ea755493fcab7b7092b0fb01bf8ce24b56e5605ea2d0bb037b91f11e" + "hash": "b34cb378a31ae73335f941448fe873edf9c06e10d5a1e28895275a29dd471c39" } }, { @@ -68,11 +71,12 @@ "type": "snippet", "attributes": { "fileName": "approximatelyEqual.md", - "text": "Checks if two numbers are approximately equal to each other.\n\nUse `Math.abs()` to compare the absolute difference of the two values to `epsilon`.\nOmit the third parameter, `epsilon`, to use a default value of `0.001`.", - "codeBlocks": [ - "const approximatelyEqual = (v1, v2, epsilon = 0.001) => Math.abs(v1 - v2) < epsilon;", - "approximatelyEqual(Math.PI / 2.0, 1.5708); // true" - ], + "text": "Checks if two numbers are approximately equal to each other.\r\n\r\nUse `Math.abs()` to compare the absolute difference of the two values to `epsilon`.\r\nOmit the third parameter, `epsilon`, to use a default value of `0.001`.", + "codeBlocks": { + "es6": "const approximatelyEqual = (v1, v2, epsilon = 0.001) => Math.abs(v1 - v2) < epsilon;", + "es5": "\"use strict\";\n\nvar approximatelyEqual = function approximatelyEqual(v1, v2) {\n var epsilon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.001;\n return Math.abs(v1 - v2) < epsilon;\n};", + "example": "approximatelyEqual(Math.PI / 2.0, 1.5708); // true" + }, "tags": [ "math", "beginner" @@ -80,7 +84,7 @@ }, "meta": { "archived": false, - "hash": "4fa8b87ac30ec67afe40c80101a702986dd1e5cab3cd8b9653f1b7c8cbac7540" + "hash": "2b68e79d3ebb806379c3b84ae70152e033297d6e4fd4bc779b10be81ca2fc0cf" } }, { @@ -88,11 +92,12 @@ "type": "snippet", "attributes": { "fileName": "arrayToCSV.md", - "text": "Converts a 2D array to a comma-separated values (CSV) string.\n\nUse `Array.prototype.map()` and `Array.prototype.join(delimiter)` to combine individual 1D arrays (rows) into strings.\nUse `Array.prototype.join('\\n')` to combine all rows into a CSV string, separating each row with a newline.\nOmit the second argument, `delimiter`, to use a default delimiter of `,`.", - "codeBlocks": [ - "const arrayToCSV = (arr, delimiter = ',') =>\n arr.map(v => v.map(x => `\"${x}\"`).join(delimiter)).join('\\n');", - "arrayToCSV([['a', 'b'], ['c', 'd']]); // '\"a\",\"b\"\\n\"c\",\"d\"'\narrayToCSV([['a', 'b'], ['c', 'd']], ';'); // '\"a\";\"b\"\\n\"c\";\"d\"'" - ], + "text": "Converts a 2D array to a comma-separated values (CSV) string.\r\n\r\nUse `Array.prototype.map()` and `Array.prototype.join(delimiter)` to combine individual 1D arrays (rows) into strings.\r\nUse `Array.prototype.join('\\n')` to combine all rows into a CSV string, separating each row with a newline.\r\nOmit the second argument, `delimiter`, to use a default delimiter of `,`.", + "codeBlocks": { + "es6": "const arrayToCSV = (arr, delimiter = ',') =>\r\n arr.map(v => v.map(x => `\"${x}\"`).join(delimiter)).join('\\n');", + "es5": "\"use strict\";\n\nvar arrayToCSV = function arrayToCSV(arr) {\n var delimiter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ',';\n return arr.map(function (v) {\n return v.map(function (x) {\n return \"\\\"\".concat(x, \"\\\"\");\n }).join(delimiter);\n }).join('\\n');\n};", + "example": "arrayToCSV([['a', 'b'], ['c', 'd']]); // '\"a\",\"b\"\\n\"c\",\"d\"'\r\narrayToCSV([['a', 'b'], ['c', 'd']], ';'); // '\"a\";\"b\"\\n\"c\";\"d\"'" + }, "tags": [ "array", "string", @@ -102,7 +107,7 @@ }, "meta": { "archived": false, - "hash": "3508f9a15d8a0b0541d12373b8ea697773434fbfd946bb63fc4f0246e4f193ea" + "hash": "0ba7229cc896c4efeb982ea313166afa79aee16cbf337a643243a4f8c3a4bcd9" } }, { @@ -110,11 +115,12 @@ "type": "snippet", "attributes": { "fileName": "arrayToHtmlList.md", - "text": "Converts the given array elements into `
  • ` tags and appends them to the list of the given id.\n\nUse `Array.prototype.map()`, `document.querySelector()`, and an anonymous inner closure to create a list of html tags.", - "codeBlocks": [ - "const arrayToHtmlList = (arr, listID) =>\n (el => (\n (el = document.querySelector('#' + listID)),\n (el.innerHTML += arr.map(item => `
  • ${item}
  • `).join(''))\n ))();", - "arrayToHtmlList(['item 1', 'item 2'], 'myListID');" - ], + "text": "Converts the given array elements into `
  • ` tags and appends them to the list of the given id.\r\n\r\nUse `Array.prototype.map()`, `document.querySelector()`, and an anonymous inner closure to create a list of html tags.", + "codeBlocks": { + "es6": "const arrayToHtmlList = (arr, listID) =>\r\n (el => (\r\n (el = document.querySelector('#' + listID)),\r\n (el.innerHTML += arr.map(item => `
  • ${item}
  • `).join(''))\r\n ))();", + "es5": "\"use strict\";\n\nvar arrayToHtmlList = function arrayToHtmlList(arr, listID) {\n return function (el) {\n return el = document.querySelector('#' + listID), el.innerHTML += arr.map(function (item) {\n return \"
  • \".concat(item, \"
  • \");\n }).join('');\n }();\n};", + "example": "arrayToHtmlList(['item 1', 'item 2'], 'myListID');" + }, "tags": [ "browser", "array", @@ -123,7 +129,7 @@ }, "meta": { "archived": false, - "hash": "ca7374613a03d90327f8754747ec14e3234f5df975cb8744da6ead6d7d3d2a83" + "hash": "027ae8128f3c52af07224b87baf362f0ad92e5a9847ebf426027ac3f06ab7deb" } }, { @@ -131,11 +137,12 @@ "type": "snippet", "attributes": { "fileName": "ary.md", - "text": "Creates a function that accepts up to `n` arguments, ignoring any additional arguments.\n\nCall the provided function, `fn`, with up to `n` arguments, using `Array.prototype.slice(0,n)` and the spread operator (`...`).", - "codeBlocks": [ - "const ary = (fn, n) => (...args) => fn(...args.slice(0, n));", - "const firstTwoMax = ary(Math.max, 2);\n[[2, 6, 'a'], [8, 4, 6], [10]].map(x => firstTwoMax(...x)); // [6, 8, 10]" - ], + "text": "Creates a function that accepts up to `n` arguments, ignoring any additional arguments.\r\n\r\nCall the provided function, `fn`, with up to `n` arguments, using `Array.prototype.slice(0,n)` and the spread operator (`...`).", + "codeBlocks": { + "es6": "const ary = (fn, n) => (...args) => fn(...args.slice(0, n));", + "es5": "\"use strict\";\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar ary = function ary(fn, n) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return fn.apply(void 0, _toConsumableArray(args.slice(0, n)));\n };\n};", + "example": "const firstTwoMax = ary(Math.max, 2);\r\n[[2, 6, 'a'], [8, 4, 6], [10]].map(x => firstTwoMax(...x)); // [6, 8, 10]" + }, "tags": [ "adapter", "function", @@ -144,7 +151,7 @@ }, "meta": { "archived": false, - "hash": "9c673d0dc5ea5d1b7c63506253c39e512127c377d349b2df1f847788e67bebf1" + "hash": "3822911df3a06d2a58df4f5f8733b72bb655a6b9c7c99a9ab85bf418abcf7de7" } }, { @@ -152,11 +159,12 @@ "type": "snippet", "attributes": { "fileName": "atob.md", - "text": "Decodes a string of data which has been encoded using base-64 encoding.\n\nCreate a `Buffer` for the given string with base-64 encoding and use `Buffer.toString('binary')` to return the decoded string.", - "codeBlocks": [ - "const atob = str => Buffer.from(str, 'base64').toString('binary');", - "atob('Zm9vYmFy'); // 'foobar'" - ], + "text": "Decodes a string of data which has been encoded using base-64 encoding.\r\n\r\nCreate a `Buffer` for the given string with base-64 encoding and use `Buffer.toString('binary')` to return the decoded string.", + "codeBlocks": { + "es6": "const atob = str => Buffer.from(str, 'base64').toString('binary');", + "es5": "\"use strict\";\n\nvar atob = function atob(str) {\n return Buffer.from(str, 'base64').toString('binary');\n};", + "example": "atob('Zm9vYmFy'); // 'foobar'" + }, "tags": [ "node", "string", @@ -166,7 +174,7 @@ }, "meta": { "archived": false, - "hash": "a1cdc6db4c91c17ea5f072fa38f40505a7500c1d142c33a9f7e8280fb9357fb5" + "hash": "2b16386c3d31f0d68f1bd76034202f8927d0a126312cb20b310fc141c6e654f5" } }, { @@ -174,11 +182,12 @@ "type": "snippet", "attributes": { "fileName": "attempt.md", - "text": "Attempts to invoke a function with the provided arguments, returning either the result or the caught error object.\n\nUse a `try... catch` block to return either the result of the function or an appropriate error.", - "codeBlocks": [ - "const attempt = (fn, ...args) => {\n try {\n return fn(...args);\n } catch (e) {\n return e instanceof Error ? e : new Error(e);\n }\n};", - "var elements = attempt(function(selector) {\n return document.querySelectorAll(selector);\n}, '>_>');\nif (elements instanceof Error) elements = []; // elements = []" - ], + "text": "Attempts to invoke a function with the provided arguments, returning either the result or the caught error object.\r\n\r\nUse a `try... catch` block to return either the result of the function or an appropriate error.", + "codeBlocks": { + "es6": "const attempt = (fn, ...args) => {\r\n try {\r\n return fn(...args);\r\n } catch (e) {\r\n return e instanceof Error ? e : new Error(e);\r\n }\r\n};", + "es5": "\"use strict\";\n\nvar attempt = function attempt(fn) {\n try {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return fn.apply(void 0, args);\n } catch (e) {\n return e instanceof Error ? e : new Error(e);\n }\n};", + "example": "var elements = attempt(function(selector) {\r\n return document.querySelectorAll(selector);\r\n}, '>_>');\r\nif (elements instanceof Error) elements = []; // elements = []" + }, "tags": [ "function", "intermediate" @@ -186,7 +195,7 @@ }, "meta": { "archived": false, - "hash": "ac8ac4dc2ac7d0e2de1cf9f6afff46350aa530a51275658e8b34072740d10b0f" + "hash": "27131b8fc8afb7f3140b85981747c0dd6106b5a8bb54ccd43d542e4245f934de" } }, { @@ -194,11 +203,12 @@ "type": "snippet", "attributes": { "fileName": "average.md", - "text": "Returns the average of two or more numbers.\n\nUse `Array.prototype.reduce()` to add each value to an accumulator, initialized with a value of `0`, divide by the `length` of the array.", - "codeBlocks": [ - "const average = (...nums) => nums.reduce((acc, val) => acc + val, 0) / nums.length;", - "average(...[1, 2, 3]); // 2\naverage(1, 2, 3); // 2" - ], + "text": "Returns the average of two or more numbers.\r\n\r\nUse `Array.prototype.reduce()` to add each value to an accumulator, initialized with a value of `0`, divide by the `length` of the array.", + "codeBlocks": { + "es6": "const average = (...nums) => nums.reduce((acc, val) => acc + val, 0) / nums.length;", + "es5": "\"use strict\";\n\nvar average = function average() {\n for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {\n nums[_key] = arguments[_key];\n }\n\n return nums.reduce(function (acc, val) {\n return acc + val;\n }, 0) / nums.length;\n};", + "example": "average(...[1, 2, 3]); // 2\r\naverage(1, 2, 3); // 2" + }, "tags": [ "math", "array", @@ -207,7 +217,7 @@ }, "meta": { "archived": false, - "hash": "1275c6ed1d6ac5e1218831c45cdff88de135f803f45cdbb68dbbad0fbb55e967" + "hash": "5547ee57c7a19624435c01594130bfe6c1613b637fa0810aca6856e5bccda95a" } }, { @@ -215,11 +225,12 @@ "type": "snippet", "attributes": { "fileName": "averageBy.md", - "text": "Returns the average of an array, after mapping each element to a value using the provided function.\n\nUse `Array.prototype.map()` to map each element to the value returned by `fn`, `Array.prototype.reduce()` to add each value to an accumulator, initialized with a value of `0`, divide by the `length` of the array.", - "codeBlocks": [ - "const averageBy = (arr, fn) =>\n arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val) => acc + val, 0) /\n arr.length;", - "averageBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], o => o.n); // 5\naverageBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 5" - ], + "text": "Returns the average of an array, after mapping each element to a value using the provided function.\r\n\r\nUse `Array.prototype.map()` to map each element to the value returned by `fn`, `Array.prototype.reduce()` to add each value to an accumulator, initialized with a value of `0`, divide by the `length` of the array.", + "codeBlocks": { + "es6": "const averageBy = (arr, fn) =>\r\n arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val) => acc + val, 0) /\r\n arr.length;", + "es5": "\"use strict\";\n\nvar averageBy = function averageBy(arr, fn) {\n return arr.map(typeof fn === 'function' ? fn : function (val) {\n return val[fn];\n }).reduce(function (acc, val) {\n return acc + val;\n }, 0) / arr.length;\n};", + "example": "averageBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], o => o.n); // 5\r\naverageBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 5" + }, "tags": [ "math", "array", @@ -229,7 +240,7 @@ }, "meta": { "archived": false, - "hash": "58c2e46ed0bf8dfb7c3d36c280dff4a64ff056fc1a01b0972db8c81733d8c5dc" + "hash": "3896ad3ab0120ba12943877f33fdd1e48d7887f7c69bea7310517aac56020502" } }, { @@ -237,11 +248,12 @@ "type": "snippet", "attributes": { "fileName": "bifurcate.md", - "text": "Splits values into two groups. If an element in `filter` is truthy, the corresponding element in the collection belongs to the first group; otherwise, it belongs to the second group.\n\nUse `Array.prototype.reduce()` and `Array.prototype.push()` to add elements to groups, based on `filter`.", - "codeBlocks": [ - "const bifurcate = (arr, filter) =>\n arr.reduce((acc, val, i) => (acc[filter[i] ? 0 : 1].push(val), acc), [[], []]);", - "bifurcate(['beep', 'boop', 'foo', 'bar'], [true, true, false, true]); // [ ['beep', 'boop', 'bar'], ['foo'] ]" - ], + "text": "Splits values into two groups. If an element in `filter` is truthy, the corresponding element in the collection belongs to the first group; otherwise, it belongs to the second group.\r\n\r\nUse `Array.prototype.reduce()` and `Array.prototype.push()` to add elements to groups, based on `filter`.", + "codeBlocks": { + "es6": "const bifurcate = (arr, filter) =>\r\n arr.reduce((acc, val, i) => (acc[filter[i] ? 0 : 1].push(val), acc), [[], []]);", + "es5": "\"use strict\";\n\nvar bifurcate = function bifurcate(arr, filter) {\n return arr.reduce(function (acc, val, i) {\n return acc[filter[i] ? 0 : 1].push(val), acc;\n }, [[], []]);\n};", + "example": "bifurcate(['beep', 'boop', 'foo', 'bar'], [true, true, false, true]); // [ ['beep', 'boop', 'bar'], ['foo'] ]" + }, "tags": [ "array", "intermediate" @@ -249,7 +261,7 @@ }, "meta": { "archived": false, - "hash": "5f32ce21c3b3ef31d3281c0700eaca0761742fda556be7002596020947fd37a5" + "hash": "b869b8c45f39e8f6cceb8478f2e4ae2248a46c6cc2c39d112868f8e235a6d936" } }, { @@ -257,11 +269,12 @@ "type": "snippet", "attributes": { "fileName": "bifurcateBy.md", - "text": "Splits values into two groups according to a predicate function, which specifies which group an element in the input collection belongs to. If the predicate function returns a truthy value, the collection element belongs to the first group; otherwise, it belongs to the second group.\n\nUse `Array.prototype.reduce()` and `Array.prototype.push()` to add elements to groups, based on the value returned by `fn` for each element.", - "codeBlocks": [ - "const bifurcateBy = (arr, fn) =>\n arr.reduce((acc, val, i) => (acc[fn(val, i) ? 0 : 1].push(val), acc), [[], []]);", - "bifurcateBy(['beep', 'boop', 'foo', 'bar'], x => x[0] === 'b'); // [ ['beep', 'boop', 'bar'], ['foo'] ]" - ], + "text": "Splits values into two groups according to a predicate function, which specifies which group an element in the input collection belongs to. If the predicate function returns a truthy value, the collection element belongs to the first group; otherwise, it belongs to the second group.\r\n\r\nUse `Array.prototype.reduce()` and `Array.prototype.push()` to add elements to groups, based on the value returned by `fn` for each element.", + "codeBlocks": { + "es6": "const bifurcateBy = (arr, fn) =>\r\n arr.reduce((acc, val, i) => (acc[fn(val, i) ? 0 : 1].push(val), acc), [[], []]);", + "es5": "\"use strict\";\n\nvar bifurcateBy = function bifurcateBy(arr, fn) {\n return arr.reduce(function (acc, val, i) {\n return acc[fn(val, i) ? 0 : 1].push(val), acc;\n }, [[], []]);\n};", + "example": "bifurcateBy(['beep', 'boop', 'foo', 'bar'], x => x[0] === 'b'); // [ ['beep', 'boop', 'bar'], ['foo'] ]" + }, "tags": [ "array", "function", @@ -270,7 +283,7 @@ }, "meta": { "archived": false, - "hash": "e09263bc0fa973e3e2435dfd61a764c0af080b73882f6c32b3534a5c4387fc43" + "hash": "b0a461c6da6f561d7a9fcb373adb622692480cc36650145d6d8f94e126f0f849" } }, { @@ -278,11 +291,12 @@ "type": "snippet", "attributes": { "fileName": "bind.md", - "text": "Creates a function that invokes `fn` with a given context, optionally adding any additional supplied parameters to the beginning of the arguments.\n\nReturn a `function` that uses `Function.prototype.apply()` to apply the given `context` to `fn`.\nUse `Array.prototype.concat()` to prepend any additional supplied parameters to the arguments.", - "codeBlocks": [ - "const bind = (fn, context, ...boundArgs) => (...args) => fn.apply(context, [...boundArgs, ...args]);", - "function greet(greeting, punctuation) {\n return greeting + ' ' + this.user + punctuation;\n}\nconst freddy = { user: 'fred' };\nconst freddyBound = bind(greet, freddy);\nconsole.log(freddyBound('hi', '!')); // 'hi fred!'" - ], + "text": "Creates a function that invokes `fn` with a given context, optionally adding any additional supplied parameters to the beginning of the arguments.\r\n\r\nReturn a `function` that uses `Function.prototype.apply()` to apply the given `context` to `fn`.\r\nUse `Array.prototype.concat()` to prepend any additional supplied parameters to the arguments.", + "codeBlocks": { + "es6": "const bind = (fn, context, ...boundArgs) => (...args) => fn.apply(context, [...boundArgs, ...args]);", + "es5": "\"use strict\";\n\nvar bind = function bind(fn, context) {\n for (var _len = arguments.length, boundArgs = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n boundArgs[_key - 2] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return fn.apply(context, boundArgs.concat(args));\n };\n};", + "example": "function greet(greeting, punctuation) {\r\n return greeting + ' ' + this.user + punctuation;\r\n}\r\nconst freddy = { user: 'fred' };\r\nconst freddyBound = bind(greet, freddy);\r\nconsole.log(freddyBound('hi', '!')); // 'hi fred!'" + }, "tags": [ "function", "object", @@ -291,7 +305,7 @@ }, "meta": { "archived": false, - "hash": "8ffda25a0268a6f772c6912d370248c9329561c1ce1ea941e0622136459f7ef5" + "hash": "d0bc023d8258b2cc336d66f27ec01986488ef2d8d2fd030491e47dae63900a6f" } }, { @@ -299,11 +313,12 @@ "type": "snippet", "attributes": { "fileName": "bindAll.md", - "text": "Binds methods of an object to the object itself, overwriting the existing method.\n\nUse `Array.prototype.forEach()` to return a `function` that uses `Function.prototype.apply()` to apply the given context (`obj`) to `fn` for each function specified.", - "codeBlocks": [ - "const bindAll = (obj, ...fns) =>\n fns.forEach(\n fn => (\n (f = obj[fn]),\n (obj[fn] = function() {\n return f.apply(obj);\n })\n )\n );", - "var view = {\n label: 'docs',\n click: function() {\n console.log('clicked ' + this.label);\n }\n};\nbindAll(view, 'click');\njQuery(element).on('click', view.click); // Logs 'clicked docs' when clicked." - ], + "text": "Binds methods of an object to the object itself, overwriting the existing method.\r\n\r\nUse `Array.prototype.forEach()` to return a `function` that uses `Function.prototype.apply()` to apply the given context (`obj`) to `fn` for each function specified.", + "codeBlocks": { + "es6": "const bindAll = (obj, ...fns) =>\r\n fns.forEach(\r\n fn => (\r\n (f = obj[fn]),\r\n (obj[fn] = function() {\r\n return f.apply(obj);\r\n })\r\n )\r\n );", + "es5": "\"use strict\";\n\nvar bindAll = function bindAll(obj) {\n for (var _len = arguments.length, fns = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n fns[_key - 1] = arguments[_key];\n }\n\n return fns.forEach(function (fn) {\n return f = obj[fn], obj[fn] = function () {\n return f.apply(obj);\n };\n });\n};", + "example": "var view = {\r\n label: 'docs',\r\n click: function() {\r\n console.log('clicked ' + this.label);\r\n }\r\n};\r\nbindAll(view, 'click');\r\njQuery(element).on('click', view.click); // Logs 'clicked docs' when clicked." + }, "tags": [ "object", "function", @@ -312,7 +327,7 @@ }, "meta": { "archived": false, - "hash": "3a8deee8bdc80c3df541ee5a9c31591af4c451362c2d86344ae4c937a04b2d12" + "hash": "1c10caabd13b779a41850342f76585848c645c36950d3f068f373a53f3ee1f6f" } }, { @@ -320,11 +335,12 @@ "type": "snippet", "attributes": { "fileName": "bindKey.md", - "text": "Creates a function that invokes the method at a given key of an object, optionally adding any additional supplied parameters to the beginning of the arguments.\n\nReturn a `function` that uses `Function.prototype.apply()` to bind `context[fn]` to `context`.\nUse the spread operator (`...`) to prepend any additional supplied parameters to the arguments.", - "codeBlocks": [ - "const bindKey = (context, fn, ...boundArgs) => (...args) =>\n context[fn].apply(context, [...boundArgs, ...args]);", - "const freddy = {\n user: 'fred',\n greet: function(greeting, punctuation) {\n return greeting + ' ' + this.user + punctuation;\n }\n};\nconst freddyBound = bindKey(freddy, 'greet');\nconsole.log(freddyBound('hi', '!')); // 'hi fred!'" - ], + "text": "Creates a function that invokes the method at a given key of an object, optionally adding any additional supplied parameters to the beginning of the arguments.\r\n\r\nReturn a `function` that uses `Function.prototype.apply()` to bind `context[fn]` to `context`.\r\nUse the spread operator (`...`) to prepend any additional supplied parameters to the arguments.", + "codeBlocks": { + "es6": "const bindKey = (context, fn, ...boundArgs) => (...args) =>\r\n context[fn].apply(context, [...boundArgs, ...args]);", + "es5": "\"use strict\";\n\nvar bindKey = function bindKey(context, fn) {\n for (var _len = arguments.length, boundArgs = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n boundArgs[_key - 2] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return context[fn].apply(context, boundArgs.concat(args));\n };\n};", + "example": "const freddy = {\r\n user: 'fred',\r\n greet: function(greeting, punctuation) {\r\n return greeting + ' ' + this.user + punctuation;\r\n }\r\n};\r\nconst freddyBound = bindKey(freddy, 'greet');\r\nconsole.log(freddyBound('hi', '!')); // 'hi fred!'" + }, "tags": [ "function", "object", @@ -333,7 +349,7 @@ }, "meta": { "archived": false, - "hash": "28b9b15af52a4abd2caaba94c5ceeea765ec89982122104cf5dc111c3f56383f" + "hash": "12681c9545cf304d7b507938150f48a33d321e2b0338d965aadd3bf0165a5ae3" } }, { @@ -341,11 +357,12 @@ "type": "snippet", "attributes": { "fileName": "binomialCoefficient.md", - "text": "Evaluates the binomial coefficient of two integers `n` and `k`.\n\nUse `Number.isNaN()` to check if any of the two values is `NaN`.\nCheck if `k` is less than `0`, greater than or equal to `n`, equal to `1` or `n - 1` and return the appropriate result.\nCheck if `n - k` is less than `k` and switch their values accordingly.\nLoop from `2` through `k` and calculate the binomial coefficient.\nUse `Math.round()` to account for rounding errors in the calculation.", - "codeBlocks": [ - "const binomialCoefficient = (n, k) => {\n if (Number.isNaN(n) || Number.isNaN(k)) return NaN;\n if (k < 0 || k > n) return 0;\n if (k === 0 || k === n) return 1;\n if (k === 1 || k === n - 1) return n;\n if (n - k < k) k = n - k;\n let res = n;\n for (let j = 2; j <= k; j++) res *= (n - j + 1) / j;\n return Math.round(res);\n};", - "binomialCoefficient(8, 2); // 28" - ], + "text": "Evaluates the binomial coefficient of two integers `n` and `k`.\r\n\r\nUse `Number.isNaN()` to check if any of the two values is `NaN`.\r\nCheck if `k` is less than `0`, greater than or equal to `n`, equal to `1` or `n - 1` and return the appropriate result.\r\nCheck if `n - k` is less than `k` and switch their values accordingly.\r\nLoop from `2` through `k` and calculate the binomial coefficient.\r\nUse `Math.round()` to account for rounding errors in the calculation.", + "codeBlocks": { + "es6": "const binomialCoefficient = (n, k) => {\r\n if (Number.isNaN(n) || Number.isNaN(k)) return NaN;\r\n if (k < 0 || k > n) return 0;\r\n if (k === 0 || k === n) return 1;\r\n if (k === 1 || k === n - 1) return n;\r\n if (n - k < k) k = n - k;\r\n let res = n;\r\n for (let j = 2; j <= k; j++) res *= (n - j + 1) / j;\r\n return Math.round(res);\r\n};", + "es5": "\"use strict\";\n\nvar binomialCoefficient = function binomialCoefficient(n, k) {\n if (Number.isNaN(n) || Number.isNaN(k)) return NaN;\n if (k < 0 || k > n) return 0;\n if (k === 0 || k === n) return 1;\n if (k === 1 || k === n - 1) return n;\n if (n - k < k) k = n - k;\n var res = n;\n\n for (var j = 2; j <= k; j++) {\n res *= (n - j + 1) / j;\n }\n\n return Math.round(res);\n};", + "example": "binomialCoefficient(8, 2); // 28" + }, "tags": [ "math", "intermediate" @@ -353,7 +370,7 @@ }, "meta": { "archived": false, - "hash": "0fca1b134c1a13fef45cde62e8f04c70361b477be88222aa7d81ac5d153b3a13" + "hash": "66414040b3a4dfca8312e0c0d4b276ded342b18abd9a14a0a90cec2983bc0b7c" } }, { @@ -361,11 +378,12 @@ "type": "snippet", "attributes": { "fileName": "bottomVisible.md", - "text": "Returns `true` if the bottom of the page is visible, `false` otherwise.\n\nUse `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of the page is visible.", - "codeBlocks": [ - "const bottomVisible = () =>\n document.documentElement.clientHeight + window.scrollY >=\n (document.documentElement.scrollHeight || document.documentElement.clientHeight);", - "bottomVisible(); // true" - ], + "text": "Returns `true` if the bottom of the page is visible, `false` otherwise.\r\n\r\nUse `scrollY`, `scrollHeight` and `clientHeight` to determine if the bottom of the page is visible.", + "codeBlocks": { + "es6": "const bottomVisible = () =>\r\n document.documentElement.clientHeight + window.scrollY >=\r\n (document.documentElement.scrollHeight || document.documentElement.clientHeight);", + "es5": "\"use strict\";\n\nvar bottomVisible = function bottomVisible() {\n return document.documentElement.clientHeight + window.scrollY >= (document.documentElement.scrollHeight || document.documentElement.clientHeight);\n};", + "example": "bottomVisible(); // true" + }, "tags": [ "browser", "intermediate" @@ -373,7 +391,7 @@ }, "meta": { "archived": false, - "hash": "a40dc0094d62d44e7d086513bca6afb74734dd1e5e56a0ce66e91517b459f50c" + "hash": "d4e645f834e7eb763b85bc99289c983f9e1d4314257701c94cea84ac8806ca3d" } }, { @@ -381,11 +399,12 @@ "type": "snippet", "attributes": { "fileName": "btoa.md", - "text": "Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data.\n\nCreate a `Buffer` for the given string with binary encoding and use `Buffer.toString('base64')` to return the encoded string.", - "codeBlocks": [ - "const btoa = str => Buffer.from(str, 'binary').toString('base64');", - "btoa('foobar'); // 'Zm9vYmFy'" - ], + "text": "Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data.\r\n\r\nCreate a `Buffer` for the given string with binary encoding and use `Buffer.toString('base64')` to return the encoded string.", + "codeBlocks": { + "es6": "const btoa = str => Buffer.from(str, 'binary').toString('base64');", + "es5": "\"use strict\";\n\nvar btoa = function btoa(str) {\n return Buffer.from(str, 'binary').toString('base64');\n};", + "example": "btoa('foobar'); // 'Zm9vYmFy'" + }, "tags": [ "node", "string", @@ -395,7 +414,7 @@ }, "meta": { "archived": false, - "hash": "021ec24497f79ba1e18b01f1fc5a7498d21adbb4f556ac026afa817f10d46ae9" + "hash": "24ca94284f2c3d83ed2ae5ea5c185b6dd84417ad7e0effb047c32847825d6550" } }, { @@ -403,11 +422,12 @@ "type": "snippet", "attributes": { "fileName": "byteSize.md", - "text": "Returns the length of a string in bytes.\n\nConvert a given string to a [`Blob` Object](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and find its `size`.", - "codeBlocks": [ - "const byteSize = str => new Blob([str]).size;", - "byteSize('😀'); // 4\nbyteSize('Hello World'); // 11" - ], + "text": "Returns the length of a string in bytes.\r\n\r\nConvert a given string to a [`Blob` Object](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and find its `size`.", + "codeBlocks": { + "es6": "const byteSize = str => new Blob([str]).size;", + "es5": "\"use strict\";\n\nvar byteSize = function byteSize(str) {\n return new Blob([str]).size;\n};", + "example": "byteSize('😀'); // 4\r\nbyteSize('Hello World'); // 11" + }, "tags": [ "string", "beginner" @@ -415,7 +435,7 @@ }, "meta": { "archived": false, - "hash": "5a7936489c66b541e2e1caf4254540a75557e049d1a10c7da0b38bd3b247f00b" + "hash": "8608c5658af598504bc2e20d329c674cd989540907598e372c75241179cff029" } }, { @@ -424,10 +444,11 @@ "attributes": { "fileName": "call.md", "text": "Given a key and a set of arguments, call them when given a context. Primarily useful in composition.\r\n\r\nUse a closure to call a stored key with stored arguments.", - "codeBlocks": [ - "const call = (key, ...args) => context => context[key](...args);", - "Promise.resolve([1, 2, 3])\n .then(call('map', x => 2 * x))\n .then(console.log); // [ 2, 4, 6 ]\nconst map = call.bind(null, 'map');\nPromise.resolve([1, 2, 3])\n .then(map(x => 2 * x))\n .then(console.log); // [ 2, 4, 6 ]" - ], + "codeBlocks": { + "es6": "const call = (key, ...args) => context => context[key](...args);", + "es5": "\"use strict\";\n\nvar call = function call(key) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return function (context) {\n return context[key].apply(context, args);\n };\n};", + "example": "Promise.resolve([1, 2, 3])\n .then(call('map', x => 2 * x))\n .then(console.log); // [ 2, 4, 6 ]\nconst map = call.bind(null, 'map');\nPromise.resolve([1, 2, 3])\n .then(map(x => 2 * x))\n .then(console.log); // [ 2, 4, 6 ]" + }, "tags": [ "adapter", "function", @@ -444,11 +465,12 @@ "type": "snippet", "attributes": { "fileName": "capitalize.md", - "text": "Capitalizes the first letter of a string.\n\nUse array destructuring and `String.prototype.toUpperCase()` to capitalize first letter, `...rest` to get array of characters after first letter and then `Array.prototype.join('')` to make it a string again.\nOmit the `lowerRest` parameter to keep the rest of the string intact, or set it to `true` to convert to lowercase.", - "codeBlocks": [ - "const capitalize = ([first, ...rest], lowerRest = false) =>\n first.toUpperCase() + (lowerRest ? rest.join('').toLowerCase() : rest.join(''));", - "capitalize('fooBar'); // 'FooBar'\ncapitalize('fooBar', true); // 'Foobar'" - ], + "text": "Capitalizes the first letter of a string.\r\n\r\nUse array destructuring and `String.prototype.toUpperCase()` to capitalize first letter, `...rest` to get array of characters after first letter and then `Array.prototype.join('')` to make it a string again.\r\nOmit the `lowerRest` parameter to keep the rest of the string intact, or set it to `true` to convert to lowercase.", + "codeBlocks": { + "es6": "const capitalize = ([first, ...rest], lowerRest = false) =>\r\n first.toUpperCase() + (lowerRest ? rest.join('').toLowerCase() : rest.join(''));", + "es5": "\"use strict\";\n\nfunction _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nvar capitalize = function capitalize(_ref) {\n var _ref2 = _toArray(_ref),\n first = _ref2[0],\n rest = _ref2.slice(1);\n\n var lowerRest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n return first.toUpperCase() + (lowerRest ? rest.join('').toLowerCase() : rest.join(''));\n};", + "example": "capitalize('fooBar'); // 'FooBar'\r\ncapitalize('fooBar', true); // 'Foobar'" + }, "tags": [ "string", "array", @@ -457,7 +479,7 @@ }, "meta": { "archived": false, - "hash": "b9e5abf13f56d58cb8d7abe800d90956a6b4d1954ac81b08f671ce994319dff6" + "hash": "c1e2fa38cb32a0c6aeb5fdd61116095a2f131e0471d904cd0272892356a0b968" } }, { @@ -465,11 +487,12 @@ "type": "snippet", "attributes": { "fileName": "capitalizeEveryWord.md", - "text": "Capitalizes the first letter of every word in a string.\n\nUse `String.prototype.replace()` to match the first character of each word and `String.prototype.toUpperCase()` to capitalize it.", - "codeBlocks": [ - "const capitalizeEveryWord = str => str.replace(/\\b[a-z]/g, char => char.toUpperCase());", - "capitalizeEveryWord('hello world!'); // 'Hello World!'" - ], + "text": "Capitalizes the first letter of every word in a string.\r\n\r\nUse `String.prototype.replace()` to match the first character of each word and `String.prototype.toUpperCase()` to capitalize it.", + "codeBlocks": { + "es6": "const capitalizeEveryWord = str => str.replace(/\\b[a-z]/g, char => char.toUpperCase());", + "es5": "\"use strict\";\n\nvar capitalizeEveryWord = function capitalizeEveryWord(str) {\n return str.replace(/\\b[a-z]/g, function (char) {\n return char.toUpperCase();\n });\n};", + "example": "capitalizeEveryWord('hello world!'); // 'Hello World!'" + }, "tags": [ "string", "regexp", @@ -478,7 +501,7 @@ }, "meta": { "archived": false, - "hash": "4ebf63ac48859f5011de39740d2650f7929257c9d1d468d1789e45f6a33b577e" + "hash": "060d09969ecbc08a609e546c9dd30c984d840f44fd55d2cc6d1d31263e4c8d56" } }, { @@ -486,11 +509,12 @@ "type": "snippet", "attributes": { "fileName": "castArray.md", - "text": "Casts the provided value as an array if it's not one.\n\nUse `Array.prototype.isArray()` to determine if `val` is an array and return it as-is or encapsulated in an array accordingly.", - "codeBlocks": [ - "const castArray = val => (Array.isArray(val) ? val : [val]);", - "castArray('foo'); // ['foo']\ncastArray([1]); // [1]" - ], + "text": "Casts the provided value as an array if it's not one.\r\n\r\nUse `Array.prototype.isArray()` to determine if `val` is an array and return it as-is or encapsulated in an array accordingly.", + "codeBlocks": { + "es6": "const castArray = val => (Array.isArray(val) ? val : [val]);", + "es5": "\"use strict\";\n\nvar castArray = function castArray(val) {\n return Array.isArray(val) ? val : [val];\n};", + "example": "castArray('foo'); // ['foo']\r\ncastArray([1]); // [1]" + }, "tags": [ "utility", "array", @@ -500,7 +524,7 @@ }, "meta": { "archived": false, - "hash": "a6add43aea896ec237dfada48cfe67edab4b111e290472da8ff2c0ece70f2320" + "hash": "6fef4b839b04d3df22e1b9b34215f5d3a93edab0a7eb0b88dca291a427df04a0" } }, { @@ -508,11 +532,12 @@ "type": "snippet", "attributes": { "fileName": "chainAsync.md", - "text": "Chains asynchronous functions.\n\nLoop through an array of functions containing asynchronous events, calling `next` when each asynchronous event has completed.", - "codeBlocks": [ - "const chainAsync = fns => {\n let curr = 0;\n const next = () => fns[curr++](next);\n next();\n};", - "chainAsync([\n next => {\n console.log('0 seconds');\n setTimeout(next, 1000);\n },\n next => {\n console.log('1 second');\n }\n]);" - ], + "text": "Chains asynchronous functions.\r\n\r\nLoop through an array of functions containing asynchronous events, calling `next` when each asynchronous event has completed.", + "codeBlocks": { + "es6": "const chainAsync = fns => {\r\n let curr = 0;\r\n const next = () => fns[curr++](next);\r\n next();\r\n};", + "es5": "\"use strict\";\n\nvar chainAsync = function chainAsync(fns) {\n var curr = 0;\n\n var next = function next() {\n return fns[curr++](next);\n };\n\n next();\n};", + "example": "chainAsync([\r\n next => {\r\n console.log('0 seconds');\r\n setTimeout(next, 1000);\r\n },\r\n next => {\r\n console.log('1 second');\r\n }\r\n]);" + }, "tags": [ "function", "intermediate" @@ -520,7 +545,7 @@ }, "meta": { "archived": false, - "hash": "8c245a7fc94edffaf5cae4c28f37ed2e989772a9663a5f5bce98147f708a712e" + "hash": "8b6d33fba612cac3b4e97a42fc7bfaa5b52fc96a47d6e580528f6aeae789606d" } }, { @@ -528,11 +553,12 @@ "type": "snippet", "attributes": { "fileName": "chunk.md", - "text": "Chunks an array into smaller arrays of a specified size.\n\nUse `Array.from()` to create a new array, that fits the number of chunks that will be produced.\nUse `Array.prototype.slice()` to map each element of the new array to a chunk the length of `size`.\nIf the original array can't be split evenly, the final chunk will contain the remaining elements.", - "codeBlocks": [ - "const chunk = (arr, size) =>\n Array.from({ length: Math.ceil(arr.length / size) }, (v, i) =>\n arr.slice(i * size, i * size + size)\n );", - "chunk([1, 2, 3, 4, 5], 2); // [[1,2],[3,4],[5]]" - ], + "text": "Chunks an array into smaller arrays of a specified size.\r\n\r\nUse `Array.from()` to create a new array, that fits the number of chunks that will be produced.\r\nUse `Array.prototype.slice()` to map each element of the new array to a chunk the length of `size`.\r\nIf the original array can't be split evenly, the final chunk will contain the remaining elements.", + "codeBlocks": { + "es6": "const chunk = (arr, size) =>\r\n Array.from({ length: Math.ceil(arr.length / size) }, (v, i) =>\r\n arr.slice(i * size, i * size + size)\r\n );", + "es5": "\"use strict\";\n\nvar chunk = function chunk(arr, size) {\n return Array.from({\n length: Math.ceil(arr.length / size)\n }, function (v, i) {\n return arr.slice(i * size, i * size + size);\n });\n};", + "example": "chunk([1, 2, 3, 4, 5], 2); // [[1,2],[3,4],[5]]" + }, "tags": [ "array", "intermediate" @@ -540,7 +566,7 @@ }, "meta": { "archived": false, - "hash": "c9c64e0f8c0ec964e32434d873b28d0803a60737eceb19c67ab86edb3f352d48" + "hash": "8bcbcf5500940d591c2d1497a04964ec04b35730833742353cfbd27a992fecd0" } }, { @@ -548,11 +574,12 @@ "type": "snippet", "attributes": { "fileName": "clampNumber.md", - "text": "Clamps `num` within the inclusive range specified by the boundary values `a` and `b`.\n\nIf `num` falls within the range, return `num`.\nOtherwise, return the nearest number in the range.", - "codeBlocks": [ - "const clampNumber = (num, a, b) => Math.max(Math.min(num, Math.max(a, b)), Math.min(a, b));", - "clampNumber(2, 3, 5); // 3\nclampNumber(1, -1, -5); // -1" - ], + "text": "Clamps `num` within the inclusive range specified by the boundary values `a` and `b`.\r\n\r\nIf `num` falls within the range, return `num`.\r\nOtherwise, return the nearest number in the range.", + "codeBlocks": { + "es6": "const clampNumber = (num, a, b) => Math.max(Math.min(num, Math.max(a, b)), Math.min(a, b));", + "es5": "\"use strict\";\n\nvar clampNumber = function clampNumber(num, a, b) {\n return Math.max(Math.min(num, Math.max(a, b)), Math.min(a, b));\n};", + "example": "clampNumber(2, 3, 5); // 3\r\nclampNumber(1, -1, -5); // -1" + }, "tags": [ "math", "beginner" @@ -560,7 +587,7 @@ }, "meta": { "archived": false, - "hash": "8e63c143d08d73cae1038ca8c6622ddf728b661528b246b55d6eb3b1ae41fe76" + "hash": "a3eca18648e657fc0277f4b00d2a51cf7c4bf03eb695fc6ce9e4cad64e569490" } }, { @@ -568,11 +595,12 @@ "type": "snippet", "attributes": { "fileName": "cloneRegExp.md", - "text": "Clones a regular expression.\n\nUse `new RegExp()`, `RegExp.source` and `RegExp.flags` to clone the given regular expression.", - "codeBlocks": [ - "const cloneRegExp = regExp => new RegExp(regExp.source, regExp.flags);", - "const regExp = /lorem ipsum/gi;\nconst regExp2 = cloneRegExp(regExp); // /lorem ipsum/gi" - ], + "text": "Clones a regular expression.\r\n\r\nUse `new RegExp()`, `RegExp.source` and `RegExp.flags` to clone the given regular expression.", + "codeBlocks": { + "es6": "const cloneRegExp = regExp => new RegExp(regExp.source, regExp.flags);", + "es5": "\"use strict\";\n\nvar cloneRegExp = function cloneRegExp(regExp) {\n return new RegExp(regExp.source, regExp.flags);\n};", + "example": "const regExp = /lorem ipsum/gi;\r\nconst regExp2 = cloneRegExp(regExp); // /lorem ipsum/gi" + }, "tags": [ "utility", "regexp", @@ -581,7 +609,7 @@ }, "meta": { "archived": false, - "hash": "57532d74214897181db46b09dc0be86d26e9877785ec85c3acd1113d5371fa95" + "hash": "ee8e6e19269907273e58f0820bdbfc57022b6673453283058aedbbfc76586658" } }, { @@ -589,11 +617,12 @@ "type": "snippet", "attributes": { "fileName": "coalesce.md", - "text": "Returns the first non-null/undefined argument.\n\nUse `Array.prototype.find()` to return the first non `null`/`undefined` argument.", - "codeBlocks": [ - "const coalesce = (...args) => args.find(_ => ![undefined, null].includes(_));", - "coalesce(null, undefined, '', NaN, 'Waldo'); // \"\"" - ], + "text": "Returns the first non-null/undefined argument.\r\n\r\nUse `Array.prototype.find()` to return the first non `null`/`undefined` argument.", + "codeBlocks": { + "es6": "const coalesce = (...args) => args.find(_ => ![undefined, null].includes(_));", + "es5": "\"use strict\";\n\nvar coalesce = function coalesce() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.find(function (_) {\n return ![undefined, null].includes(_);\n });\n};", + "example": "coalesce(null, undefined, '', NaN, 'Waldo'); // \"\"" + }, "tags": [ "utility", "beginner" @@ -601,7 +630,7 @@ }, "meta": { "archived": false, - "hash": "3928d6f7c78cb72d1fe428be6bbdd5ee3ddcdb360b999d25048f84306e521918" + "hash": "29199c10609ed7d5e3e5491d7d81622de9521c2b76d2d220141f3abb97d9ee07" } }, { @@ -609,11 +638,12 @@ "type": "snippet", "attributes": { "fileName": "coalesceFactory.md", - "text": "Returns a customized coalesce function that returns the first argument that returns `true` from the provided argument validation function.\n\nUse `Array.prototype.find()` to return the first argument that returns `true` from the provided argument validation function.", - "codeBlocks": [ - "const coalesceFactory = valid => (...args) => args.find(valid);", - "const customCoalesce = coalesceFactory(_ => ![null, undefined, '', NaN].includes(_));\ncustomCoalesce(undefined, null, NaN, '', 'Waldo'); // \"Waldo\"" - ], + "text": "Returns a customized coalesce function that returns the first argument that returns `true` from the provided argument validation function.\r\n\r\nUse `Array.prototype.find()` to return the first argument that returns `true` from the provided argument validation function.", + "codeBlocks": { + "es6": "const coalesceFactory = valid => (...args) => args.find(valid);", + "es5": "\"use strict\";\n\nvar coalesceFactory = function coalesceFactory(valid) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.find(valid);\n };\n};", + "example": "const customCoalesce = coalesceFactory(_ => ![null, undefined, '', NaN].includes(_));\r\ncustomCoalesce(undefined, null, NaN, '', 'Waldo'); // \"Waldo\"" + }, "tags": [ "utility", "intermediate" @@ -621,7 +651,7 @@ }, "meta": { "archived": false, - "hash": "f6180d269df84f10e4642d5d52d442be990138b7114aef048f95eabd121c3738" + "hash": "69da8c5511c6c85eec38605ad9560b021d6fc3794cb47ec963987b783f48ad2f" } }, { @@ -630,10 +660,11 @@ "attributes": { "fileName": "collectInto.md", "text": "Changes a function that accepts an array into a variadic function.\r\n\r\nGiven a function, return a closure that collects all inputs into an array-accepting function.", - "codeBlocks": [ - "const collectInto = fn => (...args) => fn(args);", - "const Pall = collectInto(Promise.all.bind(Promise));\nlet p1 = Promise.resolve(1);\nlet p2 = Promise.resolve(2);\nlet p3 = new Promise(resolve => setTimeout(resolve, 2000, 3));\nPall(p1, p2, p3).then(console.log); // [1, 2, 3] (after about 2 seconds)" - ], + "codeBlocks": { + "es6": "const collectInto = fn => (...args) => fn(args);", + "es5": "\"use strict\";\n\nvar collectInto = function collectInto(fn) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return fn(args);\n };\n};", + "example": "const Pall = collectInto(Promise.all.bind(Promise));\nlet p1 = Promise.resolve(1);\nlet p2 = Promise.resolve(2);\nlet p3 = new Promise(resolve => setTimeout(resolve, 2000, 3));\nPall(p1, p2, p3).then(console.log); // [1, 2, 3] (after about 2 seconds)" + }, "tags": [ "adapter", "function", @@ -651,11 +682,12 @@ "type": "snippet", "attributes": { "fileName": "colorize.md", - "text": "Add special characters to text to print in color in the console (combined with `console.log()`).\n\nUse template literals and special characters to add the appropriate color code to the string output.\nFor background colors, add a special character that resets the background color at the end of the string.", - "codeBlocks": [ - "const colorize = (...args) => ({\n black: `\\x1b[30m${args.join(' ')}`,\n red: `\\x1b[31m${args.join(' ')}`,\n green: `\\x1b[32m${args.join(' ')}`,\n yellow: `\\x1b[33m${args.join(' ')}`,\n blue: `\\x1b[34m${args.join(' ')}`,\n magenta: `\\x1b[35m${args.join(' ')}`,\n cyan: `\\x1b[36m${args.join(' ')}`,\n white: `\\x1b[37m${args.join(' ')}`,\n bgBlack: `\\x1b[40m${args.join(' ')}\\x1b[0m`,\n bgRed: `\\x1b[41m${args.join(' ')}\\x1b[0m`,\n bgGreen: `\\x1b[42m${args.join(' ')}\\x1b[0m`,\n bgYellow: `\\x1b[43m${args.join(' ')}\\x1b[0m`,\n bgBlue: `\\x1b[44m${args.join(' ')}\\x1b[0m`,\n bgMagenta: `\\x1b[45m${args.join(' ')}\\x1b[0m`,\n bgCyan: `\\x1b[46m${args.join(' ')}\\x1b[0m`,\n bgWhite: `\\x1b[47m${args.join(' ')}\\x1b[0m`\n});", - "console.log(colorize('foo').red); // 'foo' (red letters)\nconsole.log(colorize('foo', 'bar').bgBlue); // 'foo bar' (blue background)\nconsole.log(colorize(colorize('foo').yellow, colorize('foo').green).bgWhite); // 'foo bar' (first word in yellow letters, second word in green letters, white background for both)" - ], + "text": "Add special characters to text to print in color in the console (combined with `console.log()`).\r\n\r\nUse template literals and special characters to add the appropriate color code to the string output.\r\nFor background colors, add a special character that resets the background color at the end of the string.", + "codeBlocks": { + "es6": "const colorize = (...args) => ({\r\n black: `\\x1b[30m${args.join(' ')}`,\r\n red: `\\x1b[31m${args.join(' ')}`,\r\n green: `\\x1b[32m${args.join(' ')}`,\r\n yellow: `\\x1b[33m${args.join(' ')}`,\r\n blue: `\\x1b[34m${args.join(' ')}`,\r\n magenta: `\\x1b[35m${args.join(' ')}`,\r\n cyan: `\\x1b[36m${args.join(' ')}`,\r\n white: `\\x1b[37m${args.join(' ')}`,\r\n bgBlack: `\\x1b[40m${args.join(' ')}\\x1b[0m`,\r\n bgRed: `\\x1b[41m${args.join(' ')}\\x1b[0m`,\r\n bgGreen: `\\x1b[42m${args.join(' ')}\\x1b[0m`,\r\n bgYellow: `\\x1b[43m${args.join(' ')}\\x1b[0m`,\r\n bgBlue: `\\x1b[44m${args.join(' ')}\\x1b[0m`,\r\n bgMagenta: `\\x1b[45m${args.join(' ')}\\x1b[0m`,\r\n bgCyan: `\\x1b[46m${args.join(' ')}\\x1b[0m`,\r\n bgWhite: `\\x1b[47m${args.join(' ')}\\x1b[0m`\r\n});", + "es5": "\"use strict\";\n\nvar colorize = function colorize() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return {\n black: \"\\x1B[30m\".concat(args.join(' ')),\n red: \"\\x1B[31m\".concat(args.join(' ')),\n green: \"\\x1B[32m\".concat(args.join(' ')),\n yellow: \"\\x1B[33m\".concat(args.join(' ')),\n blue: \"\\x1B[34m\".concat(args.join(' ')),\n magenta: \"\\x1B[35m\".concat(args.join(' ')),\n cyan: \"\\x1B[36m\".concat(args.join(' ')),\n white: \"\\x1B[37m\".concat(args.join(' ')),\n bgBlack: \"\\x1B[40m\".concat(args.join(' '), \"\\x1B[0m\"),\n bgRed: \"\\x1B[41m\".concat(args.join(' '), \"\\x1B[0m\"),\n bgGreen: \"\\x1B[42m\".concat(args.join(' '), \"\\x1B[0m\"),\n bgYellow: \"\\x1B[43m\".concat(args.join(' '), \"\\x1B[0m\"),\n bgBlue: \"\\x1B[44m\".concat(args.join(' '), \"\\x1B[0m\"),\n bgMagenta: \"\\x1B[45m\".concat(args.join(' '), \"\\x1B[0m\"),\n bgCyan: \"\\x1B[46m\".concat(args.join(' '), \"\\x1B[0m\"),\n bgWhite: \"\\x1B[47m\".concat(args.join(' '), \"\\x1B[0m\")\n };\n};", + "example": "console.log(colorize('foo').red); // 'foo' (red letters)\r\nconsole.log(colorize('foo', 'bar').bgBlue); // 'foo bar' (blue background)\r\nconsole.log(colorize(colorize('foo').yellow, colorize('foo').green).bgWhite); // 'foo bar' (first word in yellow letters, second word in green letters, white background for both)" + }, "tags": [ "node", "utility", @@ -665,7 +697,7 @@ }, "meta": { "archived": false, - "hash": "30fc60a8ab8c8005f7d31b82f4386ba17caa9fed690916581b2c18fa0a125215" + "hash": "4f42f00e7d675d21829a5fcd2ab2e3fa2058d1c1b1d6850ff28f2a424364593e" } }, { @@ -673,11 +705,12 @@ "type": "snippet", "attributes": { "fileName": "compact.md", - "text": "Removes falsey values from an array.\n\nUse `Array.prototype.filter()` to filter out falsey values (`false`, `null`, `0`, `\"\"`, `undefined`, and `NaN`).", - "codeBlocks": [ - "const compact = arr => arr.filter(Boolean);", - "compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); // [ 1, 2, 3, 'a', 's', 34 ]" - ], + "text": "Removes falsey values from an array.\r\n\r\nUse `Array.prototype.filter()` to filter out falsey values (`false`, `null`, `0`, `\"\"`, `undefined`, and `NaN`).", + "codeBlocks": { + "es6": "const compact = arr => arr.filter(Boolean);", + "es5": "\"use strict\";\n\nvar compact = function compact(arr) {\n return arr.filter(Boolean);\n};", + "example": "compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); // [ 1, 2, 3, 'a', 's', 34 ]" + }, "tags": [ "array", "beginner" @@ -685,7 +718,7 @@ }, "meta": { "archived": false, - "hash": "0f631b67b8460ed99917ff1468051e1e075ef02b280838ec14ad3fede2f48c7f" + "hash": "8215bb36c367643c3e3f9db8af00d5d5067c95704f528864182a43d393faaef0" } }, { @@ -693,11 +726,12 @@ "type": "snippet", "attributes": { "fileName": "compose.md", - "text": "Performs right-to-left function composition.\n\nUse `Array.prototype.reduce()` to perform right-to-left function composition.\nThe last (rightmost) function can accept one or more arguments; the remaining functions must be unary.", - "codeBlocks": [ - "const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args)));", - "const add5 = x => x + 5;\nconst multiply = (x, y) => x * y;\nconst multiplyAndAdd5 = compose(\n add5,\n multiply\n);\nmultiplyAndAdd5(5, 2); // 15" - ], + "text": "Performs right-to-left function composition.\r\n\r\nUse `Array.prototype.reduce()` to perform right-to-left function composition.\r\nThe last (rightmost) function can accept one or more arguments; the remaining functions must be unary.", + "codeBlocks": { + "es6": "const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args)));", + "es5": "\"use strict\";\n\nvar compose = function compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return fns.reduce(function (f, g) {\n return function () {\n return f(g.apply(void 0, arguments));\n };\n });\n};", + "example": "const add5 = x => x + 5;\r\nconst multiply = (x, y) => x * y;\r\nconst multiplyAndAdd5 = compose(\r\n add5,\r\n multiply\r\n);\r\nmultiplyAndAdd5(5, 2); // 15" + }, "tags": [ "function", "intermediate" @@ -705,7 +739,7 @@ }, "meta": { "archived": false, - "hash": "6e9c4e34847a623fbf069fc1d64208178e9f992c7239bc80973512174a9242ff" + "hash": "d7aa6d5f12cb3d1c2dce4b16f4f96196aa26706583c994282509703735a2ce64" } }, { @@ -713,11 +747,12 @@ "type": "snippet", "attributes": { "fileName": "composeRight.md", - "text": "Performs left-to-right function composition.\n\nUse `Array.prototype.reduce()` to perform left-to-right function composition.\nThe first (leftmost) function can accept one or more arguments; the remaining functions must be unary.", - "codeBlocks": [ - "const composeRight = (...fns) => fns.reduce((f, g) => (...args) => g(f(...args)));", - "const add = (x, y) => x + y;\nconst square = x => x * x;\nconst addAndSquare = composeRight(add, square);\naddAndSquare(1, 2); // 9" - ], + "text": "Performs left-to-right function composition.\r\n\r\nUse `Array.prototype.reduce()` to perform left-to-right function composition.\r\nThe first (leftmost) function can accept one or more arguments; the remaining functions must be unary.", + "codeBlocks": { + "es6": "const composeRight = (...fns) => fns.reduce((f, g) => (...args) => g(f(...args)));", + "es5": "\"use strict\";\n\nvar composeRight = function composeRight() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return fns.reduce(function (f, g) {\n return function () {\n return g(f.apply(void 0, arguments));\n };\n });\n};", + "example": "const add = (x, y) => x + y;\r\nconst square = x => x * x;\r\nconst addAndSquare = composeRight(add, square);\r\naddAndSquare(1, 2); // 9" + }, "tags": [ "function", "intermediate" @@ -725,7 +760,7 @@ }, "meta": { "archived": false, - "hash": "6e78bb3feef4d2fab6dbfced1c5f617869ea1c9f25b909d96dcfd7619df84aeb" + "hash": "08e9a82139b17ce4fcbd5c55e38fcaec116c8f81fc321339c19e0d9946941a57" } }, { @@ -733,11 +768,12 @@ "type": "snippet", "attributes": { "fileName": "converge.md", - "text": "Accepts a converging function and a list of branching functions and returns a function that applies each branching function to the arguments and the results of the branching functions are passed as arguments to the converging function.\n\nUse `Array.prototype.map()` and `Function.prototype.apply()` to apply each function to the given arguments.\nUse the spread operator (`...`) to call `coverger` with the results of all other functions.", - "codeBlocks": [ - "const converge = (converger, fns) => (...args) => converger(...fns.map(fn => fn.apply(null, args)));", - "const average = converge((a, b) => a / b, [\n arr => arr.reduce((a, v) => a + v, 0),\n arr => arr.length\n]);\naverage([1, 2, 3, 4, 5, 6, 7]); // 4" - ], + "text": "Accepts a converging function and a list of branching functions and returns a function that applies each branching function to the arguments and the results of the branching functions are passed as arguments to the converging function.\r\n\r\nUse `Array.prototype.map()` and `Function.prototype.apply()` to apply each function to the given arguments.\r\nUse the spread operator (`...`) to call `coverger` with the results of all other functions.", + "codeBlocks": { + "es6": "const converge = (converger, fns) => (...args) => converger(...fns.map(fn => fn.apply(null, args)));", + "es5": "\"use strict\";\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }\n\nvar converge = function converge(converger, fns) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return converger.apply(void 0, _toConsumableArray(fns.map(function (fn) {\n return fn.apply(null, args);\n })));\n };\n};", + "example": "const average = converge((a, b) => a / b, [\r\n arr => arr.reduce((a, v) => a + v, 0),\r\n arr => arr.length\r\n]);\r\naverage([1, 2, 3, 4, 5, 6, 7]); // 4" + }, "tags": [ "function", "intermediate" @@ -745,7 +781,7 @@ }, "meta": { "archived": false, - "hash": "5f363fa3bb93198f77488fc587bf8a124a04116348a81585d4b4a45b9fcb9989" + "hash": "75104822649aeb0f500d7092e0a8c68d9eca2ce9f539888a98e3ac14b7d21f17" } }, { @@ -753,11 +789,12 @@ "type": "snippet", "attributes": { "fileName": "copyToClipboard.md", - "text": "⚠️ **NOTICE:** The same functionality can be easily implemented by using the new asynchronous Clipboard API, which is still experimental but should be used in the future instead of this snippet. Find out more about it [here](https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard).\n\nCopy a string to the clipboard. \nOnly works as a result of user action (i.e. inside a `click` event listener).\n\nCreate a new `