diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 790db7045..13f05c6e6 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -12,7 +12,8 @@ ], "tags": [ "array", - "function" + "function", + "beginner" ] }, "meta": { @@ -32,7 +33,8 @@ ], "tags": [ "array", - "function" + "function", + "beginner" ] }, "meta": { @@ -52,7 +54,8 @@ ], "tags": [ "array", - "function" + "function", + "beginner" ] }, "meta": { @@ -71,7 +74,8 @@ "approximatelyEqual(Math.PI / 2.0, 1.5708); // true" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -92,7 +96,8 @@ "tags": [ "array", "string", - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -112,7 +117,8 @@ ], "tags": [ "browser", - "array" + "array", + "intermediate" ] }, "meta": { @@ -132,7 +138,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -153,7 +160,8 @@ "tags": [ "node", "string", - "utility" + "utility", + "beginner" ] }, "meta": { @@ -172,7 +180,8 @@ "var elements = attempt(function(selector) {\n return document.querySelectorAll(selector);\n}, '>_>');\nif (elements instanceof Error) elements = []; // elements = []" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -192,7 +201,8 @@ ], "tags": [ "math", - "array" + "array", + "beginner" ] }, "meta": { @@ -213,7 +223,8 @@ "tags": [ "math", "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -232,7 +243,8 @@ "bifurcate(['beep', 'boop', 'foo', 'bar'], [true, true, false, true]); // [ ['beep', 'boop', 'bar'], ['foo'] ]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -252,7 +264,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -272,7 +285,8 @@ ], "tags": [ "function", - "object" + "object", + "intermediate" ] }, "meta": { @@ -292,7 +306,8 @@ ], "tags": [ "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -312,7 +327,8 @@ ], "tags": [ "function", - "object" + "object", + "intermediate" ] }, "meta": { @@ -331,7 +347,8 @@ "binomialCoefficient(8, 2); // 28" ], "tags": [ - "math" + "math", + "intermediate" ] }, "meta": { @@ -350,7 +367,8 @@ "bottomVisible(); // true" ], "tags": [ - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -371,7 +389,8 @@ "tags": [ "node", "string", - "utility" + "utility", + "beginner" ] }, "meta": { @@ -390,7 +409,8 @@ "byteSize('😀'); // 4\nbyteSize('Hello World'); // 11" ], "tags": [ - "string" + "string", + "beginner" ] }, "meta": { @@ -410,7 +430,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -430,7 +451,8 @@ ], "tags": [ "string", - "array" + "array", + "intermediate" ] }, "meta": { @@ -450,7 +472,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -471,7 +494,8 @@ "tags": [ "utility", "array", - "type" + "type", + "beginner" ] }, "meta": { @@ -490,7 +514,8 @@ "chainAsync([\n next => {\n console.log('0 seconds');\n setTimeout(next, 1000);\n },\n next => {\n console.log('1 second');\n }\n]);" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -509,7 +534,8 @@ "chunk([1, 2, 3, 4, 5], 2); // [[1,2],[3,4],[5]]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -528,7 +554,8 @@ "clampNumber(2, 3, 5); // 3\nclampNumber(1, -1, -5); // -1" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -548,7 +575,8 @@ ], "tags": [ "utility", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -567,7 +595,8 @@ "coalesce(null, undefined, '', NaN, 'Waldo'); // \"\"" ], "tags": [ - "utility" + "utility", + "beginner" ] }, "meta": { @@ -586,7 +615,8 @@ "const customCoalesce = coalesceFactory(_ => ![null, undefined, '', NaN].includes(_));\ncustomCoalesce(undefined, null, NaN, '', 'Waldo'); // \"Waldo\"" ], "tags": [ - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -607,7 +637,8 @@ "tags": [ "adapter", "function", - "array" + "array", + "intermediate" ] }, "meta": { @@ -628,7 +659,8 @@ "tags": [ "node", "utility", - "string" + "string", + "intermediate" ] }, "meta": { @@ -647,7 +679,8 @@ "compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); // [ 1, 2, 3, 'a', 's', 34 ]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -666,7 +699,8 @@ "const add5 = x => x + 5;\nconst multiply = (x, y) => x * y;\nconst multiplyAndAdd5 = compose(\n add5,\n multiply\n);\nmultiplyAndAdd5(5, 2); // 15" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -685,7 +719,8 @@ "const add = (x, y) => x + y;\nconst square = x => x * x;\nconst addAndSquare = composeRight(add, square);\naddAndSquare(1, 2); // 9" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -704,7 +739,8 @@ "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" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -745,7 +781,8 @@ ], "tags": [ "array", - "object" + "object", + "intermediate" ] }, "meta": { @@ -784,7 +821,8 @@ "countOccurrences([1, 1, 2, 1, 2, 3], 1); // 3" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -804,7 +842,8 @@ ], "tags": [ "browser", - "utility" + "utility", + "beginner" ] }, "meta": { @@ -846,7 +885,8 @@ "tags": [ "string", "array", - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -888,7 +928,8 @@ ], "tags": [ "browser", - "url" + "url", + "beginner" ] }, "meta": { @@ -908,7 +949,8 @@ ], "tags": [ "function", - "recursion" + "recursion", + "intermediate" ] }, "meta": { @@ -927,7 +969,8 @@ "window.addEventListener(\n 'resize',\n debounce(() => {\n console.log(window.innerWidth);\n console.log(window.innerHeight);\n }, 250)\n); // Will log the window dimensions at most every 250ms" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -947,7 +990,8 @@ ], "tags": [ "string", - "array" + "array", + "intermediate" ] }, "meta": { @@ -967,7 +1011,8 @@ ], "tags": [ "object", - "recursion" + "recursion", + "intermediate" ] }, "meta": { @@ -987,7 +1032,8 @@ ], "tags": [ "array", - "recursion" + "recursion", + "intermediate" ] }, "meta": { @@ -1007,7 +1053,8 @@ ], "tags": [ "object", - "recursion" + "recursion", + "intermediate" ] }, "meta": { @@ -1026,7 +1073,8 @@ "defaults({ a: 1 }, { b: 2 }, { b: 6 }, { a: 3 }); // { a: 1, b: 2 }" ], "tags": [ - "object" + "object", + "intermediate" ] }, "meta": { @@ -1045,7 +1093,8 @@ "// Example A:\ndefer(console.log, 'a'), console.log('b'); // logs 'b' then 'a'\n\n// Example B:\ndocument.querySelector('#someElement').innerHTML = 'Hello';\nlongRunningFunction(); //Browser will not update the HTML until this has finished\ndefer(longRunningFunction); // Browser will update the HTML then run the function" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -1064,7 +1113,8 @@ "degreesToRads(90.0); // ~1.5708" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -1083,7 +1133,8 @@ "delay(\n function(text) {\n console.log(text);\n },\n 1000,\n 'later'\n); // Logs 'later' after one second." ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -1102,7 +1153,8 @@ "detectDeviceType(); // \"Mobile\" or \"Desktop\"" ], "tags": [ - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -1122,7 +1174,8 @@ ], "tags": [ "array", - "math" + "math", + "beginner" ] }, "meta": { @@ -1142,7 +1195,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1162,7 +1216,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1182,7 +1237,8 @@ ], "tags": [ "object", - "recursion" + "recursion", + "intermediate" ] }, "meta": { @@ -1202,7 +1258,8 @@ ], "tags": [ "math", - "array" + "array", + "beginner" ] }, "meta": { @@ -1221,7 +1278,8 @@ "distance(1, 1, 2, 3); // 2.23606797749979" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -1240,7 +1298,8 @@ "drop([1, 2, 3]); // [2,3]\ndrop([1, 2, 3], 2); // [3]\ndrop([1, 2, 3], 42); // []" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -1259,7 +1318,8 @@ "dropRight([1, 2, 3]); // [1,2]\ndropRight([1, 2, 3], 2); // [1]\ndropRight([1, 2, 3], 42); // []" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -1279,7 +1339,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1299,7 +1360,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1318,7 +1380,8 @@ "elementContains(document.querySelector('head'), document.querySelector('title')); // true\nelementContains(document.querySelector('body'), document.querySelector('body')); // false" ], "tags": [ - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -1337,7 +1400,8 @@ "// e.g. 100x100 viewport and a 10x10px element at position {top: -1, left: 0, bottom: 9, right: 10}\nelementIsVisibleInViewport(el); // false - (not fully visible)\nelementIsVisibleInViewport(el, true); // true - (partially visible)" ], "tags": [ - "browser" + "browser", + "advanced" ] }, "meta": { @@ -1401,7 +1465,8 @@ "tags": [ "string", "browser", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -1421,7 +1486,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -1440,7 +1506,8 @@ "everyNth([1, 2, 3, 4, 5, 6], 2); // [ 2, 4, 6 ]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -1460,7 +1527,8 @@ ], "tags": [ "utility", - "string" + "string", + "intermediate" ] }, "meta": { @@ -1480,7 +1548,8 @@ ], "tags": [ "math", - "recursion" + "recursion", + "beginner" ] }, "meta": { @@ -1500,7 +1569,8 @@ ], "tags": [ "math", - "array" + "array", + "beginner" ] }, "meta": { @@ -1519,7 +1589,8 @@ "filterNonUnique([1, 2, 2, 3, 4, 4, 5]); // [1,3,5]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -1539,7 +1610,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1559,7 +1631,8 @@ ], "tags": [ "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1578,7 +1651,8 @@ "findLast([1, 2, 3, 4], n => n % 2 === 1); // 3" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -1598,7 +1672,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1618,7 +1693,8 @@ ], "tags": [ "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1637,7 +1713,8 @@ "flatten([1, [2], 3, 4]); // [1, 2, 3, 4]\nflatten([1, [2, [3, [4, 5], 6], 7], 8], 2); // [1, 2, 3, [4, 5], 6, 7, 8]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -1657,7 +1734,8 @@ ], "tags": [ "object", - "recursion" + "recursion", + "intermediate" ] }, "meta": { @@ -1677,7 +1755,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1697,7 +1776,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1719,7 +1799,8 @@ "date", "math", "string", - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -1738,7 +1819,8 @@ "forOwn({ foo: 'bar', a: 1 }, v => console.log(v)); // 'bar', 1" ], "tags": [ - "object" + "object", + "intermediate" ] }, "meta": { @@ -1757,7 +1839,8 @@ "forOwnRight({ foo: 'bar', a: 1 }, v => console.log(v)); // 1, 'bar'" ], "tags": [ - "object" + "object", + "intermediate" ] }, "meta": { @@ -1776,7 +1859,8 @@ "fromCamelCase('someDatabaseFieldName', ' '); // 'some database field name'\nfromCamelCase('someLabelThatNeedsToBeCamelized', '-'); // 'some-label-that-needs-to-be-camelized'\nfromCamelCase('someJavascriptProperty', '_'); // 'some_javascript_property'" ], "tags": [ - "string" + "string", + "intermediate" ] }, "meta": { @@ -1796,7 +1880,8 @@ ], "tags": [ "function", - "utility" + "utility", + "beginner" ] }, "meta": { @@ -1816,7 +1901,8 @@ ], "tags": [ "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -1836,7 +1922,8 @@ ], "tags": [ "math", - "recursion" + "recursion", + "beginner" ] }, "meta": { @@ -1855,7 +1942,8 @@ "geometricProgression(256); // [1, 2, 4, 8, 16, 32, 64, 128, 256]\ngeometricProgression(256, 3); // [3, 6, 12, 24, 48, 96, 192]\ngeometricProgression(256, 1, 4); // [1, 4, 16, 64, 256]" ], "tags": [ - "math" + "math", + "intermediate" ] }, "meta": { @@ -1874,7 +1962,8 @@ "const obj = { selector: { to: { val: 'val to select' } }, target: [1, 2, { a: 'test' }] };\nget(obj, 'selector.to.val', 'target[0]', 'target[2].a'); // ['val to select', 1, 'test']" ], "tags": [ - "object" + "object", + "intermediate" ] }, "meta": { @@ -1893,7 +1982,8 @@ "getColonTimeFromDate(new Date()); // \"08:38:00\"" ], "tags": [ - "date" + "date", + "intermediate" ] }, "meta": { @@ -1912,7 +2002,8 @@ "getDaysDiffBetweenDates(new Date('2017-12-13'), new Date('2017-12-22')); // 9" ], "tags": [ - "date" + "date", + "intermediate" ] }, "meta": { @@ -1931,7 +2022,8 @@ "getMeridiemSuffixOfInteger(0); // \"12am\"\ngetMeridiemSuffixOfInteger(11); // \"11am\"\ngetMeridiemSuffixOfInteger(13); // \"1pm\"\ngetMeridiemSuffixOfInteger(25); // \"1pm\"" ], "tags": [ - "date" + "date", + "beginner" ] }, "meta": { @@ -1950,7 +2042,8 @@ "getScrollPosition(); // {x: 0, y: 200}" ], "tags": [ - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -1970,7 +2063,8 @@ ], "tags": [ "browser", - "css" + "css", + "beginner" ] }, "meta": { @@ -1989,7 +2083,8 @@ "getType(new Set([1, 2, 3])); // 'set'" ], "tags": [ - "type" + "type", + "beginner" ] }, "meta": { @@ -2011,7 +2106,8 @@ "utility", "browser", "string", - "url" + "url", + "intermediate" ] }, "meta": { @@ -2031,7 +2127,8 @@ ], "tags": [ "array", - "object" + "object", + "intermediate" ] }, "meta": { @@ -2050,7 +2147,8 @@ "hammingDistance(2, 3); // 1" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -2070,7 +2168,8 @@ ], "tags": [ "browser", - "css" + "css", + "beginner" ] }, "meta": { @@ -2089,7 +2188,8 @@ "// node myScript.js -s --test --cool=true\nhasFlags('-s'); // true\nhasFlags('--test', 'cool=true', '-s'); // true\nhasFlags('special'); // false" ], "tags": [ - "node" + "node", + "intermediate" ] }, "meta": { @@ -2111,7 +2211,8 @@ "browser", "utility", "advanced", - "promise" + "promise", + "advanced" ] }, "meta": { @@ -2132,7 +2233,8 @@ "tags": [ "node", "utility", - "promise" + "promise", + "intermediate" ] }, "meta": { @@ -2151,7 +2253,8 @@ "head([1, 2, 3]); // 1" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -2193,7 +2296,8 @@ ], "tags": [ "browser", - "css" + "css", + "beginner" ] }, "meta": { @@ -2214,7 +2318,8 @@ "tags": [ "utility", "url", - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -2235,7 +2340,8 @@ "tags": [ "utility", "url", - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -2255,7 +2361,8 @@ ], "tags": [ "browser", - "url" + "url", + "intermediate" ] }, "meta": { @@ -2274,7 +2381,8 @@ "// 10,000 element array\nconst numbers = Array(10000)\n .fill()\n .map((_, i) => i);\n\n// Test functions with the same goal: sum up the elements in the array\nconst sumReduce = () => numbers.reduce((acc, n) => acc + n, 0);\nconst sumForLoop = () => {\n let sum = 0;\n for (let i = 0; i < numbers.length; i++) sum += numbers[i];\n return sum;\n};\n\n// `sumForLoop` is nearly 10 times faster\nMath.round(hz(sumReduce)); // 572\nMath.round(hz(sumForLoop)); // 4784" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -2293,7 +2401,8 @@ "indexOfAll([1, 2, 3, 1, 2, 3], 1); // [0,3]\nindexOfAll([1, 2, 3], 4); // []" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -2312,7 +2421,8 @@ "initial([1, 2, 3]); // [1,2]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -2331,7 +2441,8 @@ "initialize2DArray(2, 2, 0); // [[0,0], [0,0]]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -2351,7 +2462,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -2371,7 +2483,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -2391,7 +2504,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -2411,7 +2525,8 @@ ], "tags": [ "array", - "recursion" + "recursion", + "intermediate" ] }, "meta": { @@ -2430,7 +2545,8 @@ "inRange(3, 2, 5); // true\ninRange(3, 4); // true\ninRange(2, 3, 5); // false\ninRange(3, 2); // false" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -2449,7 +2565,8 @@ "insertAfter(document.getElementById('myId'), '

after

'); //
...

after

" ], "tags": [ - "browser" + "browser", + "beginner" ] }, "meta": { @@ -2468,7 +2585,8 @@ "insertBefore(document.getElementById('myId'), '

before

'); //

before

...
" ], "tags": [ - "browser" + "browser", + "beginner" ] }, "meta": { @@ -2488,7 +2606,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -2508,7 +2627,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -2528,7 +2648,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -2548,7 +2669,8 @@ ], "tags": [ "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -2569,7 +2691,8 @@ "tags": [ "type", "array", - "regexp" + "regexp", + "beginner" ] }, "meta": { @@ -2591,7 +2714,8 @@ "string", "utility", "browser", - "url" + "url", + "intermediate" ] }, "meta": { @@ -2611,7 +2735,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -2631,7 +2756,8 @@ ], "tags": [ "type", - "array" + "array", + "intermediate" ] }, "meta": { @@ -2650,7 +2776,8 @@ "isBoolean(null); // false\nisBoolean(false); // true" ], "tags": [ - "type" + "type", + "beginner" ] }, "meta": { @@ -2670,7 +2797,8 @@ ], "tags": [ "utility", - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -2689,7 +2817,8 @@ "isBrowserTabFocused(); // true" ], "tags": [ - "browser" + "browser", + "beginner" ] }, "meta": { @@ -2708,7 +2837,8 @@ "isDivisible(6, 3); // true" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -2730,7 +2860,8 @@ "type", "array", "object", - "string" + "string", + "beginner" ] }, "meta": { @@ -2749,7 +2880,8 @@ "isEven(3); // false" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -2769,7 +2901,8 @@ ], "tags": [ "type", - "function" + "function", + "beginner" ] }, "meta": { @@ -2789,7 +2922,8 @@ ], "tags": [ "string", - "utility" + "utility", + "beginner" ] }, "meta": { @@ -2808,7 +2942,8 @@ "isNil(null); // true\nisNil(undefined); // true" ], "tags": [ - "type" + "type", + "beginner" ] }, "meta": { @@ -2827,7 +2962,8 @@ "isNull(null); // true" ], "tags": [ - "type" + "type", + "beginner" ] }, "meta": { @@ -2847,7 +2983,8 @@ ], "tags": [ "type", - "math" + "math", + "beginner" ] }, "meta": { @@ -2867,7 +3004,8 @@ ], "tags": [ "type", - "object" + "object", + "beginner" ] }, "meta": { @@ -2887,7 +3025,8 @@ ], "tags": [ "type", - "object" + "object", + "beginner" ] }, "meta": { @@ -2907,7 +3046,8 @@ ], "tags": [ "type", - "object" + "object", + "intermediate" ] }, "meta": { @@ -2926,7 +3066,9 @@ "isPrime(11); // true" ], "tags": [ - "math" + "math", + "beginner", + "intermediate" ] }, "meta": { @@ -2948,7 +3090,8 @@ "type", "function", "array", - "string" + "string", + "intermediate" ] }, "meta": { @@ -2969,7 +3112,8 @@ "tags": [ "type", "function", - "promise" + "promise", + "intermediate" ] }, "meta": { @@ -2988,7 +3132,8 @@ "isSorted([0, 1, 2, 2]); // 1\nisSorted([4, 3, 2]); // -1\nisSorted([4, 3, 5]); // 0" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -3008,7 +3153,8 @@ ], "tags": [ "type", - "string" + "string", + "beginner" ] }, "meta": { @@ -3027,7 +3173,8 @@ "isSymbol(Symbol('x')); // true" ], "tags": [ - "type" + "type", + "beginner" ] }, "meta": { @@ -3046,7 +3193,8 @@ "isTravisCI(); // true (if code is running on Travis CI)" ], "tags": [ - "node" + "node", + "intermediate" ] }, "meta": { @@ -3065,7 +3213,8 @@ "isUndefined(undefined); // true" ], "tags": [ - "type" + "type", + "beginner" ] }, "meta": { @@ -3085,7 +3234,8 @@ ], "tags": [ "string", - "utility" + "utility", + "beginner" ] }, "meta": { @@ -3105,7 +3255,8 @@ ], "tags": [ "type", - "json" + "json", + "intermediate" ] }, "meta": { @@ -3124,7 +3275,8 @@ "join(['pen', 'pineapple', 'apple', 'pen'], ',', '&'); // \"pen,pineapple,apple&pen\"\njoin(['pen', 'pineapple', 'apple', 'pen'], ','); // \"pen,pineapple,apple,pen\"\njoin(['pen', 'pineapple', 'apple', 'pen']); // \"pen,pineapple,apple,pen\"" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -3166,7 +3318,8 @@ ], "tags": [ "node", - "json" + "json", + "intermediate" ] }, "meta": { @@ -3185,7 +3338,8 @@ "last([1, 2, 3]); // 3" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -3205,7 +3359,8 @@ ], "tags": [ "math", - "recursion" + "recursion", + "beginner" ] }, "meta": { @@ -3226,7 +3381,8 @@ "tags": [ "array", "string", - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -3245,7 +3401,8 @@ "const myObj = { Name: 'Adam', sUrnAME: 'Smith' };\nconst myObjLower = lowercaseKeys(myObj); // {name: 'Adam', surname: 'Smith'};" ], "tags": [ - "object" + "object", + "intermediate" ] }, "meta": { @@ -3265,7 +3422,8 @@ ], "tags": [ "math", - "utility" + "utility", + "advanced" ] }, "meta": { @@ -3285,7 +3443,8 @@ ], "tags": [ "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -3328,7 +3487,8 @@ "string", "array", "function", - "utility" + "utility", + "beginner" ] }, "meta": { @@ -3348,7 +3508,8 @@ ], "tags": [ "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -3369,7 +3530,8 @@ "tags": [ "string", "utility", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -3389,7 +3551,8 @@ ], "tags": [ "object", - "type" + "type", + "intermediate" ] }, "meta": { @@ -3410,7 +3573,8 @@ "tags": [ "object", "type", - "function" + "function", + "intermediate" ] }, "meta": { @@ -3431,7 +3595,8 @@ "tags": [ "math", "array", - "function" + "function", + "beginner" ] }, "meta": { @@ -3451,7 +3616,8 @@ ], "tags": [ "array", - "math" + "math", + "beginner" ] }, "meta": { @@ -3471,7 +3637,8 @@ ], "tags": [ "math", - "array" + "array", + "intermediate" ] }, "meta": { @@ -3490,7 +3657,8 @@ "// See the `anagrams` snippet.\nconst anagramsCached = memoize(anagrams);\nanagramsCached('javascript'); // takes a long time\nanagramsCached('javascript'); // returns virtually instantly since it's now cached\nconsole.log(anagramsCached.cache); // The cached anagrams map" ], "tags": [ - "function" + "function", + "advanced" ] }, "meta": { @@ -3510,7 +3678,8 @@ ], "tags": [ "object", - "array" + "array", + "intermediate" ] }, "meta": { @@ -3531,7 +3700,8 @@ "tags": [ "math", "array", - "function" + "function", + "beginner" ] }, "meta": { @@ -3551,7 +3721,8 @@ ], "tags": [ "array", - "math" + "math", + "beginner" ] }, "meta": { @@ -3590,7 +3761,8 @@ "[1, 2, 3, 4, 5, 6].filter(negate(n => n % 2 === 0)); // [ 1, 3, 5 ]" ], "tags": [ - "function" + "function", + "beginner" ] }, "meta": { @@ -3609,7 +3781,8 @@ "// One top level comment\nconst comments = [\n { id: 1, parent_id: null },\n { id: 2, parent_id: 1 },\n { id: 3, parent_id: 1 },\n { id: 4, parent_id: 2 },\n { id: 5, parent_id: 4 }\n];\nconst nestedComments = nest(comments); // [{ id: 1, parent_id: null, children: [...] }]" ], "tags": [ - "object" + "object", + "intermediate" ] }, "meta": { @@ -3629,7 +3802,8 @@ ], "tags": [ "browser", - "array" + "array", + "beginner" ] }, "meta": { @@ -3649,7 +3823,8 @@ ], "tags": [ "array", - "function" + "function", + "beginner" ] }, "meta": { @@ -3669,7 +3844,8 @@ ], "tags": [ "utility", - "function" + "function", + "beginner" ] }, "meta": { @@ -3688,7 +3864,8 @@ "nthElement(['a', 'b', 'c'], 1); // 'b'\nnthElement(['a', 'b', 'b'], -3); // 'a'" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -3708,7 +3885,8 @@ ], "tags": [ "object", - "array" + "array", + "beginner" ] }, "meta": { @@ -3728,7 +3906,8 @@ ], "tags": [ "object", - "array" + "array", + "beginner" ] }, "meta": { @@ -3769,7 +3948,8 @@ ], "tags": [ "browser", - "event" + "event", + "intermediate" ] }, "meta": { @@ -3788,7 +3968,8 @@ "offset([1, 2, 3, 4, 5], 2); // [3, 4, 5, 1, 2]\noffset([1, 2, 3, 4, 5], -2); // [4, 5, 1, 2, 3]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -3808,7 +3989,8 @@ ], "tags": [ "object", - "array" + "array", + "intermediate" ] }, "meta": { @@ -3829,7 +4011,8 @@ "tags": [ "object", "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -3849,7 +4032,8 @@ ], "tags": [ "browser", - "event" + "event", + "intermediate" ] }, "meta": { @@ -3868,7 +4052,8 @@ "const startApp = function(event) {\n console.log(this, event); // document.body, MouseEvent\n};\ndocument.body.addEventListener('click', once(startApp)); // only runs `startApp` once upon click" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -3909,7 +4094,8 @@ ], "tags": [ "object", - "array" + "array", + "intermediate" ] }, "meta": { @@ -3929,7 +4115,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -3949,7 +4136,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -3968,7 +4156,8 @@ "pad('cat', 8); // ' cat '\npad(String(42), 6, '0'); // '004200'\npad('foobar', 3); // 'foobar'" ], "tags": [ - "string" + "string", + "beginner" ] }, "meta": { @@ -3987,7 +4176,8 @@ "palindrome('taco cat'); // true" ], "tags": [ - "string" + "string", + "intermediate" ] }, "meta": { @@ -4007,7 +4197,8 @@ ], "tags": [ "utility", - "string" + "string", + "intermediate" ] }, "meta": { @@ -4026,7 +4217,8 @@ "const greet = (greeting, name) => greeting + ' ' + name + '!';\nconst greetHello = partial(greet, 'Hello');\ngreetHello('John'); // 'Hello John!'" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -4045,7 +4237,8 @@ "const greet = (greeting, name) => greeting + ' ' + name + '!';\nconst greetJohn = partialRight(greet, 'John');\ngreetJohn('Hello'); // 'Hello John!'" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -4066,7 +4259,8 @@ "tags": [ "array", "object", - "function" + "function", + "intermediate" ] }, "meta": { @@ -4085,7 +4279,8 @@ "percentile([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 6); // 55" ], "tags": [ - "math" + "math", + "intermediate" ] }, "meta": { @@ -4105,7 +4300,8 @@ ], "tags": [ "array", - "recursion" + "recursion", + "advanced" ] }, "meta": { @@ -4125,7 +4321,8 @@ ], "tags": [ "object", - "array" + "array", + "intermediate" ] }, "meta": { @@ -4146,7 +4343,8 @@ "tags": [ "object", "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -4167,7 +4365,8 @@ "tags": [ "adapter", "function", - "promise" + "promise", + "intermediate" ] }, "meta": { @@ -4187,7 +4386,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -4206,7 +4406,8 @@ "pluralize(0, 'apple'); // 'apples'\npluralize(1, 'apple'); // 'apple'\npluralize(2, 'apple'); // 'apples'\npluralize(2, 'person', 'people'); // 'people'\n\nconst PLURALS = {\n person: 'people',\n radius: 'radii'\n};\nconst autoPluralize = pluralize(PLURALS);\nautoPluralize(2, 'person'); // 'people'" ], "tags": [ - "string" + "string", + "intermediate" ] }, "meta": { @@ -4225,7 +4426,8 @@ "powerset([1, 2]); // [[], [1], [2], [2,1]]" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -4245,7 +4447,8 @@ ], "tags": [ "browser", - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -4266,7 +4469,8 @@ "tags": [ "utility", "string", - "math" + "math", + "advanced" ] }, "meta": { @@ -4286,7 +4490,8 @@ ], "tags": [ "math", - "array" + "array", + "intermediate" ] }, "meta": { @@ -4307,7 +4512,8 @@ "tags": [ "adapter", "function", - "promise" + "promise", + "intermediate" ] }, "meta": { @@ -4326,7 +4532,8 @@ "let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];\npull(myArray, 'a', 'c'); // myArray = [ 'b', 'b' ]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -4345,7 +4552,8 @@ "let myArray = ['a', 'b', 'c', 'd'];\nlet pulled = pullAtIndex(myArray, [1, 3]); // myArray = [ 'a', 'c' ] , pulled = [ 'b', 'd' ]" ], "tags": [ - "array" + "array", + "advanced" ] }, "meta": { @@ -4364,7 +4572,8 @@ "let myArray = ['a', 'b', 'c', 'd'];\nlet pulled = pullAtValue(myArray, ['b', 'd']); // myArray = [ 'a', 'c' ] , pulled = [ 'b', 'd' ]" ], "tags": [ - "array" + "array", + "advanced" ] }, "meta": { @@ -4404,7 +4613,8 @@ "radsToDegrees(Math.PI / 2); // 90" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -4424,7 +4634,8 @@ ], "tags": [ "utility", - "random" + "random", + "beginner" ] }, "meta": { @@ -4445,7 +4656,8 @@ "tags": [ "math", "utility", - "random" + "random", + "intermediate" ] }, "meta": { @@ -4466,7 +4678,8 @@ "tags": [ "math", "utility", - "random" + "random", + "beginner" ] }, "meta": { @@ -4487,7 +4700,8 @@ "tags": [ "math", "utility", - "random" + "random", + "beginner" ] }, "meta": { @@ -4508,7 +4722,8 @@ "tags": [ "node", "array", - "string" + "string", + "beginner" ] }, "meta": { @@ -4528,7 +4743,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -4548,7 +4764,8 @@ ], "tags": [ "browser", - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -4568,7 +4785,8 @@ ], "tags": [ "browser", - "url" + "url", + "beginner" ] }, "meta": { @@ -4587,7 +4805,8 @@ "const data = [\n {\n id: 1,\n name: 'john',\n age: 24\n },\n {\n id: 2,\n name: 'mike',\n age: 50\n }\n];\n\nreducedFilter(data, ['id', 'name'], item => item.age > 24); // [{ id: 2, name: 'mike'}]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -4607,7 +4826,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -4627,7 +4847,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -4646,7 +4867,8 @@ "reject(x => x % 2 === 0, [1, 2, 3, 4, 5]); // [1, 3, 5]\nreject(word => word.length > 4, ['Apple', 'Pear', 'Kiwi', 'Banana']); // ['Pear', 'Kiwi']" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -4665,7 +4887,8 @@ "remove([1, 2, 3, 4], n => n % 2 === 0); // [2, 4]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -4685,7 +4908,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -4704,7 +4928,8 @@ "const obj = { name: 'Bobo', job: 'Front-End Master', shoeSize: 100 };\nrenameKeys({ name: 'firstName', job: 'passion' }, obj); // { firstName: 'Bobo', passion: 'Front-End Master', shoeSize: 100 }" ], "tags": [ - "object" + "object", + "intermediate" ] }, "meta": { @@ -4724,7 +4949,8 @@ ], "tags": [ "string", - "array" + "array", + "beginner" ] }, "meta": { @@ -4743,7 +4969,8 @@ "RGBToHex(255, 165, 1); // 'ffa501'" ], "tags": [ - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -4762,7 +4989,8 @@ "round(1.005, 2); // 1.01" ], "tags": [ - "math" + "math", + "intermediate" ] }, "meta": { @@ -4805,7 +5033,8 @@ ], "tags": [ "function", - "promise" + "promise", + "intermediate" ] }, "meta": { @@ -4825,7 +5054,8 @@ ], "tags": [ "array", - "random" + "random", + "beginner" ] }, "meta": { @@ -4845,7 +5075,8 @@ ], "tags": [ "array", - "random" + "random", + "intermediate" ] }, "meta": { @@ -4864,7 +5095,8 @@ "scrollToTop();" ], "tags": [ - "browser" + "browser", + "intermediate" ] }, "meta": { @@ -4884,7 +5116,8 @@ ], "tags": [ "math", - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -4904,7 +5137,8 @@ ], "tags": [ "utility", - "string" + "string", + "intermediate" ] }, "meta": { @@ -4923,7 +5157,8 @@ "setStyle(document.querySelector('p'), 'font-size', '20px'); // The first

element on the page will have a font-size of 20px" ], "tags": [ - "browser" + "browser", + "beginner" ] }, "meta": { @@ -4942,7 +5177,8 @@ "const a = { x: true, y: 1 };\nconst b = shallowClone(a); // a !== b" ], "tags": [ - "object" + "object", + "beginner" ] }, "meta": { @@ -4962,7 +5198,8 @@ ], "tags": [ "browser", - "css" + "css", + "beginner" ] }, "meta": { @@ -4982,7 +5219,8 @@ ], "tags": [ "array", - "random" + "random", + "intermediate" ] }, "meta": { @@ -5002,7 +5240,8 @@ ], "tags": [ "array", - "math" + "math", + "beginner" ] }, "meta": { @@ -5023,7 +5262,8 @@ "tags": [ "object", "array", - "string" + "string", + "intermediate" ] }, "meta": { @@ -5043,7 +5283,8 @@ ], "tags": [ "function", - "promise" + "promise", + "intermediate" ] }, "meta": { @@ -5063,7 +5304,8 @@ ], "tags": [ "browser", - "css" + "css", + "intermediate" ] }, "meta": { @@ -5082,7 +5324,8 @@ "sortCharactersInString('cabbage'); // 'aabbceg'" ], "tags": [ - "string" + "string", + "beginner" ] }, "meta": { @@ -5102,7 +5345,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -5123,7 +5367,8 @@ "tags": [ "array", "math", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5143,7 +5388,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -5164,7 +5410,8 @@ "tags": [ "array", "math", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5183,7 +5430,8 @@ "splitLines('This\\nis a\\nmultiline\\nstring.\\n'); // ['This', 'is a', 'multiline', 'string.' , '']" ], "tags": [ - "string" + "string", + "beginner" ] }, "meta": { @@ -5202,7 +5450,8 @@ "const arrayMax = spreadOver(Math.max);\narrayMax([1, 2, 3]); // 3" ], "tags": [ - "adapter" + "adapter", + "intermediate" ] }, "meta": { @@ -5223,7 +5472,8 @@ "tags": [ "array", "sort", - "advanced" + "advanced", + "intermediate" ] }, "meta": { @@ -5243,7 +5493,8 @@ ], "tags": [ "math", - "array" + "array", + "intermediate" ] }, "meta": { @@ -5263,7 +5514,8 @@ ], "tags": [ "string", - "recursion" + "recursion", + "advanced" ] }, "meta": { @@ -5284,7 +5536,8 @@ "tags": [ "string", "utility", - "regexp" + "regexp", + "beginner" ] }, "meta": { @@ -5304,7 +5557,8 @@ ], "tags": [ "math", - "array" + "array", + "beginner" ] }, "meta": { @@ -5325,7 +5579,8 @@ "tags": [ "math", "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5344,7 +5599,8 @@ "sumPower(10); // 385\nsumPower(10, 3); //3025\nsumPower(10, 3, 5); //2925" ], "tags": [ - "math" + "math", + "intermediate" ] }, "meta": { @@ -5364,7 +5620,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -5384,7 +5641,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5404,7 +5662,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5423,7 +5682,8 @@ "tail([1, 2, 3]); // [2,3]\ntail([1]); // [1]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -5442,7 +5702,8 @@ "take([1, 2, 3], 5); // [1, 2, 3]\ntake([1, 2, 3], 0); // []" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -5461,7 +5722,8 @@ "takeRight([1, 2, 3], 2); // [ 2, 3 ]\ntakeRight([1, 2, 3]); // [3]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -5481,7 +5743,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5501,7 +5764,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5520,7 +5784,8 @@ "window.addEventListener(\n 'resize',\n throttle(function(evt) {\n console.log(window.innerWidth);\n console.log(window.innerHeight);\n }, 250)\n); // Will log the window dimensions at most every 250ms" ], "tags": [ - "function" + "function", + "advanced" ] }, "meta": { @@ -5539,7 +5804,8 @@ "var output = '';\ntimes(5, i => (output += i));\nconsole.log(output); // 01234" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -5558,7 +5824,8 @@ "timeTaken(() => Math.pow(2, 10)); // 1024, (logged): timeTaken: 0.02099609375ms" ], "tags": [ - "utility" + "utility", + "beginner" ] }, "meta": { @@ -5578,7 +5845,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -5597,7 +5865,8 @@ "toCurrency(123456.789, 'EUR'); // €123,456.79 | currency: Euro | currencyLangFormat: Local\ntoCurrency(123456.789, 'USD', 'en-us'); // $123,456.79 | currency: US Dollar | currencyLangFormat: English (United States)\ntoCurrency(123456.789, 'USD', 'fa'); // ۱۲۳٬۴۵۶٫۷۹ ؜$ | currency: US Dollar | currencyLangFormat: Farsi\ntoCurrency(322342436423.2435, 'JPY'); // ¥322,342,436,423 | currency: Japanese Yen | currencyLangFormat: Local\ntoCurrency(322342436423.2435, 'JPY', 'fi'); // 322 342 436 423 ¥ | currency: Japanese Yen | currencyLangFormat: Finnish" ], "tags": [ - "utility" + "utility", + "intermediate" ] }, "meta": { @@ -5617,7 +5886,8 @@ ], "tags": [ "utility", - "math" + "math", + "beginner" ] }, "meta": { @@ -5636,7 +5906,8 @@ "toggleClass(document.querySelector('p.special'), 'special'); // The paragraph will not have the 'special' class anymore" ], "tags": [ - "browser" + "browser", + "beginner" ] }, "meta": { @@ -5655,7 +5926,8 @@ "toHash([4, 3, 2, 1]); // { 0: 4, 1: 3, 2: 2, 1: 1 }\ntoHash([{ a: 'label' }], 'a'); // { label: { a: 'label' } }\n// A more in depth example:\nlet users = [{ id: 1, first: 'Jon' }, { id: 2, first: 'Joe' }, { id: 3, first: 'Moe' }];\nlet managers = [{ manager: 1, employees: [2, 3] }];\n// We use function here because we want a bindable reference, but a closure referencing the hash would work, too.\nmanagers.forEach(\n manager =>\n (manager.employees = manager.employees.map(function(id) {\n return this[id];\n }, toHash(users, 'id')))\n);\nmanagers; // [ { manager:1, employees: [ { id: 2, first: \"Joe\" }, { id: 3, first: \"Moe\" } ] } ]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -5675,7 +5947,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -5694,7 +5967,8 @@ "tomorrow(); // 2017-12-27 (if current date is 2017-12-26)\ntomorrow(true); // 2017-12-27T00:00:00 (if current date is 2017-12-26)" ], "tags": [ - "date" + "date", + "intermediate" ] }, "meta": { @@ -5714,7 +5988,8 @@ ], "tags": [ "utility", - "math" + "math", + "intermediate" ] }, "meta": { @@ -5733,7 +6008,8 @@ "toSafeInteger('3.2'); // 3\ntoSafeInteger(Infinity); // 9007199254740991" ], "tags": [ - "math" + "math", + "beginner" ] }, "meta": { @@ -5753,7 +6029,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -5773,7 +6050,8 @@ ], "tags": [ "object", - "array" + "array", + "intermediate" ] }, "meta": { @@ -5793,7 +6071,8 @@ ], "tags": [ "browser", - "event" + "event", + "intermediate" ] }, "meta": { @@ -5812,7 +6091,8 @@ "truncateString('boomerang', 7); // 'boom...'" ], "tags": [ - "string" + "string", + "beginner" ] }, "meta": { @@ -5833,7 +6113,8 @@ "tags": [ "object", "logic", - "array" + "array", + "intermediate" ] }, "meta": { @@ -5853,7 +6134,8 @@ ], "tags": [ "adapter", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5872,7 +6154,8 @@ "const add = x => y => z => x + y + z;\nconst uncurriedAdd = uncurry(add, 3);\nuncurriedAdd(1, 2, 3); // 6" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -5892,7 +6175,8 @@ ], "tags": [ "string", - "browser" + "browser", + "beginner" ] }, "meta": { @@ -5932,7 +6216,8 @@ ], "tags": [ "function", - "array" + "array", + "intermediate" ] }, "meta": { @@ -5952,7 +6237,8 @@ ], "tags": [ "array", - "math" + "math", + "beginner" ] }, "meta": { @@ -5972,7 +6258,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -5992,7 +6279,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -6011,7 +6299,8 @@ "uniqueElements([1, 2, 2, 3, 4, 4, 5]); // [1,2,3,4,5]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -6031,7 +6320,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -6051,7 +6341,8 @@ ], "tags": [ "array", - "function" + "function", + "intermediate" ] }, "meta": { @@ -6071,7 +6362,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -6091,7 +6383,8 @@ ], "tags": [ "node", - "string" + "string", + "beginner" ] }, "meta": { @@ -6110,7 +6403,8 @@ "unzip([['a', 1, true], ['b', 2, false]]); //[['a', 'b'], [1, 2], [true, false]]\nunzip([['a', 1, true], ['b', 2]]); //[['a', 'b'], [1, 2], [true]]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -6152,7 +6446,8 @@ "tags": [ "string", "utility", - "regexp" + "regexp", + "advanced" ] }, "meta": { @@ -6173,7 +6468,8 @@ "tags": [ "browser", "utility", - "random" + "random", + "intermediate" ] }, "meta": { @@ -6194,7 +6490,8 @@ "tags": [ "node", "utility", - "random" + "random", + "intermediate" ] }, "meta": { @@ -6214,7 +6511,8 @@ ], "tags": [ "utility", - "math" + "math", + "intermediate" ] }, "meta": { @@ -6233,7 +6531,8 @@ "const doubleEvenNumbers = when(x => x % 2 === 0, x => x * 2);\ndoubleEvenNumbers(2); // 4\ndoubleEvenNumbers(1); // 1" ], "tags": [ - "function" + "function", + "intermediate" ] }, "meta": { @@ -6252,7 +6551,8 @@ "without([2, 1, 2, 3], 1, 2); // [3]" ], "tags": [ - "array" + "array", + "beginner" ] }, "meta": { @@ -6272,7 +6572,8 @@ ], "tags": [ "string", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -6292,7 +6593,8 @@ ], "tags": [ "array", - "math" + "math", + "intermediate" ] }, "meta": { @@ -6312,7 +6614,8 @@ ], "tags": [ "utility", - "regexp" + "regexp", + "intermediate" ] }, "meta": { @@ -6331,7 +6634,8 @@ "zip(['a', 'b'], [1, 2], [true, false]); // [['a', 1, true], ['b', 2, false]]\nzip(['a'], [1, 2], [true, false]); // [['a', 1, true], [undefined, 2, false]]" ], "tags": [ - "array" + "array", + "intermediate" ] }, "meta": { @@ -6351,7 +6655,8 @@ ], "tags": [ "array", - "object" + "object", + "intermediate" ] }, "meta": { diff --git a/test/testlog b/test/testlog index b122025a6..ad7734f8d 100644 --- a/test/testlog +++ b/test/testlog @@ -3,693 +3,693 @@ # Starting... # 347 test suites found. -# PASS test/toCamelCase/toCamelCase.test.js - -ok 1 — toCamelCase is a Function -ok 2 — toCamelCase('some_database_field_name') returns someDatabaseFieldName -ok 3 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized -ok 4 — toCamelCase('some-javascript-property') return someJavascriptProperty -ok 5 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens -ok 6 — toCamelCase() throws a error -ok 7 — toCamelCase([]) throws a error -ok 8 — toCamelCase({}) throws a error -ok 9 — toCamelCase(123) throws a error -ok 10 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run - # PASS test/uniqueElements/uniqueElements.test.js -ok 11 — uniqueElements is a Function -ok 12 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] -ok 13 — uniqueElements([1, 23, 53]) returns [1, 23, 53] -ok 14 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] -ok 15 — uniqueElements() returns [] -ok 16 — uniqueElements(null) returns [] -ok 17 — uniqueElements(undefined) returns [] -ok 18 — uniqueElements('strt') returns ['s', 't', 'r'] -ok 19 — uniqueElements(1, 1, 2543, 534, 5) throws an error -ok 20 — uniqueElements({}) throws an error -ok 21 — uniqueElements(true) throws an error -ok 22 — uniqueElements(false) throws an error -ok 23 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run - -# PASS test/toSnakeCase/toSnakeCase.test.js - -ok 24 — toSnakeCase is a Function -ok 25 — toSnakeCase('camelCase') returns camel_case -ok 26 — toSnakeCase('some text') returns some_text -ok 27 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens -ok 28 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html -ok 29 — toSnakeCase() returns undefined -ok 30 — toSnakeCase([]) throws an error -ok 31 — toSnakeCase({}) throws an error -ok 32 — toSnakeCase(123) throws an error -ok 33 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run +ok 1 — uniqueElements is a Function +ok 2 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] +ok 3 — uniqueElements([1, 23, 53]) returns [1, 23, 53] +ok 4 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] +ok 5 — uniqueElements() returns [] +ok 6 — uniqueElements(null) returns [] +ok 7 — uniqueElements(undefined) returns [] +ok 8 — uniqueElements('strt') returns ['s', 't', 'r'] +ok 9 — uniqueElements(1, 1, 2543, 534, 5) throws an error +ok 10 — uniqueElements({}) throws an error +ok 11 — uniqueElements(true) throws an error +ok 12 — uniqueElements(false) throws an error +ok 13 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run # PASS test/toKebabCase/toKebabCase.test.js -ok 34 — toKebabCase is a Function -ok 35 — toKebabCase('camelCase') returns camel-case -ok 36 — toKebabCase('some text') returns some-text -ok 37 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens -ok 38 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html -ok 39 — toKebabCase() returns undefined -ok 40 — toKebabCase([]) throws an erro -ok 41 — toKebabCase({}) throws an erro -ok 42 — toKebabCase(123) throws an erro -ok 43 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/quickSort/quickSort.test.js - -ok 44 — quickSort is a Function -ok 45 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] -ok 46 — quickSort([-1, 0, -2]) returns [-2, -1, 0] -ok 47 — quickSort() throws an error -ok 48 — quickSort(123) throws an error -ok 49 — quickSort({ 234: string}) throws an error -ok 50 — quickSort(null) throws an error -ok 51 — quickSort(undefined) throws an error -ok 52 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run - -# PASS test/zipObject/zipObject.test.js - -ok 53 — zipObject is a Function -ok 54 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} -ok 55 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} -ok 56 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } -ok 57 — zipObject([a], string) returns { a: s } -ok 58 — zipObject() throws an error -ok 59 — zipObject((['string'], null) throws an error -ok 60 — zipObject(null, [1]) throws an error -ok 61 — zipObject('string') throws an error -ok 62 — zipObject('test', 'string') throws an error - -# PASS test/isSorted/isSorted.test.js - -ok 63 — isSorted is a Function -ok 64 — Array is sorted in ascending order -ok 65 — Array is sorted in ascending order -ok 66 — Array is sorted in ascending order -ok 67 — Array is sorted in ascending order -ok 68 — Array is sorted in descending order -ok 69 — Array is sorted in descending order -ok 70 — Array is sorted in descending order -ok 71 — Array is sorted in descending order -ok 72 — Array is empty -ok 73 — Array is not sorted, direction changed in array -ok 74 — Array is not sorted, direction changed in array - -# PASS test/is/is.test.js - -ok 75 — is is a Function -ok 76 — Works for arrays with data -ok 77 — Works for empty arrays -ok 78 — Works for arrays, not objects -ok 79 — Works for objects -ok 80 — Works for maps -ok 81 — Works for regular expressions -ok 82 — Works for sets -ok 83 — Works for weak maps -ok 84 — Works for weak sets -ok 85 — Works for strings - returns true for primitive -ok 86 — Works for strings - returns true when using constructor -ok 87 — Works for numbers - returns true for primitive -ok 88 — Works for numbers - returns true when using constructor -ok 89 — Works for booleans - returns true for primitive -ok 90 — Works for booleans - returns true when using constructor -ok 91 — Works for functions - -# PASS test/words/words.test.js - -ok 92 — words is a Function -ok 93 — words('I love javaScript!!') returns [I, love, javaScript] -ok 94 — words('python, javaScript & coffee') returns [python, javaScript, coffee] -ok 95 — words(I love javaScript!!) returns an array -ok 96 — words() throws an error -ok 97 — words(null) throws an error -ok 98 — words(undefined) throws an error -ok 99 — words({}) throws an error -ok 100 — words([]) throws an error -ok 101 — words(1234) throws an error - -# PASS test/validateNumber/validateNumber.test.js - -ok 102 — validateNumber is a Function -ok 103 — validateNumber(9) returns true -ok 104 — validateNumber(234asd.slice(0, 2)) returns true -ok 105 — validateNumber(1232) returns true -ok 106 — validateNumber(1232 + 13423) returns true -ok 107 — validateNumber(1232 * 2342 * 123) returns true -ok 108 — validateNumber(1232.23423536) returns true -ok 109 — validateNumber(234asd) returns false -ok 110 — validateNumber(e234d) returns false -ok 111 — validateNumber(false) returns false -ok 112 — validateNumber(true) returns false -ok 113 — validateNumber(null) returns false -ok 114 — validateNumber(123 * asd) returns false - -# PASS test/union/union.test.js - -ok 115 — union is a Function -ok 116 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] -ok 117 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] -ok 118 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] -ok 119 — union([], []) returns [] -ok 120 — union() throws an error -ok 121 — union(true, 'str') throws an error -ok 122 — union('false', true) throws an error -ok 123 — union((123, {}) throws an error -ok 124 — union([], {}) throws an error -ok 125 — union(undefined, null) throws an error -ok 126 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run - -# PASS test/yesNo/yesNo.test.js - -ok 127 — yesNo is a Function -ok 128 — yesNo(Y) returns true -ok 129 — yesNo(yes) returns true -ok 130 — yesNo(foo, true) returns true -ok 131 — yesNo(No) returns false -ok 132 — yesNo() returns false -ok 133 — yesNo(null) returns false -ok 134 — yesNo(undefined) returns false -ok 135 — yesNo([123, null]) returns false -ok 136 — yesNo([Yes, No]) returns false -ok 137 — yesNo({ 2: Yes }) returns false -ok 138 — yesNo([Yes, No], true) returns true -ok 139 — yesNo({ 2: Yes }, true) returns true - -# PASS test/zip/zip.test.js - -ok 140 — zip is a Function -ok 141 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] -ok 142 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] -ok 143 — zip([]) returns [] -ok 144 — zip(123) returns [] -ok 145 — zip([a, b], [1, 2], [true, false]) returns an Array -ok 146 — zip([a], [1, 2], [true, false]) returns an Array -ok 147 — zip(null) throws an error -ok 148 — zip(undefined) throws an error - -# PASS test/last/last.test.js - -ok 149 — last is a Function -ok 150 — last({ a: 1234}) returns undefined -ok 151 — last([1, 2, 3]) returns 3 -ok 152 — last({ 0: false}) returns undefined -ok 153 — last(String) returns g -ok 154 — last(null) throws an Error -ok 155 — last(undefined) throws an Error -ok 156 — last() throws an Error -ok 157 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/head/head.test.js - -ok 158 — head is a Function -ok 159 — head({ a: 1234}) returns undefined -ok 160 — head([1, 2, 3]) returns 1 -ok 161 — head({ 0: false}) returns false -ok 162 — head(String) returns S -ok 163 — head(null) throws an Error -ok 164 — head(undefined) throws an Error -ok 165 — head() throws an Error -ok 166 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/without/without.test.js - -ok 167 — without is a Function -ok 168 — without([2, 1, 2, 3], 1, 2) returns [3] -ok 169 — without([]) returns [] -ok 170 — without([3, 1, true, '3', true], '3', true) returns [3, 1] -ok 171 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] -ok 172 — without() throws an error -ok 173 — without(null) throws an error -ok 174 — without(undefined) throws an error -ok 175 — without(123) throws an error -ok 176 — without({}) throws an error - -# PASS test/average/average.test.js - -ok 177 — average is a Function -ok 178 — average(true) returns 0 -ok 179 — average(false) returns 1 -ok 180 — average(9, 1) returns 5 -ok 181 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 -ok 182 — average(1, 2, 3) returns 2 -ok 183 — average(null) returns 0 -ok 184 — average(1, 2, 3) returns NaN -ok 185 — average(String) returns NaN -ok 186 — average({ a: 123}) returns NaN -ok 187 — average([undefined, 0, string]) returns NaN -ok 188 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/toSafeInteger/toSafeInteger.test.js - -ok 189 — toSafeInteger is a Function -ok 190 — Number(toSafeInteger(3.2)) is a number -ok 191 — Converts a value to a safe integer -ok 192 — toSafeInteger('4.2') returns 4 -ok 193 — toSafeInteger(4.6) returns 5 -ok 194 — toSafeInteger([]) returns 0 -ok 195 — isNaN(toSafeInteger([1.5, 3124])) is true -ok 196 — isNaN(toSafeInteger('string')) is true -ok 197 — isNaN(toSafeInteger({})) is true -ok 198 — isNaN(toSafeInteger()) is true -ok 199 — toSafeInteger(Infinity) returns 9007199254740991 -ok 200 — toSafeInteger(3.2) takes less than 2s to run +ok 14 — toKebabCase is a Function +ok 15 — toKebabCase('camelCase') returns camel-case +ok 16 — toKebabCase('some text') returns some-text +ok 17 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens +ok 18 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html +ok 19 — toKebabCase() returns undefined +ok 20 — toKebabCase([]) throws an erro +ok 21 — toKebabCase({}) throws an erro +ok 22 — toKebabCase(123) throws an erro +ok 23 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run # PASS test/isPrimitive/isPrimitive.test.js -ok 201 — isPrimitive is a Function -ok 202 — isPrimitive(null) is primitive -ok 203 — isPrimitive(undefined) is primitive -ok 204 — isPrimitive(string) is primitive -ok 205 — isPrimitive(true) is primitive -ok 206 — isPrimitive(50) is primitive -ok 207 — isPrimitive('Hello') is primitive -ok 208 — isPrimitive(false) is primitive -ok 209 — isPrimitive(Symbol()) is primitive -ok 210 — isPrimitive([1, 2, 3]) is not primitive -ok 211 — isPrimitive({ a: 123 }) is not primitive -ok 212 — isPrimitive({ a: 123 }) takes less than 2s to run - -# PASS test/longestItem/longestItem.test.js - -ok 213 — longestItem is a Function -ok 214 — Returns the longest object from plain values -ok 215 — Returns the longest object from a spread array -ok 216 — Returns the longest object from mixed input -ok 217 — Returns the longest array -ok 218 — Returns the longest object when comparing arrays and strings -ok 219 — Returns undefined without any input -ok 220 — Returns first found of all similar -ok 221 — Throws TypeError if all inputs are undefined - -# PASS test/sampleSize/sampleSize.test.js - -ok 222 — sampleSize is a Function -ok 223 — Returns a single element without n specified -ok 224 — Returns a random sample of specified size from an array -ok 225 — Returns all elements in an array if n >= length -ok 226 — Returns an empty array if original array is empty -ok 227 — Returns an empty array if n = 0 - -# PASS test/filterNonUniqueBy/filterNonUniqueBy.test.js - -ok 228 — filterNonUniqueBy is a Function -ok 229 — filterNonUniqueBy works for properties -ok 230 — filterNonUniqueBy works for nested properties - -# PASS test/pluralize/pluralize.test.js - -ok 231 — pluralize is a Function -ok 232 — Produces the plural of the word -ok 233 — Produces the singular of the word -ok 234 — Produces the plural of the word -ok 235 — Prodices the defined plural of the word -ok 236 — Works with a dictionary - -# PASS test/randomIntegerInRange/randomIntegerInRange.test.js - -ok 237 — randomIntegerInRange is a Function -ok 238 — The returned value is an integer -ok 239 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js - -ok 240 — randomIntArrayInRange is a Function -ok 241 — The returned array contains only integers -ok 242 — The returned array has the proper length -ok 243 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). +ok 24 — isPrimitive is a Function +ok 25 — isPrimitive(null) is primitive +ok 26 — isPrimitive(undefined) is primitive +ok 27 — isPrimitive(string) is primitive +ok 28 — isPrimitive(true) is primitive +ok 29 — isPrimitive(50) is primitive +ok 30 — isPrimitive('Hello') is primitive +ok 31 — isPrimitive(false) is primitive +ok 32 — isPrimitive(Symbol()) is primitive +ok 33 — isPrimitive([1, 2, 3]) is not primitive +ok 34 — isPrimitive({ a: 123 }) is not primitive +ok 35 — isPrimitive({ a: 123 }) takes less than 2s to run # PASS test/round/round.test.js -ok 244 — round is a Function -ok 245 — round(1.005, 2) returns 1.01 -ok 246 — round(123.3423345345345345344, 11) returns 123.34233453453 -ok 247 — round(3.342, 11) returns 3.342 -ok 248 — round(1.005) returns 1 -ok 249 — round([1.005, 2]) returns NaN -ok 250 — round(string) returns NaN -ok 251 — round() returns NaN -ok 252 — round(132, 413, 4134) returns NaN -ok 253 — round({a: 132}, 413) returns NaN -ok 254 — round(123.3423345345345345344, 11) takes less than 2s to run +ok 36 — round is a Function +ok 37 — round(1.005, 2) returns 1.01 +ok 38 — round(123.3423345345345345344, 11) returns 123.34233453453 +ok 39 — round(3.342, 11) returns 3.342 +ok 40 — round(1.005) returns 1 +ok 41 — round([1.005, 2]) returns NaN +ok 42 — round(string) returns NaN +ok 43 — round() returns NaN +ok 44 — round(132, 413, 4134) returns NaN +ok 45 — round({a: 132}, 413) returns NaN +ok 46 — round(123.3423345345345345344, 11) takes less than 2s to run -# PASS test/isEmpty/isEmpty.test.js +# PASS test/quickSort/quickSort.test.js -ok 255 — isEmpty is a Function -ok 256 — Returns true for empty Map -ok 257 — Returns true for empty Set -ok 258 — Returns true for empty array -ok 259 — Returns true for empty object -ok 260 — Returns true for empty string -ok 261 — Returns false for non-empty array -ok 262 — Returns false for non-empty object -ok 263 — Returns false for non-empty string -ok 264 — Returns true - type is not considered a collection -ok 265 — Returns true - type is not considered a collection +ok 47 — quickSort is a Function +ok 48 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] +ok 49 — quickSort([-1, 0, -2]) returns [-2, -1, 0] +ok 50 — quickSort() throws an error +ok 51 — quickSort(123) throws an error +ok 52 — quickSort({ 234: string}) throws an error +ok 53 — quickSort(null) throws an error +ok 54 — quickSort(undefined) throws an error +ok 55 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run -# PASS test/orderBy/orderBy.test.js +# PASS test/average/average.test.js -ok 266 — orderBy is a Function -ok 267 — Returns a sorted array of objects ordered by properties and orders. -ok 268 — Returns a sorted array of objects ordered by properties and orders. +ok 56 — average is a Function +ok 57 — average(true) returns 0 +ok 58 — average(false) returns 1 +ok 59 — average(9, 1) returns 5 +ok 60 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 +ok 61 — average(1, 2, 3) returns 2 +ok 62 — average(null) returns 0 +ok 63 — average(1, 2, 3) returns NaN +ok 64 — average(String) returns NaN +ok 65 — average({ a: 123}) returns NaN +ok 66 — average([undefined, 0, string]) returns NaN +ok 67 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run -# PASS test/uniqueElementsBy/uniqueElementsBy.test.js +# PASS test/toSafeInteger/toSafeInteger.test.js -ok 269 — uniqueElementsBy is a Function -ok 270 — uniqueElementsBy works for properties -ok 271 — uniqueElementsBy works for nested properties +ok 68 — toSafeInteger is a Function +ok 69 — Number(toSafeInteger(3.2)) is a number +ok 70 — Converts a value to a safe integer +ok 71 — toSafeInteger('4.2') returns 4 +ok 72 — toSafeInteger(4.6) returns 5 +ok 73 — toSafeInteger([]) returns 0 +ok 74 — isNaN(toSafeInteger([1.5, 3124])) is true +ok 75 — isNaN(toSafeInteger('string')) is true +ok 76 — isNaN(toSafeInteger({})) is true +ok 77 — isNaN(toSafeInteger()) is true +ok 78 — toSafeInteger(Infinity) returns 9007199254740991 +ok 79 — toSafeInteger(3.2) takes less than 2s to run -# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js +# PASS test/words/words.test.js -ok 272 — initializeArrayWithRange is a Function -ok 273 — Initializes an array containing the numbers in the specified range (witout start value) -ok 274 — Initializes an array containing the numbers in the specified range -ok 275 — Initializes an array containing the numbers in the specified range (with step) +ok 80 — words is a Function +ok 81 — words('I love javaScript!!') returns [I, love, javaScript] +ok 82 — words('python, javaScript & coffee') returns [python, javaScript, coffee] +ok 83 — words(I love javaScript!!) returns an array +ok 84 — words() throws an error +ok 85 — words(null) throws an error +ok 86 — words(undefined) throws an error +ok 87 — words({}) throws an error +ok 88 — words([]) throws an error +ok 89 — words(1234) throws an error + +# PASS test/without/without.test.js + +ok 90 — without is a Function +ok 91 — without([2, 1, 2, 3], 1, 2) returns [3] +ok 92 — without([]) returns [] +ok 93 — without([3, 1, true, '3', true], '3', true) returns [3, 1] +ok 94 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] +ok 95 — without() throws an error +ok 96 — without(null) throws an error +ok 97 — without(undefined) throws an error +ok 98 — without(123) throws an error +ok 99 — without({}) throws an error + +# PASS test/toCamelCase/toCamelCase.test.js + +ok 100 — toCamelCase is a Function +ok 101 — toCamelCase('some_database_field_name') returns someDatabaseFieldName +ok 102 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized +ok 103 — toCamelCase('some-javascript-property') return someJavascriptProperty +ok 104 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens +ok 105 — toCamelCase() throws a error +ok 106 — toCamelCase([]) throws a error +ok 107 — toCamelCase({}) throws a error +ok 108 — toCamelCase(123) throws a error +ok 109 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run + +# PASS test/union/union.test.js + +ok 110 — union is a Function +ok 111 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] +ok 112 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] +ok 113 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] +ok 114 — union([], []) returns [] +ok 115 — union() throws an error +ok 116 — union(true, 'str') throws an error +ok 117 — union('false', true) throws an error +ok 118 — union((123, {}) throws an error +ok 119 — union([], {}) throws an error +ok 120 — union(undefined, null) throws an error +ok 121 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run + +# PASS test/is/is.test.js + +ok 122 — is is a Function +ok 123 — Works for arrays with data +ok 124 — Works for empty arrays +ok 125 — Works for arrays, not objects +ok 126 — Works for objects +ok 127 — Works for maps +ok 128 — Works for regular expressions +ok 129 — Works for sets +ok 130 — Works for weak maps +ok 131 — Works for weak sets +ok 132 — Works for strings - returns true for primitive +ok 133 — Works for strings - returns true when using constructor +ok 134 — Works for numbers - returns true for primitive +ok 135 — Works for numbers - returns true when using constructor +ok 136 — Works for booleans - returns true for primitive +ok 137 — Works for booleans - returns true when using constructor +ok 138 — Works for functions + +# PASS test/toSnakeCase/toSnakeCase.test.js + +ok 139 — toSnakeCase is a Function +ok 140 — toSnakeCase('camelCase') returns camel_case +ok 141 — toSnakeCase('some text') returns some_text +ok 142 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens +ok 143 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html +ok 144 — toSnakeCase() returns undefined +ok 145 — toSnakeCase([]) throws an error +ok 146 — toSnakeCase({}) throws an error +ok 147 — toSnakeCase(123) throws an error +ok 148 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run # PASS test/uniqueElementsByRight/uniqueElementsByRight.test.js -ok 276 — uniqueElementsByRight is a Function -ok 277 — uniqueElementsByRight works for properties -ok 278 — uniqueElementsByRight works for nested properties +ok 149 — uniqueElementsByRight is a Function +ok 150 — uniqueElementsByRight works for properties +ok 151 — uniqueElementsByRight works for nested properties # PASS test/offset/offset.test.js -ok 279 — offset is a Function -ok 280 — Offset of 0 returns the same array. -ok 281 — Offset > 0 returns the offsetted array. -ok 282 — Offset < 0 returns the reverse offsetted array. -ok 283 — Offset greater than the length of the array returns the same array. -ok 284 — Offset less than the negative length of the array returns the same array. -ok 285 — Offsetting empty array returns an empty array. +ok 152 — offset is a Function +ok 153 — Offset of 0 returns the same array. +ok 154 — Offset > 0 returns the offsetted array. +ok 155 — Offset < 0 returns the reverse offsetted array. +ok 156 — Offset greater than the length of the array returns the same array. +ok 157 — Offset less than the negative length of the array returns the same array. +ok 158 — Offsetting empty array returns an empty array. -# PASS test/randomNumberInRange/randomNumberInRange.test.js +# PASS test/filterNonUniqueBy/filterNonUniqueBy.test.js -ok 286 — randomNumberInRange is a Function -ok 287 — The returned value is a number -ok 288 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/CSVToArray/CSVToArray.test.js - -ok 289 — CSVToArray is a Function -ok 290 — CSVToArray works with default delimiter -ok 291 — CSVToArray works with custom delimiter -ok 292 — CSVToArray omits the first row -ok 293 — CSVToArray omits the first row and works with a custom delimiter - -# PASS test/chunk/chunk.test.js - -ok 294 — chunk is a Function -ok 295 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] -ok 296 — chunk([]) returns [] -ok 297 — chunk(123) returns [] -ok 298 — chunk({ a: 123}) returns [] -ok 299 — chunk(string, 2) returns [ st, ri, ng ] -ok 300 — chunk() throws an error -ok 301 — chunk(undefined) throws an error -ok 302 — chunk(null) throws an error -ok 303 — chunk(This is a string, 2) takes less than 2s to run - -# PASS test/allEqual/allEqual.test.js - -ok 304 — allEqual is a Function -ok 305 — Truthy numbers -ok 306 — Falsy numbers -ok 307 — Truthy strings -ok 308 — Falsy numbers -ok 309 — Truthy trues -ok 310 — Truthy falses -ok 311 — Falsy trues -ok 312 — Falsy falses - -# PASS test/join/join.test.js - -ok 313 — join is a Function -ok 314 — Joins all elements of an array into a string and returns this string -ok 315 — Joins all elements of an array into a string and returns this string -ok 316 — Joins all elements of an array into a string and returns this string - -# PASS test/any/any.test.js - -ok 317 — any is a Function -ok 318 — Returns true for arrays with at least one truthy value -ok 319 — Returns false for arrays with no truthy values -ok 320 — Returns false for arrays with no truthy values -ok 321 — Returns true with predicate function -ok 322 — Returns false with a predicate function - -# PASS test/mapString/mapString.test.js - -ok 323 — mapString is a Function -ok 324 — mapString returns a capitalized string -ok 325 — mapString can deal with indexes -ok 326 — mapString can deal with the full string - -# PASS test/toCurrency/toCurrency.test.js - -ok 327 — toCurrency is a Function -ok 328 — currency: Euro | currencyLangFormat: Local -ok 329 — currency: US Dollar | currencyLangFormat: English (United States) -ok 330 — currency: Japanese Yen | currencyLangFormat: Local +ok 159 — filterNonUniqueBy is a Function +ok 160 — filterNonUniqueBy works for properties +ok 161 — filterNonUniqueBy works for nested properties # PASS test/all/all.test.js -ok 331 — all is a Function -ok 332 — Returns true for arrays with no falsey values -ok 333 — Returns false for arrays with 0 -ok 334 — Returns false for arrays with NaN -ok 335 — Returns false for arrays with undefined -ok 336 — Returns false for arrays with null -ok 337 — Returns false for arrays with empty strings -ok 338 — Returns true with predicate function -ok 339 — Returns false with a predicate function +ok 162 — all is a Function +ok 163 — Returns true for arrays with no falsey values +ok 164 — Returns false for arrays with 0 +ok 165 — Returns false for arrays with NaN +ok 166 — Returns false for arrays with undefined +ok 167 — Returns false for arrays with null +ok 168 — Returns false for arrays with empty strings +ok 169 — Returns true with predicate function +ok 170 — Returns false with a predicate function -# PASS test/reduceWhich/reduceWhich.test.js +# PASS test/zip/zip.test.js -ok 340 — reduceWhich is a Function -ok 341 — Returns the minimum of an array -ok 342 — Returns the maximum of an array -ok 343 — Returns the object with the minimum specified value in an array +ok 171 — zip is a Function +ok 172 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] +ok 173 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] +ok 174 — zip([]) returns [] +ok 175 — zip(123) returns [] +ok 176 — zip([a, b], [1, 2], [true, false]) returns an Array +ok 177 — zip([a], [1, 2], [true, false]) returns an Array +ok 178 — zip(null) throws an error +ok 179 — zip(undefined) throws an error -# PASS test/binomialCoefficient/binomialCoefficient.test.js +# PASS test/validateNumber/validateNumber.test.js -ok 344 — binomialCoefficient is a Function -ok 345 — Returns the appropriate value -ok 346 — Returns the appropriate value -ok 347 — Returns the appropriate value -ok 348 — Returns NaN -ok 349 — Returns NaN +ok 180 — validateNumber is a Function +ok 181 — validateNumber(9) returns true +ok 182 — validateNumber(234asd.slice(0, 2)) returns true +ok 183 — validateNumber(1232) returns true +ok 184 — validateNumber(1232 + 13423) returns true +ok 185 — validateNumber(1232 * 2342 * 123) returns true +ok 186 — validateNumber(1232.23423536) returns true +ok 187 — validateNumber(234asd) returns false +ok 188 — validateNumber(e234d) returns false +ok 189 — validateNumber(false) returns false +ok 190 — validateNumber(true) returns false +ok 191 — validateNumber(null) returns false +ok 192 — validateNumber(123 * asd) returns false + +# PASS test/zipObject/zipObject.test.js + +ok 193 — zipObject is a Function +ok 194 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} +ok 195 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} +ok 196 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } +ok 197 — zipObject([a], string) returns { a: s } +ok 198 — zipObject() throws an error +ok 199 — zipObject((['string'], null) throws an error +ok 200 — zipObject(null, [1]) throws an error +ok 201 — zipObject('string') throws an error +ok 202 — zipObject('test', 'string') throws an error + +# PASS test/pluralize/pluralize.test.js + +ok 203 — pluralize is a Function +ok 204 — Produces the plural of the word +ok 205 — Produces the singular of the word +ok 206 — Produces the plural of the word +ok 207 — Prodices the defined plural of the word +ok 208 — Works with a dictionary + +# PASS test/longestItem/longestItem.test.js + +ok 209 — longestItem is a Function +ok 210 — Returns the longest object from plain values +ok 211 — Returns the longest object from a spread array +ok 212 — Returns the longest object from mixed input +ok 213 — Returns the longest array +ok 214 — Returns the longest object when comparing arrays and strings +ok 215 — Returns undefined without any input +ok 216 — Returns first found of all similar +ok 217 — Throws TypeError if all inputs are undefined + +# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js + +ok 218 — randomIntArrayInRange is a Function +ok 219 — The returned array contains only integers +ok 220 — The returned array has the proper length +ok 221 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/randomIntegerInRange/randomIntegerInRange.test.js + +ok 222 — randomIntegerInRange is a Function +ok 223 — The returned value is an integer +ok 224 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/yesNo/yesNo.test.js + +ok 225 — yesNo is a Function +ok 226 — yesNo(Y) returns true +ok 227 — yesNo(yes) returns true +ok 228 — yesNo(foo, true) returns true +ok 229 — yesNo(No) returns false +ok 230 — yesNo() returns false +ok 231 — yesNo(null) returns false +ok 232 — yesNo(undefined) returns false +ok 233 — yesNo([123, null]) returns false +ok 234 — yesNo([Yes, No]) returns false +ok 235 — yesNo({ 2: Yes }) returns false +ok 236 — yesNo([Yes, No], true) returns true +ok 237 — yesNo({ 2: Yes }, true) returns true + +# PASS test/isSorted/isSorted.test.js + +ok 238 — isSorted is a Function +ok 239 — Array is sorted in ascending order +ok 240 — Array is sorted in ascending order +ok 241 — Array is sorted in ascending order +ok 242 — Array is sorted in ascending order +ok 243 — Array is sorted in descending order +ok 244 — Array is sorted in descending order +ok 245 — Array is sorted in descending order +ok 246 — Array is sorted in descending order +ok 247 — Array is empty +ok 248 — Array is not sorted, direction changed in array +ok 249 — Array is not sorted, direction changed in array + +# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js + +ok 250 — initializeArrayWithRange is a Function +ok 251 — Initializes an array containing the numbers in the specified range (witout start value) +ok 252 — Initializes an array containing the numbers in the specified range +ok 253 — Initializes an array containing the numbers in the specified range (with step) + +# PASS test/sampleSize/sampleSize.test.js + +ok 254 — sampleSize is a Function +ok 255 — Returns a single element without n specified +ok 256 — Returns a random sample of specified size from an array +ok 257 — Returns all elements in an array if n >= length +ok 258 — Returns an empty array if original array is empty +ok 259 — Returns an empty array if n = 0 # PASS test/equals/equals.test.js -ok 350 — equals is a Function -ok 351 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 352 — [1,2,3] is equal to [1,2,3] -ok 353 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 354 — [1,2,3] is not equal to [1,2,4] -ok 355 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. +ok 260 — equals is a Function +ok 261 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 262 — [1,2,3] is equal to [1,2,3] +ok 263 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 264 — [1,2,3] is not equal to [1,2,4] +ok 265 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. + +# PASS test/randomNumberInRange/randomNumberInRange.test.js + +ok 266 — randomNumberInRange is a Function +ok 267 — The returned value is a number +ok 268 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/chunk/chunk.test.js + +ok 269 — chunk is a Function +ok 270 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] +ok 271 — chunk([]) returns [] +ok 272 — chunk(123) returns [] +ok 273 — chunk({ a: 123}) returns [] +ok 274 — chunk(string, 2) returns [ st, ri, ng ] +ok 275 — chunk() throws an error +ok 276 — chunk(undefined) throws an error +ok 277 — chunk(null) throws an error +ok 278 — chunk(This is a string, 2) takes less than 2s to run + +# PASS test/orderBy/orderBy.test.js + +ok 279 — orderBy is a Function +ok 280 — Returns a sorted array of objects ordered by properties and orders. +ok 281 — Returns a sorted array of objects ordered by properties and orders. + +# PASS test/CSVToArray/CSVToArray.test.js + +ok 282 — CSVToArray is a Function +ok 283 — CSVToArray works with default delimiter +ok 284 — CSVToArray works with custom delimiter +ok 285 — CSVToArray omits the first row +ok 286 — CSVToArray omits the first row and works with a custom delimiter + +# PASS test/uniqueElementsBy/uniqueElementsBy.test.js + +ok 287 — uniqueElementsBy is a Function +ok 288 — uniqueElementsBy works for properties +ok 289 — uniqueElementsBy works for nested properties + +# PASS test/any/any.test.js + +ok 290 — any is a Function +ok 291 — Returns true for arrays with at least one truthy value +ok 292 — Returns false for arrays with no truthy values +ok 293 — Returns false for arrays with no truthy values +ok 294 — Returns true with predicate function +ok 295 — Returns false with a predicate function # PASS test/geometricProgression/geometricProgression.test.js -ok 356 — geometricProgression is a Function -ok 357 — Initializes an array containing the numbers in the specified range -ok 358 — Initializes an array containing the numbers in the specified range -ok 359 — Initializes an array containing the numbers in the specified range +ok 296 — geometricProgression is a Function +ok 297 — Initializes an array containing the numbers in the specified range +ok 298 — Initializes an array containing the numbers in the specified range +ok 299 — Initializes an array containing the numbers in the specified range -# PASS test/dig/dig.test.js +# PASS test/last/last.test.js -ok 360 — dig is a Function -ok 361 — Dig target success -ok 362 — Dig target with falsey value -ok 363 — Dig target with array -ok 364 — Unknown target return undefined +ok 300 — last is a Function +ok 301 — last({ a: 1234}) returns undefined +ok 302 — last([1, 2, 3]) returns 3 +ok 303 — last({ 0: false}) returns undefined +ok 304 — last(String) returns g +ok 305 — last(null) throws an Error +ok 306 — last(undefined) throws an Error +ok 307 — last() throws an Error +ok 308 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run -# PASS test/invertKeyValues/invertKeyValues.test.js +# PASS test/head/head.test.js -ok 365 — invertKeyValues is a Function -ok 366 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } -ok 367 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } +ok 309 — head is a Function +ok 310 — head({ a: 1234}) returns undefined +ok 311 — head([1, 2, 3]) returns 1 +ok 312 — head({ 0: false}) returns false +ok 313 — head(String) returns S +ok 314 — head(null) throws an Error +ok 315 — head(undefined) throws an Error +ok 316 — head() throws an Error +ok 317 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run -# PASS test/fromCamelCase/fromCamelCase.test.js +# PASS test/mapString/mapString.test.js -ok 368 — fromCamelCase is a Function -ok 369 — Converts a string from camelcase -ok 370 — Converts a string from camelcase -ok 371 — Converts a string from camelcase +ok 318 — mapString is a Function +ok 319 — mapString returns a capitalized string +ok 320 — mapString can deal with indexes +ok 321 — mapString can deal with the full string -# PASS test/castArray/castArray.test.js +# PASS test/toCurrency/toCurrency.test.js -ok 372 — castArray is a Function -ok 373 — Works for single values -ok 374 — Works for arrays with one value -ok 375 — Works for arrays with multiple value -ok 376 — Works for strings -ok 377 — Works for objects +ok 322 — toCurrency is a Function +ok 323 — currency: Euro | currencyLangFormat: Local +ok 324 — currency: US Dollar | currencyLangFormat: English (United States) +ok 325 — currency: Japanese Yen | currencyLangFormat: Local + +# PASS test/join/join.test.js + +ok 326 — join is a Function +ok 327 — Joins all elements of an array into a string and returns this string +ok 328 — Joins all elements of an array into a string and returns this string +ok 329 — Joins all elements of an array into a string and returns this string # PASS test/mapObject/mapObject.test.js -ok 378 — mapObject is a Function -ok 379 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } -ok 380 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } -ok 381 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } +ok 330 — mapObject is a Function +ok 331 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 332 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 333 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } + +# PASS test/reduceWhich/reduceWhich.test.js + +ok 334 — reduceWhich is a Function +ok 335 — Returns the minimum of an array +ok 336 — Returns the maximum of an array +ok 337 — Returns the object with the minimum specified value in an array + +# PASS test/invertKeyValues/invertKeyValues.test.js + +ok 338 — invertKeyValues is a Function +ok 339 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 340 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# PASS test/fromCamelCase/fromCamelCase.test.js + +ok 341 — fromCamelCase is a Function +ok 342 — Converts a string from camelcase +ok 343 — Converts a string from camelcase +ok 344 — Converts a string from camelcase + +# PASS test/isEmpty/isEmpty.test.js + +ok 345 — isEmpty is a Function +ok 346 — Returns true for empty Map +ok 347 — Returns true for empty Set +ok 348 — Returns true for empty array +ok 349 — Returns true for empty object +ok 350 — Returns true for empty string +ok 351 — Returns false for non-empty array +ok 352 — Returns false for non-empty object +ok 353 — Returns false for non-empty string +ok 354 — Returns true - type is not considered a collection +ok 355 — Returns true - type is not considered a collection + +# PASS test/binomialCoefficient/binomialCoefficient.test.js + +ok 356 — binomialCoefficient is a Function +ok 357 — Returns the appropriate value +ok 358 — Returns the appropriate value +ok 359 — Returns the appropriate value +ok 360 — Returns NaN +ok 361 — Returns NaN + +# PASS test/castArray/castArray.test.js + +ok 362 — castArray is a Function +ok 363 — Works for single values +ok 364 — Works for arrays with one value +ok 365 — Works for arrays with multiple value +ok 366 — Works for strings +ok 367 — Works for objects + +# PASS test/allEqual/allEqual.test.js + +ok 368 — allEqual is a Function +ok 369 — Truthy numbers +ok 370 — Falsy numbers +ok 371 — Truthy strings +ok 372 — Falsy numbers +ok 373 — Truthy trues +ok 374 — Truthy falses +ok 375 — Falsy trues +ok 376 — Falsy falses # PASS test/approximatelyEqual/approximatelyEqual.test.js -ok 382 — approximatelyEqual is a Function -ok 383 — Works for PI / 2 -ok 384 — Works for 0.1 + 0.2 === 0.3 -ok 385 — Works for exactly equal values -ok 386 — Works for a custom epsilon +ok 377 — approximatelyEqual is a Function +ok 378 — Works for PI / 2 +ok 379 — Works for 0.1 + 0.2 === 0.3 +ok 380 — Works for exactly equal values +ok 381 — Works for a custom epsilon -# PASS test/inRange/inRange.test.js +# PASS test/dig/dig.test.js -ok 387 — inRange is a Function -ok 388 — The given number falls within the given range -ok 389 — The given number falls within the given range -ok 390 — The given number does not falls within the given range -ok 391 — The given number does not falls within the given range - -# PASS test/none/none.test.js - -ok 392 — none is a Function -ok 393 — Returns true for arrays with no truthy values -ok 394 — Returns false for arrays with at least one truthy value -ok 395 — Returns true with a predicate function -ok 396 — Returns false with predicate function - -# PASS test/randomHexColorCode/randomHexColorCode.test.js - -ok 397 — randomHexColorCode is a Function -ok 398 — randomHexColorCode has to proper length -ok 399 — The color code starts with "#" -ok 400 — The color code contains only valid hex-digits - -# PASS test/binarySearch/binarySearch.test.js - -ok 401 — binarySearch is a Function -ok 402 — Finds item in array -ok 403 — Returns -1 when not found -ok 404 — Works with empty arrays -ok 405 — Works for one element arrays - -# PASS test/factorial/factorial.test.js - -ok 406 — factorial is a Function -ok 407 — Calculates the factorial of 720 -ok 408 — Calculates the factorial of 0 -ok 409 — Calculates the factorial of 1 -ok 410 — Calculates the factorial of 4 -ok 411 — Calculates the factorial of 10 - -# PASS test/mask/mask.test.js - -ok 412 — mask is a Function -ok 413 — Replaces all but the last num of characters with the specified mask character -ok 414 — Replaces all but the last num of characters with the specified mask character -ok 415 — Replaces all but the last num of characters with the specified mask character +ok 382 — dig is a Function +ok 383 — Dig target success +ok 384 — Dig target with falsey value +ok 385 — Dig target with array +ok 386 — Unknown target return undefined # PASS test/JSONtoCSV/JSONtoCSV.test.js -ok 416 — JSONtoCSV is a Function -ok 417 — JSONtoCSV works with default delimiter -ok 418 — JSONtoCSV works with custom delimiter +ok 387 — JSONtoCSV is a Function +ok 388 — JSONtoCSV works with default delimiter +ok 389 — JSONtoCSV works with custom delimiter + +# PASS test/none/none.test.js + +ok 390 — none is a Function +ok 391 — Returns true for arrays with no truthy values +ok 392 — Returns false for arrays with at least one truthy value +ok 393 — Returns true with a predicate function +ok 394 — Returns false with predicate function + +# PASS test/inRange/inRange.test.js + +ok 395 — inRange is a Function +ok 396 — The given number falls within the given range +ok 397 — The given number falls within the given range +ok 398 — The given number does not falls within the given range +ok 399 — The given number does not falls within the given range # PASS test/converge/converge.test.js -ok 419 — converge is a Function -ok 420 — Produces the average of the array -ok 421 — Produces the strange concatenation +ok 400 — converge is a Function +ok 401 — Produces the average of the array +ok 402 — Produces the strange concatenation # PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js -ok 422 — toOrdinalSuffix is a Function -ok 423 — Adds an ordinal suffix to a number -ok 424 — Adds an ordinal suffix to a number -ok 425 — Adds an ordinal suffix to a number -ok 426 — Adds an ordinal suffix to a number +ok 403 — toOrdinalSuffix is a Function +ok 404 — Adds an ordinal suffix to a number +ok 405 — Adds an ordinal suffix to a number +ok 406 — Adds an ordinal suffix to a number +ok 407 — Adds an ordinal suffix to a number # PASS test/capitalize/capitalize.test.js -ok 427 — capitalize is a Function -ok 428 — Capitalizes the first letter of a string -ok 429 — Capitalizes the first letter of a string -ok 430 — Works with characters -ok 431 — "Works with single character words - -# PASS test/prettyBytes/prettyBytes.test.js - -ok 432 — prettyBytes is a Function -ok 433 — Converts a number in bytes to a human-readable string. -ok 434 — Converts a number in bytes to a human-readable string. -ok 435 — Converts a number in bytes to a human-readable string. +ok 408 — capitalize is a Function +ok 409 — Capitalizes the first letter of a string +ok 410 — Capitalizes the first letter of a string +ok 411 — Works with characters +ok 412 — "Works with single character words # PASS test/isAnagram/isAnagram.test.js -ok 436 — isAnagram is a Function -ok 437 — Checks valid anagram -ok 438 — Works with spaces -ok 439 — Ignores case -ok 440 — Ignores special characters +ok 413 — isAnagram is a Function +ok 414 — Checks valid anagram +ok 415 — Works with spaces +ok 416 — Ignores case +ok 417 — Ignores special characters + +# PASS test/randomHexColorCode/randomHexColorCode.test.js + +ok 418 — randomHexColorCode is a Function +ok 419 — randomHexColorCode has to proper length +ok 420 — The color code starts with "#" +ok 421 — The color code contains only valid hex-digits # PASS test/tomorrow/tomorrow.test.js -ok 441 — tomorrow is a Function -ok 442 — Returns the correct year -ok 443 — Returns the correct month -ok 444 — Returns the correct date +ok 422 — tomorrow is a Function +ok 423 — Returns the correct year +ok 424 — Returns the correct month +ok 425 — Returns the correct date -# PASS test/isString/isString.test.js +# PASS test/mask/mask.test.js -ok 445 — isString is a Function -ok 446 — foo is a string -ok 447 — "10" is a string -ok 448 — Empty string is a string -ok 449 — 10 is not a string -ok 450 — true is not string +ok 426 — mask is a Function +ok 427 — Replaces all but the last num of characters with the specified mask character +ok 428 — Replaces all but the last num of characters with the specified mask character +ok 429 — Replaces all but the last num of characters with the specified mask character -# PASS test/dropRight/dropRight.test.js +# PASS test/factorial/factorial.test.js -ok 451 — dropRight is a Function -ok 452 — Returns a new array with n elements removed from the right -ok 453 — Returns a new array with n elements removed from the right -ok 454 — Returns a new array with n elements removed from the right +ok 430 — factorial is a Function +ok 431 — Calculates the factorial of 720 +ok 432 — Calculates the factorial of 0 +ok 433 — Calculates the factorial of 1 +ok 434 — Calculates the factorial of 4 +ok 435 — Calculates the factorial of 10 + +# PASS test/prettyBytes/prettyBytes.test.js + +ok 436 — prettyBytes is a Function +ok 437 — Converts a number in bytes to a human-readable string. +ok 438 — Converts a number in bytes to a human-readable string. +ok 439 — Converts a number in bytes to a human-readable string. # PASS test/deepClone/deepClone.test.js -ok 455 — deepClone is a Function -ok 456 — Shallow cloning works -ok 457 — Deep cloning works -ok 458 — Array shallow cloning works -ok 459 — Array deep cloning works +ok 440 — deepClone is a Function +ok 441 — Shallow cloning works +ok 442 — Deep cloning works +ok 443 — Array shallow cloning works +ok 444 — Array deep cloning works -# PASS test/formatDuration/formatDuration.test.js +# PASS test/binarySearch/binarySearch.test.js -ok 460 — formatDuration is a Function -ok 461 — Returns the human readable format of the given number of milliseconds -ok 462 — Returns the human readable format of the given number of milliseconds +ok 445 — binarySearch is a Function +ok 446 — Finds item in array +ok 447 — Returns -1 when not found +ok 448 — Works with empty arrays +ok 449 — Works for one element arrays # PASS test/shuffle/shuffle.test.js -ok 463 — shuffle is a Function -ok 464 — Shuffles the array -ok 465 — New array contains all original elements -ok 466 — Works for empty arrays -ok 467 — Works for single-element arrays +ok 450 — shuffle is a Function +ok 451 — Shuffles the array +ok 452 — New array contains all original elements +ok 453 — Works for empty arrays +ok 454 — Works for single-element arrays + +# PASS test/stringPermutations/stringPermutations.test.js + +ok 455 — stringPermutations is a Function +ok 456 — Generates all stringPermutations of a string +ok 457 — Works for single-letter strings +ok 458 — Works for empty strings + +# PASS test/isObjectLike/isObjectLike.test.js + +ok 459 — isObjectLike is a Function +ok 460 — Returns true for an object +ok 461 — Returns true for an array +ok 462 — Returns false for a function +ok 463 — Returns false for null + +# PASS test/isString/isString.test.js + +ok 464 — isString is a Function +ok 465 — foo is a string +ok 466 — "10" is a string +ok 467 — Empty string is a string +ok 468 — 10 is not a string +ok 469 — true is not string # PASS test/hexToRGB/hexToRGB.test.js -ok 468 — hexToRGB is a Function -ok 469 — Converts a color code to a rgb() or rgba() string -ok 470 — Converts a color code to a rgb() or rgba() string +ok 470 — hexToRGB is a Function ok 471 — Converts a color code to a rgb() or rgba() string +ok 472 — Converts a color code to a rgb() or rgba() string +ok 473 — Converts a color code to a rgb() or rgba() string -# PASS test/untildify/untildify.test.js +# PASS test/partition/partition.test.js -ok 472 — untildify is a Function -ok 473 — Contains no tildes -ok 474 — Does not alter the rest of the path -ok 475 — Does not alter paths without tildes +ok 474 — partition is a Function +ok 475 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. # PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js @@ -698,89 +698,89 @@ ok 477 — Capitalizes the first letter of every word in a string ok 478 — Works with characters ok 479 — Works with one word string -# PASS test/isObjectLike/isObjectLike.test.js +# PASS test/formatDuration/formatDuration.test.js -ok 480 — isObjectLike is a Function -ok 481 — Returns true for an object -ok 482 — Returns true for an array -ok 483 — Returns false for a function -ok 484 — Returns false for null - -# PASS test/stringPermutations/stringPermutations.test.js - -ok 485 — stringPermutations is a Function -ok 486 — Generates all stringPermutations of a string -ok 487 — Works for single-letter strings -ok 488 — Works for empty strings +ok 480 — formatDuration is a Function +ok 481 — Returns the human readable format of the given number of milliseconds +ok 482 — Returns the human readable format of the given number of milliseconds # PASS test/sumPower/sumPower.test.js -ok 489 — sumPower is a Function -ok 490 — Returns the sum of the powers of all the numbers from start to end -ok 491 — Returns the sum of the powers of all the numbers from start to end -ok 492 — Returns the sum of the powers of all the numbers from start to end - -# PASS test/partition/partition.test.js - -ok 493 — partition is a Function -ok 494 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. - -# PASS test/reducedFilter/reducedFilter.test.js - -ok 495 — reducedFilter is a Function -ok 496 — Filter an array of objects based on a condition while also filtering out unspecified keys. +ok 483 — sumPower is a Function +ok 484 — Returns the sum of the powers of all the numbers from start to end +ok 485 — Returns the sum of the powers of all the numbers from start to end +ok 486 — Returns the sum of the powers of all the numbers from start to end # PASS test/isObject/isObject.test.js -ok 497 — isObject is a Function -ok 498 — isObject([1, 2, 3, 4]) is a object -ok 499 — isObject([]) is a object -ok 500 — isObject({ a:1 }) is a object -ok 501 — isObject(true) is not a object +ok 487 — isObject is a Function +ok 488 — isObject([1, 2, 3, 4]) is a object +ok 489 — isObject([]) is a object +ok 490 — isObject({ a:1 }) is a object +ok 491 — isObject(true) is not a object + +# PASS test/dropRight/dropRight.test.js + +ok 492 — dropRight is a Function +ok 493 — Returns a new array with n elements removed from the right +ok 494 — Returns a new array with n elements removed from the right +ok 495 — Returns a new array with n elements removed from the right # PASS test/standardDeviation/standardDeviation.test.js -ok 502 — standardDeviation is a Function -ok 503 — Returns the standard deviation of an array of numbers -ok 504 — Returns the standard deviation of an array of numbers +ok 496 — standardDeviation is a Function +ok 497 — Returns the standard deviation of an array of numbers +ok 498 — Returns the standard deviation of an array of numbers # PASS test/URLJoin/URLJoin.test.js -ok 505 — URLJoin is a Function -ok 506 — Returns proper URL -ok 507 — Returns proper URL +ok 499 — URLJoin is a Function +ok 500 — Returns proper URL +ok 501 — Returns proper URL + +# PASS test/untildify/untildify.test.js + +ok 502 — untildify is a Function +ok 503 — Contains no tildes +ok 504 — Does not alter the rest of the path +ok 505 — Does not alter paths without tildes # PASS test/CSVToJSON/CSVToJSON.test.js -ok 508 — CSVToJSON is a Function -ok 509 — CSVToJSON works with default delimiter -ok 510 — CSVToJSON works with custom delimiter - -# PASS test/unzip/unzip.test.js - -ok 511 — unzip is a Function -ok 512 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] -ok 513 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] +ok 506 — CSVToJSON is a Function +ok 507 — CSVToJSON works with default delimiter +ok 508 — CSVToJSON works with custom delimiter # PASS test/byteSize/byteSize.test.js -ok 514 — byteSize is a Function -ok 515 — Works for a single letter -ok 516 — Works for a common string -ok 517 — Works for emoji +ok 509 — byteSize is a Function +ok 510 — Works for a single letter +ok 511 — Works for a common string +ok 512 — Works for emoji + +# PASS test/unzip/unzip.test.js + +ok 513 — unzip is a Function +ok 514 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 515 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] # PASS test/uniqueSymmetricDifference/uniqueSymmetricDifference.test.js -ok 518 — uniqueSymmetricDifference is a Function -ok 519 — Returns the symmetric difference between two arrays. -ok 520 — Does not return duplicates from one array +ok 516 — uniqueSymmetricDifference is a Function +ok 517 — Returns the symmetric difference between two arrays. +ok 518 — Does not return duplicates from one array # PASS test/isAbsoluteURL/isAbsoluteURL.test.js -ok 521 — isAbsoluteURL is a Function -ok 522 — Given string is an absolute URL -ok 523 — Given string is an absolute URL -ok 524 — Given string is not an absolute URL +ok 519 — isAbsoluteURL is a Function +ok 520 — Given string is an absolute URL +ok 521 — Given string is an absolute URL +ok 522 — Given string is not an absolute URL + +# PASS test/reducedFilter/reducedFilter.test.js + +ok 523 — reducedFilter is a Function +ok 524 — Filter an array of objects based on a condition while also filtering out unspecified keys. # PASS test/sortedIndex/sortedIndex.test.js @@ -788,423 +788,423 @@ ok 525 — sortedIndex is a Function ok 526 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. ok 527 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -# PASS test/matches/matches.test.js - -ok 528 — matches is a Function -ok 529 — Matches returns true for two similar objects -ok 530 — Matches returns false for two non-similar objects - -# PASS test/collectInto/collectInto.test.js - -ok 531 — collectInto is a Function -ok 532 — Works with multiple promises - -# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js - -ok 533 — symmetricDifferenceWith is a Function -ok 534 — Returns the symmetric difference between two arrays, using a provided function as a comparator - # PASS test/isValidJSON/isValidJSON.test.js -ok 535 — isValidJSON is a Function -ok 536 — {"name":"Adam","age":20} is a valid JSON -ok 537 — {"name":"Adam",age:"20"} is not a valid JSON -ok 538 — null is a valid JSON +ok 528 — isValidJSON is a Function +ok 529 — {"name":"Adam","age":20} is a valid JSON +ok 530 — {"name":"Adam",age:"20"} is not a valid JSON +ok 531 — null is a valid JSON + +# PASS test/matches/matches.test.js + +ok 532 — matches is a Function +ok 533 — Matches returns true for two similar objects +ok 534 — Matches returns false for two non-similar objects # PASS test/pad/pad.test.js -ok 539 — pad is a Function -ok 540 — cat is padded on both sides -ok 541 — length of string is 8 -ok 542 — pads 42 with "0" -ok 543 — does not truncates if string exceeds length +ok 535 — pad is a Function +ok 536 — cat is padded on both sides +ok 537 — length of string is 8 +ok 538 — pads 42 with "0" +ok 539 — does not truncates if string exceeds length + +# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js + +ok 540 — symmetricDifferenceWith is a Function +ok 541 — Returns the symmetric difference between two arrays, using a provided function as a comparator # PASS test/uncurry/uncurry.test.js -ok 544 — uncurry is a Function -ok 545 — Works without a provided value for n -ok 546 — Works with n = 2 -ok 547 — Works with n = 3 +ok 542 — uncurry is a Function +ok 543 — Works without a provided value for n +ok 544 — Works with n = 2 +ok 545 — Works with n = 3 # PASS test/functionName/functionName.test.js -ok 548 — functionName is a Function -ok 549 — Works for native functions -ok 550 — Works for functions -ok 551 — Works for arrow functions - -# PASS test/lowercaseKeys/lowercaseKeys.test.js - -ok 552 — lowercaseKeys is a Function -ok 553 — Lowercases object keys -ok 554 — Does not mutate original object - -# PASS test/reject/reject.test.js - -ok 555 — reject is a Function -ok 556 — Works with numbers -ok 557 — Works with strings - -# PASS test/collatz/collatz.test.js - -ok 558 — collatz is a Function -ok 559 — When n is even, divide by 2 -ok 560 — When n is odd, times by 3 and add 1 -ok 561 — Eventually reaches 1 +ok 546 — functionName is a Function +ok 547 — Works for native functions +ok 548 — Works for functions +ok 549 — Works for arrow functions # PASS test/groupBy/groupBy.test.js -ok 562 — groupBy is a Function -ok 563 — Groups the elements of an array based on the given function -ok 564 — Groups the elements of an array based on the given function +ok 550 — groupBy is a Function +ok 551 — Groups the elements of an array based on the given function +ok 552 — Groups the elements of an array based on the given function + +# PASS test/collectInto/collectInto.test.js + +ok 553 — collectInto is a Function +ok 554 — Works with multiple promises + +# PASS test/lowercaseKeys/lowercaseKeys.test.js + +ok 555 — lowercaseKeys is a Function +ok 556 — Lowercases object keys +ok 557 — Does not mutate original object # PASS test/matchesWith/matchesWith.test.js -ok 565 — matchesWith is a Function -ok 566 — Returns true for two objects with similar values, based on the provided function +ok 558 — matchesWith is a Function +ok 559 — Returns true for two objects with similar values, based on the provided function -# PASS test/symmetricDifference/symmetricDifference.test.js +# PASS test/collatz/collatz.test.js -ok 567 — symmetricDifference is a Function -ok 568 — Returns the symmetric difference between two arrays. -ok 569 — Returns duplicates from one array - -# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js - -ok 570 — UUIDGeneratorNode is a Function -ok 571 — Contains dashes in the proper places -ok 572 — Only contains hexadecimal digits - -# PASS test/nthArg/nthArg.test.js - -ok 573 — nthArg is a Function -ok 574 — Returns the nth argument -ok 575 — Returns undefined if arguments too few -ok 576 — Works for negative values - -# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js - -ok 577 — pipeAsyncFunctions is a Function -ok 578 — pipeAsyncFunctions result should be 15 - -# PASS test/luhnCheck/luhnCheck.test.js - -ok 579 — luhnCheck is a Function -ok 580 — validates identification number -ok 581 — validates identification number -ok 582 — validates identification number - -# PASS test/sample/sample.test.js - -ok 583 — sample is a Function -ok 584 — Returns a random element from the array -ok 585 — Works for single-element arrays -ok 586 — Returns undefined for empty array - -# PASS test/flattenObject/flattenObject.test.js - -ok 587 — flattenObject is a Function -ok 588 — Flattens an object with the paths for keys -ok 589 — Works with arrays - -# PASS test/drop/drop.test.js - -ok 590 — drop is a Function -ok 591 — Works without the last argument -ok 592 — Removes appropriate element count as specified -ok 593 — Empties array given a count greater than length +ok 560 — collatz is a Function +ok 561 — When n is even, divide by 2 +ok 562 — When n is odd, times by 3 and add 1 +ok 563 — Eventually reaches 1 # PASS test/intersectionWith/intersectionWith.test.js -ok 594 — intersectionWith is a Function -ok 595 — Returns a list of elements that exist in both arrays, using a provided comparator function +ok 564 — intersectionWith is a Function +ok 565 — Returns a list of elements that exist in both arrays, using a provided comparator function -# PASS test/isLowerCase/isLowerCase.test.js +# PASS test/symmetricDifference/symmetricDifference.test.js -ok 596 — isLowerCase is a Function -ok 597 — passed string is a lowercase -ok 598 — passed string is a lowercase -ok 599 — passed value is not a lowercase +ok 566 — symmetricDifference is a Function +ok 567 — Returns the symmetric difference between two arrays. +ok 568 — Returns duplicates from one array -# PASS test/memoize/memoize.test.js +# PASS test/reject/reject.test.js -ok 600 — memoize is a Function -ok 601 — Function works properly -ok 602 — Function works properly -ok 603 — Cache stores values +ok 569 — reject is a Function +ok 570 — Works with numbers +ok 571 — Works with strings + +# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js + +ok 572 — UUIDGeneratorNode is a Function +ok 573 — Contains dashes in the proper places +ok 574 — Only contains hexadecimal digits + +# PASS test/sample/sample.test.js + +ok 575 — sample is a Function +ok 576 — Returns a random element from the array +ok 577 — Works for single-element arrays +ok 578 — Returns undefined for empty array + +# PASS test/drop/drop.test.js + +ok 579 — drop is a Function +ok 580 — Works without the last argument +ok 581 — Removes appropriate element count as specified +ok 582 — Empties array given a count greater than length + +# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js + +ok 583 — pipeAsyncFunctions is a Function +ok 584 — pipeAsyncFunctions result should be 15 + +# PASS test/luhnCheck/luhnCheck.test.js + +ok 585 — luhnCheck is a Function +ok 586 — validates identification number +ok 587 — validates identification number +ok 588 — validates identification number + +# PASS test/nthArg/nthArg.test.js + +ok 589 — nthArg is a Function +ok 590 — Returns the nth argument +ok 591 — Returns undefined if arguments too few +ok 592 — Works for negative values # PASS test/renameKeys/renameKeys.test.js -ok 604 — renameKeys is a Function -ok 605 — renameKeys is a Function +ok 593 — renameKeys is a Function +ok 594 — renameKeys is a Function -# PASS test/functions/functions.test.js +# PASS test/flattenObject/flattenObject.test.js -ok 606 — functions is a Function -ok 607 — Returns own methods -ok 608 — Returns own and inherited methods +ok 595 — flattenObject is a Function +ok 596 — Flattens an object with the paths for keys +ok 597 — Works with arrays # PASS test/differenceBy/differenceBy.test.js -ok 609 — differenceBy is a Function -ok 610 — Works using a native function and numbers -ok 611 — Works with arrow function and objects +ok 598 — differenceBy is a Function +ok 599 — Works using a native function and numbers +ok 600 — Works with arrow function and objects -# PASS test/averageBy/averageBy.test.js +# PASS test/functions/functions.test.js -ok 612 — averageBy is a Function -ok 613 — Produces the right result with a function -ok 614 — Produces the right result with a property name - -# PASS test/elo/elo.test.js - -ok 615 — elo is a Function -ok 616 — Standard 1v1s -ok 617 — Standard 1v1s -ok 618 — 4 player FFA, all same rank - -# PASS test/findLastKey/findLastKey.test.js - -ok 619 — findLastKey is a Function -ok 620 — eturns the appropriate key - -# PASS test/isPromiseLike/isPromiseLike.test.js - -ok 621 — isPromiseLike is a Function -ok 622 — Returns true for a promise-like object -ok 623 — Returns false for an empty object +ok 601 — functions is a Function +ok 602 — Returns own methods +ok 603 — Returns own and inherited methods # PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js -ok 624 — symmetricDifferenceBy is a Function -ok 625 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both +ok 604 — symmetricDifferenceBy is a Function +ok 605 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both -# PASS test/bindKey/bindKey.test.js +# PASS test/findLastKey/findLastKey.test.js -ok 626 — bindKey is a Function -ok 627 — Binds function to an object context - -# PASS test/isArrayLike/isArrayLike.test.js - -ok 628 — isArrayLike is a Function -ok 629 — Returns true for a string -ok 630 — Returns true for an array -ok 631 — Returns false for null +ok 606 — findLastKey is a Function +ok 607 — eturns the appropriate key # PASS test/truthCheckCollection/truthCheckCollection.test.js -ok 632 — truthCheckCollection is a Function -ok 633 — second argument is truthy on all elements of a collection +ok 608 — truthCheckCollection is a Function +ok 609 — second argument is truthy on all elements of a collection -# PASS test/maxBy/maxBy.test.js +# PASS test/averageBy/averageBy.test.js -ok 634 — maxBy is a Function -ok 635 — Produces the right result with a function -ok 636 — Produces the right result with a property name +ok 610 — averageBy is a Function +ok 611 — Produces the right result with a function +ok 612 — Produces the right result with a property name -# PASS test/isUpperCase/isUpperCase.test.js +# PASS test/bindKey/bindKey.test.js -ok 637 — isUpperCase is a Function -ok 638 — ABC is all upper case -ok 639 — abc is not all upper case -ok 640 — A3@$ is all uppercase +ok 613 — bindKey is a Function +ok 614 — Binds function to an object context + +# PASS test/isLowerCase/isLowerCase.test.js + +ok 615 — isLowerCase is a Function +ok 616 — passed string is a lowercase +ok 617 — passed string is a lowercase +ok 618 — passed value is not a lowercase # PASS test/arrayToCSV/arrayToCSV.test.js -ok 641 — arrayToCSV is a Function -ok 642 — arrayToCSV works with default delimiter -ok 643 — arrayToCSV works with custom delimiter +ok 619 — arrayToCSV is a Function +ok 620 — arrayToCSV works with default delimiter +ok 621 — arrayToCSV works with custom delimiter -# PASS test/findKey/findKey.test.js +# PASS test/isArrayLike/isArrayLike.test.js -ok 644 — findKey is a Function -ok 645 — Returns the appropriate key +ok 622 — isArrayLike is a Function +ok 623 — Returns true for a string +ok 624 — Returns true for an array +ok 625 — Returns false for null -# PASS test/pullAtValue/pullAtValue.test.js +# PASS test/isPromiseLike/isPromiseLike.test.js -ok 646 — pullAtValue is a Function -ok 647 — Pulls the specified values -ok 648 — Pulls the specified values +ok 626 — isPromiseLike is a Function +ok 627 — Returns true for a promise-like object +ok 628 — Returns false for an empty object -# PASS test/promisify/promisify.test.js +# PASS test/memoize/memoize.test.js -ok 649 — promisify is a Function -ok 650 — Returns a promise -ok 651 — Runs the function provided +ok 629 — memoize is a Function +ok 630 — Function works properly +ok 631 — Function works properly +ok 632 — Cache stores values -# PASS test/merge/merge.test.js +# PASS test/isUpperCase/isUpperCase.test.js -ok 652 — merge is a Function -ok 653 — Merges two objects +ok 633 — isUpperCase is a Function +ok 634 — ABC is all upper case +ok 635 — abc is not all upper case +ok 636 — A3@$ is all uppercase + +# PASS test/elo/elo.test.js + +ok 637 — elo is a Function +ok 638 — Standard 1v1s +ok 639 — Standard 1v1s +ok 640 — 4 player FFA, all same rank # PASS test/minBy/minBy.test.js -ok 654 — minBy is a Function -ok 655 — Produces the right result with a function -ok 656 — Produces the right result with a property name +ok 641 — minBy is a Function +ok 642 — Produces the right result with a function +ok 643 — Produces the right result with a property name -# PASS test/coalesceFactory/coalesceFactory.test.js +# PASS test/promisify/promisify.test.js -ok 657 — coalesceFactory is a Function -ok 658 — Returns a customized coalesce function +ok 644 — promisify is a Function +ok 645 — Returns a promise +ok 646 — Runs the function provided + +# PASS test/findKey/findKey.test.js + +ok 647 — findKey is a Function +ok 648 — Returns the appropriate key + +# PASS test/pullAtValue/pullAtValue.test.js + +ok 649 — pullAtValue is a Function +ok 650 — Pulls the specified values +ok 651 — Pulls the specified values + +# PASS test/maxBy/maxBy.test.js + +ok 652 — maxBy is a Function +ok 653 — Produces the right result with a function +ok 654 — Produces the right result with a property name # PASS test/unzipWith/unzipWith.test.js -ok 659 — unzipWith is a Function -ok 660 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] +ok 655 — unzipWith is a Function +ok 656 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] -# PASS test/pullAtIndex/pullAtIndex.test.js +# PASS test/merge/merge.test.js -ok 661 — pullAtIndex is a Function -ok 662 — Pulls the given values -ok 663 — Pulls the given values +ok 657 — merge is a Function +ok 658 — Merges two objects # PASS test/takeRight/takeRight.test.js -ok 664 — takeRight is a Function -ok 665 — Returns an array with n elements removed from the end -ok 666 — Returns an array with n elements removed from the end +ok 659 — takeRight is a Function +ok 660 — Returns an array with n elements removed from the end +ok 661 — Returns an array with n elements removed from the end + +# PASS test/coalesceFactory/coalesceFactory.test.js + +ok 662 — coalesceFactory is a Function +ok 663 — Returns a customized coalesce function + +# PASS test/pullAtIndex/pullAtIndex.test.js + +ok 664 — pullAtIndex is a Function +ok 665 — Pulls the given values +ok 666 — Pulls the given values # PASS test/bind/bind.test.js ok 667 — bind is a Function ok 668 — Binds to an object context -# PASS test/isPlainObject/isPlainObject.test.js +# PASS test/transform/transform.test.js -ok 669 — isPlainObject is a Function -ok 670 — Returns true for a plain object -ok 671 — Returns false for a Map (example of non-plain object) +ok 669 — transform is a Function +ok 670 — Transforms an object # PASS test/runPromisesInSeries/runPromisesInSeries.test.js -ok 672 — runPromisesInSeries is a Function -ok 673 — Runs promises in series - -# PASS test/transform/transform.test.js - -ok 674 — transform is a Function -ok 675 — Transforms an object - -# PASS test/reduceSuccessive/reduceSuccessive.test.js - -ok 676 — reduceSuccessive is a Function -ok 677 — Returns the array of successively reduced values +ok 671 — runPromisesInSeries is a Function +ok 672 — Runs promises in series # PASS test/getURLParameters/getURLParameters.test.js -ok 678 — getURLParameters is a Function -ok 679 — Returns an object containing the parameters of the current URL +ok 673 — getURLParameters is a Function +ok 674 — Returns an object containing the parameters of the current URL -# PASS test/extendHex/extendHex.test.js +# PASS test/reduceSuccessive/reduceSuccessive.test.js -ok 680 — extendHex is a Function -ok 681 — Extends a 3-digit color code to a 6-digit color code -ok 682 — Extends a 3-digit color code to a 6-digit color code - -# PASS test/isNil/isNil.test.js - -ok 683 — isNil is a Function -ok 684 — Returns true for null -ok 685 — Returns true for undefined -ok 686 — Returns false for an empty string - -# PASS test/gcd/gcd.test.js - -ok 687 — gcd is a Function -ok 688 — Calculates the greatest common divisor between two or more numbers/arrays -ok 689 — Calculates the greatest common divisor between two or more numbers/arrays - -# PASS test/pipeFunctions/pipeFunctions.test.js - -ok 690 — pipeFunctions is a Function -ok 691 — Performs left-to-right function composition +ok 675 — reduceSuccessive is a Function +ok 676 — Returns the array of successively reduced values # PASS test/intersectionBy/intersectionBy.test.js -ok 692 — intersectionBy is a Function -ok 693 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both +ok 677 — intersectionBy is a Function +ok 678 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both + +# PASS test/isNil/isNil.test.js + +ok 679 — isNil is a Function +ok 680 — Returns true for null +ok 681 — Returns true for undefined +ok 682 — Returns false for an empty string + +# PASS test/isPlainObject/isPlainObject.test.js + +ok 683 — isPlainObject is a Function +ok 684 — Returns true for a plain object +ok 685 — Returns false for a Map (example of non-plain object) + +# PASS test/gcd/gcd.test.js + +ok 686 — gcd is a Function +ok 687 — Calculates the greatest common divisor between two or more numbers/arrays +ok 688 — Calculates the greatest common divisor between two or more numbers/arrays + +# PASS test/pipeFunctions/pipeFunctions.test.js + +ok 689 — pipeFunctions is a Function +ok 690 — Performs left-to-right function composition # PASS test/isTravisCI/isTravisCI.test.js -ok 694 — isTravisCI is a Function -ok 695 — Running on Travis, correctly evaluates +ok 691 — isTravisCI is a Function +ok 692 — Running on Travis, correctly evaluates # PASS test/take/take.test.js -ok 696 — take is a Function -ok 697 — Returns an array with n elements removed from the beginning. -ok 698 — Returns an array with n elements removed from the beginning. +ok 693 — take is a Function +ok 694 — Returns an array with n elements removed from the beginning. +ok 695 — Returns an array with n elements removed from the beginning. # PASS test/chainAsync/chainAsync.test.js -ok 699 — chainAsync is a Function -ok 700 — Calls all functions in an array - -# PASS test/cleanObj/cleanObj.test.js - -ok 701 — cleanObj is a Function -ok 702 — Removes any properties except the ones specified from a JSON object +ok 696 — chainAsync is a Function +ok 697 — Calls all functions in an array # PASS test/indexOfAll/indexOfAll.test.js -ok 703 — indexOfAll is a Function -ok 704 — Returns all indices of val in an array -ok 705 — Returns all indices of val in an array +ok 698 — indexOfAll is a Function +ok 699 — Returns all indices of val in an array +ok 700 — Returns all indices of val in an array -# PASS test/countBy/countBy.test.js +# PASS test/extendHex/extendHex.test.js -ok 706 — countBy is a Function -ok 707 — Works for functions -ok 708 — Works for property names - -# PASS test/decapitalize/decapitalize.test.js - -ok 709 — decapitalize is a Function -ok 710 — Works with default parameter -ok 711 — Works with second parameter set to true - -# PASS test/overArgs/overArgs.test.js - -ok 712 — overArgs is a Function -ok 713 — Invokes the provided function with its arguments transformed - -# PASS test/nthElement/nthElement.test.js - -ok 714 — nthElement is a Function -ok 715 — Returns the nth element of an array. -ok 716 — Returns the nth element of an array. - -# PASS test/spreadOver/spreadOver.test.js - -ok 717 — spreadOver is a Function -ok 718 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. +ok 701 — extendHex is a Function +ok 702 — Extends a 3-digit color code to a 6-digit color code +ok 703 — Extends a 3-digit color code to a 6-digit color code # PASS test/shallowClone/shallowClone.test.js -ok 719 — shallowClone is a Function -ok 720 — Shallow cloning works -ok 721 — Does not clone deeply +ok 704 — shallowClone is a Function +ok 705 — Shallow cloning works +ok 706 — Does not clone deeply + +# PASS test/overArgs/overArgs.test.js + +ok 707 — overArgs is a Function +ok 708 — Invokes the provided function with its arguments transformed + +# PASS test/cleanObj/cleanObj.test.js + +ok 709 — cleanObj is a Function +ok 710 — Removes any properties except the ones specified from a JSON object + +# PASS test/nthElement/nthElement.test.js + +ok 711 — nthElement is a Function +ok 712 — Returns the nth element of an array. +ok 713 — Returns the nth element of an array. + +# PASS test/decapitalize/decapitalize.test.js + +ok 714 — decapitalize is a Function +ok 715 — Works with default parameter +ok 716 — Works with second parameter set to true + +# PASS test/countBy/countBy.test.js + +ok 717 — countBy is a Function +ok 718 — Works for functions +ok 719 — Works for property names + +# PASS test/spreadOver/spreadOver.test.js + +ok 720 — spreadOver is a Function +ok 721 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. # PASS test/hashNode/hashNode.test.js ok 722 — hashNode is a Function ok 723 — Produces the appropriate hash -# PASS test/partialRight/partialRight.test.js - -ok 724 — partialRight is a Function -ok 725 — Appends arguments - -# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js - -ok 726 — getDaysDiffBetweenDates is a Function -ok 727 — Returns the difference in days between two dates - # PASS test/composeRight/composeRight.test.js -ok 728 — composeRight is a Function -ok 729 — Performs left-to-right function composition +ok 724 — composeRight is a Function +ok 725 — Performs left-to-right function composition + +# PASS test/partialRight/partialRight.test.js + +ok 726 — partialRight is a Function +ok 727 — Appends arguments + +# PASS test/permutations/permutations.test.js + +ok 728 — permutations is a Function +ok 729 — Generates all permutations of an array # PASS test/minN/minN.test.js @@ -1212,22 +1212,22 @@ ok 730 — minN is a Function ok 731 — Returns the n minimum elements from the provided array ok 732 — Returns the n minimum elements from the provided array -# PASS test/permutations/permutations.test.js +# PASS test/flatten/flatten.test.js -ok 733 — permutations is a Function -ok 734 — Generates all permutations of an array +ok 733 — flatten is a Function +ok 734 — Flattens an array +ok 735 — Flattens an array + +# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js + +ok 736 — getDaysDiffBetweenDates is a Function +ok 737 — Returns the difference in days between two dates # PASS test/maxN/maxN.test.js -ok 735 — maxN is a Function -ok 736 — Returns the n maximum elements from the provided array -ok 737 — Returns the n maximum elements from the provided array - -# PASS test/flatten/flatten.test.js - -ok 738 — flatten is a Function -ok 739 — Flattens an array -ok 740 — Flattens an array +ok 738 — maxN is a Function +ok 739 — Returns the n maximum elements from the provided array +ok 740 — Returns the n maximum elements from the provided array # PASS test/when/when.test.js @@ -1235,156 +1235,156 @@ ok 741 — when is a Function ok 742 — Returns the proper result ok 743 — Returns the proper result -# PASS test/splitLines/splitLines.test.js - -ok 744 — splitLines is a Function -ok 745 — Splits a multiline string into an array of lines. - -# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js - -ok 746 — initializeArrayWithValues is a Function -ok 747 — Initializes and fills an array with the specified values - # PASS test/compose/compose.test.js -ok 748 — compose is a Function -ok 749 — Performs right-to-left function composition - -# PASS test/lcm/lcm.test.js - -ok 750 — lcm is a Function -ok 751 — Returns the least common multiple of two or more numbers. -ok 752 — Returns the least common multiple of two or more numbers. +ok 744 — compose is a Function +ok 745 — Performs right-to-left function composition # PASS test/differenceWith/differenceWith.test.js -ok 753 — differenceWith is a Function -ok 754 — Filters out all values from an array - -# PASS test/percentile/percentile.test.js - -ok 755 — percentile is a Function -ok 756 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. - -# PASS test/bindAll/bindAll.test.js - -ok 757 — bindAll is a Function -ok 758 — Binds to an object context +ok 746 — differenceWith is a Function +ok 747 — Filters out all values from an array # PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js -ok 759 — sortedLastIndexBy is a Function -ok 760 — Returns the highest index to insert the element without messing up the list order +ok 748 — sortedLastIndexBy is a Function +ok 749 — Returns the highest index to insert the element without messing up the list order -# PASS test/partial/partial.test.js +# PASS test/splitLines/splitLines.test.js -ok 761 — partial is a Function -ok 762 — Prepends arguments +ok 750 — splitLines is a Function +ok 751 — Splits a multiline string into an array of lines. -# PASS test/palindrome/palindrome.test.js +# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js -ok 763 — palindrome is a Function -ok 764 — Given string is a palindrome -ok 765 — Given string is not a palindrome +ok 752 — initializeArrayWithValues is a Function +ok 753 — Initializes and fills an array with the specified values + +# PASS test/percentile/percentile.test.js + +ok 754 — percentile is a Function +ok 755 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. + +# PASS test/lcm/lcm.test.js + +ok 756 — lcm is a Function +ok 757 — Returns the least common multiple of two or more numbers. +ok 758 — Returns the least common multiple of two or more numbers. # PASS test/mapValues/mapValues.test.js -ok 766 — mapValues is a Function -ok 767 — Maps values +ok 759 — mapValues is a Function +ok 760 — Maps values + +# PASS test/bindAll/bindAll.test.js + +ok 761 — bindAll is a Function +ok 762 — Binds to an object context # PASS test/unionWith/unionWith.test.js -ok 768 — unionWith is a Function -ok 769 — Produces the appropriate results +ok 763 — unionWith is a Function +ok 764 — Produces the appropriate results -# PASS test/bifurcateBy/bifurcateBy.test.js +# PASS test/partial/partial.test.js -ok 770 — bifurcateBy is a Function -ok 771 — Splits the collection into two groups +ok 765 — partial is a Function +ok 766 — Prepends arguments -# PASS test/size/size.test.js +# PASS test/palindrome/palindrome.test.js -ok 772 — size is a Function -ok 773 — Get size of arrays, objects or strings. -ok 774 — Get size of arrays, objects or strings. - -# PASS test/degreesToRads/degreesToRads.test.js - -ok 775 — degreesToRads is a Function -ok 776 — Returns the appropriate value - -# PASS test/bifurcate/bifurcate.test.js - -ok 777 — bifurcate is a Function -ok 778 — Splits the collection into two groups +ok 767 — palindrome is a Function +ok 768 — Given string is a palindrome +ok 769 — Given string is not a palindrome # PASS test/attempt/attempt.test.js -ok 779 — attempt is a Function -ok 780 — Returns a value -ok 781 — Returns an error - -# PASS test/rearg/rearg.test.js - -ok 782 — rearg is a Function -ok 783 — Reorders arguments in invoked function - -# PASS test/sortedIndexBy/sortedIndexBy.test.js - -ok 784 — sortedIndexBy is a Function -ok 785 — Returns the lowest index to insert the element without messing up the list order - -# PASS test/median/median.test.js - -ok 786 — median is a Function -ok 787 — Returns the median of an array of numbers -ok 788 — Returns the median of an array of numbers - -# PASS test/pickBy/pickBy.test.js - -ok 789 — pickBy is a Function -ok 790 — Creates an object composed of the properties the given function returns truthy for. - -# PASS test/isFunction/isFunction.test.js - -ok 791 — isFunction is a Function -ok 792 — passed value is a function -ok 793 — passed value is not a function - -# PASS test/flip/flip.test.js - -ok 794 — flip is a Function -ok 795 — Flips argument order +ok 770 — attempt is a Function +ok 771 — Returns a value +ok 772 — Returns an error # PASS test/dropRightWhile/dropRightWhile.test.js -ok 796 — dropRightWhile is a Function -ok 797 — Removes elements from the end of an array until the passed function returns true. +ok 773 — dropRightWhile is a Function +ok 774 — Removes elements from the end of an array until the passed function returns true. + +# PASS test/bifurcateBy/bifurcateBy.test.js + +ok 775 — bifurcateBy is a Function +ok 776 — Splits the collection into two groups + +# PASS test/degreesToRads/degreesToRads.test.js + +ok 777 — degreesToRads is a Function +ok 778 — Returns the appropriate value + +# PASS test/size/size.test.js + +ok 779 — size is a Function +ok 780 — Get size of arrays, objects or strings. +ok 781 — Get size of arrays, objects or strings. + +# PASS test/bifurcate/bifurcate.test.js + +ok 782 — bifurcate is a Function +ok 783 — Splits the collection into two groups + +# PASS test/median/median.test.js + +ok 784 — median is a Function +ok 785 — Returns the median of an array of numbers +ok 786 — Returns the median of an array of numbers # PASS test/unescapeHTML/unescapeHTML.test.js -ok 798 — unescapeHTML is a Function -ok 799 — Unescapes escaped HTML characters. +ok 787 — unescapeHTML is a Function +ok 788 — Unescapes escaped HTML characters. -# PASS test/compact/compact.test.js +# PASS test/sortedIndexBy/sortedIndexBy.test.js -ok 800 — compact is a Function -ok 801 — Removes falsey values from an array +ok 789 — sortedIndexBy is a Function +ok 790 — Returns the lowest index to insert the element without messing up the list order # PASS test/forOwnRight/forOwnRight.test.js -ok 802 — forOwnRight is a Function -ok 803 — Iterates over an element's key-value pairs in reverse +ok 791 — forOwnRight is a Function +ok 792 — Iterates over an element's key-value pairs in reverse # PASS test/sortedLastIndex/sortedLastIndex.test.js -ok 804 — sortedLastIndex is a Function -ok 805 — Returns the highest index to insert the element without messing up the list order +ok 793 — sortedLastIndex is a Function +ok 794 — Returns the highest index to insert the element without messing up the list order + +# PASS test/rearg/rearg.test.js + +ok 795 — rearg is a Function +ok 796 — Reorders arguments in invoked function + +# PASS test/pickBy/pickBy.test.js + +ok 797 — pickBy is a Function +ok 798 — Creates an object composed of the properties the given function returns truthy for. # PASS test/sortCharactersInString/sortCharactersInString.test.js -ok 806 — sortCharactersInString is a Function -ok 807 — Alphabetically sorts the characters in a string. +ok 799 — sortCharactersInString is a Function +ok 800 — Alphabetically sorts the characters in a string. + +# PASS test/flip/flip.test.js + +ok 801 — flip is a Function +ok 802 — Flips argument order + +# PASS test/compact/compact.test.js + +ok 803 — compact is a Function +ok 804 — Removes falsey values from an array + +# PASS test/isFunction/isFunction.test.js + +ok 805 — isFunction is a Function +ok 806 — passed value is a function +ok 807 — passed value is not a function # PASS test/isBoolean/isBoolean.test.js @@ -1392,30 +1392,30 @@ ok 808 — isBoolean is a Function ok 809 — passed value is not a boolean ok 810 — passed value is not a boolean -# PASS test/forEachRight/forEachRight.test.js +# PASS test/omitBy/omitBy.test.js -ok 811 — forEachRight is a Function -ok 812 — Iterates over the array in reverse +ok 811 — omitBy is a Function +ok 812 — Creates an object composed of the properties the given function returns falsey for # PASS test/get/get.test.js ok 813 — get is a Function ok 814 — Retrieve a property indicated by the selector from an object. -# PASS test/pullBy/pullBy.test.js +# PASS test/escapeHTML/escapeHTML.test.js -ok 815 — pullBy is a Function -ok 816 — Pulls the specified values +ok 815 — escapeHTML is a Function +ok 816 — Escapes a string for use in HTML -# PASS test/initialize2DArray/initialize2DArray.test.js +# PASS test/forEachRight/forEachRight.test.js -ok 817 — initialize2DArray is a Function -ok 818 — Initializes a 2D array of given width and height and value +ok 817 — forEachRight is a Function +ok 818 — Iterates over the array in reverse -# PASS test/omitBy/omitBy.test.js +# PASS test/unflattenObject/unflattenObject.test.js -ok 819 — omitBy is a Function -ok 820 — Creates an object composed of the properties the given function returns falsey for +ok 819 — unflattenObject is a Function +ok 820 — Unflattens an object with the paths for keys # PASS test/isNumber/isNumber.test.js @@ -1423,35 +1423,35 @@ ok 821 — isNumber is a Function ok 822 — passed argument is a number ok 823 — passed argument is not a number -# PASS test/escapeHTML/escapeHTML.test.js - -ok 824 — escapeHTML is a Function -ok 825 — Escapes a string for use in HTML - -# PASS test/objectFromPairs/objectFromPairs.test.js - -ok 826 — objectFromPairs is a Function -ok 827 — Creates an object from the given key-value pairs. - # PASS test/stableSort/stableSort.test.js -ok 828 — stableSort is a Function -ok 829 — Array is properly sorted +ok 824 — stableSort is a Function +ok 825 — Array is properly sorted + +# PASS test/initialize2DArray/initialize2DArray.test.js + +ok 826 — initialize2DArray is a Function +ok 827 — Initializes a 2D array of given width and height and value # PASS test/objectToPairs/objectToPairs.test.js -ok 830 — objectToPairs is a Function -ok 831 — Creates an array of key-value pair arrays from an object. - -# PASS test/unflattenObject/unflattenObject.test.js - -ok 832 — unflattenObject is a Function -ok 833 — Unflattens an object with the paths for keys +ok 828 — objectToPairs is a Function +ok 829 — Creates an array of key-value pair arrays from an object. # PASS test/xProd/xProd.test.js -ok 834 — xProd is a Function -ok 835 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] +ok 830 — xProd is a Function +ok 831 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] + +# PASS test/pullBy/pullBy.test.js + +ok 832 — pullBy is a Function +ok 833 — Pulls the specified values + +# PASS test/objectFromPairs/objectFromPairs.test.js + +ok 834 — objectFromPairs is a Function +ok 835 — Creates an object from the given key-value pairs. # PASS test/stripHTMLTags/stripHTMLTags.test.js @@ -1469,15 +1469,15 @@ ok 840 — isArray is a Function ok 841 — passed value is an array ok 842 — passed value is not an array -# PASS test/unfold/unfold.test.js - -ok 843 — unfold is a Function -ok 844 — Works with a given function, producing an array - # PASS test/findLastIndex/findLastIndex.test.js -ok 845 — findLastIndex is a Function -ok 846 — Finds last index for which the given function returns true +ok 843 — findLastIndex is a Function +ok 844 — Finds last index for which the given function returns true + +# PASS test/unfold/unfold.test.js + +ok 845 — unfold is a Function +ok 846 — Works with a given function, producing an array # PASS test/forOwn/forOwn.test.js @@ -1489,139 +1489,139 @@ ok 848 — Iterates over an element's key-value pairs ok 849 — ary is a Function ok 850 — Discards arguments with index >=n -# PASS test/removeNonASCII/removeNonASCII.test.js +# PASS test/filterNonUnique/filterNonUnique.test.js -ok 851 — removeNonASCII is a Function -ok 852 — Removes non-ASCII characters - -# PASS test/isNull/isNull.test.js - -ok 853 — isNull is a Function -ok 854 — passed argument is a null -ok 855 — passed argument is a null - -# PASS test/dropWhile/dropWhile.test.js - -ok 856 — dropWhile is a Function -ok 857 — Removes elements in an array until the passed function returns true. +ok 851 — filterNonUnique is a Function +ok 852 — Filters out the non-unique values in an array # PASS test/countOccurrences/countOccurrences.test.js -ok 858 — countOccurrences is a Function -ok 859 — Counts the occurrences of a value in an array +ok 853 — countOccurrences is a Function +ok 854 — Counts the occurrences of a value in an array # PASS test/takeRightWhile/takeRightWhile.test.js -ok 860 — takeRightWhile is a Function -ok 861 — Removes elements until the function returns true +ok 855 — takeRightWhile is a Function +ok 856 — Removes elements until the function returns true -# PASS test/defaults/defaults.test.js +# PASS test/dropWhile/dropWhile.test.js -ok 862 — defaults is a Function -ok 863 — Assigns default values for undefined properties +ok 857 — dropWhile is a Function +ok 858 — Removes elements in an array until the passed function returns true. + +# PASS test/removeNonASCII/removeNonASCII.test.js + +ok 859 — removeNonASCII is a Function +ok 860 — Removes non-ASCII characters # PASS test/curry/curry.test.js -ok 864 — curry is a Function -ok 865 — curries a Math.pow -ok 866 — curries a Math.min +ok 861 — curry is a Function +ok 862 — curries a Math.pow +ok 863 — curries a Math.min -# PASS test/filterNonUnique/filterNonUnique.test.js +# PASS test/isNull/isNull.test.js -ok 867 — filterNonUnique is a Function -ok 868 — Filters out the non-unique values in an array +ok 864 — isNull is a Function +ok 865 — passed argument is a null +ok 866 — passed argument is a null + +# PASS test/defaults/defaults.test.js + +ok 867 — defaults is a Function +ok 868 — Assigns default values for undefined properties # PASS test/pick/pick.test.js ok 869 — pick is a Function ok 870 — Picks the key-value pairs corresponding to the given keys from an object. -# PASS test/truncateString/truncateString.test.js - -ok 871 — truncateString is a Function -ok 872 — Truncates a "boomerang" up to a specified length. - # PASS test/remove/remove.test.js -ok 873 — remove is a Function -ok 874 — Removes elements from an array for which the given function returns false +ok 871 — remove is a Function +ok 872 — Removes elements from an array for which the given function returns false -# PASS test/similarity/similarity.test.js +# PASS test/truncateString/truncateString.test.js -ok 875 — similarity is a Function -ok 876 — Returns an array of elements that appear in both arrays. - -# PASS test/delay/delay.test.js - -ok 877 — delay is a Function -ok 878 — Works as expecting, passing arguments properly - -# PASS test/omit/omit.test.js - -ok 879 — omit is a Function -ok 880 — Omits the key-value pairs corresponding to the given keys from an object - -# PASS test/parseCookie/parseCookie.test.js - -ok 881 — parseCookie is a Function -ok 882 — Parses the cookie +ok 873 — truncateString is a Function +ok 874 — Truncates a "boomerang" up to a specified length. # PASS test/clampNumber/clampNumber.test.js -ok 883 — clampNumber is a Function -ok 884 — Clamps num within the inclusive range specified by the boundary values a and b - -# PASS test/atob/atob.test.js - -ok 885 — atob is a Function -ok 886 — atob("Zm9vYmFy") equals "foobar" -ok 887 — atob("Z") returns "" - -# PASS test/findLast/findLast.test.js - -ok 888 — findLast is a Function -ok 889 — Finds last element for which the given function returns true - -# PASS test/over/over.test.js - -ok 890 — over is a Function -ok 891 — Applies given functions over multiple arguments - -# PASS test/takeWhile/takeWhile.test.js - -ok 892 — takeWhile is a Function -ok 893 — Removes elements until the function returns true - -# PASS test/coalesce/coalesce.test.js - -ok 894 — coalesce is a Function -ok 895 — Returns the first non-null/undefined argument - -# PASS test/pull/pull.test.js - -ok 896 — pull is a Function -ok 897 — Pulls the specified values +ok 875 — clampNumber is a Function +ok 876 — Clamps num within the inclusive range specified by the boundary values a and b # PASS test/intersection/intersection.test.js -ok 898 — intersection is a Function -ok 899 — Returns a list of elements that exist in both arrays +ok 877 — intersection is a Function +ok 878 — Returns a list of elements that exist in both arrays + +# PASS test/atob/atob.test.js + +ok 879 — atob is a Function +ok 880 — atob("Zm9vYmFy") equals "foobar" +ok 881 — atob("Z") returns "" + +# PASS test/delay/delay.test.js + +ok 882 — delay is a Function +ok 883 — Works as expecting, passing arguments properly + +# PASS test/similarity/similarity.test.js + +ok 884 — similarity is a Function +ok 885 — Returns an array of elements that appear in both arrays. + +# PASS test/parseCookie/parseCookie.test.js + +ok 886 — parseCookie is a Function +ok 887 — Parses the cookie + +# PASS test/omit/omit.test.js + +ok 888 — omit is a Function +ok 889 — Omits the key-value pairs corresponding to the given keys from an object + +# PASS test/findLast/findLast.test.js + +ok 890 — findLast is a Function +ok 891 — Finds last element for which the given function returns true # PASS test/isEven/isEven.test.js -ok 900 — isEven is a Function -ok 901 — 4 is even number -ok 902 — 5 is not an even number +ok 892 — isEven is a Function +ok 893 — 4 is even number +ok 894 — 5 is not an even number + +# PASS test/over/over.test.js + +ok 895 — over is a Function +ok 896 — Applies given functions over multiple arguments + +# PASS test/pull/pull.test.js + +ok 897 — pull is a Function +ok 898 — Pulls the specified values + +# PASS test/takeWhile/takeWhile.test.js + +ok 899 — takeWhile is a Function +ok 900 — Removes elements until the function returns true + +# PASS test/times/times.test.js + +ok 901 — times is a Function +ok 902 — Runs a function the specified amount of times # PASS test/escapeRegExp/escapeRegExp.test.js ok 903 — escapeRegExp is a Function ok 904 — Escapes a string to use in a regular expression -# PASS test/fibonacci/fibonacci.test.js +# PASS test/coalesce/coalesce.test.js -ok 905 — fibonacci is a Function -ok 906 — Generates an array, containing the Fibonacci sequence +ok 905 — coalesce is a Function +ok 906 — Returns the first non-null/undefined argument # PASS test/powerset/powerset.test.js @@ -1633,469 +1633,469 @@ ok 908 — Returns the powerset of a given array of numbers. ok 909 — cloneRegExp is a Function ok 910 — Clones regular expressions properly -# PASS test/times/times.test.js +# PASS test/fibonacci/fibonacci.test.js -ok 911 — times is a Function -ok 912 — Runs a function the specified amount of times - -# PASS test/initial/initial.test.js - -ok 913 — initial is a Function -ok 914 — Returns all the elements of an array except the last one - -# PASS test/everyNth/everyNth.test.js - -ok 915 — everyNth is a Function -ok 916 — Returns every nth element in an array - -# PASS test/RGBToHex/RGBToHex.test.js - -ok 917 — RGBToHex is a Function -ok 918 — Converts the values of RGB components to a color code. - -# PASS test/isSymbol/isSymbol.test.js - -ok 919 — isSymbol is a Function -ok 920 — Checks if the given argument is a symbol +ok 911 — fibonacci is a Function +ok 912 — Generates an array, containing the Fibonacci sequence # PASS test/distance/distance.test.js -ok 921 — distance is a Function -ok 922 — Calculates the distance between two points +ok 913 — distance is a Function +ok 914 — Calculates the distance between two points # PASS test/hammingDistance/hammingDistance.test.js -ok 923 — hammingDistance is a Function -ok 924 — retuns hamming disance between 2 values - -# PASS test/isUndefined/isUndefined.test.js - -ok 925 — isUndefined is a Function -ok 926 — Returns true for undefined - -# PASS test/difference/difference.test.js - -ok 927 — difference is a Function -ok 928 — Returns the difference between two arrays - -# PASS test/sleep/sleep.test.js - -ok 929 — sleep is a Function -ok 930 — Works as expected - -# PASS test/tail/tail.test.js - -ok 931 — tail is a Function -ok 932 — Returns tail -ok 933 — Returns tail - -# PASS test/deepFlatten/deepFlatten.test.js - -ok 934 — deepFlatten is a Function -ok 935 — Deep flattens an array - -# PASS test/reverseString/reverseString.test.js - -ok 936 — reverseString is a Function -ok 937 — Reverses a string. +ok 915 — hammingDistance is a Function +ok 916 — retuns hamming disance between 2 values # PASS test/serializeCookie/serializeCookie.test.js -ok 938 — serializeCookie is a Function -ok 939 — Serializes the cookie +ok 917 — serializeCookie is a Function +ok 918 — Serializes the cookie + +# PASS test/primes/primes.test.js + +ok 919 — primes is a Function +ok 920 — Generates primes up to a given number, using the Sieve of Eratosthenes. + +# PASS test/tail/tail.test.js + +ok 921 — tail is a Function +ok 922 — Returns tail +ok 923 — Returns tail + +# PASS test/deepFlatten/deepFlatten.test.js + +ok 924 — deepFlatten is a Function +ok 925 — Deep flattens an array + +# PASS test/negate/negate.test.js + +ok 926 — negate is a Function +ok 927 — Negates a predicate function + +# PASS test/difference/difference.test.js + +ok 928 — difference is a Function +ok 929 — Returns the difference between two arrays + +# PASS test/RGBToHex/RGBToHex.test.js + +ok 930 — RGBToHex is a Function +ok 931 — Converts the values of RGB components to a color code. + +# PASS test/everyNth/everyNth.test.js + +ok 932 — everyNth is a Function +ok 933 — Returns every nth element in an array + +# PASS test/initial/initial.test.js + +ok 934 — initial is a Function +ok 935 — Returns all the elements of an array except the last one + +# PASS test/unary/unary.test.js + +ok 936 — unary is a Function +ok 937 — Discards arguments after the first one + +# PASS test/radsToDegrees/radsToDegrees.test.js + +ok 938 — radsToDegrees is a Function +ok 939 — Returns the appropriate value # PASS test/unionBy/unionBy.test.js ok 940 — unionBy is a Function ok 941 — Produces the appropriate results -# PASS test/radsToDegrees/radsToDegrees.test.js +# PASS test/isSymbol/isSymbol.test.js -ok 942 — radsToDegrees is a Function -ok 943 — Returns the appropriate value - -# PASS test/negate/negate.test.js - -ok 944 — negate is a Function -ok 945 — Negates a predicate function - -# PASS test/primes/primes.test.js - -ok 946 — primes is a Function -ok 947 — Generates primes up to a given number, using the Sieve of Eratosthenes. - -# PASS test/unary/unary.test.js - -ok 948 — unary is a Function -ok 949 — Discards arguments after the first one +ok 942 — isSymbol is a Function +ok 943 — Checks if the given argument is a symbol # PASS test/mapKeys/mapKeys.test.js -ok 950 — mapKeys is a Function -ok 951 — Maps keys +ok 944 — mapKeys is a Function +ok 945 — Maps keys + +# PASS test/sleep/sleep.test.js + +ok 946 — sleep is a Function +ok 947 — Works as expected + +# PASS test/reverseString/reverseString.test.js + +ok 948 — reverseString is a Function +ok 949 — Reverses a string. # PASS test/digitize/digitize.test.js -ok 952 — digitize is a Function -ok 953 — Converts a number to an array of digits +ok 950 — digitize is a Function +ok 951 — Converts a number to an array of digits -# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js +# PASS test/getType/getType.test.js -ok 954 — initializeArrayWithRangeRight is a Function +ok 952 — getType is a Function +ok 953 — Returns the native type of a value -# PASS test/sdbm/sdbm.test.js +# PASS test/isDivisible/isDivisible.test.js -ok 955 — sdbm is a Function -ok 956 — Hashes the input string into a whole number. +ok 954 — isDivisible is a Function +ok 955 — The number 6 is divisible by 3 -# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js +# PASS test/isUndefined/isUndefined.test.js -ok 957 — getMeridiemSuffixOfInteger is a Function +ok 956 — isUndefined is a Function +ok 957 — Returns true for undefined # PASS test/call/call.test.js ok 958 — call is a Function ok 959 — Calls function on given object -# PASS test/isPrime/isPrime.test.js +# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js -ok 960 — isPrime is a Function -ok 961 — passed number is a prime - -# PASS test/sum/sum.test.js - -ok 962 — sum is a Function -ok 963 — Returns the sum of two or more numbers/arrays. - -# PASS test/isDivisible/isDivisible.test.js - -ok 964 — isDivisible is a Function -ok 965 — The number 6 is divisible by 3 - -# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js - -ok 966 — elementIsVisibleInViewport is a Function - -# PASS test/debounce/debounce.test.js - -ok 967 — debounce is a Function -ok 968 — Works as expected - -# PASS test/getType/getType.test.js - -ok 969 — getType is a Function -ok 970 — Returns the native type of a value +ok 960 — initializeArrayWithRangeRight is a Function # PASS test/btoa/btoa.test.js -ok 971 — btoa is a Function -ok 972 — btoa("foobar") equals "Zm9vYmFy" +ok 961 — btoa is a Function +ok 962 — btoa("foobar") equals "Zm9vYmFy" -# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js +# PASS test/debounce/debounce.test.js -ok 973 — getColonTimeFromDate is a Function +ok 963 — debounce is a Function +ok 964 — Works as expected + +# PASS test/sdbm/sdbm.test.js + +ok 965 — sdbm is a Function +ok 966 — Hashes the input string into a whole number. + +# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js + +ok 967 — elementIsVisibleInViewport is a Function + +# PASS test/sum/sum.test.js + +ok 968 — sum is a Function +ok 969 — Returns the sum of two or more numbers/arrays. + +# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js + +ok 970 — getMeridiemSuffixOfInteger is a Function + +# PASS test/isPrime/isPrime.test.js + +ok 971 — isPrime is a Function +ok 972 — passed number is a prime # PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js -ok 974 — fibonacciCountUntilNum is a Function +ok 973 — fibonacciCountUntilNum is a Function -# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js +# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js -ok 975 — UUIDGeneratorBrowser is a Function +ok 974 — getColonTimeFromDate is a Function # PASS test/recordAnimationFrames/recordAnimationFrames.test.js -ok 976 — recordAnimationFrames is a Function +ok 975 — recordAnimationFrames is a Function -# PASS test/onUserInputChange/onUserInputChange.test.js +# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js -ok 977 — onUserInputChange is a Function - -# PASS test/observeMutations/observeMutations.test.js - -ok 978 — observeMutations is a Function - -# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js - -ok 979 — isBrowserTabFocused is a Function +ok 976 — UUIDGeneratorBrowser is a Function # PASS test/isArmstrongNumber/isArmstrongNumber.test.js -ok 980 — isArmstrongNumber is a Function +ok 977 — isArmstrongNumber is a Function -# PASS test/detectDeviceType/detectDeviceType.test.js +# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js -ok 981 — detectDeviceType is a Function +ok 978 — isBrowserTabFocused is a Function + +# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js + +ok 979 — fibonacciUntilNum is a Function + +# PASS test/getScrollPosition/getScrollPosition.test.js + +ok 980 — getScrollPosition is a Function + +# PASS test/onUserInputChange/onUserInputChange.test.js + +ok 981 — onUserInputChange is a Function # PASS test/initializeNDArray/initializeNDArray.test.js ok 982 — initializeNDArray is a Function -# PASS test/arrayToHtmlList/arrayToHtmlList.test.js - -ok 983 — arrayToHtmlList is a Function - -# PASS test/getScrollPosition/getScrollPosition.test.js - -ok 984 — getScrollPosition is a Function - # PASS test/levenshteinDistance/levenshteinDistance.test.js -ok 985 — levenshteinDistance is a Function +ok 983 — levenshteinDistance is a Function -# PASS test/elementContains/elementContains.test.js +# PASS test/detectDeviceType/detectDeviceType.test.js -ok 986 — elementContains is a Function +ok 984 — detectDeviceType is a Function -# PASS test/speechSynthesis/speechSynthesis.test.js +# PASS test/observeMutations/observeMutations.test.js -ok 987 — speechSynthesis is a Function - -# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js - -ok 988 — fibonacciUntilNum is a Function - -# PASS test/copyToClipboard/copyToClipboard.test.js - -ok 989 — copyToClipboard is a Function +ok 985 — observeMutations is a Function # PASS test/nodeListToArray/nodeListToArray.test.js -ok 990 — nodeListToArray is a Function +ok 986 — nodeListToArray is a Function -# PASS test/mostPerformant/mostPerformant.test.js +# PASS test/elementContains/elementContains.test.js -ok 991 — mostPerformant is a Function +ok 987 — elementContains is a Function + +# PASS test/speechSynthesis/speechSynthesis.test.js + +ok 988 — speechSynthesis is a Function + +# PASS test/bottomVisible/bottomVisible.test.js + +ok 989 — bottomVisible is a Function + +# PASS test/arrayToHtmlList/arrayToHtmlList.test.js + +ok 990 — arrayToHtmlList is a Function + +# PASS test/copyToClipboard/copyToClipboard.test.js + +ok 991 — copyToClipboard is a Function # PASS test/isArrayBuffer/isArrayBuffer.test.js ok 992 — isArrayBuffer is a Function +# PASS test/mostPerformant/mostPerformant.test.js + +ok 993 — mostPerformant is a Function + +# PASS test/createEventHub/createEventHub.test.js + +ok 994 — createEventHub is a Function + # PASS test/httpsRedirect/httpsRedirect.test.js -ok 993 — httpsRedirect is a Function - -# PASS test/insertBefore/insertBefore.test.js - -ok 994 — insertBefore is a Function - -# PASS test/removeVowels/removeVowels.test.js - -ok 995 — removeVowels is a Function +ok 995 — httpsRedirect is a Function # PASS test/createElement/createElement.test.js ok 996 — createElement is a Function -# PASS test/smoothScroll/smoothScroll.test.js - -ok 997 — smoothScroll is a Function - -# PASS test/bottomVisible/bottomVisible.test.js - -ok 998 — bottomVisible is a Function - # PASS test/isTypedArray/isTypedArray.test.js -ok 999 — isTypedArray is a Function +ok 997 — isTypedArray is a Function -# PASS test/triggerEvent/triggerEvent.test.js +# PASS test/insertBefore/insertBefore.test.js -ok 1000 — triggerEvent is a Function +ok 998 — insertBefore is a Function # PASS test/howManyTimes/howManyTimes.test.js -ok 1001 — howManyTimes is a Function - -# PASS test/createEventHub/createEventHub.test.js - -ok 1002 — createEventHub is a Function - -# PASS test/scrollToTop/scrollToTop.test.js - -ok 1003 — scrollToTop is a Function - -# PASS test/toggleClass/toggleClass.test.js - -ok 1004 — toggleClass is a Function +ok 999 — howManyTimes is a Function # PASS test/readFileLines/readFileLines.test.js -ok 1005 — readFileLines is a Function +ok 1000 — readFileLines is a Function -# PASS test/hashBrowser/hashBrowser.test.js +# PASS test/removeVowels/removeVowels.test.js -ok 1006 — hashBrowser is a Function +ok 1001 — removeVowels is a Function + +# PASS test/triggerEvent/triggerEvent.test.js + +ok 1002 — triggerEvent is a Function + +# PASS test/smoothScroll/smoothScroll.test.js + +ok 1003 — smoothScroll is a Function + +# PASS test/scrollToTop/scrollToTop.test.js + +ok 1004 — scrollToTop is a Function # PASS test/insertAfter/insertAfter.test.js -ok 1007 — insertAfter is a Function - -# PASS test/isBrowser/isBrowser.test.js - -ok 1008 — isBrowser is a Function +ok 1005 — insertAfter is a Function # PASS test/currentURL/currentURL.test.js -ok 1009 — currentURL is a Function +ok 1006 — currentURL is a Function -# PASS test/JSONToDate/JSONToDate.test.js +# PASS test/hashBrowser/hashBrowser.test.js -ok 1010 — JSONToDate is a Function +ok 1007 — hashBrowser is a Function # PASS test/countVowels/countVowels.test.js -ok 1011 — countVowels is a Function +ok 1008 — countVowels is a Function + +# PASS test/JSONToDate/JSONToDate.test.js + +ok 1009 — JSONToDate is a Function + +# PASS test/toggleClass/toggleClass.test.js + +ok 1010 — toggleClass is a Function # PASS test/deepFreeze/deepFreeze.test.js -ok 1012 — deepFreeze is a Function +ok 1011 — deepFreeze is a Function + +# PASS test/JSONToFile/JSONToFile.test.js + +ok 1012 — JSONToFile is a Function # PASS test/isWeakSet/isWeakSet.test.js ok 1013 — isWeakSet is a Function -# PASS test/timeTaken/timeTaken.test.js +# PASS test/httpDelete/httpDelete.test.js -ok 1014 — timeTaken is a Function +ok 1014 — httpDelete is a Function -# PASS test/JSONToFile/JSONToFile.test.js +# PASS test/isSimilar/isSimilar.test.js -ok 1015 — JSONToFile is a Function +ok 1015 — isSimilar is a Function -# PASS test/httpPost/httpPost.test.js +# PASS test/isBrowser/isBrowser.test.js -ok 1016 — httpPost is a Function +ok 1016 — isBrowser is a Function # PASS test/isWeakMap/isWeakMap.test.js ok 1017 — isWeakMap is a Function -# PASS test/isSimilar/isSimilar.test.js +# PASS test/timeTaken/timeTaken.test.js -ok 1018 — isSimilar is a Function +ok 1018 — timeTaken is a Function -# PASS test/runAsync/runAsync.test.js +# PASS test/httpPost/httpPost.test.js -ok 1019 — runAsync is a Function - -# PASS test/httpDelete/httpDelete.test.js - -ok 1020 — httpDelete is a Function - -# PASS test/throttle/throttle.test.js - -ok 1021 — throttle is a Function - -# PASS test/colorize/colorize.test.js - -ok 1022 — colorize is a Function +ok 1019 — httpPost is a Function # PASS test/setStyle/setStyle.test.js -ok 1023 — setStyle is a Function +ok 1020 — setStyle is a Function + +# PASS test/hasClass/hasClass.test.js + +ok 1021 — hasClass is a Function + +# PASS test/throttle/throttle.test.js + +ok 1022 — throttle is a Function + +# PASS test/colorize/colorize.test.js + +ok 1023 — colorize is a Function # PASS test/redirect/redirect.test.js ok 1024 — redirect is a Function -# PASS test/hasClass/hasClass.test.js - -ok 1025 — hasClass is a Function - -# PASS test/getStyle/getStyle.test.js - -ok 1026 — getStyle is a Function - # PASS test/hasFlags/hasFlags.test.js -ok 1027 — hasFlags is a Function +ok 1025 — hasFlags is a Function + +# PASS test/runAsync/runAsync.test.js + +ok 1026 — runAsync is a Function + +# PASS test/counter/counter.test.js + +ok 1027 — counter is a Function # PASS test/isRegExp/isRegExp.test.js ok 1028 — isRegExp is a Function -# PASS test/defer/defer.test.js - -ok 1029 — defer is a Function - -# PASS test/httpPut/httpPut.test.js - -ok 1030 — httpPut is a Function - -# PASS test/httpGet/httpGet.test.js - -ok 1031 — httpGet is a Function - -# PASS test/solveRPN/solveRPN.test.js - -ok 1032 — solveRPN is a Function - # PASS test/toHash/toHash.test.js -ok 1033 — toHash is a Function +ok 1029 — toHash is a Function # PASS test/zipWith/zipWith.test.js -ok 1034 — zipWith is a Function - -# PASS test/prefix/prefix.test.js - -ok 1035 — prefix is a Function - -# PASS test/counter/counter.test.js - -ok 1036 — counter is a Function +ok 1030 — zipWith is a Function # PASS test/sumBy/sumBy.test.js -ok 1037 — sumBy is a Function +ok 1031 — sumBy is a Function -# PASS test/isMap/isMap.test.js +# PASS test/getStyle/getStyle.test.js -ok 1038 — isMap is a Function +ok 1032 — getStyle is a Function -# PASS test/isSet/isSet.test.js +# PASS test/httpGet/httpGet.test.js -ok 1039 — isSet is a Function +ok 1033 — httpGet is a Function -# PASS test/nest/nest.test.js +# PASS test/httpPut/httpPut.test.js -ok 1040 — nest is a Function - -# PASS test/factors/factors.test.js - -ok 1041 — factors is a Function - -# PASS test/show/show.test.js - -ok 1042 — show is a Function - -# PASS test/off/off.test.js - -ok 1043 — off is a Function - -# PASS test/hz/hz.test.js - -ok 1044 — hz is a Function - -# PASS test/hide/hide.test.js - -ok 1045 — hide is a Function +ok 1034 — httpPut is a Function # PASS test/on/on.test.js -ok 1046 — on is a Function +ok 1035 — on is a Function + +# PASS test/isMap/isMap.test.js + +ok 1036 — isMap is a Function + +# PASS test/nest/nest.test.js + +ok 1037 — nest is a Function # PASS test/once/once.test.js -ok 1047 — once is a Function +ok 1038 — once is a Function + +# PASS test/solveRPN/solveRPN.test.js + +ok 1039 — solveRPN is a Function + +# PASS test/isSet/isSet.test.js + +ok 1040 — isSet is a Function + +# PASS test/defer/defer.test.js + +ok 1041 — defer is a Function + +# PASS test/hz/hz.test.js + +ok 1042 — hz is a Function + +# PASS test/prefix/prefix.test.js + +ok 1043 — prefix is a Function + +# PASS test/factors/factors.test.js + +ok 1044 — factors is a Function + +# PASS test/off/off.test.js + +ok 1045 — off is a Function + +# PASS test/show/show.test.js + +ok 1046 — show is a Function + +# PASS test/hide/hide.test.js + +ok 1047 — hide is a Function 1..1047 # Test Suites: 100% ██████████, 347 passed, 347 total # Tests: 100% ██████████, 1047 passed, 1047 total -# Time: 38.545s +# Time: 40.305s # Ran all test suites.