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