From 2212f7e5453dc3c89251999e43cb81f1074b345f Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Sun, 8 Jul 2018 02:06:00 -0700 Subject: [PATCH 01/10] WIP: npm run tester failed --- snippet-template.md | 58 +- tag_database | 1 + test/testlog | 3884 ++++++++++++++++++++++--------------------- 3 files changed, 2005 insertions(+), 1938 deletions(-) diff --git a/snippet-template.md b/snippet-template.md index 31cc8b26d..a58de977d 100644 --- a/snippet-template.md +++ b/snippet-template.md @@ -1,14 +1,56 @@ -### functionName +### dig -Explain briefly what the snippet does. +Return the value in a nested JSON object by the key. -Explain briefly how the snippet works. +Given the key name (or target), it will look up the key in the object recursively and return the first value if found. -```js -const functionName = arguments => - {functionBody} +``` +const dig = (obj, target) => { + if (!obj) return; + + if (obj[target]) return obj[target]; + else { + return( Object.keys(obj).map(key => { + if (typeof(obj[key]) === "object") { + return dig(obj[key], target); + } + }).filter(item => item !== undefined)[0] ); + } +}; ``` -```js -functionName('sampleInput'); // 'sampleOutput' ``` +const data = { + name: "John Doe", + details: { + phone: "9876543210", + email: "john@example.com", + address: { + street: "123 ABC St.", + state: "CA", + zip: "98765" + }, + extra1: { + nickName: "Johnny" + }, + extra2: { + nickName: "JD" + }, + hobby: "coding", + snacks: ["chips", 'candy', 'coke'] + }, + l1:{ + l2:{ + l3:{ + l4: "4 levels deep." + } + } + } +}; + +const hobby = dig(data, 'hobby'); // "coding" +const name = dig(data, 'nickName'); // "Johnny" +const food = dig(data, 'snacks'); // ["chips","candy","coke"] +const level4= dig(data, 'l4'); // "4 levels deep." +const nada = dig(data, 'blahblah') // undefined +``` \ No newline at end of file diff --git a/tag_database b/tag_database index a2b57d852..5da94c541 100644 --- a/tag_database +++ b/tag_database @@ -55,6 +55,7 @@ detectDeviceType:browser difference:array,math differenceBy:array,function differenceWith:array,function +dig:object,recursion digitize:math,array distance:math drop:array diff --git a/test/testlog b/test/testlog index 858a4e695..4fdf5fc51 100644 --- a/test/testlog +++ b/test/testlog @@ -3,2034 +3,2058 @@ # Starting... # 339 test suites found. -# PASS test/zipObject/zipObject.test.js +# PASS test/validateNumber/validateNumber.test.js -ok 1 — zipObject is a Function -ok 2 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} -ok 3 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} -ok 4 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } -ok 5 — zipObject([a], string) returns { a: s } -ok 6 — zipObject() throws an error -ok 7 — zipObject((['string'], null) throws an error -ok 8 — zipObject(null, [1]) throws an error -ok 9 — zipObject('string') throws an error -ok 10 — zipObject('test', 'string') throws an error - -# PASS test/toSafeInteger/toSafeInteger.test.js - -ok 11 — toSafeInteger is a Function -ok 12 — Number(toSafeInteger(3.2)) is a number -ok 13 — Converts a value to a safe integer -ok 14 — toSafeInteger('4.2') returns 4 -ok 15 — toSafeInteger(4.6) returns 5 -ok 16 — toSafeInteger([]) returns 0 -ok 17 — isNaN(toSafeInteger([1.5, 3124])) is true -ok 18 — isNaN(toSafeInteger('string')) is true -ok 19 — isNaN(toSafeInteger({})) is true -ok 20 — isNaN(toSafeInteger()) is true -ok 21 — toSafeInteger(Infinity) returns 9007199254740991 -ok 22 — toSafeInteger(3.2) takes less than 2s to run - -# PASS test/average/average.test.js - -ok 23 — average is a Function -ok 24 — average(true) returns 0 -ok 25 — average(false) returns 1 -ok 26 — average(9, 1) returns 5 -ok 27 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 -ok 28 — average(1, 2, 3) returns 2 -ok 29 — average(null) returns 0 -ok 30 — average(1, 2, 3) returns NaN -ok 31 — average(String) returns NaN -ok 32 — average({ a: 123}) returns NaN -ok 33 — average([undefined, 0, string]) returns NaN -ok 34 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +ok 1 — validateNumber is a Function +ok 2 — validateNumber(9) returns true +ok 3 — validateNumber(234asd.slice(0, 2)) returns true +ok 4 — validateNumber(1232) returns true +ok 5 — validateNumber(1232 + 13423) returns true +ok 6 — validateNumber(1232 * 2342 * 123) returns true +ok 7 — validateNumber(1232.23423536) returns true +ok 8 — validateNumber(234asd) returns false +ok 9 — validateNumber(e234d) returns false +ok 10 — validateNumber(false) returns false +ok 11 — validateNumber(true) returns false +ok 12 — validateNumber(null) returns false +ok 13 — validateNumber(123 * asd) returns false # PASS test/toKebabCase/toKebabCase.test.js -ok 35 — toKebabCase is a Function -ok 36 — toKebabCase('camelCase') returns camel-case -ok 37 — toKebabCase('some text') returns some-text -ok 38 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens -ok 39 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html -ok 40 — toKebabCase() returns undefined -ok 41 — toKebabCase([]) throws an erro -ok 42 — toKebabCase({}) throws an erro -ok 43 — toKebabCase(123) throws an erro -ok 44 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/validateNumber/validateNumber.test.js - -ok 45 — validateNumber is a Function -ok 46 — validateNumber(9) returns true -ok 47 — validateNumber(234asd.slice(0, 2)) returns true -ok 48 — validateNumber(1232) returns true -ok 49 — validateNumber(1232 + 13423) returns true -ok 50 — validateNumber(1232 * 2342 * 123) returns true -ok 51 — validateNumber(1232.23423536) returns true -ok 52 — validateNumber(234asd) returns false -ok 53 — validateNumber(e234d) returns false -ok 54 — validateNumber(false) returns false -ok 55 — validateNumber(true) returns false -ok 56 — validateNumber(null) returns false -ok 57 — validateNumber(123 * asd) returns false - -# PASS test/toSnakeCase/toSnakeCase.test.js - -ok 58 — toSnakeCase is a Function -ok 59 — toSnakeCase('camelCase') returns camel_case -ok 60 — toSnakeCase('some text') returns some_text -ok 61 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens -ok 62 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html -ok 63 — toSnakeCase() returns undefined -ok 64 — toSnakeCase([]) throws an error -ok 65 — toSnakeCase({}) throws an error -ok 66 — toSnakeCase(123) throws an error -ok 67 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/isPrimitive/isPrimitive.test.js - -ok 68 — isPrimitive is a Function -ok 69 — isPrimitive(null) is primitive -ok 70 — isPrimitive(undefined) is primitive -ok 71 — isPrimitive(string) is primitive -ok 72 — isPrimitive(true) is primitive -ok 73 — isPrimitive(50) is primitive -ok 74 — isPrimitive('Hello') is primitive -ok 75 — isPrimitive(false) is primitive -ok 76 — isPrimitive(Symbol()) is primitive -ok 77 — isPrimitive([1, 2, 3]) is not primitive -ok 78 — isPrimitive({ a: 123 }) is not primitive -ok 79 — isPrimitive({ a: 123 }) takes less than 2s to run - -# PASS test/mapObject/mapObject.test.js - -ok 80 — mapObject is a Function -ok 81 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } -ok 82 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } -ok 83 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } - -# PASS test/chunk/chunk.test.js - -ok 84 — chunk is a Function -ok 85 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] -ok 86 — chunk([]) returns [] -ok 87 — chunk(123) returns [] -ok 88 — chunk({ a: 123}) returns [] -ok 89 — chunk(string, 2) returns [ st, ri, ng ] -ok 90 — chunk() throws an error -ok 91 — chunk(undefined) throws an error -ok 92 — chunk(null) throws an error -ok 93 — chunk(This is a string, 2) takes less than 2s to run - -# PASS test/geometricProgression/geometricProgression.test.js - -ok 94 — geometricProgression is a Function -ok 95 — Initializes an array containing the numbers in the specified range -ok 96 — Initializes an array containing the numbers in the specified range -ok 97 — Initializes an array containing the numbers in the specified range - -# PASS test/uniqueElements/uniqueElements.test.js - -ok 98 — uniqueElements is a Function -ok 99 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] -ok 100 — uniqueElements([1, 23, 53]) returns [1, 23, 53] -ok 101 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] -ok 102 — uniqueElements() returns [] -ok 103 — uniqueElements(null) returns [] -ok 104 — uniqueElements(undefined) returns [] -ok 105 — uniqueElements('strt') returns ['s', 't', 'r'] -ok 106 — uniqueElements(1, 1, 2543, 534, 5) throws an error -ok 107 — uniqueElements({}) throws an error -ok 108 — uniqueElements(true) throws an error -ok 109 — uniqueElements(false) throws an error -ok 110 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run - -# PASS test/without/without.test.js - -ok 111 — without is a Function -ok 112 — without([2, 1, 2, 3], 1, 2) returns [3] -ok 113 — without([]) returns [] -ok 114 — without([3, 1, true, '3', true], '3', true) returns [3, 1] -ok 115 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] -ok 116 — without() throws an error -ok 117 — without(null) throws an error -ok 118 — without(undefined) throws an error -ok 119 — without(123) throws an error -ok 120 — without({}) throws an error - -# PASS test/is/is.test.js - -ok 121 — is is a Function -ok 122 — Works for arrays with data -ok 123 — Works for empty arrays -ok 124 — Works for arrays, not objects -ok 125 — Works for objects -ok 126 — Works for maps -ok 127 — Works for regular expressions -ok 128 — Works for sets -ok 129 — Works for weak maps -ok 130 — Works for weak sets -ok 131 — Works for strings - returns true for primitive -ok 132 — Works for strings - returns true when using constructor -ok 133 — Works for numbers - returns true for primitive -ok 134 — Works for numbers - returns true when using constructor -ok 135 — Works for booleans - returns true for primitive -ok 136 — Works for booleans - returns true when using constructor -ok 137 — Works for functions - -# PASS test/isSorted/isSorted.test.js - -ok 138 — isSorted is a Function -ok 139 — Array is sorted in ascending order -ok 140 — Array is sorted in ascending order -ok 141 — Array is sorted in ascending order -ok 142 — Array is sorted in ascending order -ok 143 — Array is sorted in descending order -ok 144 — Array is sorted in descending order -ok 145 — Array is sorted in descending order -ok 146 — Array is sorted in descending order -ok 147 — Array is empty -ok 148 — Array is not sorted, direction changed in array -ok 149 — Array is not sorted, direction changed in array - -# PASS test/any/any.test.js - -ok 150 — any is a Function -ok 151 — Returns true for arrays with at least one truthy value -ok 152 — Returns false for arrays with no truthy values -ok 153 — Returns false for arrays with no truthy values -ok 154 — Returns true with predicate function -ok 155 — Returns false with a predicate function - -# PASS test/orderBy/orderBy.test.js - -ok 156 — orderBy is a Function -ok 157 — Returns a sorted array of objects ordered by properties and orders. -ok 158 — Returns a sorted array of objects ordered by properties and orders. - -# PASS test/join/join.test.js - -ok 159 — join is a Function -ok 160 — Joins all elements of an array into a string and returns this string -ok 161 — Joins all elements of an array into a string and returns this string -ok 162 — Joins all elements of an array into a string and returns this string - -# PASS test/isEmpty/isEmpty.test.js - -ok 163 — isEmpty is a Function -ok 164 — Returns true for empty Map -ok 165 — Returns true for empty Set -ok 166 — Returns true for empty array -ok 167 — Returns true for empty object -ok 168 — Returns true for empty string -ok 169 — Returns false for non-empty array -ok 170 — Returns false for non-empty object -ok 171 — Returns false for non-empty string -ok 172 — Returns true - type is not considered a collection -ok 173 — Returns true - type is not considered a collection - -# PASS test/union/union.test.js - -ok 174 — union is a Function -ok 175 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] -ok 176 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] -ok 177 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] -ok 178 — union([], []) returns [] -ok 179 — union() throws an error -ok 180 — union(true, 'str') throws an error -ok 181 — union('false', true) throws an error -ok 182 — union((123, {}) throws an error -ok 183 — union([], {}) throws an error -ok 184 — union(undefined, null) throws an error -ok 185 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run - -# PASS test/round/round.test.js - -ok 186 — round is a Function -ok 187 — round(1.005, 2) returns 1.01 -ok 188 — round(123.3423345345345345344, 11) returns 123.34233453453 -ok 189 — round(3.342, 11) returns 3.342 -ok 190 — round(1.005) returns 1 -ok 191 — round([1.005, 2]) returns NaN -ok 192 — round(string) returns NaN -ok 193 — round() returns NaN -ok 194 — round(132, 413, 4134) returns NaN -ok 195 — round({a: 132}, 413) returns NaN -ok 196 — round(123.3423345345345345344, 11) takes less than 2s to run - -# PASS test/words/words.test.js - -ok 197 — words is a Function -ok 198 — words('I love javaScript!!') returns [I, love, javaScript] -ok 199 — words('python, javaScript & coffee') returns [python, javaScript, coffee] -ok 200 — words(I love javaScript!!) returns an array -ok 201 — words() throws an error -ok 202 — words(null) throws an error -ok 203 — words(undefined) throws an error -ok 204 — words({}) throws an error -ok 205 — words([]) throws an error -ok 206 — words(1234) throws an error +ok 14 — toKebabCase is a Function +ok 15 — toKebabCase('camelCase') returns camel-case +ok 16 — toKebabCase('some text') returns some-text +ok 17 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens +ok 18 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html +ok 19 — toKebabCase() returns undefined +ok 20 — toKebabCase([]) throws an erro +ok 21 — toKebabCase({}) throws an erro +ok 22 — toKebabCase(123) throws an erro +ok 23 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run # PASS test/toCamelCase/toCamelCase.test.js -ok 207 — toCamelCase is a Function -ok 208 — toCamelCase('some_database_field_name') returns someDatabaseFieldName -ok 209 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized -ok 210 — toCamelCase('some-javascript-property') return someJavascriptProperty -ok 211 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens -ok 212 — toCamelCase() throws a error -ok 213 — toCamelCase([]) throws a error -ok 214 — toCamelCase({}) throws a error -ok 215 — toCamelCase(123) throws a error -ok 216 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run - -# PASS test/toCurrency/toCurrency.test.js - -ok 217 — toCurrency is a Function -ok 218 — currency: Euro | currencyLangFormat: Local -ok 219 — currency: US Dollar | currencyLangFormat: English (United States) -ok 220 — currency: Japanese Yen | currencyLangFormat: Local - -# PASS test/quickSort/quickSort.test.js - -ok 221 — quickSort is a Function -ok 222 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] -ok 223 — quickSort([-1, 0, -2]) returns [-2, -1, 0] -ok 224 — quickSort() throws an error -ok 225 — quickSort(123) throws an error -ok 226 — quickSort({ 234: string}) throws an error -ok 227 — quickSort(null) throws an error -ok 228 — quickSort(undefined) throws an error -ok 229 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run - -# PASS test/binomialCoefficient/binomialCoefficient.test.js - -ok 230 — binomialCoefficient is a Function -ok 231 — Returns the appropriate value -ok 232 — Returns the appropriate value -ok 233 — Returns the appropriate value -ok 234 — Returns NaN -ok 235 — Returns NaN - -# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js - -ok 236 — randomIntArrayInRange is a Function -ok 237 — The returned array contains only integers -ok 238 — The returned array has the proper length -ok 239 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/all/all.test.js - -ok 240 — all is a Function -ok 241 — Returns true for arrays with no falsey values -ok 242 — Returns false for arrays with 0 -ok 243 — Returns false for arrays with NaN -ok 244 — Returns false for arrays with undefined -ok 245 — Returns false for arrays with null -ok 246 — Returns false for arrays with empty strings -ok 247 — Returns true with predicate function -ok 248 — Returns false with a predicate function - -# PASS test/offset/offset.test.js - -ok 249 — offset is a Function -ok 250 — Offset of 0 returns the same array. -ok 251 — Offset > 0 returns the offsetted array. -ok 252 — Offset < 0 returns the reverse offsetted array. -ok 253 — Offset greater than the length of the array returns the same array. -ok 254 — Offset less than the negative length of the array returns the same array. -ok 255 — Offsetting empty array returns an empty array. - -# PASS test/pluralize/pluralize.test.js - -ok 256 — pluralize is a Function -ok 257 — Produces the plural of the word -ok 258 — Produces the singular of the word -ok 259 — Produces the plural of the word -ok 260 — Prodices the defined plural of the word -ok 261 — Works with a dictionary - -# PASS test/equals/equals.test.js - -ok 262 — equals is a Function -ok 263 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 264 — [1,2,3] is equal to [1,2,3] -ok 265 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 266 — [1,2,3] is not equal to [1,2,4] -ok 267 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. - -# PASS test/head/head.test.js - -ok 268 — head is a Function -ok 269 — head({ a: 1234}) returns undefined -ok 270 — head([1, 2, 3]) returns 1 -ok 271 — head({ 0: false}) returns false -ok 272 — head(String) returns S -ok 273 — head(null) throws an Error -ok 274 — head(undefined) throws an Error -ok 275 — head() throws an Error -ok 276 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/CSVToArray/CSVToArray.test.js - -ok 277 — CSVToArray is a Function -ok 278 — CSVToArray works with default delimiter -ok 279 — CSVToArray works with custom delimiter -ok 280 — CSVToArray omits the first row -ok 281 — CSVToArray omits the first row and works with a custom delimiter - -# PASS test/randomNumberInRange/randomNumberInRange.test.js - -ok 282 — randomNumberInRange is a Function -ok 283 — The returned value is a number -ok 284 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/sampleSize/sampleSize.test.js - -ok 285 — sampleSize is a Function -ok 286 — Returns a single element without n specified -ok 287 — Returns a random sample of specified size from an array -ok 288 — Returns all elements in an array if n >= length -ok 289 — Returns an empty array if original array is empty -ok 290 — Returns an empty array if n = 0 - -# PASS test/last/last.test.js - -ok 291 — last is a Function -ok 292 — last({ a: 1234}) returns undefined -ok 293 — last([1, 2, 3]) returns 3 -ok 294 — last({ 0: false}) returns undefined -ok 295 — last(String) returns g -ok 296 — last(null) throws an Error -ok 297 — last(undefined) throws an Error -ok 298 — last() throws an Error -ok 299 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/yesNo/yesNo.test.js - -ok 300 — yesNo is a Function -ok 301 — yesNo(Y) returns true -ok 302 — yesNo(yes) returns true -ok 303 — yesNo(foo, true) returns true -ok 304 — yesNo(No) returns false -ok 305 — yesNo() returns false -ok 306 — yesNo(null) returns false -ok 307 — yesNo(undefined) returns false -ok 308 — yesNo([123, null]) returns false -ok 309 — yesNo([Yes, No]) returns false -ok 310 — yesNo({ 2: Yes }) returns false -ok 311 — yesNo([Yes, No], true) returns true -ok 312 — yesNo({ 2: Yes }, true) returns true - -# PASS test/randomIntegerInRange/randomIntegerInRange.test.js - -ok 313 — randomIntegerInRange is a Function -ok 314 — The returned value is an integer -ok 315 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/zip/zip.test.js - -ok 316 — zip is a Function -ok 317 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] -ok 318 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] -ok 319 — zip([]) returns [] -ok 320 — zip(123) returns [] -ok 321 — zip([a, b], [1, 2], [true, false]) returns an Array -ok 322 — zip([a], [1, 2], [true, false]) returns an Array -ok 323 — zip(null) throws an error -ok 324 — zip(undefined) throws an error - -# PASS test/invertKeyValues/invertKeyValues.test.js - -ok 325 — invertKeyValues is a Function -ok 326 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } -ok 327 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } - -# PASS test/inRange/inRange.test.js - -ok 328 — inRange is a Function -ok 329 — The given number falls within the given range -ok 330 — The given number falls within the given range -ok 331 — The given number does not falls within the given range -ok 332 — The given number does not falls within the given range - -# PASS test/factorial/factorial.test.js - -ok 333 — factorial is a Function -ok 334 — Calculates the factorial of 720 -ok 335 — Calculates the factorial of 0 -ok 336 — Calculates the factorial of 1 -ok 337 — Calculates the factorial of 4 -ok 338 — Calculates the factorial of 10 - -# PASS test/fromCamelCase/fromCamelCase.test.js - -ok 339 — fromCamelCase is a Function -ok 340 — Converts a string from camelcase -ok 341 — Converts a string from camelcase -ok 342 — Converts a string from camelcase - -# PASS test/mask/mask.test.js - -ok 343 — mask is a Function -ok 344 — Replaces all but the last num of characters with the specified mask character -ok 345 — Replaces all but the last num of characters with the specified mask character -ok 346 — Replaces all but the last num of characters with the specified mask character - -# PASS test/none/none.test.js - -ok 347 — none is a Function -ok 348 — Returns true for arrays with no truthy values -ok 349 — Returns false for arrays with at least one truthy value -ok 350 — Returns true with a predicate function -ok 351 — Returns false with predicate function - -# PASS test/converge/converge.test.js - -ok 352 — converge is a Function -ok 353 — Produces the average of the array -ok 354 — Produces the strange concatenation - -# PASS test/reduceWhich/reduceWhich.test.js - -ok 355 — reduceWhich is a Function -ok 356 — Returns the minimum of an array -ok 357 — Returns the maximum of an array -ok 358 — Returns the object with the minimum specified value in an array - -# PASS test/approximatelyEqual/approximatelyEqual.test.js - -ok 359 — approximatelyEqual is a Function -ok 360 — Works for PI / 2 -ok 361 — Works for 0.1 + 0.2 === 0.3 -ok 362 — Works for exactly equal values -ok 363 — Works for a custom epsilon - -# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js - -ok 364 — toOrdinalSuffix is a Function -ok 365 — Adds an ordinal suffix to a number -ok 366 — Adds an ordinal suffix to a number -ok 367 — Adds an ordinal suffix to a number -ok 368 — Adds an ordinal suffix to a number - -# PASS test/binarySearch/binarySearch.test.js - -ok 369 — binarySearch is a Function -ok 370 — Finds item in array -ok 371 — Returns -1 when not found -ok 372 — Works with empty arrays -ok 373 — Works for one element arrays - -# PASS test/castArray/castArray.test.js - -ok 374 — castArray is a Function -ok 375 — Works for single values -ok 376 — Works for arrays with one value -ok 377 — Works for arrays with multiple value -ok 378 — Works for strings -ok 379 — Works for objects - -# PASS test/isAnagram/isAnagram.test.js - -ok 380 — isAnagram is a Function -ok 381 — Checks valid anagram -ok 382 — Works with spaces -ok 383 — Ignores case -ok 384 — Ignores special characters - -# PASS test/randomHexColorCode/randomHexColorCode.test.js - -ok 385 — randomHexColorCode is a Function -ok 386 — randomHexColorCode has to proper length -ok 387 — The color code starts with "#" -ok 388 — The color code contains only valid hex-digits - -# PASS test/capitalize/capitalize.test.js - -ok 389 — capitalize is a Function -ok 390 — Capitalizes the first letter of a string -ok 391 — Capitalizes the first letter of a string -ok 392 — Works with characters -ok 393 — "Works with single character words - -# PASS test/tomorrow/tomorrow.test.js - -ok 394 — tomorrow is a Function -ok 395 — Returns the correct year -ok 396 — Returns the correct month -ok 397 — Returns the correct date - -# PASS test/deepClone/deepClone.test.js - -ok 398 — deepClone is a Function -ok 399 — Shallow cloning works -ok 400 — Deep cloning works -ok 401 — Array shallow cloning works -ok 402 — Array deep cloning works - -# PASS test/JSONtoCSV/JSONtoCSV.test.js - -ok 403 — JSONtoCSV is a Function -ok 404 — JSONtoCSV works with default delimiter -ok 405 — JSONtoCSV works with custom delimiter - -# PASS test/isString/isString.test.js - -ok 406 — isString is a Function -ok 407 — foo is a string -ok 408 — "10" is a string -ok 409 — Empty string is a string -ok 410 — 10 is not a string -ok 411 — true is not string - -# PASS test/partition/partition.test.js - -ok 412 — partition is a Function -ok 413 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. - -# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js - -ok 414 — capitalizeEveryWord is a Function -ok 415 — Capitalizes the first letter of every word in a string -ok 416 — Works with characters -ok 417 — Works with one word string - -# PASS test/dropRight/dropRight.test.js - -ok 418 — dropRight is a Function -ok 419 — Returns a new array with n elements removed from the right -ok 420 — Returns a new array with n elements removed from the right -ok 421 — Returns a new array with n elements removed from the right - -# PASS test/hexToRGB/hexToRGB.test.js - -ok 422 — hexToRGB is a Function -ok 423 — Converts a color code to a rgb() or rgba() string -ok 424 — Converts a color code to a rgb() or rgba() string -ok 425 — Converts a color code to a rgb() or rgba() string - -# PASS test/stringPermutations/stringPermutations.test.js - -ok 426 — stringPermutations is a Function -ok 427 — Generates all stringPermutations of a string -ok 428 — Works for single-letter strings -ok 429 — Works for empty strings - -# PASS test/sumPower/sumPower.test.js - -ok 430 — sumPower is a Function -ok 431 — Returns the sum of the powers of all the numbers from start to end -ok 432 — Returns the sum of the powers of all the numbers from start to end -ok 433 — Returns the sum of the powers of all the numbers from start to end - -# PASS test/prettyBytes/prettyBytes.test.js - -ok 434 — prettyBytes is a Function -ok 435 — Converts a number in bytes to a human-readable string. -ok 436 — Converts a number in bytes to a human-readable string. -ok 437 — Converts a number in bytes to a human-readable string. - -# PASS test/isObjectLike/isObjectLike.test.js - -ok 438 — isObjectLike is a Function -ok 439 — Returns true for an object -ok 440 — Returns true for an array -ok 441 — Returns false for a function -ok 442 — Returns false for null - -# PASS test/shuffle/shuffle.test.js - -ok 443 — shuffle is a Function -ok 444 — Shuffles the array -ok 445 — New array contains all original elements -ok 446 — Works for empty arrays -ok 447 — Works for single-element arrays - -# PASS test/unzip/unzip.test.js - -ok 448 — unzip is a Function -ok 449 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] -ok 450 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] - -# PASS test/formatDuration/formatDuration.test.js - -ok 451 — formatDuration is a Function -ok 452 — Returns the human readable format of the given number of milliseconds -ok 453 — Returns the human readable format of the given number of milliseconds - -# PASS test/standardDeviation/standardDeviation.test.js - -ok 454 — standardDeviation is a Function -ok 455 — Returns the standard deviation of an array of numbers -ok 456 — Returns the standard deviation of an array of numbers - -# PASS test/byteSize/byteSize.test.js - -ok 457 — byteSize is a Function -ok 458 — Works for a single letter -ok 459 — Works for a common string -ok 460 — Works for emoji - -# PASS test/untildify/untildify.test.js - -ok 461 — untildify is a Function -ok 462 — Contains no tildes -ok 463 — Does not alter the rest of the path -ok 464 — Does not alter paths without tildes - -# PASS test/isAbsoluteURL/isAbsoluteURL.test.js - -ok 465 — isAbsoluteURL is a Function -ok 466 — Given string is an absolute URL -ok 467 — Given string is an absolute URL -ok 468 — Given string is not an absolute URL - -# PASS test/isObject/isObject.test.js - -ok 469 — isObject is a Function -ok 470 — isObject([1, 2, 3, 4]) is a object -ok 471 — isObject([]) is a object -ok 472 — isObject({ a:1 }) is a object -ok 473 — isObject(true) is not a object - -# PASS test/sortedIndex/sortedIndex.test.js - -ok 474 — sortedIndex is a Function -ok 475 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -ok 476 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. - -# PASS test/pad/pad.test.js - -ok 477 — pad is a Function -ok 478 — cat is padded on both sides -ok 479 — length of string is 8 -ok 480 — pads 42 with "0" -ok 481 — does not truncates if string exceeds length - -# PASS test/uncurry/uncurry.test.js - -ok 482 — uncurry is a Function -ok 483 — Works without a provided value for n -ok 484 — Works with n = 2 -ok 485 — Works with n = 3 +ok 24 — toCamelCase is a Function +ok 25 — toCamelCase('some_database_field_name') returns someDatabaseFieldName +ok 26 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized +ok 27 — toCamelCase('some-javascript-property') return someJavascriptProperty +ok 28 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens +ok 29 — toCamelCase() throws a error +ok 30 — toCamelCase([]) throws a error +ok 31 — toCamelCase({}) throws a error +ok 32 — toCamelCase(123) throws a error +ok 33 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run + +# PASS test/uniqueElements/uniqueElements.test.js + +ok 34 — uniqueElements is a Function +ok 35 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] +ok 36 — uniqueElements([1, 23, 53]) returns [1, 23, 53] +ok 37 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] +ok 38 — uniqueElements() returns [] +ok 39 — uniqueElements(null) returns [] +ok 40 — uniqueElements(undefined) returns [] +ok 41 — uniqueElements('strt') returns ['s', 't', 'r'] +ok 42 — uniqueElements(1, 1, 2543, 534, 5) throws an error +ok 43 — uniqueElements({}) throws an error +ok 44 — uniqueElements(true) throws an error +ok 45 — uniqueElements(false) throws an error +ok 46 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run + +# PASS test/average/average.test.js + +ok 47 — average is a Function +ok 48 — average(true) returns 0 +ok 49 — average(false) returns 1 +ok 50 — average(9, 1) returns 5 +ok 51 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 +ok 52 — average(1, 2, 3) returns 2 +ok 53 — average(null) returns 0 +ok 54 — average(1, 2, 3) returns NaN +ok 55 — average(String) returns NaN +ok 56 — average({ a: 123}) returns NaN +ok 57 — average([undefined, 0, string]) returns NaN +ok 58 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/is/is.test.js + +ok 59 — is is a Function +ok 60 — Works for arrays with data +ok 61 — Works for empty arrays +ok 62 — Works for arrays, not objects +ok 63 — Works for objects +ok 64 — Works for maps +ok 65 — Works for regular expressions +ok 66 — Works for sets +ok 67 — Works for weak maps +ok 68 — Works for weak sets +ok 69 — Works for strings - returns true for primitive +ok 70 — Works for strings - returns true when using constructor +ok 71 — Works for numbers - returns true for primitive +ok 72 — Works for numbers - returns true when using constructor +ok 73 — Works for booleans - returns true for primitive +ok 74 — Works for booleans - returns true when using constructor +ok 75 — Works for functions + +# FAIL test/tomorrow/tomorrow.test.js + +ok 76 — tomorrow is a Function +ok 77 — Returns the correct year +ok 78 — Returns the correct month +not ok 79 ● Returns the correct date +# +# expect(received).toBe(expected) // Object.is equality +# +# +# Expected: 8 +# +# Received: +# +# Stack: +# +# at Object..test (test/tomorrow/tomorrow.test.js:16:24) +# +# 12 | test('Returns the correct month', () => { +# 13 | expect(t1.getMonth()).toBe(t2.getMonth()); +# 14 | }); +# 15 | test('Returns the correct date', () => { +# > 16 | expect(t1.getDate()).toBe(t2.getDate()); +# | ^ +# 17 | }); +# 18 | +# +# at new Promise () +# at # PASS test/URLJoin/URLJoin.test.js -ok 486 — URLJoin is a Function -ok 487 — Returns proper URL -ok 488 — Returns proper URL +ok 80 — URLJoin is a Function +ok 81 — Returns proper URL +ok 82 — Returns proper URL # PASS test/isValidJSON/isValidJSON.test.js -ok 489 — isValidJSON is a Function -ok 490 — {"name":"Adam","age":20} is a valid JSON -ok 491 — {"name":"Adam",age:"20"} is not a valid JSON -ok 492 — null is a valid JSON +ok 83 — isValidJSON is a Function +ok 84 — {"name":"Adam","age":20} is a valid JSON +ok 85 — {"name":"Adam",age:"20"} is not a valid JSON +ok 86 — null is a valid JSON -# PASS test/matches/matches.test.js +# PASS test/getScrollPosition/getScrollPosition.test.js -ok 493 — matches is a Function -ok 494 — Matches returns true for two similar objects -ok 495 — Matches returns false for two non-similar objects +ok 87 — getScrollPosition is a Function -# PASS test/groupBy/groupBy.test.js +# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js -ok 496 — groupBy is a Function -ok 497 — Groups the elements of an array based on the given function -ok 498 — Groups the elements of an array based on the given function +ok 88 — fibonacciUntilNum is a Function -# PASS test/lowercaseKeys/lowercaseKeys.test.js +# PASS test/last/last.test.js -ok 499 — lowercaseKeys is a Function -ok 500 — Lowercases object keys -ok 501 — Does not mutate original object - -# PASS test/reducedFilter/reducedFilter.test.js - -ok 502 — reducedFilter is a Function -ok 503 — Filter an array of objects based on a condition while also filtering out unspecified keys. - -# PASS test/reject/reject.test.js - -ok 504 — reject is a Function -ok 505 — Works with numbers -ok 506 — Works with strings - -# PASS test/functionName/functionName.test.js - -ok 507 — functionName is a Function -ok 508 — Works for native functions -ok 509 — Works for functions -ok 510 — Works for arrow functions - -# PASS test/CSVToJSON/CSVToJSON.test.js - -ok 511 — CSVToJSON is a Function -ok 512 — CSVToJSON works with default delimiter -ok 513 — CSVToJSON works with custom delimiter - -# PASS test/collectInto/collectInto.test.js - -ok 514 — collectInto is a Function -ok 515 — Works with multiple promises - -# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js - -ok 516 — symmetricDifferenceWith is a Function -ok 517 — Returns the symmetric difference between two arrays, using a provided function as a comparator - -# PASS test/collatz/collatz.test.js - -ok 518 — collatz is a Function -ok 519 — When n is even, divide by 2 -ok 520 — When n is odd, times by 3 and add 1 -ok 521 — Eventually reaches 1 - -# PASS test/drop/drop.test.js - -ok 522 — drop is a Function -ok 523 — Works without the last argument -ok 524 — Removes appropriate element count as specified -ok 525 — Empties array given a count greater than length - -# PASS test/differenceBy/differenceBy.test.js - -ok 526 — differenceBy is a Function -ok 527 — Works using a native function and numbers -ok 528 — Works with arrow function and objects - -# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js - -ok 529 — UUIDGeneratorNode is a Function -ok 530 — Contains dashes in the proper places -ok 531 — Only contains hexadecimal digits - -# PASS test/matchesWith/matchesWith.test.js - -ok 532 — matchesWith is a Function -ok 533 — Returns true for two objects with similar values, based on the provided function - -# PASS test/luhnCheck/luhnCheck.test.js - -ok 534 — luhnCheck is a Function -ok 535 — validates identification number -ok 536 — validates identification number -ok 537 — validates identification number - -# PASS test/nthArg/nthArg.test.js - -ok 538 — nthArg is a Function -ok 539 — Returns the nth argument -ok 540 — Returns undefined if arguments too few -ok 541 — Works for negative values - -# PASS test/sample/sample.test.js - -ok 542 — sample is a Function -ok 543 — Returns a random element from the array -ok 544 — Works for single-element arrays -ok 545 — Returns undefined for empty array - -# PASS test/flattenObject/flattenObject.test.js - -ok 546 — flattenObject is a Function -ok 547 — Flattens an object with the paths for keys -ok 548 — Works with arrays - -# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js - -ok 549 — pipeAsyncFunctions is a Function -ok 550 — pipeAsyncFunctions result should be 15 - -# PASS test/functions/functions.test.js - -ok 551 — functions is a Function -ok 552 — Returns own methods -ok 553 — Returns own and inherited methods - -# PASS test/renameKeys/renameKeys.test.js - -ok 554 — renameKeys is a Function -ok 555 — renameKeys is a Function - -# PASS test/elo/elo.test.js - -ok 556 — elo is a Function -ok 557 — Standard 1v1s -ok 558 — Standard 1v1s -ok 559 — 4 player FFA, all same rank - -# PASS test/isLowerCase/isLowerCase.test.js - -ok 560 — isLowerCase is a Function -ok 561 — passed string is a lowercase -ok 562 — passed string is a lowercase -ok 563 — passed value is not a lowercase - -# PASS test/memoize/memoize.test.js - -ok 564 — memoize is a Function -ok 565 — Function works properly -ok 566 — Function works properly -ok 567 — Cache stores values - -# PASS test/bindKey/bindKey.test.js - -ok 568 — bindKey is a Function -ok 569 — Binds function to an object context - -# PASS test/averageBy/averageBy.test.js - -ok 570 — averageBy is a Function -ok 571 — Produces the right result with a function -ok 572 — Produces the right result with a property name - -# PASS test/promisify/promisify.test.js - -ok 573 — promisify is a Function -ok 574 — Returns a promise -ok 575 — Runs the function provided - -# PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js - -ok 576 — symmetricDifferenceBy is a Function -ok 577 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both - -# 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/isUpperCase/isUpperCase.test.js - -ok 580 — isUpperCase is a Function -ok 581 — ABC is all upper case -ok 582 — abc is not all upper case -ok 583 — A3@$ is all uppercase - -# PASS test/maxBy/maxBy.test.js - -ok 584 — maxBy is a Function -ok 585 — Produces the right result with a function -ok 586 — Produces the right result with a property name - -# PASS test/isArrayLike/isArrayLike.test.js - -ok 587 — isArrayLike is a Function -ok 588 — Returns true for a string -ok 589 — Returns true for an array -ok 590 — Returns false for null - -# PASS test/minBy/minBy.test.js - -ok 591 — minBy is a Function -ok 592 — Produces the right result with a function -ok 593 — Produces the right result with a property name - -# PASS test/arrayToCSV/arrayToCSV.test.js - -ok 594 — arrayToCSV is a Function -ok 595 — arrayToCSV works with default delimiter -ok 596 — arrayToCSV works with custom delimiter - -# PASS test/pullAtValue/pullAtValue.test.js - -ok 597 — pullAtValue is a Function -ok 598 — Pulls the specified values -ok 599 — Pulls the specified values - -# PASS test/isPromiseLike/isPromiseLike.test.js - -ok 600 — isPromiseLike is a Function -ok 601 — Returns true for a promise-like object -ok 602 — Returns false for an empty object - -# PASS test/unzipWith/unzipWith.test.js - -ok 603 — unzipWith is a Function -ok 604 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] - -# PASS test/coalesceFactory/coalesceFactory.test.js - -ok 605 — coalesceFactory is a Function -ok 606 — Returns a customized coalesce function - -# PASS test/truthCheckCollection/truthCheckCollection.test.js - -ok 607 — truthCheckCollection is a Function -ok 608 — second argument is truthy on all elements of a collection - -# PASS test/pullAtIndex/pullAtIndex.test.js - -ok 609 — pullAtIndex is a Function -ok 610 — Pulls the given values -ok 611 — Pulls the given values - -# PASS test/takeRight/takeRight.test.js - -ok 612 — takeRight is a Function -ok 613 — Returns an array with n elements removed from the end -ok 614 — Returns an array with n elements removed from the end - -# PASS test/runPromisesInSeries/runPromisesInSeries.test.js - -ok 615 — runPromisesInSeries is a Function -ok 616 — Runs promises in series - -# PASS test/isNil/isNil.test.js - -ok 617 — isNil is a Function -ok 618 — Returns true for null -ok 619 — Returns true for undefined -ok 620 — Returns false for an empty string - -# PASS test/gcd/gcd.test.js - -ok 621 — gcd is a Function -ok 622 — Calculates the greatest common divisor between two or more numbers/arrays -ok 623 — Calculates the greatest common divisor between two or more numbers/arrays - -# PASS test/bind/bind.test.js - -ok 624 — bind is a Function -ok 625 — Binds to an object context - -# PASS test/findLastKey/findLastKey.test.js - -ok 626 — findLastKey is a Function -ok 627 — eturns the appropriate key - -# PASS test/isPlainObject/isPlainObject.test.js - -ok 628 — isPlainObject is a Function -ok 629 — Returns true for a plain object -ok 630 — Returns false for a Map (example of non-plain object) - -# PASS test/intersectionBy/intersectionBy.test.js - -ok 631 — intersectionBy is a Function -ok 632 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both - -# PASS test/pipeFunctions/pipeFunctions.test.js - -ok 633 — pipeFunctions is a Function -ok 634 — Performs left-to-right function composition - -# PASS test/extendHex/extendHex.test.js - -ok 635 — extendHex is a Function -ok 636 — Extends a 3-digit color code to a 6-digit color code -ok 637 — Extends a 3-digit color code to a 6-digit color code - -# PASS test/merge/merge.test.js - -ok 638 — merge is a Function -ok 639 — Merges two objects - -# PASS test/isTravisCI/isTravisCI.test.js - -ok 640 — isTravisCI is a Function -ok 641 — Running on Travis, correctly evaluates - -# PASS test/take/take.test.js - -ok 642 — take is a Function -ok 643 — Returns an array with n elements removed from the beginning. -ok 644 — Returns an array with n elements removed from the beginning. - -# PASS test/indexOfAll/indexOfAll.test.js - -ok 645 — indexOfAll is a Function -ok 646 — Returns all indices of val in an array -ok 647 — Returns all indices of val in an array - -# PASS test/chainAsync/chainAsync.test.js - -ok 648 — chainAsync is a Function -ok 649 — Calls all functions in an array - -# PASS test/getURLParameters/getURLParameters.test.js - -ok 650 — getURLParameters is a Function -ok 651 — Returns an object containing the parameters of the current URL - -# PASS test/overArgs/overArgs.test.js - -ok 652 — overArgs is a Function -ok 653 — Invokes the provided function with its arguments transformed - -# PASS test/cleanObj/cleanObj.test.js - -ok 654 — cleanObj is a Function -ok 655 — Removes any properties except the ones specified from a JSON object - -# PASS test/when/when.test.js - -ok 656 — when is a Function -ok 657 — Returns the proper result -ok 658 — Returns the proper result - -# PASS test/spreadOver/spreadOver.test.js - -ok 659 — spreadOver is a Function -ok 660 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. - -# PASS test/partialRight/partialRight.test.js - -ok 661 — partialRight is a Function -ok 662 — Appends arguments - -# PASS test/decapitalize/decapitalize.test.js - -ok 663 — decapitalize is a Function -ok 664 — Works with default parameter -ok 665 — Works with second parameter set to true - -# PASS test/composeRight/composeRight.test.js - -ok 666 — composeRight is a Function -ok 667 — Performs left-to-right function composition - -# PASS test/nthElement/nthElement.test.js - -ok 668 — nthElement is a Function -ok 669 — Returns the nth element of an array. -ok 670 — Returns the nth element of an array. - -# PASS test/findKey/findKey.test.js - -ok 671 — findKey is a Function -ok 672 — Returns the appropriate key - -# PASS test/countBy/countBy.test.js - -ok 673 — countBy is a Function -ok 674 — Works for functions -ok 675 — Works for property names - -# PASS test/shallowClone/shallowClone.test.js - -ok 676 — shallowClone is a Function -ok 677 — Shallow cloning works -ok 678 — Does not clone deeply - -# PASS test/minN/minN.test.js - -ok 679 — minN is a Function -ok 680 — Returns the n minimum elements from the provided array -ok 681 — Returns the n minimum elements from the provided array - -# PASS test/maxN/maxN.test.js - -ok 682 — maxN is a Function -ok 683 — Returns the n maximum elements from the provided array -ok 684 — Returns the n maximum elements from the provided array - -# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js - -ok 685 — getDaysDiffBetweenDates is a Function -ok 686 — Returns the difference in days between two dates - -# PASS test/hashNode/hashNode.test.js - -ok 687 — hashNode is a Function -ok 688 — Produces the appropriate hash - -# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js - -ok 689 — initializeArrayWithRange is a Function -ok 690 — Initializes an array containing the numbers in the specified range - -# PASS test/flatten/flatten.test.js - -ok 691 — flatten is a Function -ok 692 — Flattens an array -ok 693 — Flattens an array - -# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js - -ok 694 — initializeArrayWithValues is a Function -ok 695 — Initializes and fills an array with the specified values - -# PASS test/percentile/percentile.test.js - -ok 696 — percentile is a Function -ok 697 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. - -# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js - -ok 698 — sortedLastIndexBy is a Function -ok 699 — Returns the highest index to insert the element without messing up the list order - -# PASS test/differenceWith/differenceWith.test.js - -ok 700 — differenceWith is a Function -ok 701 — Filters out all values from an array - -# PASS test/reduceSuccessive/reduceSuccessive.test.js - -ok 702 — reduceSuccessive is a Function -ok 703 — Returns the array of successively reduced values - -# PASS test/compose/compose.test.js - -ok 704 — compose is a Function -ok 705 — Performs right-to-left function composition - -# PASS test/lcm/lcm.test.js - -ok 706 — lcm is a Function -ok 707 — Returns the least common multiple of two or more numbers. -ok 708 — Returns the least common multiple of two or more numbers. - -# PASS test/transform/transform.test.js - -ok 709 — transform is a Function -ok 710 — Transforms an object - -# PASS test/bindAll/bindAll.test.js - -ok 711 — bindAll is a Function -ok 712 — Binds to an object context - -# PASS test/permutations/permutations.test.js - -ok 713 — permutations is a Function -ok 714 — Generates all permutations of an array - -# PASS test/partial/partial.test.js - -ok 715 — partial is a Function -ok 716 — Prepends arguments +ok 89 — last is a Function +ok 90 — last({ a: 1234}) returns undefined +ok 91 — last([1, 2, 3]) returns 3 +ok 92 — last({ 0: false}) returns undefined +ok 93 — last(String) returns g +ok 94 — last(null) throws an Error +ok 95 — last(undefined) throws an Error +ok 96 — last() throws an Error +ok 97 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run # PASS test/palindrome/palindrome.test.js -ok 717 — palindrome is a Function -ok 718 — Given string is a palindrome -ok 719 — Given string is not a palindrome +ok 98 — palindrome is a Function +ok 99 — Given string is a palindrome +ok 100 — Given string is not a palindrome -# PASS test/mapValues/mapValues.test.js +# PASS test/composeRight/composeRight.test.js -ok 720 — mapValues is a Function -ok 721 — Maps values +ok 101 — composeRight is a Function +ok 102 — Performs left-to-right function composition -# PASS test/degreesToRads/degreesToRads.test.js +# PASS test/isTravisCI/isTravisCI.test.js -ok 722 — degreesToRads is a Function -ok 723 — Returns the appropriate value +ok 103 — isTravisCI is a Function +ok 104 — Not running on Travis, correctly evaluates -# PASS test/median/median.test.js +# PASS test/quickSort/quickSort.test.js -ok 724 — median is a Function -ok 725 — Returns the median of an array of numbers -ok 726 — Returns the median of an array of numbers +ok 105 — quickSort is a Function +ok 106 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] +ok 107 — quickSort([-1, 0, -2]) returns [-2, -1, 0] +ok 108 — quickSort() throws an error +ok 109 — quickSort(123) throws an error +ok 110 — quickSort({ 234: string}) throws an error +ok 111 — quickSort(null) throws an error +ok 112 — quickSort(undefined) throws an error +ok 113 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run -# PASS test/dropRightWhile/dropRightWhile.test.js +# PASS test/isPrimitive/isPrimitive.test.js -ok 727 — dropRightWhile is a Function -ok 728 — Removes elements from the end of an array until the passed function returns true. +ok 114 — isPrimitive is a Function +ok 115 — isPrimitive(null) is primitive +ok 116 — isPrimitive(undefined) is primitive +ok 117 — isPrimitive(string) is primitive +ok 118 — isPrimitive(true) is primitive +ok 119 — isPrimitive(50) is primitive +ok 120 — isPrimitive('Hello') is primitive +ok 121 — isPrimitive(false) is primitive +ok 122 — isPrimitive(Symbol()) is primitive +ok 123 — isPrimitive([1, 2, 3]) is not primitive +ok 124 — isPrimitive({ a: 123 }) is not primitive +ok 125 — isPrimitive({ a: 123 }) takes less than 2s to run -# PASS test/size/size.test.js +# PASS test/runAsync/runAsync.test.js -ok 729 — size is a Function -ok 730 — Get size of arrays, objects or strings. -ok 731 — Get size of arrays, objects or strings. +ok 126 — runAsync is a Function -# PASS test/unionWith/unionWith.test.js +# PASS test/any/any.test.js -ok 732 — unionWith is a Function -ok 733 — Produces the appropriate results +ok 127 — any is a Function +ok 128 — Returns true for arrays with at least one truthy value +ok 129 — Returns false for arrays with no truthy values +ok 130 — Returns false for arrays with no truthy values +ok 131 — Returns true with predicate function +ok 132 — Returns false with a predicate function -# PASS test/forOwnRight/forOwnRight.test.js +# PASS test/similarity/similarity.test.js -ok 734 — forOwnRight is a Function -ok 735 — Iterates over an element's key-value pairs in reverse +ok 133 — similarity is a Function +ok 134 — Returns an array of elements that appear in both arrays. -# PASS test/pickBy/pickBy.test.js +# PASS test/toCurrency/toCurrency.test.js -ok 736 — pickBy is a Function -ok 737 — Creates an object composed of the properties the given function returns truthy for. +ok 135 — toCurrency is a Function +ok 136 — currency: Euro | currencyLangFormat: Local +ok 137 — currency: US Dollar | currencyLangFormat: English (United States) +ok 138 — currency: Japanese Yen | currencyLangFormat: Local -# PASS test/splitLines/splitLines.test.js +# PASS test/toSnakeCase/toSnakeCase.test.js -ok 738 — splitLines is a Function -ok 739 — Splits a multiline string into an array of lines. +ok 139 — toSnakeCase is a Function +ok 140 — toSnakeCase('camelCase') returns camel_case +ok 141 — toSnakeCase('some text') returns some_text +ok 142 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens +ok 143 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html +ok 144 — toSnakeCase() returns undefined +ok 145 — toSnakeCase([]) throws an error +ok 146 — toSnakeCase({}) throws an error +ok 147 — toSnakeCase(123) throws an error +ok 148 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run -# PASS test/sortedIndexBy/sortedIndexBy.test.js +# PASS test/toDecimalMark/toDecimalMark.test.js -ok 740 — sortedIndexBy is a Function -ok 741 — Returns the lowest index to insert the element without messing up the list order +ok 149 — toDecimalMark is a Function +ok 150 — convert a float-point arithmetic to the Decimal mark form -# PASS test/bifurcate/bifurcate.test.js +# PASS test/chunk/chunk.test.js -ok 742 — bifurcate is a Function -ok 743 — Splits the collection into two groups - -# PASS test/isFunction/isFunction.test.js - -ok 744 — isFunction is a Function -ok 745 — passed value is a function -ok 746 — passed value is not a function - -# PASS test/rearg/rearg.test.js - -ok 747 — rearg is a Function -ok 748 — Reorders arguments in invoked function - -# PASS test/sortedLastIndex/sortedLastIndex.test.js - -ok 749 — sortedLastIndex is a Function -ok 750 — Returns the highest index to insert the element without messing up the list order - -# PASS test/bifurcateBy/bifurcateBy.test.js - -ok 751 — bifurcateBy is a Function -ok 752 — Splits the collection into two groups - -# PASS test/flip/flip.test.js - -ok 753 — flip is a Function -ok 754 — Flips argument order - -# PASS test/sortCharactersInString/sortCharactersInString.test.js - -ok 755 — sortCharactersInString is a Function -ok 756 — Alphabetically sorts the characters in a string. - -# PASS test/isBoolean/isBoolean.test.js - -ok 757 — isBoolean is a Function -ok 758 — passed value is not a boolean -ok 759 — passed value is not a boolean - -# PASS test/symmetricDifference/symmetricDifference.test.js - -ok 760 — symmetricDifference is a Function -ok 761 — Returns the symmetric difference between two arrays. - -# PASS test/get/get.test.js - -ok 762 — get is a Function -ok 763 — Retrieve a property indicated by the selector from an object. - -# PASS test/unescapeHTML/unescapeHTML.test.js - -ok 764 — unescapeHTML is a Function -ok 765 — Unescapes escaped HTML characters. - -# PASS test/isNumber/isNumber.test.js - -ok 766 — isNumber is a Function -ok 767 — passed argument is a number -ok 768 — passed argument is not a number +ok 151 — chunk is a Function +ok 152 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] +ok 153 — chunk([]) returns [] +ok 154 — chunk(123) returns [] +ok 155 — chunk({ a: 123}) returns [] +ok 156 — chunk(string, 2) returns [ st, ri, ng ] +ok 157 — chunk() throws an error +ok 158 — chunk(undefined) throws an error +ok 159 — chunk(null) throws an error +ok 160 — chunk(This is a string, 2) takes less than 2s to run # PASS test/unflattenObject/unflattenObject.test.js -ok 769 — unflattenObject is a Function -ok 770 — Unflattens an object with the paths for keys +ok 161 — unflattenObject is a Function +ok 162 — Unflattens an object with the paths for keys + +# PASS test/initializeNDArray/initializeNDArray.test.js + +ok 163 — initializeNDArray is a Function + +# PASS test/colorize/colorize.test.js + +ok 164 — colorize is a Function + +# PASS test/serializeCookie/serializeCookie.test.js + +ok 165 — serializeCookie is a Function +ok 166 — Serializes the cookie + +# PASS test/words/words.test.js + +ok 167 — words is a Function +ok 168 — words('I love javaScript!!') returns [I, love, javaScript] +ok 169 — words('python, javaScript & coffee') returns [python, javaScript, coffee] +ok 170 — words(I love javaScript!!) returns an array +ok 171 — words() throws an error +ok 172 — words(null) throws an error +ok 173 — words(undefined) throws an error +ok 174 — words({}) throws an error +ok 175 — words([]) throws an error +ok 176 — words(1234) throws an error + +# PASS test/toSafeInteger/toSafeInteger.test.js + +ok 177 — toSafeInteger is a Function +ok 178 — Number(toSafeInteger(3.2)) is a number +ok 179 — Converts a value to a safe integer +ok 180 — toSafeInteger('4.2') returns 4 +ok 181 — toSafeInteger(4.6) returns 5 +ok 182 — toSafeInteger([]) returns 0 +ok 183 — isNaN(toSafeInteger([1.5, 3124])) is true +ok 184 — isNaN(toSafeInteger('string')) is true +ok 185 — isNaN(toSafeInteger({})) is true +ok 186 — isNaN(toSafeInteger()) is true +ok 187 — toSafeInteger(Infinity) returns 9007199254740991 +ok 188 — toSafeInteger(3.2) takes less than 2s to run + +# PASS test/reduceWhich/reduceWhich.test.js + +ok 189 — reduceWhich is a Function +ok 190 — Returns the minimum of an array +ok 191 — Returns the maximum of an array +ok 192 — Returns the object with the minimum specified value in an array + +# PASS test/yesNo/yesNo.test.js + +ok 193 — yesNo is a Function +ok 194 — yesNo(Y) returns true +ok 195 — yesNo(yes) returns true +ok 196 — yesNo(foo, true) returns true +ok 197 — yesNo(No) returns false +ok 198 — yesNo() returns false +ok 199 — yesNo(null) returns false +ok 200 — yesNo(undefined) returns false +ok 201 — yesNo([123, null]) returns false +ok 202 — yesNo([Yes, No]) returns false +ok 203 — yesNo({ 2: Yes }) returns false +ok 204 — yesNo([Yes, No], true) returns true +ok 205 — yesNo({ 2: Yes }, true) returns true + +# PASS test/symmetricDifference/symmetricDifference.test.js + +ok 206 — symmetricDifference is a Function +ok 207 — Returns the symmetric difference between two arrays. + +# PASS test/isString/isString.test.js + +ok 208 — isString is a Function +ok 209 — foo is a string +ok 210 — "10" is a string +ok 211 — Empty string is a string +ok 212 — 10 is not a string +ok 213 — true is not string + +# PASS test/arrayToCSV/arrayToCSV.test.js + +ok 214 — arrayToCSV is a Function +ok 215 — arrayToCSV works with default delimiter +ok 216 — arrayToCSV works with custom delimiter + +# PASS test/mapKeys/mapKeys.test.js + +ok 217 — mapKeys is a Function +ok 218 — Maps keys + +# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js + +ok 219 — pipeAsyncFunctions is a Function +ok 220 — pipeAsyncFunctions result should be 15 + +# PASS test/pull/pull.test.js + +ok 221 — pull is a Function +ok 222 — Pulls the specified values + +# PASS test/differenceBy/differenceBy.test.js + +ok 223 — differenceBy is a Function +ok 224 — Works using a native function and numbers +ok 225 — Works with arrow function and objects + +# PASS test/equals/equals.test.js + +ok 226 — equals is a Function +ok 227 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 228 — [1,2,3] is equal to [1,2,3] +ok 229 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 230 — [1,2,3] is not equal to [1,2,4] +ok 231 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. + +# PASS test/capitalize/capitalize.test.js + +ok 232 — capitalize is a Function +ok 233 — Capitalizes the first letter of a string +ok 234 — Capitalizes the first letter of a string +ok 235 — Works with characters +ok 236 — "Works with single character words + +# PASS test/when/when.test.js + +ok 237 — when is a Function +ok 238 — Returns the proper result +ok 239 — Returns the proper result + +# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js + +ok 240 — sortedLastIndexBy is a Function +ok 241 — Returns the highest index to insert the element without messing up the list order + +# PASS test/isUpperCase/isUpperCase.test.js + +ok 242 — isUpperCase is a Function +ok 243 — ABC is all upper case +ok 244 — abc is not all upper case +ok 245 — A3@$ is all uppercase + +# PASS test/forOwnRight/forOwnRight.test.js + +ok 246 — forOwnRight is a Function +ok 247 — Iterates over an element's key-value pairs in reverse + +# PASS test/solveRPN/solveRPN.test.js + +ok 248 — solveRPN is a Function + +# PASS test/intersection/intersection.test.js + +ok 249 — intersection is a Function +ok 250 — Returns a list of elements that exist in both arrays + +# PASS test/RGBToHex/RGBToHex.test.js + +ok 251 — RGBToHex is a Function +ok 252 — Converts the values of RGB components to a color code. + +# PASS test/pullAtValue/pullAtValue.test.js + +ok 253 — pullAtValue is a Function +ok 254 — Pulls the specified values +ok 255 — Pulls the specified values + +# PASS test/elementContains/elementContains.test.js + +ok 256 — elementContains is a Function + +# PASS test/removeVowels/removeVowels.test.js + +ok 257 — removeVowels is a Function + +# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js + +ok 258 — isBrowserTabFocused is a Function + +# PASS test/round/round.test.js + +ok 259 — round is a Function +ok 260 — round(1.005, 2) returns 1.01 +ok 261 — round(123.3423345345345345344, 11) returns 123.34233453453 +ok 262 — round(3.342, 11) returns 3.342 +ok 263 — round(1.005) returns 1 +ok 264 — round([1.005, 2]) returns NaN +ok 265 — round(string) returns NaN +ok 266 — round() returns NaN +ok 267 — round(132, 413, 4134) returns NaN +ok 268 — round({a: 132}, 413) returns NaN +ok 269 — round(123.3423345345345345344, 11) takes less than 2s to run + +# PASS test/isSorted/isSorted.test.js + +ok 270 — isSorted is a Function +ok 271 — Array is sorted in ascending order +ok 272 — Array is sorted in ascending order +ok 273 — Array is sorted in ascending order +ok 274 — Array is sorted in ascending order +ok 275 — Array is sorted in descending order +ok 276 — Array is sorted in descending order +ok 277 — Array is sorted in descending order +ok 278 — Array is sorted in descending order +ok 279 — Array is empty +ok 280 — Array is not sorted, direction changed in array +ok 281 — Array is not sorted, direction changed in array + +# PASS test/sortedIndex/sortedIndex.test.js + +ok 282 — sortedIndex is a Function +ok 283 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. +ok 284 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. + +# PASS test/delay/delay.test.js + +ok 285 — delay is a Function +ok 286 — Works as expecting, passing arguments properly + +# PASS test/drop/drop.test.js + +ok 287 — drop is a Function +ok 288 — Works without the last argument +ok 289 — Removes appropriate element count as specified +ok 290 — Empties array given a count greater than length + +# PASS test/sortedIndexBy/sortedIndexBy.test.js + +ok 291 — sortedIndexBy is a Function +ok 292 — Returns the lowest index to insert the element without messing up the list order + +# PASS test/uncurry/uncurry.test.js + +ok 293 — uncurry is a Function +ok 294 — Works without a provided value for n +ok 295 — Works with n = 2 +ok 296 — Works with n = 3 + +# PASS test/sumBy/sumBy.test.js + +ok 297 — sumBy is a Function + +# PASS test/deepClone/deepClone.test.js + +ok 298 — deepClone is a Function +ok 299 — Shallow cloning works +ok 300 — Deep cloning works +ok 301 — Array shallow cloning works +ok 302 — Array deep cloning works + +# PASS test/isNil/isNil.test.js + +ok 303 — isNil is a Function +ok 304 — Returns true for null +ok 305 — Returns true for undefined +ok 306 — Returns false for an empty string + +# PASS test/prettyBytes/prettyBytes.test.js + +ok 307 — prettyBytes is a Function +ok 308 — Converts a number in bytes to a human-readable string. +ok 309 — Converts a number in bytes to a human-readable string. +ok 310 — Converts a number in bytes to a human-readable string. + +# PASS test/remove/remove.test.js + +ok 311 — remove is a Function +ok 312 — Removes elements from an array for which the given function returns false + +# PASS test/clampNumber/clampNumber.test.js + +ok 313 — clampNumber is a Function +ok 314 — Clamps num within the inclusive range specified by the boundary values a and b + +# PASS test/curry/curry.test.js + +ok 315 — curry is a Function +ok 316 — curries a Math.pow +ok 317 — curries a Math.min + +# PASS test/unionBy/unionBy.test.js + +ok 318 — unionBy is a Function +ok 319 — Produces the appropriate results + +# PASS test/merge/merge.test.js + +ok 320 — merge is a Function +ok 321 — Merges two objects + +# PASS test/orderBy/orderBy.test.js + +ok 322 — orderBy is a Function +ok 323 — Returns a sorted array of objects ordered by properties and orders. +ok 324 — Returns a sorted array of objects ordered by properties and orders. + +# PASS test/countOccurrences/countOccurrences.test.js + +ok 325 — countOccurrences is a Function +ok 326 — Counts the occurrences of a value in an array + +# PASS test/zipObject/zipObject.test.js + +ok 327 — zipObject is a Function +ok 328 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} +ok 329 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} +ok 330 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } +ok 331 — zipObject([a], string) returns { a: s } +ok 332 — zipObject() throws an error +ok 333 — zipObject((['string'], null) throws an error +ok 334 — zipObject(null, [1]) throws an error +ok 335 — zipObject('string') throws an error +ok 336 — zipObject('test', 'string') throws an error + +# PASS test/escapeRegExp/escapeRegExp.test.js + +ok 337 — escapeRegExp is a Function +ok 338 — Escapes a string to use in a regular expression + +# PASS test/isArrayBuffer/isArrayBuffer.test.js + +ok 339 — isArrayBuffer is a Function + +# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js + +ok 340 — getDaysDiffBetweenDates is a Function +ok 341 — Returns the difference in days between two dates + +# PASS test/getStyle/getStyle.test.js + +ok 342 — getStyle is a Function + +# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js + +ok 343 — randomIntArrayInRange is a Function +ok 344 — The returned array contains only integers +ok 345 — The returned array has the proper length +ok 346 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/intersectionWith/intersectionWith.test.js + +ok 347 — intersectionWith is a Function +ok 348 — Returns a list of elements that exist in both arrays, using a provided comparator function + +# PASS test/filterNonUnique/filterNonUnique.test.js + +ok 349 — filterNonUnique is a Function +ok 350 — Filters out the non-unique values in an array + +# PASS test/isAnagram/isAnagram.test.js + +ok 351 — isAnagram is a Function +ok 352 — Checks valid anagram +ok 353 — Works with spaces +ok 354 — Ignores case +ok 355 — Ignores special characters + +# PASS test/matchesWith/matchesWith.test.js + +ok 356 — matchesWith is a Function +ok 357 — Returns true for two objects with similar values, based on the provided function + +# PASS test/takeWhile/takeWhile.test.js + +ok 358 — takeWhile is a Function +ok 359 — Removes elements until the function returns true + +# PASS test/omit/omit.test.js + +ok 360 — omit is a Function +ok 361 — Omits the key-value pairs corresponding to the given keys from an object + +# PASS test/sampleSize/sampleSize.test.js + +ok 362 — sampleSize is a Function +ok 363 — Returns a single element without n specified +ok 364 — Returns a random sample of specified size from an array +ok 365 — Returns all elements in an array if n >= length +ok 366 — Returns an empty array if original array is empty +ok 367 — Returns an empty array if n = 0 + +# PASS test/hammingDistance/hammingDistance.test.js + +ok 368 — hammingDistance is a Function +ok 369 — retuns hamming disance between 2 values + +# PASS test/fibonacci/fibonacci.test.js + +ok 370 — fibonacci is a Function +ok 371 — Generates an array, containing the Fibonacci sequence + +# PASS test/unionWith/unionWith.test.js + +ok 372 — unionWith is a Function +ok 373 — Produces the appropriate results + +# PASS test/isSymbol/isSymbol.test.js + +ok 374 — isSymbol is a Function +ok 375 — Checks if the given argument is a symbol + +# PASS test/unfold/unfold.test.js + +ok 376 — unfold is a Function +ok 377 — Works with a given function, producing an array + +# PASS test/hashBrowser/hashBrowser.test.js + +ok 378 — hashBrowser is a Function + +# PASS test/all/all.test.js + +ok 379 — all is a Function +ok 380 — Returns true for arrays with no falsey values +ok 381 — Returns false for arrays with 0 +ok 382 — Returns false for arrays with NaN +ok 383 — Returns false for arrays with undefined +ok 384 — Returns false for arrays with null +ok 385 — Returns false for arrays with empty strings +ok 386 — Returns true with predicate function +ok 387 — Returns false with a predicate function + +# PASS test/isEven/isEven.test.js + +ok 388 — isEven is a Function +ok 389 — 4 is even number +ok 390 — 5 is not an even number + +# PASS test/get/get.test.js + +ok 391 — get is a Function +ok 392 — Retrieve a property indicated by the selector from an object. + +# PASS test/atob/atob.test.js + +ok 393 — atob is a Function +ok 394 — atob("Zm9vYmFy") equals "foobar" +ok 395 — atob("Z") returns "" + +# PASS test/redirect/redirect.test.js + +ok 396 — redirect is a Function + +# PASS test/randomHexColorCode/randomHexColorCode.test.js + +ok 397 — randomHexColorCode is a Function +ok 398 — randomHexColorCode has to proper length +ok 399 — The color code starts with "#" +ok 400 — The color code contains only valid hex-digits + +# PASS test/CSVToJSON/CSVToJSON.test.js + +ok 401 — CSVToJSON is a Function +ok 402 — CSVToJSON works with default delimiter +ok 403 — CSVToJSON works with custom delimiter + +# PASS test/partial/partial.test.js + +ok 404 — partial is a Function +ok 405 — Prepends arguments + +# PASS test/partialRight/partialRight.test.js + +ok 406 — partialRight is a Function +ok 407 — Appends arguments + +# PASS test/maxBy/maxBy.test.js + +ok 408 — maxBy is a Function +ok 409 — Produces the right result with a function +ok 410 — Produces the right result with a property name + +# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js + +ok 411 — toOrdinalSuffix is a Function +ok 412 — Adds an ordinal suffix to a number +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 + +# PASS test/sdbm/sdbm.test.js + +ok 416 — sdbm is a Function +ok 417 — Hashes the input string into a whole number. + +# PASS test/isArray/isArray.test.js + +ok 418 — isArray is a Function +ok 419 — passed value is an array +ok 420 — passed value is not an array + +# PASS test/none/none.test.js + +ok 421 — none is a Function +ok 422 — Returns true for arrays with no truthy values +ok 423 — Returns false for arrays with at least one truthy value +ok 424 — Returns true with a predicate function +ok 425 — Returns false with predicate function + +# PASS test/isNumber/isNumber.test.js + +ok 426 — isNumber is a Function +ok 427 — passed argument is a number +ok 428 — passed argument is not a number + +# PASS test/isAbsoluteURL/isAbsoluteURL.test.js + +ok 429 — isAbsoluteURL is a Function +ok 430 — Given string is an absolute URL +ok 431 — Given string is an absolute URL +ok 432 — Given string is not an absolute URL + +# PASS test/findKey/findKey.test.js + +ok 433 — findKey is a Function +ok 434 — Returns the appropriate key + +# PASS test/mask/mask.test.js + +ok 435 — mask is a Function +ok 436 — Replaces all but the last num of characters with the specified mask character +ok 437 — Replaces all but the last num of characters with the specified mask character +ok 438 — Replaces all but the last num of characters with the specified mask character + +# PASS test/attempt/attempt.test.js + +ok 439 — attempt is a Function +ok 440 — Returns a value +ok 441 — Returns an error + +# PASS test/zip/zip.test.js + +ok 442 — zip is a Function +ok 443 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] +ok 444 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] +ok 445 — zip([]) returns [] +ok 446 — zip(123) returns [] +ok 447 — zip([a, b], [1, 2], [true, false]) returns an Array +ok 448 — zip([a], [1, 2], [true, false]) returns an Array +ok 449 — zip(null) throws an error +ok 450 — zip(undefined) throws an error + +# PASS test/once/once.test.js + +ok 451 — once is a Function + +# PASS test/compose/compose.test.js + +ok 452 — compose is a Function +ok 453 — Performs right-to-left function composition + +# PASS test/randomIntegerInRange/randomIntegerInRange.test.js + +ok 454 — randomIntegerInRange is a Function +ok 455 — The returned value is an integer +ok 456 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/primes/primes.test.js + +ok 457 — primes is a Function +ok 458 — Generates primes up to a given number, using the Sieve of Eratosthenes. + +# PASS test/CSVToArray/CSVToArray.test.js + +ok 459 — CSVToArray is a Function +ok 460 — CSVToArray works with default delimiter +ok 461 — CSVToArray works with custom delimiter +ok 462 — CSVToArray omits the first row +ok 463 — CSVToArray omits the first row and works with a custom delimiter + +# PASS test/isUndefined/isUndefined.test.js + +ok 464 — isUndefined is a Function +ok 465 — Returns true for undefined + +# PASS test/minBy/minBy.test.js + +ok 466 — minBy is a Function +ok 467 — Produces the right result with a function +ok 468 — Produces the right result with a property name + +# PASS test/off/off.test.js + +ok 469 — off is a Function + +# PASS test/differenceWith/differenceWith.test.js + +ok 470 — differenceWith is a Function +ok 471 — Filters out all values from an array + +# PASS test/offset/offset.test.js + +ok 472 — offset is a Function +ok 473 — Offset of 0 returns the same array. +ok 474 — Offset > 0 returns the offsetted array. +ok 475 — Offset < 0 returns the reverse offsetted array. +ok 476 — Offset greater than the length of the array returns the same array. +ok 477 — Offset less than the negative length of the array returns the same array. +ok 478 — Offsetting empty array returns an empty array. + +# PASS test/radsToDegrees/radsToDegrees.test.js + +ok 479 — radsToDegrees is a Function +ok 480 — Returns the appropriate value + +# PASS test/detectDeviceType/detectDeviceType.test.js + +ok 481 — detectDeviceType is a Function + +# PASS test/without/without.test.js + +ok 482 — without is a Function +ok 483 — without([2, 1, 2, 3], 1, 2) returns [3] +ok 484 — without([]) returns [] +ok 485 — without([3, 1, true, '3', true], '3', true) returns [3, 1] +ok 486 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] +ok 487 — without() throws an error +ok 488 — without(null) throws an error +ok 489 — without(undefined) throws an error +ok 490 — without(123) throws an error +ok 491 — without({}) throws an error + +# PASS test/cloneRegExp/cloneRegExp.test.js + +ok 492 — cloneRegExp is a Function +ok 493 — Clones regular expressions properly + +# PASS test/isLowerCase/isLowerCase.test.js + +ok 494 — isLowerCase is a Function +ok 495 — passed string is a lowercase +ok 496 — passed string is a lowercase +ok 497 — passed value is not a lowercase + +# PASS test/flattenObject/flattenObject.test.js + +ok 498 — flattenObject is a Function +ok 499 — Flattens an object with the paths for keys +ok 500 — Works with arrays + +# PASS test/truncateString/truncateString.test.js + +ok 501 — truncateString is a Function +ok 502 — Truncates a "boomerang" up to a specified length. + +# PASS test/isMap/isMap.test.js + +ok 503 — isMap is a Function + +# PASS test/findLast/findLast.test.js + +ok 504 — findLast is a Function +ok 505 — Finds last element for which the given function returns true + +# PASS test/isPrime/isPrime.test.js + +ok 506 — isPrime is a Function +ok 507 — passed number is a prime + +# PASS test/chainAsync/chainAsync.test.js + +ok 508 — chainAsync is a Function +ok 509 — Calls all functions in an array + +# PASS test/isNull/isNull.test.js + +ok 510 — isNull is a Function +ok 511 — passed argument is a null +ok 512 — passed argument is a null + +# PASS test/findLastKey/findLastKey.test.js + +ok 513 — findLastKey is a Function +ok 514 — eturns the appropriate key + +# PASS test/omitBy/omitBy.test.js + +ok 515 — omitBy is a Function +ok 516 — Creates an object composed of the properties the given function returns falsey for + +# PASS test/degreesToRads/degreesToRads.test.js + +ok 517 — degreesToRads is a Function +ok 518 — Returns the appropriate value + +# PASS test/head/head.test.js + +ok 519 — head is a Function +ok 520 — head({ a: 1234}) returns undefined +ok 521 — head([1, 2, 3]) returns 1 +ok 522 — head({ 0: false}) returns false +ok 523 — head(String) returns S +ok 524 — head(null) throws an Error +ok 525 — head(undefined) throws an Error +ok 526 — head() throws an Error +ok 527 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/isBoolean/isBoolean.test.js + +ok 528 — isBoolean is a Function +ok 529 — passed value is not a boolean +ok 530 — passed value is not a boolean + +# PASS test/compact/compact.test.js + +ok 531 — compact is a Function +ok 532 — Removes falsey values from an array + +# PASS test/rearg/rearg.test.js + +ok 533 — rearg is a Function +ok 534 — Reorders arguments in invoked function + +# PASS test/groupBy/groupBy.test.js + +ok 535 — groupBy is a Function +ok 536 — Groups the elements of an array based on the given function +ok 537 — Groups the elements of an array based on the given function + +# PASS test/isEmpty/isEmpty.test.js + +ok 538 — isEmpty is a Function +ok 539 — Returns true for empty Map +ok 540 — Returns true for empty Set +ok 541 — Returns true for empty array +ok 542 — Returns true for empty object +ok 543 — Returns true for empty string +ok 544 — Returns false for non-empty array +ok 545 — Returns false for non-empty object +ok 546 — Returns false for non-empty string +ok 547 — Returns true - type is not considered a collection +ok 548 — Returns true - type is not considered a collection + +# PASS test/stringPermutations/stringPermutations.test.js + +ok 549 — stringPermutations is a Function +ok 550 — Generates all stringPermutations of a string +ok 551 — Works for single-letter strings +ok 552 — Works for empty strings + +# PASS test/reducedFilter/reducedFilter.test.js + +ok 553 — reducedFilter is a Function +ok 554 — Filter an array of objects based on a condition while also filtering out unspecified keys. + +# PASS test/show/show.test.js + +ok 555 — show is a Function + +# PASS test/approximatelyEqual/approximatelyEqual.test.js + +ok 556 — approximatelyEqual is a Function +ok 557 — Works for PI / 2 +ok 558 — Works for 0.1 + 0.2 === 0.3 +ok 559 — Works for exactly equal values +ok 560 — Works for a custom epsilon + +# PASS test/distance/distance.test.js + +ok 561 — distance is a Function +ok 562 — Calculates the distance between two points + +# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js + +ok 563 — elementIsVisibleInViewport is a Function + +# PASS test/collectInto/collectInto.test.js + +ok 564 — collectInto is a Function +ok 565 — Works with multiple promises + +# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js + +ok 566 — initializeArrayWithRange is a Function +ok 567 — Initializes an array containing the numbers in the specified range + +# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js + +ok 568 — initializeArrayWithRangeRight is a Function + +# PASS test/sortCharactersInString/sortCharactersInString.test.js + +ok 569 — sortCharactersInString is a Function +ok 570 — Alphabetically sorts the characters in a string. + +# PASS test/sumPower/sumPower.test.js + +ok 571 — sumPower is a Function +ok 572 — Returns the sum of the powers of all the numbers from start to end +ok 573 — Returns the sum of the powers of all the numbers from start to end +ok 574 — Returns the sum of the powers of all the numbers from start to end + +# PASS test/forEachRight/forEachRight.test.js + +ok 575 — forEachRight is a Function +ok 576 — Iterates over the array in reverse + +# PASS test/JSONToDate/JSONToDate.test.js + +ok 577 — JSONToDate is a Function + +# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js + +ok 578 — symmetricDifferenceWith is a Function +ok 579 — Returns the symmetric difference between two arrays, using a provided function as a comparator + +# PASS test/ary/ary.test.js + +ok 580 — ary is a Function +ok 581 — Discards arguments with index >=n + +# PASS test/unzipWith/unzipWith.test.js + +ok 582 — unzipWith is a Function +ok 583 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] + +# PASS test/gcd/gcd.test.js + +ok 584 — gcd is a Function +ok 585 — Calculates the greatest common divisor between two or more numbers/arrays +ok 586 — Calculates the greatest common divisor between two or more numbers/arrays + +# PASS test/transform/transform.test.js + +ok 587 — transform is a Function +ok 588 — Transforms an object + +# PASS test/elo/elo.test.js + +ok 589 — elo is a Function +ok 590 — Standard 1v1s +ok 591 — Standard 1v1s +ok 592 — 4 player FFA, all same rank + +# PASS test/nthArg/nthArg.test.js + +ok 593 — nthArg is a Function +ok 594 — Returns the nth argument +ok 595 — Returns undefined if arguments too few +ok 596 — Works for negative values + +# PASS test/isDivisible/isDivisible.test.js + +ok 597 — isDivisible is a Function +ok 598 — The number 6 is divisible by 3 + +# PASS test/takeRightWhile/takeRightWhile.test.js + +ok 599 — takeRightWhile is a Function +ok 600 — Removes elements until the function returns true + +# PASS test/takeRight/takeRight.test.js + +ok 601 — takeRight is a Function +ok 602 — Returns an array with n elements removed from the end +ok 603 — Returns an array with n elements removed from the end + +# PASS test/isTypedArray/isTypedArray.test.js + +ok 604 — isTypedArray is a Function + +# PASS test/memoize/memoize.test.js + +ok 605 — memoize is a Function +ok 606 — Function works properly +ok 607 — Function works properly +ok 608 — Cache stores values + +# PASS test/bifurcate/bifurcate.test.js + +ok 609 — bifurcate is a Function +ok 610 — Splits the collection into two groups + +# PASS test/coalesce/coalesce.test.js + +ok 611 — coalesce is a Function +ok 612 — Returns the first non-null/undefined argument + +# PASS test/coalesceFactory/coalesceFactory.test.js + +ok 613 — coalesceFactory is a Function +ok 614 — Returns a customized coalesce function + +# PASS test/collatz/collatz.test.js + +ok 615 — collatz is a Function +ok 616 — When n is even, divide by 2 +ok 617 — When n is odd, times by 3 and add 1 +ok 618 — Eventually reaches 1 + +# PASS test/powerset/powerset.test.js + +ok 619 — powerset is a Function +ok 620 — Returns the powerset of a given array of numbers. + +# PASS test/isSet/isSet.test.js + +ok 621 — isSet is a Function + +# PASS test/httpGet/httpGet.test.js + +ok 622 — httpGet is a Function + +# PASS test/smoothScroll/smoothScroll.test.js + +ok 623 — smoothScroll is a Function + +# PASS test/pipeFunctions/pipeFunctions.test.js + +ok 624 — pipeFunctions is a Function +ok 625 — Performs left-to-right function composition + +# PASS test/httpDelete/httpDelete.test.js + +ok 626 — httpDelete is a Function + +# PASS test/isWeakMap/isWeakMap.test.js + +ok 627 — isWeakMap is a Function + +# PASS test/timeTaken/timeTaken.test.js + +ok 628 — timeTaken is a Function + +# PASS test/isBrowser/isBrowser.test.js + +ok 629 — isBrowser is a Function + +# PASS test/isArmstrongNumber/isArmstrongNumber.test.js + +ok 630 — isArmstrongNumber is a Function + +# PASS test/fromCamelCase/fromCamelCase.test.js + +ok 631 — fromCamelCase is a Function +ok 632 — Converts a string from camelcase +ok 633 — Converts a string from camelcase +ok 634 — Converts a string from camelcase + +# PASS test/everyNth/everyNth.test.js + +ok 635 — everyNth is a Function +ok 636 — Returns every nth element in an array + +# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js + +ok 637 — getMeridiemSuffixOfInteger is a Function + +# PASS test/httpsRedirect/httpsRedirect.test.js + +ok 638 — httpsRedirect is a Function + +# PASS test/isRegExp/isRegExp.test.js + +ok 639 — isRegExp is a Function + +# PASS test/binomialCoefficient/binomialCoefficient.test.js + +ok 640 — binomialCoefficient is a Function +ok 641 — Returns the appropriate value +ok 642 — Returns the appropriate value +ok 643 — Returns the appropriate value +ok 644 — Returns NaN +ok 645 — Returns NaN + +# PASS test/toHash/toHash.test.js + +ok 646 — toHash is a Function + +# PASS test/unzip/unzip.test.js + +ok 647 — unzip is a Function +ok 648 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 649 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] + +# PASS test/intersectionBy/intersectionBy.test.js + +ok 650 — intersectionBy is a Function +ok 651 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both # PASS test/xProd/xProd.test.js -ok 771 — xProd is a Function -ok 772 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] +ok 652 — xProd is a Function +ok 653 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] + +# PASS test/pullBy/pullBy.test.js + +ok 654 — pullBy is a Function +ok 655 — Pulls the specified values + +# PASS test/findLastIndex/findLastIndex.test.js + +ok 656 — findLastIndex is a Function +ok 657 — Finds last index for which the given function returns true + +# PASS test/pad/pad.test.js + +ok 658 — pad is a Function +ok 659 — cat is padded on both sides +ok 660 — length of string is 8 +ok 661 — pads 42 with "0" +ok 662 — does not truncates if string exceeds length + +# PASS test/factors/factors.test.js + +ok 663 — factors is a Function + +# PASS test/nodeListToArray/nodeListToArray.test.js + +ok 664 — nodeListToArray is a Function + +# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js + +ok 665 — capitalizeEveryWord is a Function +ok 666 — Capitalizes the first letter of every word in a string +ok 667 — Works with characters +ok 668 — Works with one word string + +# PASS test/deepFlatten/deepFlatten.test.js + +ok 669 — deepFlatten is a Function +ok 670 — Deep flattens an array + +# PASS test/byteSize/byteSize.test.js + +ok 671 — byteSize is a Function +ok 672 — Works for a single letter +ok 673 — Works for a common string +ok 674 — Works for emoji + +# PASS test/matches/matches.test.js + +ok 675 — matches is a Function +ok 676 — Matches returns true for two similar objects +ok 677 — Matches returns false for two non-similar objects + +# PASS test/union/union.test.js + +ok 678 — union is a Function +ok 679 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] +ok 680 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] +ok 681 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] +ok 682 — union([], []) returns [] +ok 683 — union() throws an error +ok 684 — union(true, 'str') throws an error +ok 685 — union('false', true) throws an error +ok 686 — union((123, {}) throws an error +ok 687 — union([], {}) throws an error +ok 688 — union(undefined, null) throws an error +ok 689 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run + +# PASS test/promisify/promisify.test.js + +ok 690 — promisify is a Function +ok 691 — Returns a promise +ok 692 — Runs the function provided + +# PASS test/runPromisesInSeries/runPromisesInSeries.test.js + +ok 693 — runPromisesInSeries is a Function +ok 694 — Runs promises in series + +# PASS test/reduceSuccessive/reduceSuccessive.test.js + +ok 695 — reduceSuccessive is a Function +ok 696 — Returns the array of successively reduced values + +# PASS test/levenshteinDistance/levenshteinDistance.test.js + +ok 697 — levenshteinDistance is a Function + +# PASS test/readFileLines/readFileLines.test.js + +ok 698 — readFileLines is a Function + +# PASS test/hashNode/hashNode.test.js + +ok 699 — hashNode is a Function +ok 700 — Produces the appropriate hash + +# PASS test/dropRight/dropRight.test.js + +ok 701 — dropRight is a Function +ok 702 — Returns a new array with n elements removed from the right +ok 703 — Returns a new array with n elements removed from the right +ok 704 — Returns a new array with n elements removed from the right + +# PASS test/call/call.test.js + +ok 705 — call is a Function +ok 706 — Calls function on given object + +# PASS test/shallowClone/shallowClone.test.js + +ok 707 — shallowClone is a Function +ok 708 — Shallow cloning works +ok 709 — Does not clone deeply + +# PASS test/cleanObj/cleanObj.test.js + +ok 710 — cleanObj is a Function +ok 711 — Removes any properties except the ones specified from a JSON object + +# PASS test/defaults/defaults.test.js + +ok 712 — defaults is a Function +ok 713 — Assigns default values for undefined properties + +# PASS test/hide/hide.test.js + +ok 714 — hide is a Function + +# PASS test/counter/counter.test.js + +ok 715 — counter is a Function + +# PASS test/splitLines/splitLines.test.js + +ok 716 — splitLines is a Function +ok 717 — Splits a multiline string into an array of lines. + +# PASS test/debounce/debounce.test.js + +ok 718 — debounce is a Function +ok 719 — Works as expected + +# PASS test/insertAfter/insertAfter.test.js + +ok 720 — insertAfter is a Function + +# PASS test/castArray/castArray.test.js + +ok 721 — castArray is a Function +ok 722 — Works for single values +ok 723 — Works for arrays with one value +ok 724 — Works for arrays with multiple value +ok 725 — Works for strings +ok 726 — Works for objects + +# PASS test/insertBefore/insertBefore.test.js + +ok 727 — insertBefore is a Function + +# PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js + +ok 728 — symmetricDifferenceBy is a Function +ok 729 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both + +# PASS test/difference/difference.test.js + +ok 730 — difference is a Function +ok 731 — Returns the difference between two arrays + +# PASS test/getType/getType.test.js + +ok 732 — getType is a Function +ok 733 — Returns the native type of a value + +# PASS test/isPlainObject/isPlainObject.test.js + +ok 734 — isPlainObject is a Function +ok 735 — Returns true for a plain object +ok 736 — Returns false for a Map (example of non-plain object) + +# PASS test/mapObject/mapObject.test.js + +ok 737 — mapObject is a Function +ok 738 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 739 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 740 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } + +# PASS test/triggerEvent/triggerEvent.test.js + +ok 741 — triggerEvent is a Function + +# PASS test/createEventHub/createEventHub.test.js + +ok 742 — createEventHub is a Function + +# PASS test/decapitalize/decapitalize.test.js + +ok 743 — decapitalize is a Function +ok 744 — Works with default parameter +ok 745 — Works with second parameter set to true + +# PASS test/isObject/isObject.test.js + +ok 746 — isObject is a Function +ok 747 — isObject([1, 2, 3, 4]) is a object +ok 748 — isObject([]) is a object +ok 749 — isObject({ a:1 }) is a object +ok 750 — isObject(true) is not a object + +# PASS test/countBy/countBy.test.js + +ok 751 — countBy is a Function +ok 752 — Works for functions +ok 753 — Works for property names + +# PASS test/partition/partition.test.js + +ok 754 — partition is a Function +ok 755 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. + +# PASS test/invertKeyValues/invertKeyValues.test.js + +ok 756 — invertKeyValues is a Function +ok 757 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 758 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# PASS test/bindKey/bindKey.test.js + +ok 759 — bindKey is a Function +ok 760 — Binds function to an object context + +# PASS test/recordAnimationFrames/recordAnimationFrames.test.js + +ok 761 — recordAnimationFrames is a Function + +# PASS test/formatDuration/formatDuration.test.js + +ok 762 — formatDuration is a Function +ok 763 — Returns the human readable format of the given number of milliseconds +ok 764 — Returns the human readable format of the given number of milliseconds + +# PASS test/percentile/percentile.test.js + +ok 765 — percentile is a Function +ok 766 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. + +# PASS test/isArrayLike/isArrayLike.test.js + +ok 767 — isArrayLike is a Function +ok 768 — Returns true for a string +ok 769 — Returns true for an array +ok 770 — Returns false for null + +# PASS test/over/over.test.js + +ok 771 — over is a Function +ok 772 — Applies given functions over multiple arguments # PASS test/initialize2DArray/initialize2DArray.test.js ok 773 — initialize2DArray is a Function ok 774 — Initializes a 2D array of given width and height and value -# PASS test/attempt/attempt.test.js - -ok 775 — attempt is a Function -ok 776 — Returns a value -ok 777 — Returns an error - -# PASS test/pullBy/pullBy.test.js - -ok 778 — pullBy is a Function -ok 779 — Pulls the specified values - -# PASS test/objectFromPairs/objectFromPairs.test.js - -ok 780 — objectFromPairs is a Function -ok 781 — Creates an object from the given key-value pairs. - -# PASS test/omitBy/omitBy.test.js - -ok 782 — omitBy is a Function -ok 783 — Creates an object composed of the properties the given function returns falsey for - -# PASS test/stableSort/stableSort.test.js - -ok 784 — stableSort is a Function -ok 785 — Array is properly sorted - -# PASS test/forEachRight/forEachRight.test.js - -ok 786 — forEachRight is a Function -ok 787 — Iterates over the array in reverse - -# PASS test/objectToPairs/objectToPairs.test.js - -ok 788 — objectToPairs is a Function -ok 789 — Creates an array of key-value pair arrays from an object. - -# PASS test/escapeHTML/escapeHTML.test.js - -ok 790 — escapeHTML is a Function -ok 791 — Escapes a string for use in HTML - -# PASS test/isArray/isArray.test.js - -ok 792 — isArray is a Function -ok 793 — passed value is an array -ok 794 — passed value is not an array - -# PASS test/findLastIndex/findLastIndex.test.js - -ok 795 — findLastIndex is a Function -ok 796 — Finds last index for which the given function returns true - -# PASS test/unfold/unfold.test.js - -ok 797 — unfold is a Function -ok 798 — Works with a given function, producing an array - -# PASS test/toDecimalMark/toDecimalMark.test.js - -ok 799 — toDecimalMark is a Function -ok 800 — convert a float-point arithmetic to the Decimal mark form - -# PASS test/stripHTMLTags/stripHTMLTags.test.js - -ok 801 — stripHTMLTags is a Function -ok 802 — Removes HTML tags - -# PASS test/filterNonUnique/filterNonUnique.test.js - -ok 803 — filterNonUnique is a Function -ok 804 — Filters out the non-unique values in an array - -# PASS test/ary/ary.test.js - -ok 805 — ary is a Function -ok 806 — Discards arguments with index >=n - -# PASS test/forOwn/forOwn.test.js - -ok 807 — forOwn is a Function -ok 808 — Iterates over an element's key-value pairs - -# PASS test/takeRightWhile/takeRightWhile.test.js - -ok 809 — takeRightWhile is a Function -ok 810 — Removes elements until the function returns true - -# PASS test/curry/curry.test.js - -ok 811 — curry is a Function -ok 812 — curries a Math.pow -ok 813 — curries a Math.min - -# PASS test/compact/compact.test.js - -ok 814 — compact is a Function -ok 815 — Removes falsey values from an array - -# PASS test/pick/pick.test.js - -ok 816 — pick is a Function -ok 817 — Picks the key-value pairs corresponding to the given keys from an object. - -# PASS test/removeNonASCII/removeNonASCII.test.js - -ok 818 — removeNonASCII is a Function -ok 819 — Removes non-ASCII characters - -# PASS test/countOccurrences/countOccurrences.test.js - -ok 820 — countOccurrences is a Function -ok 821 — Counts the occurrences of a value in an array - -# PASS test/isNull/isNull.test.js - -ok 822 — isNull is a Function -ok 823 — passed argument is a null -ok 824 — passed argument is a null - -# PASS test/dropWhile/dropWhile.test.js - -ok 825 — dropWhile is a Function -ok 826 — Removes elements in an array until the passed function returns true. - -# PASS test/defaults/defaults.test.js - -ok 827 — defaults is a Function -ok 828 — Assigns default values for undefined properties - -# PASS test/remove/remove.test.js - -ok 829 — remove is a Function -ok 830 — Removes elements from an array for which the given function returns false - -# PASS test/truncateString/truncateString.test.js - -ok 831 — truncateString is a Function -ok 832 — Truncates a "boomerang" up to a specified length. - -# PASS test/delay/delay.test.js - -ok 833 — delay is a Function -ok 834 — Works as expecting, passing arguments properly - -# PASS test/clampNumber/clampNumber.test.js - -ok 835 — clampNumber is a Function -ok 836 — Clamps num within the inclusive range specified by the boundary values a and b - -# PASS test/findLast/findLast.test.js - -ok 837 — findLast is a Function -ok 838 — Finds last element for which the given function returns true - -# PASS test/omit/omit.test.js - -ok 839 — omit is a Function -ok 840 — Omits the key-value pairs corresponding to the given keys from an object - -# PASS test/similarity/similarity.test.js - -ok 841 — similarity is a Function -ok 842 — Returns an array of elements that appear in both arrays. - -# PASS test/intersection/intersection.test.js - -ok 843 — intersection is a Function -ok 844 — Returns a list of elements that exist in both arrays - -# PASS test/over/over.test.js - -ok 845 — over is a Function -ok 846 — Applies given functions over multiple arguments - -# PASS test/parseCookie/parseCookie.test.js - -ok 847 — parseCookie is a Function -ok 848 — Parses the cookie - -# PASS test/atob/atob.test.js - -ok 849 — atob is a Function -ok 850 — atob("Zm9vYmFy") equals "foobar" -ok 851 — atob("Z") returns "" - -# PASS test/isEven/isEven.test.js - -ok 852 — isEven is a Function -ok 853 — 4 is even number -ok 854 — 5 is not an even number - -# PASS test/cloneRegExp/cloneRegExp.test.js - -ok 855 — cloneRegExp is a Function -ok 856 — Clones regular expressions properly - -# PASS test/pull/pull.test.js - -ok 857 — pull is a Function -ok 858 — Pulls the specified values - -# PASS test/escapeRegExp/escapeRegExp.test.js - -ok 859 — escapeRegExp is a Function -ok 860 — Escapes a string to use in a regular expression - -# PASS test/fibonacci/fibonacci.test.js - -ok 861 — fibonacci is a Function -ok 862 — Generates an array, containing the Fibonacci sequence - -# PASS test/longestItem/longestItem.test.js - -ok 863 — longestItem is a Function -ok 864 — Returns the longest object - -# PASS test/coalesce/coalesce.test.js - -ok 865 — coalesce is a Function -ok 866 — Returns the first non-null/undefined argument - -# PASS test/takeWhile/takeWhile.test.js - -ok 867 — takeWhile is a Function -ok 868 — Removes elements until the function returns true - # PASS test/times/times.test.js -ok 869 — times is a Function -ok 870 — Runs a function the specified amount of times - -# PASS test/powerset/powerset.test.js - -ok 871 — powerset is a Function -ok 872 — Returns the powerset of a given array of numbers. - -# PASS test/hammingDistance/hammingDistance.test.js - -ok 873 — hammingDistance is a Function -ok 874 — retuns hamming disance between 2 values - -# PASS test/serializeCookie/serializeCookie.test.js - -ok 875 — serializeCookie is a Function -ok 876 — Serializes the cookie - -# PASS test/distance/distance.test.js - -ok 877 — distance is a Function -ok 878 — Calculates the distance between two points - -# PASS test/deepFlatten/deepFlatten.test.js - -ok 879 — deepFlatten is a Function -ok 880 — Deep flattens an array - -# PASS test/tail/tail.test.js - -ok 881 — tail is a Function -ok 882 — Returns tail -ok 883 — Returns tail - -# PASS test/primes/primes.test.js - -ok 884 — primes is a Function -ok 885 — Generates primes up to a given number, using the Sieve of Eratosthenes. - -# PASS test/difference/difference.test.js - -ok 886 — difference is a Function -ok 887 — Returns the difference between two arrays - -# PASS test/negate/negate.test.js - -ok 888 — negate is a Function -ok 889 — Negates a predicate function - -# PASS test/initial/initial.test.js - -ok 890 — initial is a Function -ok 891 — Returns all the elements of an array except the last one - -# PASS test/RGBToHex/RGBToHex.test.js - -ok 892 — RGBToHex is a Function -ok 893 — Converts the values of RGB components to a color code. - -# PASS test/everyNth/everyNth.test.js - -ok 894 — everyNth is a Function -ok 895 — Returns every nth element in an array - -# PASS test/mapKeys/mapKeys.test.js - -ok 896 — mapKeys is a Function -ok 897 — Maps keys - -# PASS test/unary/unary.test.js - -ok 898 — unary is a Function -ok 899 — Discards arguments after the first one - -# PASS test/reverseString/reverseString.test.js - -ok 900 — reverseString is a Function -ok 901 — Reverses a string. - -# PASS test/sleep/sleep.test.js - -ok 902 — sleep is a Function -ok 903 — Works as expected - -# PASS test/isSymbol/isSymbol.test.js - -ok 904 — isSymbol is a Function -ok 905 — Checks if the given argument is a symbol - -# PASS test/radsToDegrees/radsToDegrees.test.js - -ok 906 — radsToDegrees is a Function -ok 907 — Returns the appropriate value - -# PASS test/call/call.test.js - -ok 908 — call is a Function -ok 909 — Calls function on given object - -# PASS test/isDivisible/isDivisible.test.js - -ok 910 — isDivisible is a Function -ok 911 — The number 6 is divisible by 3 - -# PASS test/debounce/debounce.test.js - -ok 912 — debounce is a Function -ok 913 — Works as expected - -# PASS test/isUndefined/isUndefined.test.js - -ok 914 — isUndefined is a Function -ok 915 — Returns true for undefined - -# PASS test/digitize/digitize.test.js - -ok 916 — digitize is a Function -ok 917 — Converts a number to an array of digits - -# PASS test/unionBy/unionBy.test.js - -ok 918 — unionBy is a Function -ok 919 — Produces the appropriate results - -# PASS test/sdbm/sdbm.test.js - -ok 920 — sdbm is a Function -ok 921 — Hashes the input string into a whole number. - -# PASS test/getType/getType.test.js - -ok 922 — getType is a Function -ok 923 — Returns the native type of a value - -# PASS test/sum/sum.test.js - -ok 924 — sum is a Function -ok 925 — Returns the sum of two or more numbers/arrays. - -# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js - -ok 926 — initializeArrayWithRangeRight is a Function - -# PASS test/btoa/btoa.test.js - -ok 927 — btoa is a Function -ok 928 — btoa("foobar") equals "Zm9vYmFy" - -# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js - -ok 929 — fibonacciCountUntilNum is a Function - -# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js - -ok 930 — getMeridiemSuffixOfInteger is a Function - -# PASS test/isPrime/isPrime.test.js - -ok 931 — isPrime is a Function -ok 932 — passed number is a prime - -# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js - -ok 933 — elementIsVisibleInViewport is a Function - -# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js - -ok 934 — UUIDGeneratorBrowser is a Function - -# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js - -ok 935 — isBrowserTabFocused is a Function - -# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js - -ok 936 — getColonTimeFromDate is a Function - -# PASS test/initializeNDArray/initializeNDArray.test.js - -ok 937 — initializeNDArray is a Function - -# PASS test/recordAnimationFrames/recordAnimationFrames.test.js - -ok 938 — recordAnimationFrames is a Function - -# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js - -ok 939 — fibonacciUntilNum is a Function - -# PASS test/levenshteinDistance/levenshteinDistance.test.js - -ok 940 — levenshteinDistance is a Function - -# PASS test/isArmstrongNumber/isArmstrongNumber.test.js - -ok 941 — isArmstrongNumber is a Function - -# PASS test/getScrollPosition/getScrollPosition.test.js - -ok 942 — getScrollPosition is a Function - -# PASS test/detectDeviceType/detectDeviceType.test.js - -ok 943 — detectDeviceType is a Function - -# PASS test/onUserInputChange/onUserInputChange.test.js - -ok 944 — onUserInputChange is a Function - -# PASS test/observeMutations/observeMutations.test.js - -ok 945 — observeMutations is a Function - -# PASS test/nodeListToArray/nodeListToArray.test.js - -ok 946 — nodeListToArray is a Function - -# PASS test/speechSynthesis/speechSynthesis.test.js - -ok 947 — speechSynthesis is a Function - -# PASS test/elementContains/elementContains.test.js - -ok 948 — elementContains is a Function - -# PASS test/arrayToHtmlList/arrayToHtmlList.test.js - -ok 949 — arrayToHtmlList is a Function - -# PASS test/copyToClipboard/copyToClipboard.test.js - -ok 950 — copyToClipboard is a Function - -# PASS test/mostPerformant/mostPerformant.test.js - -ok 951 — mostPerformant is a Function - -# PASS test/isArrayBuffer/isArrayBuffer.test.js - -ok 952 — isArrayBuffer is a Function - -# PASS test/isTypedArray/isTypedArray.test.js - -ok 953 — isTypedArray is a Function - -# PASS test/readFileLines/readFileLines.test.js - -ok 954 — readFileLines is a Function - -# PASS test/smoothScroll/smoothScroll.test.js - -ok 955 — smoothScroll is a Function - -# PASS test/createEventHub/createEventHub.test.js - -ok 956 — createEventHub is a Function - -# PASS test/removeVowels/removeVowels.test.js - -ok 957 — removeVowels is a Function - -# PASS test/httpsRedirect/httpsRedirect.test.js - -ok 958 — httpsRedirect is a Function - -# PASS test/createElement/createElement.test.js - -ok 959 — createElement is a Function - -# PASS test/bottomVisible/bottomVisible.test.js - -ok 960 — bottomVisible is a Function - -# PASS test/insertBefore/insertBefore.test.js - -ok 961 — insertBefore is a Function - -# PASS test/triggerEvent/triggerEvent.test.js - -ok 962 — triggerEvent is a Function - -# PASS test/howManyTimes/howManyTimes.test.js - -ok 963 — howManyTimes is a Function - -# PASS test/toggleClass/toggleClass.test.js - -ok 964 — toggleClass is a Function - -# PASS test/scrollToTop/scrollToTop.test.js - -ok 965 — scrollToTop is a Function - -# PASS test/countVowels/countVowels.test.js - -ok 966 — countVowels is a Function - -# PASS test/hashBrowser/hashBrowser.test.js - -ok 967 — hashBrowser is a Function - -# PASS test/insertAfter/insertAfter.test.js - -ok 968 — insertAfter is a Function - -# PASS test/httpDelete/httpDelete.test.js - -ok 969 — httpDelete is a Function - -# PASS test/currentURL/currentURL.test.js - -ok 970 — currentURL is a Function +ok 775 — times is a Function +ok 776 — Runs a function the specified amount of times # PASS test/isWeakSet/isWeakSet.test.js -ok 971 — isWeakSet is a Function - -# PASS test/JSONToFile/JSONToFile.test.js - -ok 972 — JSONToFile is a Function - -# PASS test/JSONToDate/JSONToDate.test.js - -ok 973 — JSONToDate is a Function - -# PASS test/isWeakMap/isWeakMap.test.js - -ok 974 — isWeakMap is a Function - -# PASS test/timeTaken/timeTaken.test.js - -ok 975 — timeTaken is a Function - -# PASS test/isBrowser/isBrowser.test.js - -ok 976 — isBrowser is a Function - -# PASS test/setStyle/setStyle.test.js - -ok 977 — setStyle is a Function - -# PASS test/hasClass/hasClass.test.js - -ok 978 — hasClass is a Function - -# PASS test/httpPost/httpPost.test.js - -ok 979 — httpPost is a Function +ok 777 — isWeakSet is a Function # PASS test/isSimilar/isSimilar.test.js -ok 980 — isSimilar is a Function +ok 778 — isSimilar is a Function -# PASS test/isRegExp/isRegExp.test.js +# PASS test/randomNumberInRange/randomNumberInRange.test.js -ok 981 — isRegExp is a Function +ok 779 — randomNumberInRange is a Function +ok 780 — The returned value is a number +ok 781 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). -# PASS test/redirect/redirect.test.js +# PASS test/indexOfAll/indexOfAll.test.js -ok 982 — redirect is a Function +ok 782 — indexOfAll is a Function +ok 783 — Returns all indices of val in an array +ok 784 — Returns all indices of val in an array -# PASS test/getStyle/getStyle.test.js +# PASS test/sample/sample.test.js -ok 983 — getStyle is a Function +ok 785 — sample is a Function +ok 786 — Returns a random element from the array +ok 787 — Works for single-element arrays +ok 788 — Returns undefined for empty array -# PASS test/hasFlags/hasFlags.test.js +# PASS test/mapValues/mapValues.test.js -ok 984 — hasFlags is a Function +ok 789 — mapValues is a Function +ok 790 — Maps values -# PASS test/httpGet/httpGet.test.js +# PASS test/bindAll/bindAll.test.js -ok 985 — httpGet is a Function - -# PASS test/runAsync/runAsync.test.js - -ok 986 — runAsync is a Function - -# PASS test/throttle/throttle.test.js - -ok 987 — throttle is a Function - -# PASS test/httpPut/httpPut.test.js - -ok 988 — httpPut is a Function - -# PASS test/counter/counter.test.js - -ok 989 — counter is a Function +ok 791 — bindAll is a Function +ok 792 — Binds to an object context # PASS test/prefix/prefix.test.js -ok 990 — prefix is a Function +ok 793 — prefix is a Function -# PASS test/zipWith/zipWith.test.js +# PASS test/bind/bind.test.js -ok 991 — zipWith is a Function +ok 794 — bind is a Function +ok 795 — Binds to an object context -# PASS test/colorize/colorize.test.js +# PASS test/hexToRGB/hexToRGB.test.js -ok 992 — colorize is a Function - -# PASS test/defer/defer.test.js - -ok 993 — defer is a Function - -# PASS test/solveRPN/solveRPN.test.js - -ok 994 — solveRPN is a Function - -# PASS test/sumBy/sumBy.test.js - -ok 995 — sumBy is a Function - -# PASS test/isMap/isMap.test.js - -ok 996 — isMap is a Function - -# PASS test/factors/factors.test.js - -ok 997 — factors is a Function - -# PASS test/isSet/isSet.test.js - -ok 998 — isSet is a Function - -# PASS test/toHash/toHash.test.js - -ok 999 — toHash is a Function - -# PASS test/once/once.test.js - -ok 1000 — once is a Function +ok 796 — hexToRGB is a Function +ok 797 — Converts a color code to a rgb() or rgba() string +ok 798 — Converts a color code to a rgb() or rgba() string +ok 799 — Converts a color code to a rgb() or rgba() string # PASS test/nest/nest.test.js -ok 1001 — nest is a Function +ok 800 — nest is a Function -# PASS test/hide/hide.test.js +# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js -ok 1002 — hide is a Function +ok 801 — UUIDGeneratorNode is a Function +ok 802 — Contains dashes in the proper places +ok 803 — Only contains hexadecimal digits -# PASS test/show/show.test.js +# PASS test/averageBy/averageBy.test.js -ok 1003 — show is a Function +ok 804 — averageBy is a Function +ok 805 — Produces the right result with a function +ok 806 — Produces the right result with a property name -# PASS test/hz/hz.test.js +# PASS test/overArgs/overArgs.test.js -ok 1004 — hz is a Function +ok 807 — overArgs is a Function +ok 808 — Invokes the provided function with its arguments transformed -# PASS test/off/off.test.js +# PASS test/defer/defer.test.js -ok 1005 — off is a Function +ok 809 — defer is a Function + +# PASS test/reverseString/reverseString.test.js + +ok 810 — reverseString is a Function +ok 811 — Reverses a string. + +# PASS test/hasFlags/hasFlags.test.js + +ok 812 — hasFlags is a Function + +# PASS test/copyToClipboard/copyToClipboard.test.js + +ok 813 — copyToClipboard is a Function + +# PASS test/speechSynthesis/speechSynthesis.test.js + +ok 814 — speechSynthesis is a Function + +# PASS test/bifurcateBy/bifurcateBy.test.js + +ok 815 — bifurcateBy is a Function +ok 816 — Splits the collection into two groups + +# PASS test/removeNonASCII/removeNonASCII.test.js + +ok 817 — removeNonASCII is a Function +ok 818 — Removes non-ASCII characters + +# PASS test/sum/sum.test.js + +ok 819 — sum is a Function +ok 820 — Returns the sum of two or more numbers/arrays. + +# PASS test/observeMutations/observeMutations.test.js + +ok 821 — observeMutations is a Function + +# PASS test/stripHTMLTags/stripHTMLTags.test.js + +ok 822 — stripHTMLTags is a Function +ok 823 — Removes HTML tags + +# PASS test/initial/initial.test.js + +ok 824 — initial is a Function +ok 825 — Returns all the elements of an array except the last one + +# PASS test/flatten/flatten.test.js + +ok 826 — flatten is a Function +ok 827 — Flattens an array +ok 828 — Flattens an array + +# PASS test/renameKeys/renameKeys.test.js + +ok 829 — renameKeys is a Function +ok 830 — renameKeys is a Function + +# PASS test/minN/minN.test.js + +ok 831 — minN is a Function +ok 832 — Returns the n minimum elements from the provided array +ok 833 — Returns the n minimum elements from the provided array + +# PASS test/lowercaseKeys/lowercaseKeys.test.js + +ok 834 — lowercaseKeys is a Function +ok 835 — Lowercases object keys +ok 836 — Does not mutate original object + +# PASS test/truthCheckCollection/truthCheckCollection.test.js + +ok 837 — truthCheckCollection is a Function +ok 838 — second argument is truthy on all elements of a collection + +# PASS test/JSONToFile/JSONToFile.test.js + +ok 839 — JSONToFile is a Function + +# PASS test/currentURL/currentURL.test.js + +ok 840 — currentURL is a Function + +# PASS test/isPromiseLike/isPromiseLike.test.js + +ok 841 — isPromiseLike is a Function +ok 842 — Returns true for a promise-like object +ok 843 — Returns false for an empty object + +# 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/JSONtoCSV/JSONtoCSV.test.js + +ok 846 — JSONtoCSV is a Function +ok 847 — JSONtoCSV works with default delimiter +ok 848 — JSONtoCSV works with custom delimiter + +# PASS test/unary/unary.test.js + +ok 849 — unary is a Function +ok 850 — Discards arguments after the first one + +# PASS test/scrollToTop/scrollToTop.test.js + +ok 851 — scrollToTop is a Function + +# PASS test/sortedLastIndex/sortedLastIndex.test.js + +ok 852 — sortedLastIndex is a Function +ok 853 — Returns the highest index to insert the element without messing up the list order + +# PASS test/parseCookie/parseCookie.test.js + +ok 854 — parseCookie is a Function +ok 855 — Parses the cookie + +# PASS test/binarySearch/binarySearch.test.js + +ok 856 — binarySearch is a Function +ok 857 — Finds item in array +ok 858 — Returns -1 when not found +ok 859 — Works with empty arrays +ok 860 — Works for one element arrays + +# PASS test/inRange/inRange.test.js + +ok 861 — inRange is a Function +ok 862 — The given number falls within the given range +ok 863 — The given number falls within the given range +ok 864 — The given number does not falls within the given range +ok 865 — The given number does not falls within the given range + +# PASS test/bottomVisible/bottomVisible.test.js + +ok 866 — bottomVisible is a Function + +# PASS test/median/median.test.js + +ok 867 — median is a Function +ok 868 — Returns the median of an array of numbers +ok 869 — Returns the median of an array of numbers + +# PASS test/maxN/maxN.test.js + +ok 870 — maxN is a Function +ok 871 — Returns the n maximum elements from the provided array +ok 872 — Returns the n maximum elements from the provided array + +# PASS test/stableSort/stableSort.test.js + +ok 873 — stableSort is a Function +ok 874 — Array is properly sorted + +# PASS test/flip/flip.test.js + +ok 875 — flip is a Function +ok 876 — Flips argument order + +# PASS test/lcm/lcm.test.js + +ok 877 — lcm is a Function +ok 878 — Returns the least common multiple of two or more numbers. +ok 879 — Returns the least common multiple of two or more numbers. + +# PASS test/join/join.test.js + +ok 880 — join is a Function +ok 881 — Joins all elements of an array into a string and returns this string +ok 882 — Joins all elements of an array into a string and returns this string +ok 883 — Joins all elements of an array into a string and returns this string + +# PASS test/unescapeHTML/unescapeHTML.test.js + +ok 884 — unescapeHTML is a Function +ok 885 — Unescapes escaped HTML characters. + +# PASS test/mostPerformant/mostPerformant.test.js + +ok 886 — mostPerformant is a Function + +# PASS test/pullAtIndex/pullAtIndex.test.js + +ok 887 — pullAtIndex is a Function +ok 888 — Pulls the given values +ok 889 — Pulls the given values + +# PASS test/getURLParameters/getURLParameters.test.js + +ok 890 — getURLParameters is a Function +ok 891 — Returns an object containing the parameters of the current URL + +# PASS test/digitize/digitize.test.js + +ok 892 — digitize is a Function +ok 893 — Converts a number to an array of digits + +# PASS test/luhnCheck/luhnCheck.test.js + +ok 894 — luhnCheck is a Function +ok 895 — validates identification number +ok 896 — validates identification number +ok 897 — validates identification number + +# PASS test/longestItem/longestItem.test.js + +ok 898 — longestItem is a Function +ok 899 — Returns the longest object + +# PASS test/pickBy/pickBy.test.js + +ok 900 — pickBy is a Function +ok 901 — Creates an object composed of the properties the given function returns truthy for. + +# PASS test/negate/negate.test.js + +ok 902 — negate is a Function +ok 903 — Negates a predicate function + +# PASS test/zipWith/zipWith.test.js + +ok 904 — zipWith is a Function + +# PASS test/countVowels/countVowels.test.js + +ok 905 — countVowels is a Function # PASS test/on/on.test.js -ok 1006 — on is a Function +ok 906 — on is a Function + +# PASS test/sleep/sleep.test.js + +ok 907 — sleep is a Function +ok 908 — Works as expected + +# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js + +ok 909 — fibonacciCountUntilNum is a Function + +# PASS test/isFunction/isFunction.test.js + +ok 910 — isFunction is a Function +ok 911 — passed value is a function +ok 912 — passed value is not a function + +# PASS test/factorial/factorial.test.js + +ok 913 — factorial is a Function +ok 914 — Calculates the factorial of 720 +ok 915 — Calculates the factorial of 0 +ok 916 — Calculates the factorial of 1 +ok 917 — Calculates the factorial of 4 +ok 918 — Calculates the factorial of 10 + +# PASS test/dropWhile/dropWhile.test.js + +ok 919 — dropWhile is a Function +ok 920 — Removes elements in an array until the passed function returns true. + +# PASS test/permutations/permutations.test.js + +ok 921 — permutations is a Function +ok 922 — Generates all permutations of an array + +# PASS test/converge/converge.test.js + +ok 923 — converge is a Function +ok 924 — Produces the average of the array +ok 925 — Produces the strange concatenation + +# PASS test/toggleClass/toggleClass.test.js + +ok 926 — toggleClass is a Function + +# PASS test/standardDeviation/standardDeviation.test.js + +ok 927 — standardDeviation is a Function +ok 928 — Returns the standard deviation of an array of numbers +ok 929 — Returns the standard deviation of an array of numbers + +# PASS test/hz/hz.test.js + +ok 930 — hz is a Function + +# PASS test/extendHex/extendHex.test.js + +ok 931 — extendHex is a Function +ok 932 — Extends a 3-digit color code to a 6-digit color code +ok 933 — Extends a 3-digit color code to a 6-digit color code + +# PASS test/onUserInputChange/onUserInputChange.test.js + +ok 934 — onUserInputChange is a Function + +# PASS test/arrayToHtmlList/arrayToHtmlList.test.js + +ok 935 — arrayToHtmlList is a Function + +# PASS test/pick/pick.test.js + +ok 936 — pick is a Function +ok 937 — Picks the key-value pairs corresponding to the given keys from an object. + +# PASS test/forOwn/forOwn.test.js + +ok 938 — forOwn is a Function +ok 939 — Iterates over an element's key-value pairs + +# PASS test/spreadOver/spreadOver.test.js + +ok 940 — spreadOver is a Function +ok 941 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. + +# PASS test/createElement/createElement.test.js + +ok 942 — createElement is a Function + +# PASS test/pluralize/pluralize.test.js + +ok 943 — pluralize is a Function +ok 944 — Produces the plural of the word +ok 945 — Produces the singular of the word +ok 946 — Produces the plural of the word +ok 947 — Prodices the defined plural of the word +ok 948 — Works with a dictionary + +# PASS test/httpPost/httpPost.test.js + +ok 949 — httpPost is a Function + +# PASS test/functions/functions.test.js + +ok 950 — functions is a Function +ok 951 — Returns own methods +ok 952 — Returns own and inherited methods + +# PASS test/untildify/untildify.test.js + +ok 953 — untildify is a Function +ok 954 — Contains no tildes +ok 955 — Does not alter the rest of the path +ok 956 — Does not alter paths without tildes + +# PASS test/functionName/functionName.test.js + +ok 957 — functionName is a Function +ok 958 — Works for native functions +ok 959 — Works for functions +ok 960 — Works for arrow functions + +# PASS test/httpPut/httpPut.test.js + +ok 961 — httpPut is a Function + +# PASS test/reject/reject.test.js + +ok 962 — reject is a Function +ok 963 — Works with numbers +ok 964 — Works with strings + +# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js + +ok 965 — getColonTimeFromDate is a Function + +# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js + +ok 966 — initializeArrayWithValues is a Function +ok 967 — Initializes and fills an array with the specified values + +# PASS test/shuffle/shuffle.test.js + +ok 968 — shuffle is a Function +ok 969 — Shuffles the array +ok 970 — New array contains all original elements +ok 971 — Works for empty arrays +ok 972 — Works for single-element arrays + +# PASS test/escapeHTML/escapeHTML.test.js + +ok 973 — escapeHTML is a Function +ok 974 — Escapes a string for use in HTML + +# PASS test/nthElement/nthElement.test.js + +ok 975 — nthElement is a Function +ok 976 — Returns the nth element of an array. +ok 977 — Returns the nth element of an array. + +# PASS test/objectToPairs/objectToPairs.test.js + +ok 978 — objectToPairs is a Function +ok 979 — Creates an array of key-value pair arrays from an object. + +# PASS test/dropRightWhile/dropRightWhile.test.js + +ok 980 — dropRightWhile is a Function +ok 981 — Removes elements from the end of an array until the passed function returns true. + +# PASS test/geometricProgression/geometricProgression.test.js + +ok 982 — geometricProgression is a Function +ok 983 — Initializes an array containing the numbers in the specified range +ok 984 — Initializes an array containing the numbers in the specified range +ok 985 — Initializes an array containing the numbers in the specified range + +# PASS test/take/take.test.js + +ok 986 — take is a Function +ok 987 — Returns an array with n elements removed from the beginning. +ok 988 — Returns an array with n elements removed from the beginning. + +# PASS test/tail/tail.test.js + +ok 989 — tail is a Function +ok 990 — Returns tail +ok 991 — Returns tail + +# PASS test/isObjectLike/isObjectLike.test.js + +ok 992 — isObjectLike is a Function +ok 993 — Returns true for an object +ok 994 — Returns true for an array +ok 995 — Returns false for a function +ok 996 — Returns false for null + +# PASS test/btoa/btoa.test.js + +ok 997 — btoa is a Function +ok 998 — btoa("foobar") equals "Zm9vYmFy" + +# PASS test/size/size.test.js + +ok 999 — size is a Function +ok 1000 — Get size of arrays, objects or strings. +ok 1001 — Get size of arrays, objects or strings. + +# PASS test/howManyTimes/howManyTimes.test.js + +ok 1002 — howManyTimes is a Function + +# PASS test/throttle/throttle.test.js + +ok 1003 — throttle is a Function + +# PASS test/setStyle/setStyle.test.js + +ok 1004 — setStyle is a Function + +# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js + +ok 1005 — UUIDGeneratorBrowser is a Function + +# PASS test/hasClass/hasClass.test.js + +ok 1006 — hasClass is a Function 1..1006 -# Test Suites: 100% ██████████, 339 passed, 339 total -# Tests: 100% ██████████, 1006 passed, 1006 total -# Time: 39.277s +# Test Suites: 100% ██████████, 1 failed, 338 passed, 339 total +# Tests: 100% ██████████, 1 failed, 1005 passed, 1006 total +# Time: 6.003s, estimated 5s # Ran all test suites. +undefined \ No newline at end of file From 8ee6efc01a89596b8b2e1d803f1a2f73f50778de Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Sun, 8 Jul 2018 13:06:24 -0700 Subject: [PATCH 02/10] WIP: create snippet dig.md . npm run tester failed. --- snippet-template.md | 58 +++++++-------------------------------------- snippets/dig.md | 56 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 50 deletions(-) create mode 100644 snippets/dig.md diff --git a/snippet-template.md b/snippet-template.md index a58de977d..ef9a7bbc1 100644 --- a/snippet-template.md +++ b/snippet-template.md @@ -1,56 +1,14 @@ -### dig +### functionName -Return the value in a nested JSON object by the key. +Explain briefly what the snippet does. -Given the key name (or target), it will look up the key in the object recursively and return the first value if found. +Explain briefly how the snippet works. -``` -const dig = (obj, target) => { - if (!obj) return; - - if (obj[target]) return obj[target]; - else { - return( Object.keys(obj).map(key => { - if (typeof(obj[key]) === "object") { - return dig(obj[key], target); - } - }).filter(item => item !== undefined)[0] ); - } -}; +```js +const functionName = arguments => + {functionBody} ``` -``` -const data = { - name: "John Doe", - details: { - phone: "9876543210", - email: "john@example.com", - address: { - street: "123 ABC St.", - state: "CA", - zip: "98765" - }, - extra1: { - nickName: "Johnny" - }, - extra2: { - nickName: "JD" - }, - hobby: "coding", - snacks: ["chips", 'candy', 'coke'] - }, - l1:{ - l2:{ - l3:{ - l4: "4 levels deep." - } - } - } -}; - -const hobby = dig(data, 'hobby'); // "coding" -const name = dig(data, 'nickName'); // "Johnny" -const food = dig(data, 'snacks'); // ["chips","candy","coke"] -const level4= dig(data, 'l4'); // "4 levels deep." -const nada = dig(data, 'blahblah') // undefined +```js +functionName('sampleInput'); // 'sampleOutput' ``` \ No newline at end of file diff --git a/snippets/dig.md b/snippets/dig.md new file mode 100644 index 000000000..1833dcea8 --- /dev/null +++ b/snippets/dig.md @@ -0,0 +1,56 @@ +### dig + +Return the value in a nested JSON object by the key. + +Given the key name (or target), it will look up the key in the object recursively and return the first value if found. + +``` +const dig = (obj, target) => { + if (!obj) return; + + if (obj[target]) return obj[target]; + else { + return( Object.keys(obj).map(key => { + if (typeof(obj[key]) === "object") { + return dig(obj[key], target); + } + }).filter(defined => defined)[0] ); + } +}; +``` + +``` +const data = { + name: "John Doe", + details: { + phone: "9876543210", + email: "john@example.com", + address: { + street: "123 ABC St.", + state: "CA", + zip: "98765" + }, + extra1: { + nickName: "Johnny" + }, + extra2: { + nickName: "JD" + }, + hobby: "coding", + snacks: ["chips", 'candy', 'coke'] + }, + l1:{ + l2:{ + l3:{ + l4: "4 levels deep." + } + } + } +}; + +dig(data, 'nickName'); // "Johnny" +dig(data, 'hobby'); // "coding" +dig(data, 'snacks'); // ["chips","candy","coke"] +dig(data, 'l4'); // "4 levels deep." +dig(data, 'blahblah') // undefined +``` From 162fe2599bf5d20bf3a5fdda80cdd43500806d88 Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Sun, 8 Jul 2018 15:24:11 -0700 Subject: [PATCH 03/10] refactor with ternary and small example --- snippet-template.md | 2 +- snippets/dig.md | 47 +- test/dig/dig.js | 1 + test/dig/dig.test.js | 6 + test/testlog | 3833 +++++++++++++++++++++--------------------- 5 files changed, 1944 insertions(+), 1945 deletions(-) create mode 100644 test/dig/dig.js create mode 100644 test/dig/dig.test.js diff --git a/snippet-template.md b/snippet-template.md index ef9a7bbc1..31cc8b26d 100644 --- a/snippet-template.md +++ b/snippet-template.md @@ -11,4 +11,4 @@ const functionName = arguments => ```js functionName('sampleInput'); // 'sampleOutput' -``` \ No newline at end of file +``` diff --git a/snippets/dig.md b/snippets/dig.md index 1833dcea8..6790d363a 100644 --- a/snippets/dig.md +++ b/snippets/dig.md @@ -2,55 +2,30 @@ Return the value in a nested JSON object by the key. -Given the key name (or target), it will look up the key in the object recursively and return the first value if found. +Given the key name (or target), it will map through each key in the object and look for object type. +If value is an object, dig is called recusively until the first matching key/value is found. ``` const dig = (obj, target) => { - if (!obj) return; - - if (obj[target]) return obj[target]; - else { - return( Object.keys(obj).map(key => { + return obj[target] ? + obj[target] : + Object.keys(obj).map(key => { if (typeof(obj[key]) === "object") { return dig(obj[key], target); } - }).filter(defined => defined)[0] ); - } + }).filter(defined=>defined)[0] }; ``` ``` const data = { - name: "John Doe", - details: { - phone: "9876543210", - email: "john@example.com", - address: { - street: "123 ABC St.", - state: "CA", - zip: "98765" - }, - extra1: { - nickName: "Johnny" - }, - extra2: { - nickName: "JD" - }, - hobby: "coding", - snacks: ["chips", 'candy', 'coke'] - }, - l1:{ - l2:{ - l3:{ - l4: "4 levels deep." - } + level1:{ + level2:{ + level3: "some data" } } }; -dig(data, 'nickName'); // "Johnny" -dig(data, 'hobby'); // "coding" -dig(data, 'snacks'); // ["chips","candy","coke"] -dig(data, 'l4'); // "4 levels deep." -dig(data, 'blahblah') // undefined +dig(data, 'level3'); // "some data" +dig(data, 'level4'); // undefined ``` diff --git a/test/dig/dig.js b/test/dig/dig.js new file mode 100644 index 000000000..636d989c2 --- /dev/null +++ b/test/dig/dig.js @@ -0,0 +1 @@ +module.exports = dig; \ No newline at end of file diff --git a/test/dig/dig.test.js b/test/dig/dig.test.js new file mode 100644 index 000000000..51834bfe2 --- /dev/null +++ b/test/dig/dig.test.js @@ -0,0 +1,6 @@ +const expect = require('expect'); +const dig = require('./dig.js'); + +test('dig is a Function', () => { + expect(dig).toBeInstanceOf(Function); +}); \ No newline at end of file diff --git a/test/testlog b/test/testlog index 4fdf5fc51..f151b8630 100644 --- a/test/testlog +++ b/test/testlog @@ -1,107 +1,76 @@ # Starting... -# 339 test suites found. +# 340 test suites found. -# PASS test/validateNumber/validateNumber.test.js +# PASS test/isValidJSON/isValidJSON.test.js -ok 1 — validateNumber is a Function -ok 2 — validateNumber(9) returns true -ok 3 — validateNumber(234asd.slice(0, 2)) returns true -ok 4 — validateNumber(1232) returns true -ok 5 — validateNumber(1232 + 13423) returns true -ok 6 — validateNumber(1232 * 2342 * 123) returns true -ok 7 — validateNumber(1232.23423536) returns true -ok 8 — validateNumber(234asd) returns false -ok 9 — validateNumber(e234d) returns false -ok 10 — validateNumber(false) returns false -ok 11 — validateNumber(true) returns false -ok 12 — validateNumber(null) returns false -ok 13 — validateNumber(123 * asd) returns false +ok 1 — isValidJSON is a Function +ok 2 — {"name":"Adam","age":20} is a valid JSON +ok 3 — {"name":"Adam",age:"20"} is not a valid JSON +ok 4 — null is a valid JSON # PASS test/toKebabCase/toKebabCase.test.js -ok 14 — toKebabCase is a Function -ok 15 — toKebabCase('camelCase') returns camel-case -ok 16 — toKebabCase('some text') returns some-text -ok 17 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens -ok 18 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html -ok 19 — toKebabCase() returns undefined -ok 20 — toKebabCase([]) throws an erro -ok 21 — toKebabCase({}) throws an erro -ok 22 — toKebabCase(123) throws an erro -ok 23 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run +ok 5 — toKebabCase is a Function +ok 6 — toKebabCase('camelCase') returns camel-case +ok 7 — toKebabCase('some text') returns some-text +ok 8 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens +ok 9 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html +ok 10 — toKebabCase() returns undefined +ok 11 — toKebabCase([]) throws an erro +ok 12 — toKebabCase({}) throws an erro +ok 13 — toKebabCase(123) throws an erro +ok 14 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run -# PASS test/toCamelCase/toCamelCase.test.js +# PASS test/toCurrency/toCurrency.test.js -ok 24 — toCamelCase is a Function -ok 25 — toCamelCase('some_database_field_name') returns someDatabaseFieldName -ok 26 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized -ok 27 — toCamelCase('some-javascript-property') return someJavascriptProperty -ok 28 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens -ok 29 — toCamelCase() throws a error -ok 30 — toCamelCase([]) throws a error -ok 31 — toCamelCase({}) throws a error -ok 32 — toCamelCase(123) throws a error -ok 33 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run - -# PASS test/uniqueElements/uniqueElements.test.js - -ok 34 — uniqueElements is a Function -ok 35 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] -ok 36 — uniqueElements([1, 23, 53]) returns [1, 23, 53] -ok 37 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] -ok 38 — uniqueElements() returns [] -ok 39 — uniqueElements(null) returns [] -ok 40 — uniqueElements(undefined) returns [] -ok 41 — uniqueElements('strt') returns ['s', 't', 'r'] -ok 42 — uniqueElements(1, 1, 2543, 534, 5) throws an error -ok 43 — uniqueElements({}) throws an error -ok 44 — uniqueElements(true) throws an error -ok 45 — uniqueElements(false) throws an error -ok 46 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run - -# PASS test/average/average.test.js - -ok 47 — average is a Function -ok 48 — average(true) returns 0 -ok 49 — average(false) returns 1 -ok 50 — average(9, 1) returns 5 -ok 51 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 -ok 52 — average(1, 2, 3) returns 2 -ok 53 — average(null) returns 0 -ok 54 — average(1, 2, 3) returns NaN -ok 55 — average(String) returns NaN -ok 56 — average({ a: 123}) returns NaN -ok 57 — average([undefined, 0, string]) returns NaN -ok 58 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +ok 15 — toCurrency is a Function +ok 16 — currency: Euro | currencyLangFormat: Local +ok 17 — currency: US Dollar | currencyLangFormat: English (United States) +ok 18 — currency: Japanese Yen | currencyLangFormat: Local # PASS test/is/is.test.js -ok 59 — is is a Function -ok 60 — Works for arrays with data -ok 61 — Works for empty arrays -ok 62 — Works for arrays, not objects -ok 63 — Works for objects -ok 64 — Works for maps -ok 65 — Works for regular expressions -ok 66 — Works for sets -ok 67 — Works for weak maps -ok 68 — Works for weak sets -ok 69 — Works for strings - returns true for primitive -ok 70 — Works for strings - returns true when using constructor -ok 71 — Works for numbers - returns true for primitive -ok 72 — Works for numbers - returns true when using constructor -ok 73 — Works for booleans - returns true for primitive -ok 74 — Works for booleans - returns true when using constructor -ok 75 — Works for functions +ok 19 — is is a Function +ok 20 — Works for arrays with data +ok 21 — Works for empty arrays +ok 22 — Works for arrays, not objects +ok 23 — Works for objects +ok 24 — Works for maps +ok 25 — Works for regular expressions +ok 26 — Works for sets +ok 27 — Works for weak maps +ok 28 — Works for weak sets +ok 29 — Works for strings - returns true for primitive +ok 30 — Works for strings - returns true when using constructor +ok 31 — Works for numbers - returns true for primitive +ok 32 — Works for numbers - returns true when using constructor +ok 33 — Works for booleans - returns true for primitive +ok 34 — Works for booleans - returns true when using constructor +ok 35 — Works for functions + +# PASS test/average/average.test.js + +ok 36 — average is a Function +ok 37 — average(true) returns 0 +ok 38 — average(false) returns 1 +ok 39 — average(9, 1) returns 5 +ok 40 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 +ok 41 — average(1, 2, 3) returns 2 +ok 42 — average(null) returns 0 +ok 43 — average(1, 2, 3) returns NaN +ok 44 — average(String) returns NaN +ok 45 — average({ a: 123}) returns NaN +ok 46 — average([undefined, 0, string]) returns NaN +ok 47 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run # FAIL test/tomorrow/tomorrow.test.js -ok 76 — tomorrow is a Function -ok 77 — Returns the correct year -ok 78 — Returns the correct month -not ok 79 ● Returns the correct date +ok 48 — tomorrow is a Function +ok 49 — Returns the correct year +ok 50 — Returns the correct month +not ok 51 ● Returns the correct date # # expect(received).toBe(expected) // Object.is equality # @@ -126,889 +95,917 @@ not ok 79 ● Returns the correct date # at new Promise () # at -# PASS test/URLJoin/URLJoin.test.js +# PASS test/validateNumber/validateNumber.test.js -ok 80 — URLJoin is a Function -ok 81 — Returns proper URL -ok 82 — Returns proper URL +ok 52 — validateNumber is a Function +ok 53 — validateNumber(9) returns true +ok 54 — validateNumber(234asd.slice(0, 2)) returns true +ok 55 — validateNumber(1232) returns true +ok 56 — validateNumber(1232 + 13423) returns true +ok 57 — validateNumber(1232 * 2342 * 123) returns true +ok 58 — validateNumber(1232.23423536) returns true +ok 59 — validateNumber(234asd) returns false +ok 60 — validateNumber(e234d) returns false +ok 61 — validateNumber(false) returns false +ok 62 — validateNumber(true) returns false +ok 63 — validateNumber(null) returns false +ok 64 — validateNumber(123 * asd) returns false -# PASS test/isValidJSON/isValidJSON.test.js +# PASS test/countBy/countBy.test.js -ok 83 — isValidJSON is a Function -ok 84 — {"name":"Adam","age":20} is a valid JSON -ok 85 — {"name":"Adam",age:"20"} is not a valid JSON -ok 86 — null is a valid JSON +ok 65 — countBy is a Function +ok 66 — Works for functions +ok 67 — Works for property names -# PASS test/getScrollPosition/getScrollPosition.test.js +# PASS test/collatz/collatz.test.js -ok 87 — getScrollPosition is a Function - -# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js - -ok 88 — fibonacciUntilNum is a Function - -# PASS test/last/last.test.js - -ok 89 — last is a Function -ok 90 — last({ a: 1234}) returns undefined -ok 91 — last([1, 2, 3]) returns 3 -ok 92 — last({ 0: false}) returns undefined -ok 93 — last(String) returns g -ok 94 — last(null) throws an Error -ok 95 — last(undefined) throws an Error -ok 96 — last() throws an Error -ok 97 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/palindrome/palindrome.test.js - -ok 98 — palindrome is a Function -ok 99 — Given string is a palindrome -ok 100 — Given string is not a palindrome - -# PASS test/composeRight/composeRight.test.js - -ok 101 — composeRight is a Function -ok 102 — Performs left-to-right function composition - -# PASS test/isTravisCI/isTravisCI.test.js - -ok 103 — isTravisCI is a Function -ok 104 — Not running on Travis, correctly evaluates - -# PASS test/quickSort/quickSort.test.js - -ok 105 — quickSort is a Function -ok 106 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] -ok 107 — quickSort([-1, 0, -2]) returns [-2, -1, 0] -ok 108 — quickSort() throws an error -ok 109 — quickSort(123) throws an error -ok 110 — quickSort({ 234: string}) throws an error -ok 111 — quickSort(null) throws an error -ok 112 — quickSort(undefined) throws an error -ok 113 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run - -# PASS test/isPrimitive/isPrimitive.test.js - -ok 114 — isPrimitive is a Function -ok 115 — isPrimitive(null) is primitive -ok 116 — isPrimitive(undefined) is primitive -ok 117 — isPrimitive(string) is primitive -ok 118 — isPrimitive(true) is primitive -ok 119 — isPrimitive(50) is primitive -ok 120 — isPrimitive('Hello') is primitive -ok 121 — isPrimitive(false) is primitive -ok 122 — isPrimitive(Symbol()) is primitive -ok 123 — isPrimitive([1, 2, 3]) is not primitive -ok 124 — isPrimitive({ a: 123 }) is not primitive -ok 125 — isPrimitive({ a: 123 }) takes less than 2s to run - -# PASS test/runAsync/runAsync.test.js - -ok 126 — runAsync is a Function - -# PASS test/any/any.test.js - -ok 127 — any is a Function -ok 128 — Returns true for arrays with at least one truthy value -ok 129 — Returns false for arrays with no truthy values -ok 130 — Returns false for arrays with no truthy values -ok 131 — Returns true with predicate function -ok 132 — Returns false with a predicate function - -# PASS test/similarity/similarity.test.js - -ok 133 — similarity is a Function -ok 134 — Returns an array of elements that appear in both arrays. - -# PASS test/toCurrency/toCurrency.test.js - -ok 135 — toCurrency is a Function -ok 136 — currency: Euro | currencyLangFormat: Local -ok 137 — currency: US Dollar | currencyLangFormat: English (United States) -ok 138 — currency: Japanese Yen | currencyLangFormat: Local - -# PASS test/toSnakeCase/toSnakeCase.test.js - -ok 139 — toSnakeCase is a Function -ok 140 — toSnakeCase('camelCase') returns camel_case -ok 141 — toSnakeCase('some text') returns some_text -ok 142 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens -ok 143 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html -ok 144 — toSnakeCase() returns undefined -ok 145 — toSnakeCase([]) throws an error -ok 146 — toSnakeCase({}) throws an error -ok 147 — toSnakeCase(123) throws an error -ok 148 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/toDecimalMark/toDecimalMark.test.js - -ok 149 — toDecimalMark is a Function -ok 150 — convert a float-point arithmetic to the Decimal mark form +ok 68 — collatz is a Function +ok 69 — When n is even, divide by 2 +ok 70 — When n is odd, times by 3 and add 1 +ok 71 — Eventually reaches 1 # PASS test/chunk/chunk.test.js -ok 151 — chunk is a Function -ok 152 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] -ok 153 — chunk([]) returns [] -ok 154 — chunk(123) returns [] -ok 155 — chunk({ a: 123}) returns [] -ok 156 — chunk(string, 2) returns [ st, ri, ng ] -ok 157 — chunk() throws an error -ok 158 — chunk(undefined) throws an error -ok 159 — chunk(null) throws an error -ok 160 — chunk(This is a string, 2) takes less than 2s to run - -# PASS test/unflattenObject/unflattenObject.test.js - -ok 161 — unflattenObject is a Function -ok 162 — Unflattens an object with the paths for keys - -# PASS test/initializeNDArray/initializeNDArray.test.js - -ok 163 — initializeNDArray is a Function - -# PASS test/colorize/colorize.test.js - -ok 164 — colorize is a Function - -# PASS test/serializeCookie/serializeCookie.test.js - -ok 165 — serializeCookie is a Function -ok 166 — Serializes the cookie - -# PASS test/words/words.test.js - -ok 167 — words is a Function -ok 168 — words('I love javaScript!!') returns [I, love, javaScript] -ok 169 — words('python, javaScript & coffee') returns [python, javaScript, coffee] -ok 170 — words(I love javaScript!!) returns an array -ok 171 — words() throws an error -ok 172 — words(null) throws an error -ok 173 — words(undefined) throws an error -ok 174 — words({}) throws an error -ok 175 — words([]) throws an error -ok 176 — words(1234) throws an error - -# PASS test/toSafeInteger/toSafeInteger.test.js - -ok 177 — toSafeInteger is a Function -ok 178 — Number(toSafeInteger(3.2)) is a number -ok 179 — Converts a value to a safe integer -ok 180 — toSafeInteger('4.2') returns 4 -ok 181 — toSafeInteger(4.6) returns 5 -ok 182 — toSafeInteger([]) returns 0 -ok 183 — isNaN(toSafeInteger([1.5, 3124])) is true -ok 184 — isNaN(toSafeInteger('string')) is true -ok 185 — isNaN(toSafeInteger({})) is true -ok 186 — isNaN(toSafeInteger()) is true -ok 187 — toSafeInteger(Infinity) returns 9007199254740991 -ok 188 — toSafeInteger(3.2) takes less than 2s to run - -# PASS test/reduceWhich/reduceWhich.test.js - -ok 189 — reduceWhich is a Function -ok 190 — Returns the minimum of an array -ok 191 — Returns the maximum of an array -ok 192 — Returns the object with the minimum specified value in an array - -# PASS test/yesNo/yesNo.test.js - -ok 193 — yesNo is a Function -ok 194 — yesNo(Y) returns true -ok 195 — yesNo(yes) returns true -ok 196 — yesNo(foo, true) returns true -ok 197 — yesNo(No) returns false -ok 198 — yesNo() returns false -ok 199 — yesNo(null) returns false -ok 200 — yesNo(undefined) returns false -ok 201 — yesNo([123, null]) returns false -ok 202 — yesNo([Yes, No]) returns false -ok 203 — yesNo({ 2: Yes }) returns false -ok 204 — yesNo([Yes, No], true) returns true -ok 205 — yesNo({ 2: Yes }, true) returns true - -# PASS test/symmetricDifference/symmetricDifference.test.js - -ok 206 — symmetricDifference is a Function -ok 207 — Returns the symmetric difference between two arrays. - -# PASS test/isString/isString.test.js - -ok 208 — isString is a Function -ok 209 — foo is a string -ok 210 — "10" is a string -ok 211 — Empty string is a string -ok 212 — 10 is not a string -ok 213 — true is not string - -# PASS test/arrayToCSV/arrayToCSV.test.js - -ok 214 — arrayToCSV is a Function -ok 215 — arrayToCSV works with default delimiter -ok 216 — arrayToCSV works with custom delimiter - -# PASS test/mapKeys/mapKeys.test.js - -ok 217 — mapKeys is a Function -ok 218 — Maps keys - -# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js - -ok 219 — pipeAsyncFunctions is a Function -ok 220 — pipeAsyncFunctions result should be 15 - -# PASS test/pull/pull.test.js - -ok 221 — pull is a Function -ok 222 — Pulls the specified values - -# PASS test/differenceBy/differenceBy.test.js - -ok 223 — differenceBy is a Function -ok 224 — Works using a native function and numbers -ok 225 — Works with arrow function and objects - -# PASS test/equals/equals.test.js - -ok 226 — equals is a Function -ok 227 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 228 — [1,2,3] is equal to [1,2,3] -ok 229 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 230 — [1,2,3] is not equal to [1,2,4] -ok 231 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. - -# PASS test/capitalize/capitalize.test.js - -ok 232 — capitalize is a Function -ok 233 — Capitalizes the first letter of a string -ok 234 — Capitalizes the first letter of a string -ok 235 — Works with characters -ok 236 — "Works with single character words - -# PASS test/when/when.test.js - -ok 237 — when is a Function -ok 238 — Returns the proper result -ok 239 — Returns the proper result - -# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js - -ok 240 — sortedLastIndexBy is a Function -ok 241 — Returns the highest index to insert the element without messing up the list order - -# PASS test/isUpperCase/isUpperCase.test.js - -ok 242 — isUpperCase is a Function -ok 243 — ABC is all upper case -ok 244 — abc is not all upper case -ok 245 — A3@$ is all uppercase - -# PASS test/forOwnRight/forOwnRight.test.js - -ok 246 — forOwnRight is a Function -ok 247 — Iterates over an element's key-value pairs in reverse - -# PASS test/solveRPN/solveRPN.test.js - -ok 248 — solveRPN is a Function - -# PASS test/intersection/intersection.test.js - -ok 249 — intersection is a Function -ok 250 — Returns a list of elements that exist in both arrays - -# PASS test/RGBToHex/RGBToHex.test.js - -ok 251 — RGBToHex is a Function -ok 252 — Converts the values of RGB components to a color code. - -# PASS test/pullAtValue/pullAtValue.test.js - -ok 253 — pullAtValue is a Function -ok 254 — Pulls the specified values -ok 255 — Pulls the specified values - -# PASS test/elementContains/elementContains.test.js - -ok 256 — elementContains is a Function - -# PASS test/removeVowels/removeVowels.test.js - -ok 257 — removeVowels is a Function - -# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js - -ok 258 — isBrowserTabFocused is a Function - -# PASS test/round/round.test.js - -ok 259 — round is a Function -ok 260 — round(1.005, 2) returns 1.01 -ok 261 — round(123.3423345345345345344, 11) returns 123.34233453453 -ok 262 — round(3.342, 11) returns 3.342 -ok 263 — round(1.005) returns 1 -ok 264 — round([1.005, 2]) returns NaN -ok 265 — round(string) returns NaN -ok 266 — round() returns NaN -ok 267 — round(132, 413, 4134) returns NaN -ok 268 — round({a: 132}, 413) returns NaN -ok 269 — round(123.3423345345345345344, 11) takes less than 2s to run - -# PASS test/isSorted/isSorted.test.js - -ok 270 — isSorted is a Function -ok 271 — Array is sorted in ascending order -ok 272 — Array is sorted in ascending order -ok 273 — Array is sorted in ascending order -ok 274 — Array is sorted in ascending order -ok 275 — Array is sorted in descending order -ok 276 — Array is sorted in descending order -ok 277 — Array is sorted in descending order -ok 278 — Array is sorted in descending order -ok 279 — Array is empty -ok 280 — Array is not sorted, direction changed in array -ok 281 — Array is not sorted, direction changed in array - -# PASS test/sortedIndex/sortedIndex.test.js - -ok 282 — sortedIndex is a Function -ok 283 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -ok 284 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. - -# PASS test/delay/delay.test.js - -ok 285 — delay is a Function -ok 286 — Works as expecting, passing arguments properly - -# PASS test/drop/drop.test.js - -ok 287 — drop is a Function -ok 288 — Works without the last argument -ok 289 — Removes appropriate element count as specified -ok 290 — Empties array given a count greater than length - -# PASS test/sortedIndexBy/sortedIndexBy.test.js - -ok 291 — sortedIndexBy is a Function -ok 292 — Returns the lowest index to insert the element without messing up the list order - -# PASS test/uncurry/uncurry.test.js - -ok 293 — uncurry is a Function -ok 294 — Works without a provided value for n -ok 295 — Works with n = 2 -ok 296 — Works with n = 3 - -# PASS test/sumBy/sumBy.test.js - -ok 297 — sumBy is a Function - -# PASS test/deepClone/deepClone.test.js - -ok 298 — deepClone is a Function -ok 299 — Shallow cloning works -ok 300 — Deep cloning works -ok 301 — Array shallow cloning works -ok 302 — Array deep cloning works - -# PASS test/isNil/isNil.test.js - -ok 303 — isNil is a Function -ok 304 — Returns true for null -ok 305 — Returns true for undefined -ok 306 — Returns false for an empty string - -# PASS test/prettyBytes/prettyBytes.test.js - -ok 307 — prettyBytes is a Function -ok 308 — Converts a number in bytes to a human-readable string. -ok 309 — Converts a number in bytes to a human-readable string. -ok 310 — Converts a number in bytes to a human-readable string. - -# PASS test/remove/remove.test.js - -ok 311 — remove is a Function -ok 312 — Removes elements from an array for which the given function returns false - -# PASS test/clampNumber/clampNumber.test.js - -ok 313 — clampNumber is a Function -ok 314 — Clamps num within the inclusive range specified by the boundary values a and b - -# PASS test/curry/curry.test.js - -ok 315 — curry is a Function -ok 316 — curries a Math.pow -ok 317 — curries a Math.min - -# PASS test/unionBy/unionBy.test.js - -ok 318 — unionBy is a Function -ok 319 — Produces the appropriate results - -# PASS test/merge/merge.test.js - -ok 320 — merge is a Function -ok 321 — Merges two objects - -# PASS test/orderBy/orderBy.test.js - -ok 322 — orderBy is a Function -ok 323 — Returns a sorted array of objects ordered by properties and orders. -ok 324 — Returns a sorted array of objects ordered by properties and orders. - -# PASS test/countOccurrences/countOccurrences.test.js - -ok 325 — countOccurrences is a Function -ok 326 — Counts the occurrences of a value in an array +ok 72 — chunk is a Function +ok 73 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] +ok 74 — chunk([]) returns [] +ok 75 — chunk(123) returns [] +ok 76 — chunk({ a: 123}) returns [] +ok 77 — chunk(string, 2) returns [ st, ri, ng ] +ok 78 — chunk() throws an error +ok 79 — chunk(undefined) throws an error +ok 80 — chunk(null) throws an error +ok 81 — chunk(This is a string, 2) takes less than 2s to run # PASS test/zipObject/zipObject.test.js -ok 327 — zipObject is a Function -ok 328 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} -ok 329 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} -ok 330 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } -ok 331 — zipObject([a], string) returns { a: s } -ok 332 — zipObject() throws an error -ok 333 — zipObject((['string'], null) throws an error -ok 334 — zipObject(null, [1]) throws an error -ok 335 — zipObject('string') throws an error -ok 336 — zipObject('test', 'string') throws an error - -# PASS test/escapeRegExp/escapeRegExp.test.js - -ok 337 — escapeRegExp is a Function -ok 338 — Escapes a string to use in a regular expression - -# PASS test/isArrayBuffer/isArrayBuffer.test.js - -ok 339 — isArrayBuffer is a Function - -# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js - -ok 340 — getDaysDiffBetweenDates is a Function -ok 341 — Returns the difference in days between two dates - -# PASS test/getStyle/getStyle.test.js - -ok 342 — getStyle is a Function - -# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js - -ok 343 — randomIntArrayInRange is a Function -ok 344 — The returned array contains only integers -ok 345 — The returned array has the proper length -ok 346 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/intersectionWith/intersectionWith.test.js - -ok 347 — intersectionWith is a Function -ok 348 — Returns a list of elements that exist in both arrays, using a provided comparator function - -# PASS test/filterNonUnique/filterNonUnique.test.js - -ok 349 — filterNonUnique is a Function -ok 350 — Filters out the non-unique values in an array - -# PASS test/isAnagram/isAnagram.test.js - -ok 351 — isAnagram is a Function -ok 352 — Checks valid anagram -ok 353 — Works with spaces -ok 354 — Ignores case -ok 355 — Ignores special characters - -# PASS test/matchesWith/matchesWith.test.js - -ok 356 — matchesWith is a Function -ok 357 — Returns true for two objects with similar values, based on the provided function - -# PASS test/takeWhile/takeWhile.test.js - -ok 358 — takeWhile is a Function -ok 359 — Removes elements until the function returns true - -# PASS test/omit/omit.test.js - -ok 360 — omit is a Function -ok 361 — Omits the key-value pairs corresponding to the given keys from an object - -# PASS test/sampleSize/sampleSize.test.js - -ok 362 — sampleSize is a Function -ok 363 — Returns a single element without n specified -ok 364 — Returns a random sample of specified size from an array -ok 365 — Returns all elements in an array if n >= length -ok 366 — Returns an empty array if original array is empty -ok 367 — Returns an empty array if n = 0 - -# PASS test/hammingDistance/hammingDistance.test.js - -ok 368 — hammingDistance is a Function -ok 369 — retuns hamming disance between 2 values - -# PASS test/fibonacci/fibonacci.test.js - -ok 370 — fibonacci is a Function -ok 371 — Generates an array, containing the Fibonacci sequence - -# PASS test/unionWith/unionWith.test.js - -ok 372 — unionWith is a Function -ok 373 — Produces the appropriate results - -# PASS test/isSymbol/isSymbol.test.js - -ok 374 — isSymbol is a Function -ok 375 — Checks if the given argument is a symbol - -# PASS test/unfold/unfold.test.js - -ok 376 — unfold is a Function -ok 377 — Works with a given function, producing an array - -# PASS test/hashBrowser/hashBrowser.test.js - -ok 378 — hashBrowser is a Function - -# PASS test/all/all.test.js - -ok 379 — all is a Function -ok 380 — Returns true for arrays with no falsey values -ok 381 — Returns false for arrays with 0 -ok 382 — Returns false for arrays with NaN -ok 383 — Returns false for arrays with undefined -ok 384 — Returns false for arrays with null -ok 385 — Returns false for arrays with empty strings -ok 386 — Returns true with predicate function -ok 387 — Returns false with a predicate function - -# PASS test/isEven/isEven.test.js - -ok 388 — isEven is a Function -ok 389 — 4 is even number -ok 390 — 5 is not an even number - -# PASS test/get/get.test.js - -ok 391 — get is a Function -ok 392 — Retrieve a property indicated by the selector from an object. - -# PASS test/atob/atob.test.js - -ok 393 — atob is a Function -ok 394 — atob("Zm9vYmFy") equals "foobar" -ok 395 — atob("Z") returns "" - -# PASS test/redirect/redirect.test.js - -ok 396 — redirect is a Function - -# PASS test/randomHexColorCode/randomHexColorCode.test.js - -ok 397 — randomHexColorCode is a Function -ok 398 — randomHexColorCode has to proper length -ok 399 — The color code starts with "#" -ok 400 — The color code contains only valid hex-digits - -# PASS test/CSVToJSON/CSVToJSON.test.js - -ok 401 — CSVToJSON is a Function -ok 402 — CSVToJSON works with default delimiter -ok 403 — CSVToJSON works with custom delimiter - -# PASS test/partial/partial.test.js - -ok 404 — partial is a Function -ok 405 — Prepends arguments - -# PASS test/partialRight/partialRight.test.js - -ok 406 — partialRight is a Function -ok 407 — Appends arguments - -# PASS test/maxBy/maxBy.test.js - -ok 408 — maxBy is a Function -ok 409 — Produces the right result with a function -ok 410 — Produces the right result with a property name - -# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js - -ok 411 — toOrdinalSuffix is a Function -ok 412 — Adds an ordinal suffix to a number -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 - -# PASS test/sdbm/sdbm.test.js - -ok 416 — sdbm is a Function -ok 417 — Hashes the input string into a whole number. - -# PASS test/isArray/isArray.test.js - -ok 418 — isArray is a Function -ok 419 — passed value is an array -ok 420 — passed value is not an array - -# PASS test/none/none.test.js - -ok 421 — none is a Function -ok 422 — Returns true for arrays with no truthy values -ok 423 — Returns false for arrays with at least one truthy value -ok 424 — Returns true with a predicate function -ok 425 — Returns false with predicate function - -# PASS test/isNumber/isNumber.test.js - -ok 426 — isNumber is a Function -ok 427 — passed argument is a number -ok 428 — passed argument is not a number - -# PASS test/isAbsoluteURL/isAbsoluteURL.test.js - -ok 429 — isAbsoluteURL is a Function -ok 430 — Given string is an absolute URL -ok 431 — Given string is an absolute URL -ok 432 — Given string is not an absolute URL - -# PASS test/findKey/findKey.test.js - -ok 433 — findKey is a Function -ok 434 — Returns the appropriate key - -# PASS test/mask/mask.test.js - -ok 435 — mask is a Function -ok 436 — Replaces all but the last num of characters with the specified mask character -ok 437 — Replaces all but the last num of characters with the specified mask character -ok 438 — Replaces all but the last num of characters with the specified mask character - -# PASS test/attempt/attempt.test.js - -ok 439 — attempt is a Function -ok 440 — Returns a value -ok 441 — Returns an error - -# PASS test/zip/zip.test.js - -ok 442 — zip is a Function -ok 443 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] -ok 444 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] -ok 445 — zip([]) returns [] -ok 446 — zip(123) returns [] -ok 447 — zip([a, b], [1, 2], [true, false]) returns an Array -ok 448 — zip([a], [1, 2], [true, false]) returns an Array -ok 449 — zip(null) throws an error -ok 450 — zip(undefined) throws an error - -# PASS test/once/once.test.js - -ok 451 — once is a Function - -# PASS test/compose/compose.test.js - -ok 452 — compose is a Function -ok 453 — Performs right-to-left function composition - -# PASS test/randomIntegerInRange/randomIntegerInRange.test.js - -ok 454 — randomIntegerInRange is a Function -ok 455 — The returned value is an integer -ok 456 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/primes/primes.test.js - -ok 457 — primes is a Function -ok 458 — Generates primes up to a given number, using the Sieve of Eratosthenes. - -# PASS test/CSVToArray/CSVToArray.test.js - -ok 459 — CSVToArray is a Function -ok 460 — CSVToArray works with default delimiter -ok 461 — CSVToArray works with custom delimiter -ok 462 — CSVToArray omits the first row -ok 463 — CSVToArray omits the first row and works with a custom delimiter - -# PASS test/isUndefined/isUndefined.test.js - -ok 464 — isUndefined is a Function -ok 465 — Returns true for undefined - -# PASS test/minBy/minBy.test.js - -ok 466 — minBy is a Function -ok 467 — Produces the right result with a function -ok 468 — Produces the right result with a property name +ok 82 — zipObject is a Function +ok 83 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} +ok 84 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} +ok 85 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } +ok 86 — zipObject([a], string) returns { a: s } +ok 87 — zipObject() throws an error +ok 88 — zipObject((['string'], null) throws an error +ok 89 — zipObject(null, [1]) throws an error +ok 90 — zipObject('string') throws an error +ok 91 — zipObject('test', 'string') throws an error + +# PASS test/toSafeInteger/toSafeInteger.test.js + +ok 92 — toSafeInteger is a Function +ok 93 — Number(toSafeInteger(3.2)) is a number +ok 94 — Converts a value to a safe integer +ok 95 — toSafeInteger('4.2') returns 4 +ok 96 — toSafeInteger(4.6) returns 5 +ok 97 — toSafeInteger([]) returns 0 +ok 98 — isNaN(toSafeInteger([1.5, 3124])) is true +ok 99 — isNaN(toSafeInteger('string')) is true +ok 100 — isNaN(toSafeInteger({})) is true +ok 101 — isNaN(toSafeInteger()) is true +ok 102 — toSafeInteger(Infinity) returns 9007199254740991 +ok 103 — toSafeInteger(3.2) takes less than 2s to run # PASS test/off/off.test.js -ok 469 — off is a Function +ok 104 — off is a Function -# PASS test/differenceWith/differenceWith.test.js +# PASS test/CSVToJSON/CSVToJSON.test.js -ok 470 — differenceWith is a Function -ok 471 — Filters out all values from an array +ok 105 — CSVToJSON is a Function +ok 106 — CSVToJSON works with default delimiter +ok 107 — CSVToJSON works with custom delimiter -# PASS test/offset/offset.test.js +# PASS test/pipeFunctions/pipeFunctions.test.js -ok 472 — offset is a Function -ok 473 — Offset of 0 returns the same array. -ok 474 — Offset > 0 returns the offsetted array. -ok 475 — Offset < 0 returns the reverse offsetted array. -ok 476 — Offset greater than the length of the array returns the same array. -ok 477 — Offset less than the negative length of the array returns the same array. -ok 478 — Offsetting empty array returns an empty array. +ok 108 — pipeFunctions is a Function +ok 109 — Performs left-to-right function composition -# PASS test/radsToDegrees/radsToDegrees.test.js +# PASS test/mapKeys/mapKeys.test.js -ok 479 — radsToDegrees is a Function -ok 480 — Returns the appropriate value +ok 110 — mapKeys is a Function +ok 111 — Maps keys -# PASS test/detectDeviceType/detectDeviceType.test.js +# PASS test/size/size.test.js -ok 481 — detectDeviceType is a Function - -# PASS test/without/without.test.js - -ok 482 — without is a Function -ok 483 — without([2, 1, 2, 3], 1, 2) returns [3] -ok 484 — without([]) returns [] -ok 485 — without([3, 1, true, '3', true], '3', true) returns [3, 1] -ok 486 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] -ok 487 — without() throws an error -ok 488 — without(null) throws an error -ok 489 — without(undefined) throws an error -ok 490 — without(123) throws an error -ok 491 — without({}) throws an error - -# PASS test/cloneRegExp/cloneRegExp.test.js - -ok 492 — cloneRegExp is a Function -ok 493 — Clones regular expressions properly - -# PASS test/isLowerCase/isLowerCase.test.js - -ok 494 — isLowerCase is a Function -ok 495 — passed string is a lowercase -ok 496 — passed string is a lowercase -ok 497 — passed value is not a lowercase - -# PASS test/flattenObject/flattenObject.test.js - -ok 498 — flattenObject is a Function -ok 499 — Flattens an object with the paths for keys -ok 500 — Works with arrays - -# PASS test/truncateString/truncateString.test.js - -ok 501 — truncateString is a Function -ok 502 — Truncates a "boomerang" up to a specified length. - -# PASS test/isMap/isMap.test.js - -ok 503 — isMap is a Function - -# PASS test/findLast/findLast.test.js - -ok 504 — findLast is a Function -ok 505 — Finds last element for which the given function returns true - -# PASS test/isPrime/isPrime.test.js - -ok 506 — isPrime is a Function -ok 507 — passed number is a prime - -# PASS test/chainAsync/chainAsync.test.js - -ok 508 — chainAsync is a Function -ok 509 — Calls all functions in an array - -# PASS test/isNull/isNull.test.js - -ok 510 — isNull is a Function -ok 511 — passed argument is a null -ok 512 — passed argument is a null - -# PASS test/findLastKey/findLastKey.test.js - -ok 513 — findLastKey is a Function -ok 514 — eturns the appropriate key - -# PASS test/omitBy/omitBy.test.js - -ok 515 — omitBy is a Function -ok 516 — Creates an object composed of the properties the given function returns falsey for - -# PASS test/degreesToRads/degreesToRads.test.js - -ok 517 — degreesToRads is a Function -ok 518 — Returns the appropriate value - -# PASS test/head/head.test.js - -ok 519 — head is a Function -ok 520 — head({ a: 1234}) returns undefined -ok 521 — head([1, 2, 3]) returns 1 -ok 522 — head({ 0: false}) returns false -ok 523 — head(String) returns S -ok 524 — head(null) throws an Error -ok 525 — head(undefined) throws an Error -ok 526 — head() throws an Error -ok 527 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/isBoolean/isBoolean.test.js - -ok 528 — isBoolean is a Function -ok 529 — passed value is not a boolean -ok 530 — passed value is not a boolean - -# PASS test/compact/compact.test.js - -ok 531 — compact is a Function -ok 532 — Removes falsey values from an array - -# PASS test/rearg/rearg.test.js - -ok 533 — rearg is a Function -ok 534 — Reorders arguments in invoked function - -# PASS test/groupBy/groupBy.test.js - -ok 535 — groupBy is a Function -ok 536 — Groups the elements of an array based on the given function -ok 537 — Groups the elements of an array based on the given function - -# PASS test/isEmpty/isEmpty.test.js - -ok 538 — isEmpty is a Function -ok 539 — Returns true for empty Map -ok 540 — Returns true for empty Set -ok 541 — Returns true for empty array -ok 542 — Returns true for empty object -ok 543 — Returns true for empty string -ok 544 — Returns false for non-empty array -ok 545 — Returns false for non-empty object -ok 546 — Returns false for non-empty string -ok 547 — Returns true - type is not considered a collection -ok 548 — Returns true - type is not considered a collection +ok 112 — size is a Function +ok 113 — Get size of arrays, objects or strings. +ok 114 — Get size of arrays, objects or strings. # PASS test/stringPermutations/stringPermutations.test.js -ok 549 — stringPermutations is a Function -ok 550 — Generates all stringPermutations of a string -ok 551 — Works for single-letter strings -ok 552 — Works for empty strings +ok 115 — stringPermutations is a Function +ok 116 — Generates all stringPermutations of a string +ok 117 — Works for single-letter strings +ok 118 — Works for empty strings + +# PASS test/escapeHTML/escapeHTML.test.js + +ok 119 — escapeHTML is a Function +ok 120 — Escapes a string for use in HTML + +# PASS test/gcd/gcd.test.js + +ok 121 — gcd is a Function +ok 122 — Calculates the greatest common divisor between two or more numbers/arrays +ok 123 — Calculates the greatest common divisor between two or more numbers/arrays + +# PASS test/uniqueElements/uniqueElements.test.js + +ok 124 — uniqueElements is a Function +ok 125 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] +ok 126 — uniqueElements([1, 23, 53]) returns [1, 23, 53] +ok 127 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] +ok 128 — uniqueElements() returns [] +ok 129 — uniqueElements(null) returns [] +ok 130 — uniqueElements(undefined) returns [] +ok 131 — uniqueElements('strt') returns ['s', 't', 'r'] +ok 132 — uniqueElements(1, 1, 2543, 534, 5) throws an error +ok 133 — uniqueElements({}) throws an error +ok 134 — uniqueElements(true) throws an error +ok 135 — uniqueElements(false) throws an error +ok 136 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run + +# PASS test/matches/matches.test.js + +ok 137 — matches is a Function +ok 138 — Matches returns true for two similar objects +ok 139 — Matches returns false for two non-similar objects + +# PASS test/factors/factors.test.js + +ok 140 — factors is a Function + +# PASS test/permutations/permutations.test.js + +ok 141 — permutations is a Function +ok 142 — Generates all permutations of an array + +# PASS test/pullBy/pullBy.test.js + +ok 143 — pullBy is a Function +ok 144 — Pulls the specified values + +# PASS test/zip/zip.test.js + +ok 145 — zip is a Function +ok 146 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] +ok 147 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] +ok 148 — zip([]) returns [] +ok 149 — zip(123) returns [] +ok 150 — zip([a, b], [1, 2], [true, false]) returns an Array +ok 151 — zip([a], [1, 2], [true, false]) returns an Array +ok 152 — zip(null) throws an error +ok 153 — zip(undefined) throws an error + +# PASS test/removeNonASCII/removeNonASCII.test.js + +ok 154 — removeNonASCII is a Function +ok 155 — Removes non-ASCII characters + +# PASS test/round/round.test.js + +ok 156 — round is a Function +ok 157 — round(1.005, 2) returns 1.01 +ok 158 — round(123.3423345345345345344, 11) returns 123.34233453453 +ok 159 — round(3.342, 11) returns 3.342 +ok 160 — round(1.005) returns 1 +ok 161 — round([1.005, 2]) returns NaN +ok 162 — round(string) returns NaN +ok 163 — round() returns NaN +ok 164 — round(132, 413, 4134) returns NaN +ok 165 — round({a: 132}, 413) returns NaN +ok 166 — round(123.3423345345345345344, 11) takes less than 2s to run + +# PASS test/partition/partition.test.js + +ok 167 — partition is a Function +ok 168 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. + +# PASS test/nthElement/nthElement.test.js + +ok 169 — nthElement is a Function +ok 170 — Returns the nth element of an array. +ok 171 — Returns the nth element of an array. + +# PASS test/powerset/powerset.test.js + +ok 172 — powerset is a Function +ok 173 — Returns the powerset of a given array of numbers. + +# PASS test/spreadOver/spreadOver.test.js + +ok 174 — spreadOver is a Function +ok 175 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. + +# PASS test/counter/counter.test.js + +ok 176 — counter is a Function + +# PASS test/initialize2DArray/initialize2DArray.test.js + +ok 177 — initialize2DArray is a Function +ok 178 — Initializes a 2D array of given width and height and value + +# PASS test/words/words.test.js + +ok 179 — words is a Function +ok 180 — words('I love javaScript!!') returns [I, love, javaScript] +ok 181 — words('python, javaScript & coffee') returns [python, javaScript, coffee] +ok 182 — words(I love javaScript!!) returns an array +ok 183 — words() throws an error +ok 184 — words(null) throws an error +ok 185 — words(undefined) throws an error +ok 186 — words({}) throws an error +ok 187 — words([]) throws an error +ok 188 — words(1234) throws an error + +# PASS test/hz/hz.test.js + +ok 189 — hz is a Function + +# PASS test/isSymbol/isSymbol.test.js + +ok 190 — isSymbol is a Function +ok 191 — Checks if the given argument is a symbol + +# PASS test/sortedIndex/sortedIndex.test.js + +ok 192 — sortedIndex is a Function +ok 193 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. +ok 194 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. + +# PASS test/timeTaken/timeTaken.test.js + +ok 195 — timeTaken is a Function + +# PASS test/prettyBytes/prettyBytes.test.js + +ok 196 — prettyBytes is a Function +ok 197 — Converts a number in bytes to a human-readable string. +ok 198 — Converts a number in bytes to a human-readable string. +ok 199 — Converts a number in bytes to a human-readable string. + +# PASS test/sample/sample.test.js + +ok 200 — sample is a Function +ok 201 — Returns a random element from the array +ok 202 — Works for single-element arrays +ok 203 — Returns undefined for empty array + +# PASS test/isAbsoluteURL/isAbsoluteURL.test.js + +ok 204 — isAbsoluteURL is a Function +ok 205 — Given string is an absolute URL +ok 206 — Given string is an absolute URL +ok 207 — Given string is not an absolute URL + +# PASS test/dropRight/dropRight.test.js + +ok 208 — dropRight is a Function +ok 209 — Returns a new array with n elements removed from the right +ok 210 — Returns a new array with n elements removed from the right +ok 211 — Returns a new array with n elements removed from the right + +# PASS test/isPrime/isPrime.test.js + +ok 212 — isPrime is a Function +ok 213 — passed number is a prime + +# PASS test/factorial/factorial.test.js + +ok 214 — factorial is a Function +ok 215 — Calculates the factorial of 720 +ok 216 — Calculates the factorial of 0 +ok 217 — Calculates the factorial of 1 +ok 218 — Calculates the factorial of 4 +ok 219 — Calculates the factorial of 10 + +# PASS test/toCamelCase/toCamelCase.test.js + +ok 220 — toCamelCase is a Function +ok 221 — toCamelCase('some_database_field_name') returns someDatabaseFieldName +ok 222 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized +ok 223 — toCamelCase('some-javascript-property') return someJavascriptProperty +ok 224 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens +ok 225 — toCamelCase() throws a error +ok 226 — toCamelCase([]) throws a error +ok 227 — toCamelCase({}) throws a error +ok 228 — toCamelCase(123) throws a error +ok 229 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run + +# PASS test/sampleSize/sampleSize.test.js + +ok 230 — sampleSize is a Function +ok 231 — Returns a single element without n specified +ok 232 — Returns a random sample of specified size from an array +ok 233 — Returns all elements in an array if n >= length +ok 234 — Returns an empty array if original array is empty +ok 235 — Returns an empty array if n = 0 + +# PASS test/composeRight/composeRight.test.js + +ok 236 — composeRight is a Function +ok 237 — Performs left-to-right function composition + +# PASS test/binarySearch/binarySearch.test.js + +ok 238 — binarySearch is a Function +ok 239 — Finds item in array +ok 240 — Returns -1 when not found +ok 241 — Works with empty arrays +ok 242 — Works for one element arrays + +# PASS test/binomialCoefficient/binomialCoefficient.test.js + +ok 243 — binomialCoefficient is a Function +ok 244 — Returns the appropriate value +ok 245 — Returns the appropriate value +ok 246 — Returns the appropriate value +ok 247 — Returns NaN +ok 248 — Returns NaN + +# PASS test/isObject/isObject.test.js + +ok 249 — isObject is a Function +ok 250 — isObject([1, 2, 3, 4]) is a object +ok 251 — isObject([]) is a object +ok 252 — isObject({ a:1 }) is a object +ok 253 — isObject(true) is not a object + +# PASS test/transform/transform.test.js + +ok 254 — transform is a Function +ok 255 — Transforms an object + +# PASS test/toSnakeCase/toSnakeCase.test.js + +ok 256 — toSnakeCase is a Function +ok 257 — toSnakeCase('camelCase') returns camel_case +ok 258 — toSnakeCase('some text') returns some_text +ok 259 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens +ok 260 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html +ok 261 — toSnakeCase() returns undefined +ok 262 — toSnakeCase([]) throws an error +ok 263 — toSnakeCase({}) throws an error +ok 264 — toSnakeCase(123) throws an error +ok 265 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run + +# PASS test/getStyle/getStyle.test.js + +ok 266 — getStyle is a Function + +# PASS test/inRange/inRange.test.js + +ok 267 — inRange is a Function +ok 268 — The given number falls within the given range +ok 269 — The given number falls within the given range +ok 270 — The given number does not falls within the given range +ok 271 — The given number does not falls within the given range + +# PASS test/toDecimalMark/toDecimalMark.test.js + +ok 272 — toDecimalMark is a Function +ok 273 — convert a float-point arithmetic to the Decimal mark form + +# PASS test/last/last.test.js + +ok 274 — last is a Function +ok 275 — last({ a: 1234}) returns undefined +ok 276 — last([1, 2, 3]) returns 3 +ok 277 — last({ 0: false}) returns undefined +ok 278 — last(String) returns g +ok 279 — last(null) throws an Error +ok 280 — last(undefined) throws an Error +ok 281 — last() throws an Error +ok 282 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/rearg/rearg.test.js + +ok 283 — rearg is a Function +ok 284 — Reorders arguments in invoked function + +# PASS test/compose/compose.test.js + +ok 285 — compose is a Function +ok 286 — Performs right-to-left function composition + +# PASS test/castArray/castArray.test.js + +ok 287 — castArray is a Function +ok 288 — Works for single values +ok 289 — Works for arrays with one value +ok 290 — Works for arrays with multiple value +ok 291 — Works for strings +ok 292 — Works for objects + +# PASS test/union/union.test.js + +ok 293 — union is a Function +ok 294 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] +ok 295 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] +ok 296 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] +ok 297 — union([], []) returns [] +ok 298 — union() throws an error +ok 299 — union(true, 'str') throws an error +ok 300 — union('false', true) throws an error +ok 301 — union((123, {}) throws an error +ok 302 — union([], {}) throws an error +ok 303 — union(undefined, null) throws an error +ok 304 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run + +# PASS test/isBoolean/isBoolean.test.js + +ok 305 — isBoolean is a Function +ok 306 — passed value is not a boolean +ok 307 — passed value is not a boolean + +# PASS test/httpsRedirect/httpsRedirect.test.js + +ok 308 — httpsRedirect is a Function + +# PASS test/mostPerformant/mostPerformant.test.js + +ok 309 — mostPerformant is a Function + +# PASS test/unflattenObject/unflattenObject.test.js + +ok 310 — unflattenObject is a Function +ok 311 — Unflattens an object with the paths for keys + +# PASS test/all/all.test.js + +ok 312 — all is a Function +ok 313 — Returns true for arrays with no falsey values +ok 314 — Returns false for arrays with 0 +ok 315 — Returns false for arrays with NaN +ok 316 — Returns false for arrays with undefined +ok 317 — Returns false for arrays with null +ok 318 — Returns false for arrays with empty strings +ok 319 — Returns true with predicate function +ok 320 — Returns false with a predicate function + +# PASS test/takeWhile/takeWhile.test.js + +ok 321 — takeWhile is a Function +ok 322 — Removes elements until the function returns true + +# PASS test/JSONtoCSV/JSONtoCSV.test.js + +ok 323 — JSONtoCSV is a Function +ok 324 — JSONtoCSV works with default delimiter +ok 325 — JSONtoCSV works with custom delimiter + +# PASS test/isSorted/isSorted.test.js + +ok 326 — isSorted is a Function +ok 327 — Array is sorted in ascending order +ok 328 — Array is sorted in ascending order +ok 329 — Array is sorted in ascending order +ok 330 — Array is sorted in ascending order +ok 331 — Array is sorted in descending order +ok 332 — Array is sorted in descending order +ok 333 — Array is sorted in descending order +ok 334 — Array is sorted in descending order +ok 335 — Array is empty +ok 336 — Array is not sorted, direction changed in array +ok 337 — Array is not sorted, direction changed in array + +# PASS test/isAnagram/isAnagram.test.js + +ok 338 — isAnagram is a Function +ok 339 — Checks valid anagram +ok 340 — Works with spaces +ok 341 — Ignores case +ok 342 — Ignores special characters + +# PASS test/indexOfAll/indexOfAll.test.js + +ok 343 — indexOfAll is a Function +ok 344 — Returns all indices of val in an array +ok 345 — Returns all indices of val in an array + +# PASS test/difference/difference.test.js + +ok 346 — difference is a Function +ok 347 — Returns the difference between two arrays + +# PASS test/percentile/percentile.test.js + +ok 348 — percentile is a Function +ok 349 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. + +# PASS test/yesNo/yesNo.test.js + +ok 350 — yesNo is a Function +ok 351 — yesNo(Y) returns true +ok 352 — yesNo(yes) returns true +ok 353 — yesNo(foo, true) returns true +ok 354 — yesNo(No) returns false +ok 355 — yesNo() returns false +ok 356 — yesNo(null) returns false +ok 357 — yesNo(undefined) returns false +ok 358 — yesNo([123, null]) returns false +ok 359 — yesNo([Yes, No]) returns false +ok 360 — yesNo({ 2: Yes }) returns false +ok 361 — yesNo([Yes, No], true) returns true +ok 362 — yesNo({ 2: Yes }, true) returns true + +# PASS test/reverseString/reverseString.test.js + +ok 363 — reverseString is a Function +ok 364 — Reverses a string. + +# PASS test/httpPost/httpPost.test.js + +ok 365 — httpPost is a Function + +# PASS test/isNull/isNull.test.js + +ok 366 — isNull is a Function +ok 367 — passed argument is a null +ok 368 — passed argument is a null + +# PASS test/isUpperCase/isUpperCase.test.js + +ok 369 — isUpperCase is a Function +ok 370 — ABC is all upper case +ok 371 — abc is not all upper case +ok 372 — A3@$ is all uppercase + +# PASS test/distance/distance.test.js + +ok 373 — distance is a Function +ok 374 — Calculates the distance between two points + +# PASS test/elo/elo.test.js + +ok 375 — elo is a Function +ok 376 — Standard 1v1s +ok 377 — Standard 1v1s +ok 378 — 4 player FFA, all same rank + +# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js + +ok 379 — sortedLastIndexBy is a Function +ok 380 — Returns the highest index to insert the element without messing up the list order + +# PASS test/quickSort/quickSort.test.js + +ok 381 — quickSort is a Function +ok 382 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] +ok 383 — quickSort([-1, 0, -2]) returns [-2, -1, 0] +ok 384 — quickSort() throws an error +ok 385 — quickSort(123) throws an error +ok 386 — quickSort({ 234: string}) throws an error +ok 387 — quickSort(null) throws an error +ok 388 — quickSort(undefined) throws an error +ok 389 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run + +# PASS test/runPromisesInSeries/runPromisesInSeries.test.js + +ok 390 — runPromisesInSeries is a Function +ok 391 — Runs promises in series + +# PASS test/everyNth/everyNth.test.js + +ok 392 — everyNth is a Function +ok 393 — Returns every nth element in an array + +# PASS test/tail/tail.test.js + +ok 394 — tail is a Function +ok 395 — Returns tail +ok 396 — Returns tail + +# PASS test/fromCamelCase/fromCamelCase.test.js + +ok 397 — fromCamelCase is a Function +ok 398 — Converts a string from camelcase +ok 399 — Converts a string from camelcase +ok 400 — Converts a string from camelcase + +# PASS test/randomHexColorCode/randomHexColorCode.test.js + +ok 401 — randomHexColorCode is a Function +ok 402 — randomHexColorCode has to proper length +ok 403 — The color code starts with "#" +ok 404 — The color code contains only valid hex-digits + +# PASS test/head/head.test.js + +ok 405 — head is a Function +ok 406 — head({ a: 1234}) returns undefined +ok 407 — head([1, 2, 3]) returns 1 +ok 408 — head({ 0: false}) returns false +ok 409 — head(String) returns S +ok 410 — head(null) throws an Error +ok 411 — head(undefined) throws an Error +ok 412 — head() throws an Error +ok 413 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/digitize/digitize.test.js + +ok 414 — digitize is a Function +ok 415 — Converts a number to an array of digits + +# PASS test/initializeNDArray/initializeNDArray.test.js + +ok 416 — initializeNDArray is a Function + +# PASS test/untildify/untildify.test.js + +ok 417 — untildify is a Function +ok 418 — Contains no tildes +ok 419 — Does not alter the rest of the path +ok 420 — Does not alter paths without tildes + +# PASS test/on/on.test.js + +ok 421 — on is a Function + +# PASS test/mapObject/mapObject.test.js + +ok 422 — mapObject is a Function +ok 423 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 424 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 425 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } + +# PASS test/atob/atob.test.js + +ok 426 — atob is a Function +ok 427 — atob("Zm9vYmFy") equals "foobar" +ok 428 — atob("Z") returns "" + +# PASS test/flattenObject/flattenObject.test.js + +ok 429 — flattenObject is a Function +ok 430 — Flattens an object with the paths for keys +ok 431 — Works with arrays + +# PASS test/once/once.test.js + +ok 432 — once is a Function + +# PASS test/nest/nest.test.js + +ok 433 — nest is a Function + +# PASS test/smoothScroll/smoothScroll.test.js + +ok 434 — smoothScroll is a Function # PASS test/reducedFilter/reducedFilter.test.js -ok 553 — reducedFilter is a Function -ok 554 — Filter an array of objects based on a condition while also filtering out unspecified keys. +ok 435 — reducedFilter is a Function +ok 436 — Filter an array of objects based on a condition while also filtering out unspecified keys. -# PASS test/show/show.test.js +# PASS test/invertKeyValues/invertKeyValues.test.js -ok 555 — show is a Function +ok 437 — invertKeyValues is a Function +ok 438 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 439 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# PASS test/matchesWith/matchesWith.test.js + +ok 440 — matchesWith is a Function +ok 441 — Returns true for two objects with similar values, based on the provided function + +# PASS test/unionWith/unionWith.test.js + +ok 442 — unionWith is a Function +ok 443 — Produces the appropriate results + +# PASS test/splitLines/splitLines.test.js + +ok 444 — splitLines is a Function +ok 445 — Splits a multiline string into an array of lines. + +# PASS test/remove/remove.test.js + +ok 446 — remove is a Function +ok 447 — Removes elements from an array for which the given function returns false + +# PASS test/getURLParameters/getURLParameters.test.js + +ok 448 — getURLParameters is a Function +ok 449 — Returns an object containing the parameters of the current URL + +# PASS test/median/median.test.js + +ok 450 — median is a Function +ok 451 — Returns the median of an array of numbers +ok 452 — Returns the median of an array of numbers + +# PASS test/join/join.test.js + +ok 453 — join is a Function +ok 454 — Joins all elements of an array into a string and returns this string +ok 455 — Joins all elements of an array into a string and returns this string +ok 456 — Joins all elements of an array into a string and returns this string + +# PASS test/luhnCheck/luhnCheck.test.js + +ok 457 — luhnCheck is a Function +ok 458 — validates identification number +ok 459 — validates identification number +ok 460 — validates identification number + +# PASS test/isNil/isNil.test.js + +ok 461 — isNil is a Function +ok 462 — Returns true for null +ok 463 — Returns true for undefined +ok 464 — Returns false for an empty string + +# PASS test/isPromiseLike/isPromiseLike.test.js + +ok 465 — isPromiseLike is a Function +ok 466 — Returns true for a promise-like object +ok 467 — Returns false for an empty object + +# PASS test/differenceBy/differenceBy.test.js + +ok 468 — differenceBy is a Function +ok 469 — Works using a native function and numbers +ok 470 — Works with arrow function and objects + +# PASS test/randomIntegerInRange/randomIntegerInRange.test.js + +ok 471 — randomIntegerInRange is a Function +ok 472 — The returned value is an integer +ok 473 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js + +ok 474 — symmetricDifferenceBy is a Function +ok 475 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both + +# PASS test/unary/unary.test.js + +ok 476 — unary is a Function +ok 477 — Discards arguments after the first one + +# PASS test/coalesce/coalesce.test.js + +ok 478 — coalesce is a Function +ok 479 — Returns the first non-null/undefined argument + +# PASS test/insertBefore/insertBefore.test.js + +ok 480 — insertBefore is a Function + +# PASS test/isArray/isArray.test.js + +ok 481 — isArray is a Function +ok 482 — passed value is an array +ok 483 — passed value is not an array + +# PASS test/longestItem/longestItem.test.js + +ok 484 — longestItem is a Function +ok 485 — Returns the longest object + +# PASS test/xProd/xProd.test.js + +ok 486 — xProd is a Function +ok 487 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] + +# PASS test/recordAnimationFrames/recordAnimationFrames.test.js + +ok 488 — recordAnimationFrames is a Function + +# PASS test/memoize/memoize.test.js + +ok 489 — memoize is a Function +ok 490 — Function works properly +ok 491 — Function works properly +ok 492 — Cache stores values + +# PASS test/isPlainObject/isPlainObject.test.js + +ok 493 — isPlainObject is a Function +ok 494 — Returns true for a plain object +ok 495 — Returns false for a Map (example of non-plain object) + +# PASS test/orderBy/orderBy.test.js + +ok 496 — orderBy is a Function +ok 497 — Returns a sorted array of objects ordered by properties and orders. +ok 498 — Returns a sorted array of objects ordered by properties and orders. + +# PASS test/httpGet/httpGet.test.js + +ok 499 — httpGet is a Function + +# PASS test/offset/offset.test.js + +ok 500 — offset is a Function +ok 501 — Offset of 0 returns the same array. +ok 502 — Offset > 0 returns the offsetted array. +ok 503 — Offset < 0 returns the reverse offsetted array. +ok 504 — Offset greater than the length of the array returns the same array. +ok 505 — Offset less than the negative length of the array returns the same array. +ok 506 — Offsetting empty array returns an empty array. + +# PASS test/lcm/lcm.test.js + +ok 507 — lcm is a Function +ok 508 — Returns the least common multiple of two or more numbers. +ok 509 — Returns the least common multiple of two or more numbers. + +# PASS test/clampNumber/clampNumber.test.js + +ok 510 — clampNumber is a Function +ok 511 — Clamps num within the inclusive range specified by the boundary values a and b + +# PASS test/degreesToRads/degreesToRads.test.js + +ok 512 — degreesToRads is a Function +ok 513 — Returns the appropriate value + +# PASS test/URLJoin/URLJoin.test.js + +ok 514 — URLJoin is a Function +ok 515 — Returns proper URL +ok 516 — Returns proper URL + +# PASS test/currentURL/currentURL.test.js + +ok 517 — currentURL is a Function + +# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js + +ok 518 — UUIDGeneratorBrowser is a Function + +# PASS test/isArrayLike/isArrayLike.test.js + +ok 519 — isArrayLike is a Function +ok 520 — Returns true for a string +ok 521 — Returns true for an array +ok 522 — Returns false for null + +# PASS test/geometricProgression/geometricProgression.test.js + +ok 523 — geometricProgression is a Function +ok 524 — Initializes an array containing the numbers in the specified range +ok 525 — Initializes an array containing the numbers in the specified range +ok 526 — Initializes an array containing the numbers in the specified range + +# PASS test/JSONToDate/JSONToDate.test.js + +ok 527 — JSONToDate is a Function + +# PASS test/bindKey/bindKey.test.js + +ok 528 — bindKey is a Function +ok 529 — Binds function to an object context + +# PASS test/cloneRegExp/cloneRegExp.test.js + +ok 530 — cloneRegExp is a Function +ok 531 — Clones regular expressions properly + +# PASS test/any/any.test.js + +ok 532 — any is a Function +ok 533 — Returns true for arrays with at least one truthy value +ok 534 — Returns false for arrays with no truthy values +ok 535 — Returns false for arrays with no truthy values +ok 536 — Returns true with predicate function +ok 537 — Returns false with a predicate function + +# PASS test/mask/mask.test.js + +ok 538 — mask is a Function +ok 539 — Replaces all but the last num of characters with the specified mask character +ok 540 — Replaces all but the last num of characters with the specified mask character +ok 541 — Replaces all but the last num of characters with the specified mask character + +# PASS test/zipWith/zipWith.test.js + +ok 542 — zipWith is a Function + +# PASS test/throttle/throttle.test.js + +ok 543 — throttle is a Function + +# PASS test/without/without.test.js + +ok 544 — without is a Function +ok 545 — without([2, 1, 2, 3], 1, 2) returns [3] +ok 546 — without([]) returns [] +ok 547 — without([3, 1, true, '3', true], '3', true) returns [3, 1] +ok 548 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] +ok 549 — without() throws an error +ok 550 — without(null) throws an error +ok 551 — without(undefined) throws an error +ok 552 — without(123) throws an error +ok 553 — without({}) throws an error + +# PASS test/radsToDegrees/radsToDegrees.test.js + +ok 554 — radsToDegrees is a Function +ok 555 — Returns the appropriate value # PASS test/approximatelyEqual/approximatelyEqual.test.js @@ -1018,1042 +1015,1062 @@ ok 558 — Works for 0.1 + 0.2 === 0.3 ok 559 — Works for exactly equal values ok 560 — Works for a custom epsilon -# PASS test/distance/distance.test.js +# PASS test/none/none.test.js -ok 561 — distance is a Function -ok 562 — Calculates the distance between two points - -# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js - -ok 563 — elementIsVisibleInViewport is a Function - -# PASS test/collectInto/collectInto.test.js - -ok 564 — collectInto is a Function -ok 565 — Works with multiple promises - -# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js - -ok 566 — initializeArrayWithRange is a Function -ok 567 — Initializes an array containing the numbers in the specified range - -# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js - -ok 568 — initializeArrayWithRangeRight is a Function - -# PASS test/sortCharactersInString/sortCharactersInString.test.js - -ok 569 — sortCharactersInString is a Function -ok 570 — Alphabetically sorts the characters in a string. - -# PASS test/sumPower/sumPower.test.js - -ok 571 — sumPower is a Function -ok 572 — Returns the sum of the powers of all the numbers from start to end -ok 573 — Returns the sum of the powers of all the numbers from start to end -ok 574 — Returns the sum of the powers of all the numbers from start to end - -# PASS test/forEachRight/forEachRight.test.js - -ok 575 — forEachRight is a Function -ok 576 — Iterates over the array in reverse - -# PASS test/JSONToDate/JSONToDate.test.js - -ok 577 — JSONToDate is a Function - -# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js - -ok 578 — symmetricDifferenceWith is a Function -ok 579 — Returns the symmetric difference between two arrays, using a provided function as a comparator - -# PASS test/ary/ary.test.js - -ok 580 — ary is a Function -ok 581 — Discards arguments with index >=n - -# PASS test/unzipWith/unzipWith.test.js - -ok 582 — unzipWith is a Function -ok 583 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] - -# PASS test/gcd/gcd.test.js - -ok 584 — gcd is a Function -ok 585 — Calculates the greatest common divisor between two or more numbers/arrays -ok 586 — Calculates the greatest common divisor between two or more numbers/arrays - -# PASS test/transform/transform.test.js - -ok 587 — transform is a Function -ok 588 — Transforms an object - -# PASS test/elo/elo.test.js - -ok 589 — elo is a Function -ok 590 — Standard 1v1s -ok 591 — Standard 1v1s -ok 592 — 4 player FFA, all same rank - -# PASS test/nthArg/nthArg.test.js - -ok 593 — nthArg is a Function -ok 594 — Returns the nth argument -ok 595 — Returns undefined if arguments too few -ok 596 — Works for negative values - -# PASS test/isDivisible/isDivisible.test.js - -ok 597 — isDivisible is a Function -ok 598 — The number 6 is divisible by 3 - -# PASS test/takeRightWhile/takeRightWhile.test.js - -ok 599 — takeRightWhile is a Function -ok 600 — Removes elements until the function returns true - -# PASS test/takeRight/takeRight.test.js - -ok 601 — takeRight is a Function -ok 602 — Returns an array with n elements removed from the end -ok 603 — Returns an array with n elements removed from the end - -# PASS test/isTypedArray/isTypedArray.test.js - -ok 604 — isTypedArray is a Function - -# PASS test/memoize/memoize.test.js - -ok 605 — memoize is a Function -ok 606 — Function works properly -ok 607 — Function works properly -ok 608 — Cache stores values - -# PASS test/bifurcate/bifurcate.test.js - -ok 609 — bifurcate is a Function -ok 610 — Splits the collection into two groups - -# PASS test/coalesce/coalesce.test.js - -ok 611 — coalesce is a Function -ok 612 — Returns the first non-null/undefined argument - -# PASS test/coalesceFactory/coalesceFactory.test.js - -ok 613 — coalesceFactory is a Function -ok 614 — Returns a customized coalesce function - -# PASS test/collatz/collatz.test.js - -ok 615 — collatz is a Function -ok 616 — When n is even, divide by 2 -ok 617 — When n is odd, times by 3 and add 1 -ok 618 — Eventually reaches 1 - -# PASS test/powerset/powerset.test.js - -ok 619 — powerset is a Function -ok 620 — Returns the powerset of a given array of numbers. - -# PASS test/isSet/isSet.test.js - -ok 621 — isSet is a Function - -# PASS test/httpGet/httpGet.test.js - -ok 622 — httpGet is a Function - -# PASS test/smoothScroll/smoothScroll.test.js - -ok 623 — smoothScroll is a Function - -# PASS test/pipeFunctions/pipeFunctions.test.js - -ok 624 — pipeFunctions is a Function -ok 625 — Performs left-to-right function composition - -# PASS test/httpDelete/httpDelete.test.js - -ok 626 — httpDelete is a Function - -# PASS test/isWeakMap/isWeakMap.test.js - -ok 627 — isWeakMap is a Function - -# PASS test/timeTaken/timeTaken.test.js - -ok 628 — timeTaken is a Function - -# PASS test/isBrowser/isBrowser.test.js - -ok 629 — isBrowser is a Function - -# PASS test/isArmstrongNumber/isArmstrongNumber.test.js - -ok 630 — isArmstrongNumber is a Function - -# PASS test/fromCamelCase/fromCamelCase.test.js - -ok 631 — fromCamelCase is a Function -ok 632 — Converts a string from camelcase -ok 633 — Converts a string from camelcase -ok 634 — Converts a string from camelcase - -# PASS test/everyNth/everyNth.test.js - -ok 635 — everyNth is a Function -ok 636 — Returns every nth element in an array - -# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js - -ok 637 — getMeridiemSuffixOfInteger is a Function - -# PASS test/httpsRedirect/httpsRedirect.test.js - -ok 638 — httpsRedirect is a Function - -# PASS test/isRegExp/isRegExp.test.js - -ok 639 — isRegExp is a Function - -# PASS test/binomialCoefficient/binomialCoefficient.test.js - -ok 640 — binomialCoefficient is a Function -ok 641 — Returns the appropriate value -ok 642 — Returns the appropriate value -ok 643 — Returns the appropriate value -ok 644 — Returns NaN -ok 645 — Returns NaN - -# PASS test/toHash/toHash.test.js - -ok 646 — toHash is a Function - -# PASS test/unzip/unzip.test.js - -ok 647 — unzip is a Function -ok 648 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] -ok 649 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] - -# PASS test/intersectionBy/intersectionBy.test.js - -ok 650 — intersectionBy is a Function -ok 651 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both - -# PASS test/xProd/xProd.test.js - -ok 652 — xProd is a Function -ok 653 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] - -# PASS test/pullBy/pullBy.test.js - -ok 654 — pullBy is a Function -ok 655 — Pulls the specified values - -# PASS test/findLastIndex/findLastIndex.test.js - -ok 656 — findLastIndex is a Function -ok 657 — Finds last index for which the given function returns true - -# PASS test/pad/pad.test.js - -ok 658 — pad is a Function -ok 659 — cat is padded on both sides -ok 660 — length of string is 8 -ok 661 — pads 42 with "0" -ok 662 — does not truncates if string exceeds length - -# PASS test/factors/factors.test.js - -ok 663 — factors is a Function - -# PASS test/nodeListToArray/nodeListToArray.test.js - -ok 664 — nodeListToArray is a Function - -# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js - -ok 665 — capitalizeEveryWord is a Function -ok 666 — Capitalizes the first letter of every word in a string -ok 667 — Works with characters -ok 668 — Works with one word string - -# PASS test/deepFlatten/deepFlatten.test.js - -ok 669 — deepFlatten is a Function -ok 670 — Deep flattens an array - -# PASS test/byteSize/byteSize.test.js - -ok 671 — byteSize is a Function -ok 672 — Works for a single letter -ok 673 — Works for a common string -ok 674 — Works for emoji - -# PASS test/matches/matches.test.js - -ok 675 — matches is a Function -ok 676 — Matches returns true for two similar objects -ok 677 — Matches returns false for two non-similar objects - -# PASS test/union/union.test.js - -ok 678 — union is a Function -ok 679 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] -ok 680 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] -ok 681 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] -ok 682 — union([], []) returns [] -ok 683 — union() throws an error -ok 684 — union(true, 'str') throws an error -ok 685 — union('false', true) throws an error -ok 686 — union((123, {}) throws an error -ok 687 — union([], {}) throws an error -ok 688 — union(undefined, null) throws an error -ok 689 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run - -# PASS test/promisify/promisify.test.js - -ok 690 — promisify is a Function -ok 691 — Returns a promise -ok 692 — Runs the function provided - -# PASS test/runPromisesInSeries/runPromisesInSeries.test.js - -ok 693 — runPromisesInSeries is a Function -ok 694 — Runs promises in series - -# PASS test/reduceSuccessive/reduceSuccessive.test.js - -ok 695 — reduceSuccessive is a Function -ok 696 — Returns the array of successively reduced values - -# PASS test/levenshteinDistance/levenshteinDistance.test.js - -ok 697 — levenshteinDistance is a Function - -# PASS test/readFileLines/readFileLines.test.js - -ok 698 — readFileLines is a Function - -# PASS test/hashNode/hashNode.test.js - -ok 699 — hashNode is a Function -ok 700 — Produces the appropriate hash - -# PASS test/dropRight/dropRight.test.js - -ok 701 — dropRight is a Function -ok 702 — Returns a new array with n elements removed from the right -ok 703 — Returns a new array with n elements removed from the right -ok 704 — Returns a new array with n elements removed from the right - -# PASS test/call/call.test.js - -ok 705 — call is a Function -ok 706 — Calls function on given object - -# PASS test/shallowClone/shallowClone.test.js - -ok 707 — shallowClone is a Function -ok 708 — Shallow cloning works -ok 709 — Does not clone deeply - -# PASS test/cleanObj/cleanObj.test.js - -ok 710 — cleanObj is a Function -ok 711 — Removes any properties except the ones specified from a JSON object - -# PASS test/defaults/defaults.test.js - -ok 712 — defaults is a Function -ok 713 — Assigns default values for undefined properties - -# PASS test/hide/hide.test.js - -ok 714 — hide is a Function - -# PASS test/counter/counter.test.js - -ok 715 — counter is a Function - -# PASS test/splitLines/splitLines.test.js - -ok 716 — splitLines is a Function -ok 717 — Splits a multiline string into an array of lines. - -# PASS test/debounce/debounce.test.js - -ok 718 — debounce is a Function -ok 719 — Works as expected - -# PASS test/insertAfter/insertAfter.test.js - -ok 720 — insertAfter is a Function - -# PASS test/castArray/castArray.test.js - -ok 721 — castArray is a Function -ok 722 — Works for single values -ok 723 — Works for arrays with one value -ok 724 — Works for arrays with multiple value -ok 725 — Works for strings -ok 726 — Works for objects - -# PASS test/insertBefore/insertBefore.test.js - -ok 727 — insertBefore is a Function - -# PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js - -ok 728 — symmetricDifferenceBy is a Function -ok 729 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both - -# PASS test/difference/difference.test.js - -ok 730 — difference is a Function -ok 731 — Returns the difference between two arrays - -# PASS test/getType/getType.test.js - -ok 732 — getType is a Function -ok 733 — Returns the native type of a value - -# PASS test/isPlainObject/isPlainObject.test.js - -ok 734 — isPlainObject is a Function -ok 735 — Returns true for a plain object -ok 736 — Returns false for a Map (example of non-plain object) - -# PASS test/mapObject/mapObject.test.js - -ok 737 — mapObject is a Function -ok 738 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } -ok 739 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } -ok 740 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } - -# PASS test/triggerEvent/triggerEvent.test.js - -ok 741 — triggerEvent is a Function - -# PASS test/createEventHub/createEventHub.test.js - -ok 742 — createEventHub is a Function - -# PASS test/decapitalize/decapitalize.test.js - -ok 743 — decapitalize is a Function -ok 744 — Works with default parameter -ok 745 — Works with second parameter set to true - -# PASS test/isObject/isObject.test.js - -ok 746 — isObject is a Function -ok 747 — isObject([1, 2, 3, 4]) is a object -ok 748 — isObject([]) is a object -ok 749 — isObject({ a:1 }) is a object -ok 750 — isObject(true) is not a object - -# PASS test/countBy/countBy.test.js - -ok 751 — countBy is a Function -ok 752 — Works for functions -ok 753 — Works for property names - -# PASS test/partition/partition.test.js - -ok 754 — partition is a Function -ok 755 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. - -# PASS test/invertKeyValues/invertKeyValues.test.js - -ok 756 — invertKeyValues is a Function -ok 757 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } -ok 758 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } - -# PASS test/bindKey/bindKey.test.js - -ok 759 — bindKey is a Function -ok 760 — Binds function to an object context - -# PASS test/recordAnimationFrames/recordAnimationFrames.test.js - -ok 761 — recordAnimationFrames is a Function - -# PASS test/formatDuration/formatDuration.test.js - -ok 762 — formatDuration is a Function -ok 763 — Returns the human readable format of the given number of milliseconds -ok 764 — Returns the human readable format of the given number of milliseconds - -# PASS test/percentile/percentile.test.js - -ok 765 — percentile is a Function -ok 766 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. - -# PASS test/isArrayLike/isArrayLike.test.js - -ok 767 — isArrayLike is a Function -ok 768 — Returns true for a string -ok 769 — Returns true for an array -ok 770 — Returns false for null - -# PASS test/over/over.test.js - -ok 771 — over is a Function -ok 772 — Applies given functions over multiple arguments - -# PASS test/initialize2DArray/initialize2DArray.test.js - -ok 773 — initialize2DArray is a Function -ok 774 — Initializes a 2D array of given width and height and value - -# PASS test/times/times.test.js - -ok 775 — times is a Function -ok 776 — Runs a function the specified amount of times - -# PASS test/isWeakSet/isWeakSet.test.js - -ok 777 — isWeakSet is a Function +ok 561 — none is a Function +ok 562 — Returns true for arrays with no truthy values +ok 563 — Returns false for arrays with at least one truthy value +ok 564 — Returns true with a predicate function +ok 565 — Returns false with predicate function # PASS test/isSimilar/isSimilar.test.js -ok 778 — isSimilar is a Function - -# PASS test/randomNumberInRange/randomNumberInRange.test.js - -ok 779 — randomNumberInRange is a Function -ok 780 — The returned value is a number -ok 781 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/indexOfAll/indexOfAll.test.js - -ok 782 — indexOfAll is a Function -ok 783 — Returns all indices of val in an array -ok 784 — Returns all indices of val in an array - -# PASS test/sample/sample.test.js - -ok 785 — sample is a Function -ok 786 — Returns a random element from the array -ok 787 — Works for single-element arrays -ok 788 — Returns undefined for empty array - -# PASS test/mapValues/mapValues.test.js - -ok 789 — mapValues is a Function -ok 790 — Maps values - -# PASS test/bindAll/bindAll.test.js - -ok 791 — bindAll is a Function -ok 792 — Binds to an object context - -# PASS test/prefix/prefix.test.js - -ok 793 — prefix is a Function - -# PASS test/bind/bind.test.js - -ok 794 — bind is a Function -ok 795 — Binds to an object context - -# PASS test/hexToRGB/hexToRGB.test.js - -ok 796 — hexToRGB is a Function -ok 797 — Converts a color code to a rgb() or rgba() string -ok 798 — Converts a color code to a rgb() or rgba() string -ok 799 — Converts a color code to a rgb() or rgba() string - -# PASS test/nest/nest.test.js - -ok 800 — nest is a Function - -# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js - -ok 801 — UUIDGeneratorNode is a Function -ok 802 — Contains dashes in the proper places -ok 803 — Only contains hexadecimal digits - -# PASS test/averageBy/averageBy.test.js - -ok 804 — averageBy is a Function -ok 805 — Produces the right result with a function -ok 806 — Produces the right result with a property name - -# PASS test/overArgs/overArgs.test.js - -ok 807 — overArgs is a Function -ok 808 — Invokes the provided function with its arguments transformed - -# PASS test/defer/defer.test.js - -ok 809 — defer is a Function - -# PASS test/reverseString/reverseString.test.js - -ok 810 — reverseString is a Function -ok 811 — Reverses a string. - -# PASS test/hasFlags/hasFlags.test.js - -ok 812 — hasFlags is a Function - -# PASS test/copyToClipboard/copyToClipboard.test.js - -ok 813 — copyToClipboard is a Function - -# PASS test/speechSynthesis/speechSynthesis.test.js - -ok 814 — speechSynthesis is a Function - -# PASS test/bifurcateBy/bifurcateBy.test.js - -ok 815 — bifurcateBy is a Function -ok 816 — Splits the collection into two groups - -# PASS test/removeNonASCII/removeNonASCII.test.js - -ok 817 — removeNonASCII is a Function -ok 818 — Removes non-ASCII characters - -# PASS test/sum/sum.test.js - -ok 819 — sum is a Function -ok 820 — Returns the sum of two or more numbers/arrays. - -# PASS test/observeMutations/observeMutations.test.js - -ok 821 — observeMutations is a Function - -# PASS test/stripHTMLTags/stripHTMLTags.test.js - -ok 822 — stripHTMLTags is a Function -ok 823 — Removes HTML tags - -# PASS test/initial/initial.test.js - -ok 824 — initial is a Function -ok 825 — Returns all the elements of an array except the last one - -# PASS test/flatten/flatten.test.js - -ok 826 — flatten is a Function -ok 827 — Flattens an array -ok 828 — Flattens an array - -# PASS test/renameKeys/renameKeys.test.js - -ok 829 — renameKeys is a Function -ok 830 — renameKeys is a Function - -# PASS test/minN/minN.test.js - -ok 831 — minN is a Function -ok 832 — Returns the n minimum elements from the provided array -ok 833 — Returns the n minimum elements from the provided array - -# PASS test/lowercaseKeys/lowercaseKeys.test.js - -ok 834 — lowercaseKeys is a Function -ok 835 — Lowercases object keys -ok 836 — Does not mutate original object - -# PASS test/truthCheckCollection/truthCheckCollection.test.js - -ok 837 — truthCheckCollection is a Function -ok 838 — second argument is truthy on all elements of a collection - -# PASS test/JSONToFile/JSONToFile.test.js - -ok 839 — JSONToFile is a Function - -# PASS test/currentURL/currentURL.test.js - -ok 840 — currentURL is a Function - -# PASS test/isPromiseLike/isPromiseLike.test.js - -ok 841 — isPromiseLike is a Function -ok 842 — Returns true for a promise-like object -ok 843 — Returns false for an empty object - -# 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/JSONtoCSV/JSONtoCSV.test.js - -ok 846 — JSONtoCSV is a Function -ok 847 — JSONtoCSV works with default delimiter -ok 848 — JSONtoCSV works with custom delimiter - -# PASS test/unary/unary.test.js - -ok 849 — unary is a Function -ok 850 — Discards arguments after the first one - -# PASS test/scrollToTop/scrollToTop.test.js - -ok 851 — scrollToTop is a Function - -# PASS test/sortedLastIndex/sortedLastIndex.test.js - -ok 852 — sortedLastIndex is a Function -ok 853 — Returns the highest index to insert the element without messing up the list order - -# PASS test/parseCookie/parseCookie.test.js - -ok 854 — parseCookie is a Function -ok 855 — Parses the cookie - -# PASS test/binarySearch/binarySearch.test.js - -ok 856 — binarySearch is a Function -ok 857 — Finds item in array -ok 858 — Returns -1 when not found -ok 859 — Works with empty arrays -ok 860 — Works for one element arrays - -# PASS test/inRange/inRange.test.js - -ok 861 — inRange is a Function -ok 862 — The given number falls within the given range -ok 863 — The given number falls within the given range -ok 864 — The given number does not falls within the given range -ok 865 — The given number does not falls within the given range - -# PASS test/bottomVisible/bottomVisible.test.js - -ok 866 — bottomVisible is a Function - -# PASS test/median/median.test.js - -ok 867 — median is a Function -ok 868 — Returns the median of an array of numbers -ok 869 — Returns the median of an array of numbers - -# PASS test/maxN/maxN.test.js - -ok 870 — maxN is a Function -ok 871 — Returns the n maximum elements from the provided array -ok 872 — Returns the n maximum elements from the provided array - -# PASS test/stableSort/stableSort.test.js - -ok 873 — stableSort is a Function -ok 874 — Array is properly sorted - -# PASS test/flip/flip.test.js - -ok 875 — flip is a Function -ok 876 — Flips argument order - -# PASS test/lcm/lcm.test.js - -ok 877 — lcm is a Function -ok 878 — Returns the least common multiple of two or more numbers. -ok 879 — Returns the least common multiple of two or more numbers. - -# PASS test/join/join.test.js - -ok 880 — join is a Function -ok 881 — Joins all elements of an array into a string and returns this string -ok 882 — Joins all elements of an array into a string and returns this string -ok 883 — Joins all elements of an array into a string and returns this string - -# PASS test/unescapeHTML/unescapeHTML.test.js - -ok 884 — unescapeHTML is a Function -ok 885 — Unescapes escaped HTML characters. - -# PASS test/mostPerformant/mostPerformant.test.js - -ok 886 — mostPerformant is a Function - -# PASS test/pullAtIndex/pullAtIndex.test.js - -ok 887 — pullAtIndex is a Function -ok 888 — Pulls the given values -ok 889 — Pulls the given values - -# PASS test/getURLParameters/getURLParameters.test.js - -ok 890 — getURLParameters is a Function -ok 891 — Returns an object containing the parameters of the current URL - -# PASS test/digitize/digitize.test.js - -ok 892 — digitize is a Function -ok 893 — Converts a number to an array of digits - -# PASS test/luhnCheck/luhnCheck.test.js - -ok 894 — luhnCheck is a Function -ok 895 — validates identification number -ok 896 — validates identification number -ok 897 — validates identification number - -# PASS test/longestItem/longestItem.test.js - -ok 898 — longestItem is a Function -ok 899 — Returns the longest object - -# PASS test/pickBy/pickBy.test.js - -ok 900 — pickBy is a Function -ok 901 — Creates an object composed of the properties the given function returns truthy for. - -# PASS test/negate/negate.test.js - -ok 902 — negate is a Function -ok 903 — Negates a predicate function - -# PASS test/zipWith/zipWith.test.js - -ok 904 — zipWith is a Function - -# PASS test/countVowels/countVowels.test.js - -ok 905 — countVowels is a Function - -# PASS test/on/on.test.js - -ok 906 — on is a Function - -# PASS test/sleep/sleep.test.js - -ok 907 — sleep is a Function -ok 908 — Works as expected - -# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js - -ok 909 — fibonacciCountUntilNum is a Function - -# PASS test/isFunction/isFunction.test.js - -ok 910 — isFunction is a Function -ok 911 — passed value is a function -ok 912 — passed value is not a function - -# PASS test/factorial/factorial.test.js - -ok 913 — factorial is a Function -ok 914 — Calculates the factorial of 720 -ok 915 — Calculates the factorial of 0 -ok 916 — Calculates the factorial of 1 -ok 917 — Calculates the factorial of 4 -ok 918 — Calculates the factorial of 10 - -# PASS test/dropWhile/dropWhile.test.js - -ok 919 — dropWhile is a Function -ok 920 — Removes elements in an array until the passed function returns true. - -# PASS test/permutations/permutations.test.js - -ok 921 — permutations is a Function -ok 922 — Generates all permutations of an array - -# PASS test/converge/converge.test.js - -ok 923 — converge is a Function -ok 924 — Produces the average of the array -ok 925 — Produces the strange concatenation - -# PASS test/toggleClass/toggleClass.test.js - -ok 926 — toggleClass is a Function - -# PASS test/standardDeviation/standardDeviation.test.js - -ok 927 — standardDeviation is a Function -ok 928 — Returns the standard deviation of an array of numbers -ok 929 — Returns the standard deviation of an array of numbers - -# PASS test/hz/hz.test.js - -ok 930 — hz is a Function - -# PASS test/extendHex/extendHex.test.js - -ok 931 — extendHex is a Function -ok 932 — Extends a 3-digit color code to a 6-digit color code -ok 933 — Extends a 3-digit color code to a 6-digit color code - -# PASS test/onUserInputChange/onUserInputChange.test.js - -ok 934 — onUserInputChange is a Function +ok 566 — isSimilar is a Function # PASS test/arrayToHtmlList/arrayToHtmlList.test.js -ok 935 — arrayToHtmlList is a Function +ok 567 — arrayToHtmlList is a Function -# PASS test/pick/pick.test.js +# PASS test/bifurcateBy/bifurcateBy.test.js -ok 936 — pick is a Function -ok 937 — Picks the key-value pairs corresponding to the given keys from an object. +ok 568 — bifurcateBy is a Function +ok 569 — Splits the collection into two groups -# PASS test/forOwn/forOwn.test.js +# PASS test/CSVToArray/CSVToArray.test.js -ok 938 — forOwn is a Function -ok 939 — Iterates over an element's key-value pairs +ok 570 — CSVToArray is a Function +ok 571 — CSVToArray works with default delimiter +ok 572 — CSVToArray works with custom delimiter +ok 573 — CSVToArray omits the first row +ok 574 — CSVToArray omits the first row and works with a custom delimiter -# PASS test/spreadOver/spreadOver.test.js +# PASS test/cleanObj/cleanObj.test.js -ok 940 — spreadOver is a Function -ok 941 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. +ok 575 — cleanObj is a Function +ok 576 — Removes any properties except the ones specified from a JSON object -# PASS test/createElement/createElement.test.js +# PASS test/isTypedArray/isTypedArray.test.js -ok 942 — createElement is a Function +ok 577 — isTypedArray is a Function # PASS test/pluralize/pluralize.test.js -ok 943 — pluralize is a Function -ok 944 — Produces the plural of the word -ok 945 — Produces the singular of the word -ok 946 — Produces the plural of the word -ok 947 — Prodices the defined plural of the word -ok 948 — Works with a dictionary +ok 578 — pluralize is a Function +ok 579 — Produces the plural of the word +ok 580 — Produces the singular of the word +ok 581 — Produces the plural of the word +ok 582 — Prodices the defined plural of the word +ok 583 — Works with a dictionary -# PASS test/httpPost/httpPost.test.js +# PASS test/bindAll/bindAll.test.js -ok 949 — httpPost is a Function +ok 584 — bindAll is a Function +ok 585 — Binds to an object context -# PASS test/functions/functions.test.js +# PASS test/capitalize/capitalize.test.js -ok 950 — functions is a Function -ok 951 — Returns own methods -ok 952 — Returns own and inherited methods +ok 586 — capitalize is a Function +ok 587 — Capitalizes the first letter of a string +ok 588 — Capitalizes the first letter of a string +ok 589 — Works with characters +ok 590 — "Works with single character words -# PASS test/untildify/untildify.test.js +# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js -ok 953 — untildify is a Function -ok 954 — Contains no tildes -ok 955 — Does not alter the rest of the path -ok 956 — Does not alter paths without tildes +ok 591 — getMeridiemSuffixOfInteger is a Function -# PASS test/functionName/functionName.test.js +# PASS test/lowercaseKeys/lowercaseKeys.test.js -ok 957 — functionName is a Function -ok 958 — Works for native functions -ok 959 — Works for functions -ok 960 — Works for arrow functions +ok 592 — lowercaseKeys is a Function +ok 593 — Lowercases object keys +ok 594 — Does not mutate original object -# PASS test/httpPut/httpPut.test.js +# PASS test/pullAtIndex/pullAtIndex.test.js -ok 961 — httpPut is a Function +ok 595 — pullAtIndex is a Function +ok 596 — Pulls the given values +ok 597 — Pulls the given values -# PASS test/reject/reject.test.js +# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js -ok 962 — reject is a Function -ok 963 — Works with numbers -ok 964 — Works with strings +ok 598 — isBrowserTabFocused is a Function -# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js +# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js -ok 965 — getColonTimeFromDate is a Function +ok 599 — fibonacciCountUntilNum is a Function -# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js +# PASS test/isEmpty/isEmpty.test.js -ok 966 — initializeArrayWithValues is a Function -ok 967 — Initializes and fills an array with the specified values +ok 600 — isEmpty is a Function +ok 601 — Returns true for empty Map +ok 602 — Returns true for empty Set +ok 603 — Returns true for empty array +ok 604 — Returns true for empty object +ok 605 — Returns true for empty string +ok 606 — Returns false for non-empty array +ok 607 — Returns false for non-empty object +ok 608 — Returns false for non-empty string +ok 609 — Returns true - type is not considered a collection +ok 610 — Returns true - type is not considered a collection -# PASS test/shuffle/shuffle.test.js +# PASS test/isTravisCI/isTravisCI.test.js -ok 968 — shuffle is a Function -ok 969 — Shuffles the array -ok 970 — New array contains all original elements -ok 971 — Works for empty arrays -ok 972 — Works for single-element arrays +ok 611 — isTravisCI is a Function +ok 612 — Not running on Travis, correctly evaluates -# PASS test/escapeHTML/escapeHTML.test.js +# PASS test/truthCheckCollection/truthCheckCollection.test.js -ok 973 — escapeHTML is a Function -ok 974 — Escapes a string for use in HTML - -# PASS test/nthElement/nthElement.test.js - -ok 975 — nthElement is a Function -ok 976 — Returns the nth element of an array. -ok 977 — Returns the nth element of an array. - -# PASS test/objectToPairs/objectToPairs.test.js - -ok 978 — objectToPairs is a Function -ok 979 — Creates an array of key-value pair arrays from an object. +ok 613 — truthCheckCollection is a Function +ok 614 — second argument is truthy on all elements of a collection # PASS test/dropRightWhile/dropRightWhile.test.js -ok 980 — dropRightWhile is a Function -ok 981 — Removes elements from the end of an array until the passed function returns true. +ok 615 — dropRightWhile is a Function +ok 616 — Removes elements from the end of an array until the passed function returns true. -# PASS test/geometricProgression/geometricProgression.test.js +# PASS test/colorize/colorize.test.js -ok 982 — geometricProgression is a Function -ok 983 — Initializes an array containing the numbers in the specified range -ok 984 — Initializes an array containing the numbers in the specified range -ok 985 — Initializes an array containing the numbers in the specified range +ok 617 — colorize is a Function -# PASS test/take/take.test.js +# PASS test/chainAsync/chainAsync.test.js -ok 986 — take is a Function -ok 987 — Returns an array with n elements removed from the beginning. -ok 988 — Returns an array with n elements removed from the beginning. +ok 618 — chainAsync is a Function +ok 619 — Calls all functions in an array -# PASS test/tail/tail.test.js +# PASS test/negate/negate.test.js -ok 989 — tail is a Function -ok 990 — Returns tail -ok 991 — Returns tail +ok 620 — negate is a Function +ok 621 — Negates a predicate function -# PASS test/isObjectLike/isObjectLike.test.js +# PASS test/functions/functions.test.js -ok 992 — isObjectLike is a Function -ok 993 — Returns true for an object -ok 994 — Returns true for an array -ok 995 — Returns false for a function -ok 996 — Returns false for null +ok 622 — functions is a Function +ok 623 — Returns own methods +ok 624 — Returns own and inherited methods + +# PASS test/isPrimitive/isPrimitive.test.js + +ok 625 — isPrimitive is a Function +ok 626 — isPrimitive(null) is primitive +ok 627 — isPrimitive(undefined) is primitive +ok 628 — isPrimitive(string) is primitive +ok 629 — isPrimitive(true) is primitive +ok 630 — isPrimitive(50) is primitive +ok 631 — isPrimitive('Hello') is primitive +ok 632 — isPrimitive(false) is primitive +ok 633 — isPrimitive(Symbol()) is primitive +ok 634 — isPrimitive([1, 2, 3]) is not primitive +ok 635 — isPrimitive({ a: 123 }) is not primitive +ok 636 — isPrimitive({ a: 123 }) takes less than 2s to run + +# PASS test/initial/initial.test.js + +ok 637 — initial is a Function +ok 638 — Returns all the elements of an array except the last one + +# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js + +ok 639 — getColonTimeFromDate is a Function + +# PASS test/unzip/unzip.test.js + +ok 640 — unzip is a Function +ok 641 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 642 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] + +# PASS test/intersection/intersection.test.js + +ok 643 — intersection is a Function +ok 644 — Returns a list of elements that exist in both arrays + +# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js + +ok 645 — UUIDGeneratorNode is a Function +ok 646 — Contains dashes in the proper places +ok 647 — Only contains hexadecimal digits + +# PASS test/reduceWhich/reduceWhich.test.js + +ok 648 — reduceWhich is a Function +ok 649 — Returns the minimum of an array +ok 650 — Returns the maximum of an array +ok 651 — Returns the object with the minimum specified value in an array + +# PASS test/sortedIndexBy/sortedIndexBy.test.js + +ok 652 — sortedIndexBy is a Function +ok 653 — Returns the lowest index to insert the element without messing up the list order + +# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js + +ok 654 — randomIntArrayInRange is a Function +ok 655 — The returned array contains only integers +ok 656 — The returned array has the proper length +ok 657 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/deepFlatten/deepFlatten.test.js + +ok 658 — deepFlatten is a Function +ok 659 — Deep flattens an array + +# PASS test/escapeRegExp/escapeRegExp.test.js + +ok 660 — escapeRegExp is a Function +ok 661 — Escapes a string to use in a regular expression + +# PASS test/countVowels/countVowels.test.js + +ok 662 — countVowels is a Function + +# PASS test/unionBy/unionBy.test.js + +ok 663 — unionBy is a Function +ok 664 — Produces the appropriate results + +# PASS test/findKey/findKey.test.js + +ok 665 — findKey is a Function +ok 666 — Returns the appropriate key + +# PASS test/findLastIndex/findLastIndex.test.js + +ok 667 — findLastIndex is a Function +ok 668 — Finds last index for which the given function returns true + +# PASS test/shuffle/shuffle.test.js + +ok 669 — shuffle is a Function +ok 670 — Shuffles the array +ok 671 — New array contains all original elements +ok 672 — Works for empty arrays +ok 673 — Works for single-element arrays + +# PASS test/attempt/attempt.test.js + +ok 674 — attempt is a Function +ok 675 — Returns a value +ok 676 — Returns an error + +# PASS test/drop/drop.test.js + +ok 677 — drop is a Function +ok 678 — Works without the last argument +ok 679 — Removes appropriate element count as specified +ok 680 — Empties array given a count greater than length + +# PASS test/forOwnRight/forOwnRight.test.js + +ok 681 — forOwnRight is a Function +ok 682 — Iterates over an element's key-value pairs in reverse + +# PASS test/flip/flip.test.js + +ok 683 — flip is a Function +ok 684 — Flips argument order + +# PASS test/when/when.test.js + +ok 685 — when is a Function +ok 686 — Returns the proper result +ok 687 — Returns the proper result + +# PASS test/readFileLines/readFileLines.test.js + +ok 688 — readFileLines is a Function + +# PASS test/createElement/createElement.test.js + +ok 689 — createElement is a Function + +# PASS test/renameKeys/renameKeys.test.js + +ok 690 — renameKeys is a Function +ok 691 — renameKeys is a Function + +# PASS test/coalesceFactory/coalesceFactory.test.js + +ok 692 — coalesceFactory is a Function +ok 693 — Returns a customized coalesce function + +# PASS test/onUserInputChange/onUserInputChange.test.js + +ok 694 — onUserInputChange is a Function + +# PASS test/reject/reject.test.js + +ok 695 — reject is a Function +ok 696 — Works with numbers +ok 697 — Works with strings + +# PASS test/isMap/isMap.test.js + +ok 698 — isMap is a Function + +# PASS test/reduceSuccessive/reduceSuccessive.test.js + +ok 699 — reduceSuccessive is a Function +ok 700 — Returns the array of successively reduced values + +# PASS test/byteSize/byteSize.test.js + +ok 701 — byteSize is a Function +ok 702 — Works for a single letter +ok 703 — Works for a common string +ok 704 — Works for emoji + +# PASS test/omitBy/omitBy.test.js + +ok 705 — omitBy is a Function +ok 706 — Creates an object composed of the properties the given function returns falsey for + +# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js + +ok 707 — elementIsVisibleInViewport is a Function + +# PASS test/objectToPairs/objectToPairs.test.js + +ok 708 — objectToPairs is a Function +ok 709 — Creates an array of key-value pair arrays from an object. + +# PASS test/isFunction/isFunction.test.js + +ok 710 — isFunction is a Function +ok 711 — passed value is a function +ok 712 — passed value is not a function + +# PASS test/httpDelete/httpDelete.test.js + +ok 713 — httpDelete is a Function + +# PASS test/bifurcate/bifurcate.test.js + +ok 714 — bifurcate is a Function +ok 715 — Splits the collection into two groups + +# PASS test/equals/equals.test.js + +ok 716 — equals is a Function +ok 717 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 718 — [1,2,3] is equal to [1,2,3] +ok 719 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 720 — [1,2,3] is not equal to [1,2,4] +ok 721 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. + +# PASS test/compact/compact.test.js + +ok 722 — compact is a Function +ok 723 — Removes falsey values from an array + +# PASS test/uncurry/uncurry.test.js + +ok 724 — uncurry is a Function +ok 725 — Works without a provided value for n +ok 726 — Works with n = 2 +ok 727 — Works with n = 3 + +# PASS test/sleep/sleep.test.js + +ok 728 — sleep is a Function +ok 729 — Works as expected + +# PASS test/scrollToTop/scrollToTop.test.js + +ok 730 — scrollToTop is a Function + +# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js + +ok 731 — initializeArrayWithRangeRight is a Function + +# PASS test/triggerEvent/triggerEvent.test.js + +ok 732 — triggerEvent is a Function + +# PASS test/toggleClass/toggleClass.test.js + +ok 733 — toggleClass is a Function + +# PASS test/forOwn/forOwn.test.js + +ok 734 — forOwn is a Function +ok 735 — Iterates over an element's key-value pairs + +# PASS test/hammingDistance/hammingDistance.test.js + +ok 736 — hammingDistance is a Function +ok 737 — retuns hamming disance between 2 values + +# PASS test/isString/isString.test.js + +ok 738 — isString is a Function +ok 739 — foo is a string +ok 740 — "10" is a string +ok 741 — Empty string is a string +ok 742 — 10 is not a string +ok 743 — true is not string + +# PASS test/parseCookie/parseCookie.test.js + +ok 744 — parseCookie is a Function +ok 745 — Parses the cookie # PASS test/btoa/btoa.test.js -ok 997 — btoa is a Function -ok 998 — btoa("foobar") equals "Zm9vYmFy" +ok 746 — btoa is a Function +ok 747 — btoa("foobar") equals "Zm9vYmFy" -# PASS test/size/size.test.js +# PASS test/partialRight/partialRight.test.js -ok 999 — size is a Function -ok 1000 — Get size of arrays, objects or strings. -ok 1001 — Get size of arrays, objects or strings. +ok 748 — partialRight is a Function +ok 749 — Appends arguments -# PASS test/howManyTimes/howManyTimes.test.js +# PASS test/takeRight/takeRight.test.js -ok 1002 — howManyTimes is a Function +ok 750 — takeRight is a Function +ok 751 — Returns an array with n elements removed from the end +ok 752 — Returns an array with n elements removed from the end -# PASS test/throttle/throttle.test.js +# PASS test/shallowClone/shallowClone.test.js -ok 1003 — throttle is a Function +ok 753 — shallowClone is a Function +ok 754 — Shallow cloning works +ok 755 — Does not clone deeply -# PASS test/setStyle/setStyle.test.js +# PASS test/pickBy/pickBy.test.js -ok 1004 — setStyle is a Function +ok 756 — pickBy is a Function +ok 757 — Creates an object composed of the properties the given function returns truthy for. -# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js +# PASS test/unfold/unfold.test.js -ok 1005 — UUIDGeneratorBrowser is a Function +ok 758 — unfold is a Function +ok 759 — Works with a given function, producing an array + +# PASS test/redirect/redirect.test.js + +ok 760 — redirect is a Function + +# PASS test/groupBy/groupBy.test.js + +ok 761 — groupBy is a Function +ok 762 — Groups the elements of an array based on the given function +ok 763 — Groups the elements of an array based on the given function + +# PASS test/maxN/maxN.test.js + +ok 764 — maxN is a Function +ok 765 — Returns the n maximum elements from the provided array +ok 766 — Returns the n maximum elements from the provided array + +# PASS test/partial/partial.test.js + +ok 767 — partial is a Function +ok 768 — Prepends arguments + +# PASS test/mapValues/mapValues.test.js + +ok 769 — mapValues is a Function +ok 770 — Maps values + +# PASS test/hexToRGB/hexToRGB.test.js + +ok 771 — hexToRGB is a Function +ok 772 — Converts a color code to a rgb() or rgba() string +ok 773 — Converts a color code to a rgb() or rgba() string +ok 774 — Converts a color code to a rgb() or rgba() string + +# PASS test/intersectionBy/intersectionBy.test.js + +ok 775 — intersectionBy is a Function +ok 776 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both + +# PASS test/hasFlags/hasFlags.test.js + +ok 777 — hasFlags is a Function + +# PASS test/stableSort/stableSort.test.js + +ok 778 — stableSort is a Function +ok 779 — Array is properly sorted + +# PASS test/randomNumberInRange/randomNumberInRange.test.js + +ok 780 — randomNumberInRange is a Function +ok 781 — The returned value is a number +ok 782 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/pull/pull.test.js + +ok 783 — pull is a Function +ok 784 — Pulls the specified values + +# PASS test/over/over.test.js + +ok 785 — over is a Function +ok 786 — Applies given functions over multiple arguments # PASS test/hasClass/hasClass.test.js -ok 1006 — hasClass is a Function +ok 787 — hasClass is a Function + +# PASS test/isLowerCase/isLowerCase.test.js + +ok 788 — isLowerCase is a Function +ok 789 — passed string is a lowercase +ok 790 — passed string is a lowercase +ok 791 — passed value is not a lowercase + +# PASS test/isSet/isSet.test.js + +ok 792 — isSet is a Function + +# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js + +ok 793 — getDaysDiffBetweenDates is a Function +ok 794 — Returns the difference in days between two dates + +# PASS test/sortedLastIndex/sortedLastIndex.test.js + +ok 795 — sortedLastIndex is a Function +ok 796 — Returns the highest index to insert the element without messing up the list order + +# PASS test/take/take.test.js + +ok 797 — take is a Function +ok 798 — Returns an array with n elements removed from the beginning. +ok 799 — Returns an array with n elements removed from the beginning. + +# PASS test/solveRPN/solveRPN.test.js + +ok 800 — solveRPN is a Function + +# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js + +ok 801 — pipeAsyncFunctions is a Function +ok 802 — pipeAsyncFunctions result should be 15 + +# PASS test/takeRightWhile/takeRightWhile.test.js + +ok 803 — takeRightWhile is a Function +ok 804 — Removes elements until the function returns true + +# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js + +ok 805 — initializeArrayWithValues is a Function +ok 806 — Initializes and fills an array with the specified values + +# PASS test/primes/primes.test.js + +ok 807 — primes is a Function +ok 808 — Generates primes up to a given number, using the Sieve of Eratosthenes. + +# PASS test/nthArg/nthArg.test.js + +ok 809 — nthArg is a Function +ok 810 — Returns the nth argument +ok 811 — Returns undefined if arguments too few +ok 812 — Works for negative values + +# PASS test/bottomVisible/bottomVisible.test.js + +ok 813 — bottomVisible is a Function + +# PASS test/objectFromPairs/objectFromPairs.test.js + +ok 814 — objectFromPairs is a Function +ok 815 — Creates an object from the given key-value pairs. + +# PASS test/pullAtValue/pullAtValue.test.js + +ok 816 — pullAtValue is a Function +ok 817 — Pulls the specified values +ok 818 — Pulls the specified values + +# PASS test/isObjectLike/isObjectLike.test.js + +ok 819 — isObjectLike is a Function +ok 820 — Returns true for an object +ok 821 — Returns true for an array +ok 822 — Returns false for a function +ok 823 — Returns false for null + +# PASS test/collectInto/collectInto.test.js + +ok 824 — collectInto is a Function +ok 825 — Works with multiple promises + +# PASS test/isEven/isEven.test.js + +ok 826 — isEven is a Function +ok 827 — 4 is even number +ok 828 — 5 is not an even number + +# PASS test/deepClone/deepClone.test.js + +ok 829 — deepClone is a Function +ok 830 — Shallow cloning works +ok 831 — Deep cloning works +ok 832 — Array shallow cloning works +ok 833 — Array deep cloning works + +# PASS test/copyToClipboard/copyToClipboard.test.js + +ok 834 — copyToClipboard is a Function + +# PASS test/isWeakMap/isWeakMap.test.js + +ok 835 — isWeakMap is a Function + +# PASS test/hashBrowser/hashBrowser.test.js + +ok 836 — hashBrowser is a Function + +# PASS test/stripHTMLTags/stripHTMLTags.test.js + +ok 837 — stripHTMLTags is a Function +ok 838 — Removes HTML tags + +# PASS test/speechSynthesis/speechSynthesis.test.js + +ok 839 — speechSynthesis is a Function + +# PASS test/formatDuration/formatDuration.test.js + +ok 840 — formatDuration is a Function +ok 841 — Returns the human readable format of the given number of milliseconds +ok 842 — Returns the human readable format of the given number of milliseconds + +# PASS test/findLastKey/findLastKey.test.js + +ok 843 — findLastKey is a Function +ok 844 — eturns the appropriate key + +# PASS test/isBrowser/isBrowser.test.js + +ok 845 — isBrowser is a Function + +# PASS test/getScrollPosition/getScrollPosition.test.js + +ok 846 — getScrollPosition is a Function + +# PASS test/elementContains/elementContains.test.js + +ok 847 — elementContains is a Function + +# PASS test/omit/omit.test.js + +ok 848 — omit is a Function +ok 849 — Omits the key-value pairs corresponding to the given keys from an object + +# PASS test/hashNode/hashNode.test.js + +ok 850 — hashNode is a Function +ok 851 — Produces the appropriate hash + +# PASS test/fibonacci/fibonacci.test.js + +ok 852 — fibonacci is a Function +ok 853 — Generates an array, containing the Fibonacci sequence + +# PASS test/minBy/minBy.test.js + +ok 854 — minBy is a Function +ok 855 — Produces the right result with a function +ok 856 — Produces the right result with a property name + +# PASS test/isUndefined/isUndefined.test.js + +ok 857 — isUndefined is a Function +ok 858 — Returns true for undefined + +# PASS test/curry/curry.test.js + +ok 859 — curry is a Function +ok 860 — curries a Math.pow +ok 861 — curries a Math.min + +# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js + +ok 862 — fibonacciUntilNum is a Function + +# PASS test/call/call.test.js + +ok 863 — call is a Function +ok 864 — Calls function on given object + +# PASS test/serializeCookie/serializeCookie.test.js + +ok 865 — serializeCookie is a Function +ok 866 — Serializes the cookie + +# PASS test/times/times.test.js + +ok 867 — times is a Function +ok 868 — Runs a function the specified amount of times + +# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js + +ok 869 — toOrdinalSuffix is a Function +ok 870 — Adds an ordinal suffix to a number +ok 871 — Adds an ordinal suffix to a number +ok 872 — Adds an ordinal suffix to a number +ok 873 — Adds an ordinal suffix to a number + +# PASS test/arrayToCSV/arrayToCSV.test.js + +ok 874 — arrayToCSV is a Function +ok 875 — arrayToCSV works with default delimiter +ok 876 — arrayToCSV works with custom delimiter + +# PASS test/countOccurrences/countOccurrences.test.js + +ok 877 — countOccurrences is a Function +ok 878 — Counts the occurrences of a value in an array + +# PASS test/promisify/promisify.test.js + +ok 879 — promisify is a Function +ok 880 — Returns a promise +ok 881 — Runs the function provided + +# PASS test/sumPower/sumPower.test.js + +ok 882 — sumPower is a Function +ok 883 — Returns the sum of the powers of all the numbers from start to end +ok 884 — Returns the sum of the powers of all the numbers from start to end +ok 885 — Returns the sum of the powers of all the numbers from start to end + +# PASS test/isArrayBuffer/isArrayBuffer.test.js + +ok 886 — isArrayBuffer is a Function + +# PASS test/prefix/prefix.test.js + +ok 887 — prefix is a Function + +# PASS test/overArgs/overArgs.test.js + +ok 888 — overArgs is a Function +ok 889 — Invokes the provided function with its arguments transformed + +# PASS test/isArmstrongNumber/isArmstrongNumber.test.js + +ok 890 — isArmstrongNumber is a Function + +# PASS test/intersectionWith/intersectionWith.test.js + +ok 891 — intersectionWith is a Function +ok 892 — Returns a list of elements that exist in both arrays, using a provided comparator function + +# PASS test/standardDeviation/standardDeviation.test.js + +ok 893 — standardDeviation is a Function +ok 894 — Returns the standard deviation of an array of numbers +ok 895 — Returns the standard deviation of an array of numbers + +# PASS test/averageBy/averageBy.test.js + +ok 896 — averageBy is a Function +ok 897 — Produces the right result with a function +ok 898 — Produces the right result with a property name + +# PASS test/isRegExp/isRegExp.test.js + +ok 899 — isRegExp is a Function + +# PASS test/extendHex/extendHex.test.js + +ok 900 — extendHex is a Function +ok 901 — Extends a 3-digit color code to a 6-digit color code +ok 902 — Extends a 3-digit color code to a 6-digit color code + +# PASS test/toHash/toHash.test.js + +ok 903 — toHash is a Function + +# PASS test/dropWhile/dropWhile.test.js + +ok 904 — dropWhile is a Function +ok 905 — Removes elements in an array until the passed function returns true. + +# PASS test/truncateString/truncateString.test.js + +ok 906 — truncateString is a Function +ok 907 — Truncates a "boomerang" up to a specified length. + +# PASS test/isDivisible/isDivisible.test.js + +ok 908 — isDivisible is a Function +ok 909 — The number 6 is divisible by 3 + +# PASS test/delay/delay.test.js + +ok 910 — delay is a Function +ok 911 — Works as expecting, passing arguments properly + +# PASS test/createEventHub/createEventHub.test.js + +ok 912 — createEventHub is a Function + +# PASS test/insertAfter/insertAfter.test.js + +ok 913 — insertAfter is a Function + +# PASS test/levenshteinDistance/levenshteinDistance.test.js + +ok 914 — levenshteinDistance is a Function + +# PASS test/unescapeHTML/unescapeHTML.test.js + +ok 915 — unescapeHTML is a Function +ok 916 — Unescapes escaped HTML characters. + +# PASS test/maxBy/maxBy.test.js + +ok 917 — maxBy is a Function +ok 918 — Produces the right result with a function +ok 919 — Produces the right result with a property name + +# PASS test/show/show.test.js + +ok 920 — show is a Function + +# PASS test/nodeListToArray/nodeListToArray.test.js + +ok 921 — nodeListToArray is a Function + +# PASS test/setStyle/setStyle.test.js + +ok 922 — setStyle is a Function + +# PASS test/pad/pad.test.js + +ok 923 — pad is a Function +ok 924 — cat is padded on both sides +ok 925 — length of string is 8 +ok 926 — pads 42 with "0" +ok 927 — does not truncates if string exceeds length + +# PASS test/merge/merge.test.js + +ok 928 — merge is a Function +ok 929 — Merges two objects + +# PASS test/forEachRight/forEachRight.test.js + +ok 930 — forEachRight is a Function +ok 931 — Iterates over the array in reverse + +# PASS test/isNumber/isNumber.test.js + +ok 932 — isNumber is a Function +ok 933 — passed argument is a number +ok 934 — passed argument is not a number + +# PASS test/defaults/defaults.test.js + +ok 935 — defaults is a Function +ok 936 — Assigns default values for undefined properties + +# PASS test/RGBToHex/RGBToHex.test.js + +ok 937 — RGBToHex is a Function +ok 938 — Converts the values of RGB components to a color code. + +# PASS test/converge/converge.test.js + +ok 939 — converge is a Function +ok 940 — Produces the average of the array +ok 941 — Produces the strange concatenation + +# PASS test/minN/minN.test.js + +ok 942 — minN is a Function +ok 943 — Returns the n minimum elements from the provided array +ok 944 — Returns the n minimum elements from the provided array + +# PASS test/unzipWith/unzipWith.test.js + +ok 945 — unzipWith is a Function +ok 946 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] + +# PASS test/hide/hide.test.js + +ok 947 — hide is a Function + +# PASS test/palindrome/palindrome.test.js + +ok 948 — palindrome is a Function +ok 949 — Given string is a palindrome +ok 950 — Given string is not a palindrome + +# PASS test/observeMutations/observeMutations.test.js + +ok 951 — observeMutations is a Function + +# PASS test/detectDeviceType/detectDeviceType.test.js + +ok 952 — detectDeviceType is a Function + +# PASS test/httpPut/httpPut.test.js + +ok 953 — httpPut is a Function + +# PASS test/pick/pick.test.js + +ok 954 — pick is a Function +ok 955 — Picks the key-value pairs corresponding to the given keys from an object. + +# PASS test/filterNonUnique/filterNonUnique.test.js + +ok 956 — filterNonUnique is a Function +ok 957 — Filters out the non-unique values in an array + +# PASS test/sortCharactersInString/sortCharactersInString.test.js + +ok 958 — sortCharactersInString is a Function +ok 959 — Alphabetically sorts the characters in a string. + +# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js + +ok 960 — capitalizeEveryWord is a Function +ok 961 — Capitalizes the first letter of every word in a string +ok 962 — Works with characters +ok 963 — Works with one word string + +# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js + +ok 964 — symmetricDifferenceWith is a Function +ok 965 — Returns the symmetric difference between two arrays, using a provided function as a comparator + +# PASS test/howManyTimes/howManyTimes.test.js + +ok 966 — howManyTimes is a Function + +# PASS test/isWeakSet/isWeakSet.test.js + +ok 967 — isWeakSet is a Function + +# PASS test/symmetricDifference/symmetricDifference.test.js + +ok 968 — symmetricDifference is a Function +ok 969 — Returns the symmetric difference between two arrays. + +# PASS test/decapitalize/decapitalize.test.js + +ok 970 — decapitalize is a Function +ok 971 — Works with default parameter +ok 972 — Works with second parameter set to true + +# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js + +ok 973 — initializeArrayWithRange is a Function +ok 974 — Initializes an array containing the numbers in the specified range + +# PASS test/ary/ary.test.js + +ok 975 — ary is a Function +ok 976 — Discards arguments with index >=n + +# PASS test/debounce/debounce.test.js + +ok 977 — debounce is a Function +ok 978 — Works as expected + +# PASS test/runAsync/runAsync.test.js + +ok 979 — runAsync is a Function + +# PASS test/sum/sum.test.js + +ok 980 — sum is a Function +ok 981 — Returns the sum of two or more numbers/arrays. + +# PASS test/defer/defer.test.js + +ok 982 — defer is a Function + +# PASS test/getType/getType.test.js + +ok 983 — getType is a Function +ok 984 — Returns the native type of a value + +# PASS test/get/get.test.js + +ok 985 — get is a Function +ok 986 — Retrieve a property indicated by the selector from an object. + +# PASS test/bind/bind.test.js + +ok 987 — bind is a Function +ok 988 — Binds to an object context + +# PASS test/sumBy/sumBy.test.js + +ok 989 — sumBy is a Function + +# PASS test/differenceWith/differenceWith.test.js + +ok 990 — differenceWith is a Function +ok 991 — Filters out all values from an array + +# PASS test/functionName/functionName.test.js + +ok 992 — functionName is a Function +ok 993 — Works for native functions +ok 994 — Works for functions +ok 995 — Works for arrow functions + +# PASS test/removeVowels/removeVowels.test.js + +ok 996 — removeVowels is a Function + +# PASS test/findLast/findLast.test.js + +ok 997 — findLast is a Function +ok 998 — Finds last element for which the given function returns true + +# PASS test/similarity/similarity.test.js + +ok 999 — similarity is a Function +ok 1000 — Returns an array of elements that appear in both arrays. + +# PASS test/JSONToFile/JSONToFile.test.js + +ok 1001 — JSONToFile is a Function + +# PASS test/sdbm/sdbm.test.js + +ok 1002 — sdbm is a Function +ok 1003 — Hashes the input string into a whole number. + +# FAIL test/dig/dig.test.js + +# +# ReferenceError: dig is not defined +# +# Stack: +# +# at Object. (test/dig/dig.js:1:45) +# +# > 1 | module.exports = dig; +# | ^ +# +# at Generator.next () +# at new Promise () +# at Generator.next () +# at + +# PASS test/flatten/flatten.test.js + +ok 1004 — flatten is a Function +ok 1005 — Flattens an array +ok 1006 — Flattens an array 1..1006 -# Test Suites: 100% ██████████, 1 failed, 338 passed, 339 total +# Test Suites: 99% ██████████, 2 failed, 338 passed, 340 total # Tests: 100% ██████████, 1 failed, 1005 passed, 1006 total -# Time: 6.003s, estimated 5s +# Time: 5.767s, estimated 5s # Ran all test suites. From 2577e13265855db31b8235855d17bdd49f6f1593 Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Sun, 8 Jul 2018 23:34:11 -0700 Subject: [PATCH 04/10] refactor map/filter with reduce --- snippets/dig.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/snippets/dig.md b/snippets/dig.md index 6790d363a..897ba3760 100644 --- a/snippets/dig.md +++ b/snippets/dig.md @@ -2,19 +2,22 @@ Return the value in a nested JSON object by the key. -Given the key name (or target), it will map through each key in the object and look for object type. +Given the key name (or target), it will loop through each key/value in the object and look for object type. If value is an object, dig is called recusively until the first matching key/value is found. ``` -const dig = (obj, target) => { - return obj[target] ? - obj[target] : - Object.keys(obj).map(key => { - if (typeof(obj[key]) === "object") { - return dig(obj[key], target); - } - }).filter(defined=>defined)[0] -}; +const dig = (obj, target) => + target in obj + ? obj[target] + : Object + .values(obj) + .reduce((acc, val) => { + if (acc !== undefined) return acc; + if (typeof val === 'object') { + const v = dig(val, target); + return v === undefined ? undefined : v; + } + }, undefined); ``` ``` From 1a3e1dde1e030db71cfdb801cc04ba994dedafe1 Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Mon, 9 Jul 2018 23:17:41 -0700 Subject: [PATCH 05/10] more refactoring --- snippets/dig.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/snippets/dig.md b/snippets/dig.md index 897ba3760..f521bd290 100644 --- a/snippets/dig.md +++ b/snippets/dig.md @@ -13,10 +13,7 @@ const dig = (obj, target) => .values(obj) .reduce((acc, val) => { if (acc !== undefined) return acc; - if (typeof val === 'object') { - const v = dig(val, target); - return v === undefined ? undefined : v; - } + if (typeof val === 'object') return dig(val, target); }, undefined); ``` From 25c5399becc04fd5e9d2d0c989a4410e8c896442 Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Thu, 12 Jul 2018 23:03:05 -0700 Subject: [PATCH 06/10] add test --- test/dig/dig.js | 10 ++++++++++ test/dig/dig.test.js | 28 +++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/test/dig/dig.js b/test/dig/dig.js index 636d989c2..8ee35822a 100644 --- a/test/dig/dig.js +++ b/test/dig/dig.js @@ -1 +1,11 @@ +const dig = (obj, target) => + target in obj + ? obj[target] + : Object + .values(obj) + .reduce((acc, val) => { + if (acc !== undefined) return acc; + if (typeof val === 'object') return dig(val, target); + }, undefined); + module.exports = dig; \ No newline at end of file diff --git a/test/dig/dig.test.js b/test/dig/dig.test.js index 51834bfe2..d66391806 100644 --- a/test/dig/dig.test.js +++ b/test/dig/dig.test.js @@ -1,6 +1,32 @@ const expect = require('expect'); const dig = require('./dig.js'); +const data = { + level1:{ + level2:{ + level3: "some data", + level3f: false, + level3a: [1,2,3,4] + } + } +}; + test('dig is a Function', () => { expect(dig).toBeInstanceOf(Function); -}); \ No newline at end of file +}); + +test('Dig target success', () => { + expect(dig(data, 'level3')).toEqual('some data'); +}); + +test('Dig target with falsey value', () => { + expect(dig(data, 'level3f')).toEqual(false); +}); + +test('Dig target with array', () => { + expect(dig(data, 'level3a')).toEqual([1,2,3,4]); +}); + +test('Unknown target return undefined', () => { + expect(dig(data, 'level4')).toEqual(undefined); +}); From 3e586637e95366a37b8d1cc134ec2468403d2a35 Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Fri, 13 Jul 2018 11:02:11 -0700 Subject: [PATCH 07/10] fix issues reported by Codacy --- test/dig/dig.js | 10 +- test/dig/dig.test.js | 22 +- test/testlog | 2077 ------------------------------------------ 3 files changed, 18 insertions(+), 2091 deletions(-) delete mode 100644 test/testlog diff --git a/test/dig/dig.js b/test/dig/dig.js index 8ee35822a..db996762f 100644 --- a/test/dig/dig.js +++ b/test/dig/dig.js @@ -4,8 +4,12 @@ const dig = (obj, target) => : Object .values(obj) .reduce((acc, val) => { - if (acc !== undefined) return acc; - if (typeof val === 'object') return dig(val, target); + if (acc !== undefined) { + return acc + }; + if (typeof val === "object") { + return dig(val, target) + }; }, undefined); -module.exports = dig; \ No newline at end of file +module.exports = dig; diff --git a/test/dig/dig.test.js b/test/dig/dig.test.js index d66391806..280272dce 100644 --- a/test/dig/dig.test.js +++ b/test/dig/dig.test.js @@ -1,5 +1,5 @@ -const expect = require('expect'); -const dig = require('./dig.js'); +const expect = require("expect"); +const dig = require("./dig.js"); const data = { level1:{ @@ -11,22 +11,22 @@ const data = { } }; -test('dig is a Function', () => { +test("dig is a Function", () => { expect(dig).toBeInstanceOf(Function); }); -test('Dig target success', () => { - expect(dig(data, 'level3')).toEqual('some data'); +test("Dig target success", () => { + expect(dig(data, "level3")).toEqual("some data"); }); -test('Dig target with falsey value', () => { - expect(dig(data, 'level3f')).toEqual(false); +test("Dig target with falsey value", () => { + expect(dig(data, "level3f")).toEqual(false); }); -test('Dig target with array', () => { - expect(dig(data, 'level3a')).toEqual([1,2,3,4]); +test("Dig target with array", () => { + expect(dig(data, "level3a")).toEqual([1,2,3,4]); }); -test('Unknown target return undefined', () => { - expect(dig(data, 'level4')).toEqual(undefined); +test("Unknown target return undefined", () => { + expect(dig(data, "level4")).toEqual(undefined); }); diff --git a/test/testlog b/test/testlog deleted file mode 100644 index f151b8630..000000000 --- a/test/testlog +++ /dev/null @@ -1,2077 +0,0 @@ - - -# Starting... -# 340 test suites found. - -# PASS test/isValidJSON/isValidJSON.test.js - -ok 1 — isValidJSON is a Function -ok 2 — {"name":"Adam","age":20} is a valid JSON -ok 3 — {"name":"Adam",age:"20"} is not a valid JSON -ok 4 — null is a valid JSON - -# PASS test/toKebabCase/toKebabCase.test.js - -ok 5 — toKebabCase is a Function -ok 6 — toKebabCase('camelCase') returns camel-case -ok 7 — toKebabCase('some text') returns some-text -ok 8 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens -ok 9 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html -ok 10 — toKebabCase() returns undefined -ok 11 — toKebabCase([]) throws an erro -ok 12 — toKebabCase({}) throws an erro -ok 13 — toKebabCase(123) throws an erro -ok 14 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/toCurrency/toCurrency.test.js - -ok 15 — toCurrency is a Function -ok 16 — currency: Euro | currencyLangFormat: Local -ok 17 — currency: US Dollar | currencyLangFormat: English (United States) -ok 18 — currency: Japanese Yen | currencyLangFormat: Local - -# PASS test/is/is.test.js - -ok 19 — is is a Function -ok 20 — Works for arrays with data -ok 21 — Works for empty arrays -ok 22 — Works for arrays, not objects -ok 23 — Works for objects -ok 24 — Works for maps -ok 25 — Works for regular expressions -ok 26 — Works for sets -ok 27 — Works for weak maps -ok 28 — Works for weak sets -ok 29 — Works for strings - returns true for primitive -ok 30 — Works for strings - returns true when using constructor -ok 31 — Works for numbers - returns true for primitive -ok 32 — Works for numbers - returns true when using constructor -ok 33 — Works for booleans - returns true for primitive -ok 34 — Works for booleans - returns true when using constructor -ok 35 — Works for functions - -# PASS test/average/average.test.js - -ok 36 — average is a Function -ok 37 — average(true) returns 0 -ok 38 — average(false) returns 1 -ok 39 — average(9, 1) returns 5 -ok 40 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 -ok 41 — average(1, 2, 3) returns 2 -ok 42 — average(null) returns 0 -ok 43 — average(1, 2, 3) returns NaN -ok 44 — average(String) returns NaN -ok 45 — average({ a: 123}) returns NaN -ok 46 — average([undefined, 0, string]) returns NaN -ok 47 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# FAIL test/tomorrow/tomorrow.test.js - -ok 48 — tomorrow is a Function -ok 49 — Returns the correct year -ok 50 — Returns the correct month -not ok 51 ● Returns the correct date -# -# expect(received).toBe(expected) // Object.is equality -# -# -# Expected: 8 -# -# Received: -# -# Stack: -# -# at Object..test (test/tomorrow/tomorrow.test.js:16:24) -# -# 12 | test('Returns the correct month', () => { -# 13 | expect(t1.getMonth()).toBe(t2.getMonth()); -# 14 | }); -# 15 | test('Returns the correct date', () => { -# > 16 | expect(t1.getDate()).toBe(t2.getDate()); -# | ^ -# 17 | }); -# 18 | -# -# at new Promise () -# at - -# PASS test/validateNumber/validateNumber.test.js - -ok 52 — validateNumber is a Function -ok 53 — validateNumber(9) returns true -ok 54 — validateNumber(234asd.slice(0, 2)) returns true -ok 55 — validateNumber(1232) returns true -ok 56 — validateNumber(1232 + 13423) returns true -ok 57 — validateNumber(1232 * 2342 * 123) returns true -ok 58 — validateNumber(1232.23423536) returns true -ok 59 — validateNumber(234asd) returns false -ok 60 — validateNumber(e234d) returns false -ok 61 — validateNumber(false) returns false -ok 62 — validateNumber(true) returns false -ok 63 — validateNumber(null) returns false -ok 64 — validateNumber(123 * asd) returns false - -# PASS test/countBy/countBy.test.js - -ok 65 — countBy is a Function -ok 66 — Works for functions -ok 67 — Works for property names - -# PASS test/collatz/collatz.test.js - -ok 68 — collatz is a Function -ok 69 — When n is even, divide by 2 -ok 70 — When n is odd, times by 3 and add 1 -ok 71 — Eventually reaches 1 - -# PASS test/chunk/chunk.test.js - -ok 72 — chunk is a Function -ok 73 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] -ok 74 — chunk([]) returns [] -ok 75 — chunk(123) returns [] -ok 76 — chunk({ a: 123}) returns [] -ok 77 — chunk(string, 2) returns [ st, ri, ng ] -ok 78 — chunk() throws an error -ok 79 — chunk(undefined) throws an error -ok 80 — chunk(null) throws an error -ok 81 — chunk(This is a string, 2) takes less than 2s to run - -# PASS test/zipObject/zipObject.test.js - -ok 82 — zipObject is a Function -ok 83 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} -ok 84 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} -ok 85 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } -ok 86 — zipObject([a], string) returns { a: s } -ok 87 — zipObject() throws an error -ok 88 — zipObject((['string'], null) throws an error -ok 89 — zipObject(null, [1]) throws an error -ok 90 — zipObject('string') throws an error -ok 91 — zipObject('test', 'string') throws an error - -# PASS test/toSafeInteger/toSafeInteger.test.js - -ok 92 — toSafeInteger is a Function -ok 93 — Number(toSafeInteger(3.2)) is a number -ok 94 — Converts a value to a safe integer -ok 95 — toSafeInteger('4.2') returns 4 -ok 96 — toSafeInteger(4.6) returns 5 -ok 97 — toSafeInteger([]) returns 0 -ok 98 — isNaN(toSafeInteger([1.5, 3124])) is true -ok 99 — isNaN(toSafeInteger('string')) is true -ok 100 — isNaN(toSafeInteger({})) is true -ok 101 — isNaN(toSafeInteger()) is true -ok 102 — toSafeInteger(Infinity) returns 9007199254740991 -ok 103 — toSafeInteger(3.2) takes less than 2s to run - -# PASS test/off/off.test.js - -ok 104 — off is a Function - -# PASS test/CSVToJSON/CSVToJSON.test.js - -ok 105 — CSVToJSON is a Function -ok 106 — CSVToJSON works with default delimiter -ok 107 — CSVToJSON works with custom delimiter - -# PASS test/pipeFunctions/pipeFunctions.test.js - -ok 108 — pipeFunctions is a Function -ok 109 — Performs left-to-right function composition - -# PASS test/mapKeys/mapKeys.test.js - -ok 110 — mapKeys is a Function -ok 111 — Maps keys - -# PASS test/size/size.test.js - -ok 112 — size is a Function -ok 113 — Get size of arrays, objects or strings. -ok 114 — Get size of arrays, objects or strings. - -# PASS test/stringPermutations/stringPermutations.test.js - -ok 115 — stringPermutations is a Function -ok 116 — Generates all stringPermutations of a string -ok 117 — Works for single-letter strings -ok 118 — Works for empty strings - -# PASS test/escapeHTML/escapeHTML.test.js - -ok 119 — escapeHTML is a Function -ok 120 — Escapes a string for use in HTML - -# PASS test/gcd/gcd.test.js - -ok 121 — gcd is a Function -ok 122 — Calculates the greatest common divisor between two or more numbers/arrays -ok 123 — Calculates the greatest common divisor between two or more numbers/arrays - -# PASS test/uniqueElements/uniqueElements.test.js - -ok 124 — uniqueElements is a Function -ok 125 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] -ok 126 — uniqueElements([1, 23, 53]) returns [1, 23, 53] -ok 127 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] -ok 128 — uniqueElements() returns [] -ok 129 — uniqueElements(null) returns [] -ok 130 — uniqueElements(undefined) returns [] -ok 131 — uniqueElements('strt') returns ['s', 't', 'r'] -ok 132 — uniqueElements(1, 1, 2543, 534, 5) throws an error -ok 133 — uniqueElements({}) throws an error -ok 134 — uniqueElements(true) throws an error -ok 135 — uniqueElements(false) throws an error -ok 136 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run - -# PASS test/matches/matches.test.js - -ok 137 — matches is a Function -ok 138 — Matches returns true for two similar objects -ok 139 — Matches returns false for two non-similar objects - -# PASS test/factors/factors.test.js - -ok 140 — factors is a Function - -# PASS test/permutations/permutations.test.js - -ok 141 — permutations is a Function -ok 142 — Generates all permutations of an array - -# PASS test/pullBy/pullBy.test.js - -ok 143 — pullBy is a Function -ok 144 — Pulls the specified values - -# PASS test/zip/zip.test.js - -ok 145 — zip is a Function -ok 146 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] -ok 147 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] -ok 148 — zip([]) returns [] -ok 149 — zip(123) returns [] -ok 150 — zip([a, b], [1, 2], [true, false]) returns an Array -ok 151 — zip([a], [1, 2], [true, false]) returns an Array -ok 152 — zip(null) throws an error -ok 153 — zip(undefined) throws an error - -# PASS test/removeNonASCII/removeNonASCII.test.js - -ok 154 — removeNonASCII is a Function -ok 155 — Removes non-ASCII characters - -# PASS test/round/round.test.js - -ok 156 — round is a Function -ok 157 — round(1.005, 2) returns 1.01 -ok 158 — round(123.3423345345345345344, 11) returns 123.34233453453 -ok 159 — round(3.342, 11) returns 3.342 -ok 160 — round(1.005) returns 1 -ok 161 — round([1.005, 2]) returns NaN -ok 162 — round(string) returns NaN -ok 163 — round() returns NaN -ok 164 — round(132, 413, 4134) returns NaN -ok 165 — round({a: 132}, 413) returns NaN -ok 166 — round(123.3423345345345345344, 11) takes less than 2s to run - -# PASS test/partition/partition.test.js - -ok 167 — partition is a Function -ok 168 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. - -# PASS test/nthElement/nthElement.test.js - -ok 169 — nthElement is a Function -ok 170 — Returns the nth element of an array. -ok 171 — Returns the nth element of an array. - -# PASS test/powerset/powerset.test.js - -ok 172 — powerset is a Function -ok 173 — Returns the powerset of a given array of numbers. - -# PASS test/spreadOver/spreadOver.test.js - -ok 174 — spreadOver is a Function -ok 175 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. - -# PASS test/counter/counter.test.js - -ok 176 — counter is a Function - -# PASS test/initialize2DArray/initialize2DArray.test.js - -ok 177 — initialize2DArray is a Function -ok 178 — Initializes a 2D array of given width and height and value - -# PASS test/words/words.test.js - -ok 179 — words is a Function -ok 180 — words('I love javaScript!!') returns [I, love, javaScript] -ok 181 — words('python, javaScript & coffee') returns [python, javaScript, coffee] -ok 182 — words(I love javaScript!!) returns an array -ok 183 — words() throws an error -ok 184 — words(null) throws an error -ok 185 — words(undefined) throws an error -ok 186 — words({}) throws an error -ok 187 — words([]) throws an error -ok 188 — words(1234) throws an error - -# PASS test/hz/hz.test.js - -ok 189 — hz is a Function - -# PASS test/isSymbol/isSymbol.test.js - -ok 190 — isSymbol is a Function -ok 191 — Checks if the given argument is a symbol - -# PASS test/sortedIndex/sortedIndex.test.js - -ok 192 — sortedIndex is a Function -ok 193 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -ok 194 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. - -# PASS test/timeTaken/timeTaken.test.js - -ok 195 — timeTaken is a Function - -# PASS test/prettyBytes/prettyBytes.test.js - -ok 196 — prettyBytes is a Function -ok 197 — Converts a number in bytes to a human-readable string. -ok 198 — Converts a number in bytes to a human-readable string. -ok 199 — Converts a number in bytes to a human-readable string. - -# PASS test/sample/sample.test.js - -ok 200 — sample is a Function -ok 201 — Returns a random element from the array -ok 202 — Works for single-element arrays -ok 203 — Returns undefined for empty array - -# PASS test/isAbsoluteURL/isAbsoluteURL.test.js - -ok 204 — isAbsoluteURL is a Function -ok 205 — Given string is an absolute URL -ok 206 — Given string is an absolute URL -ok 207 — Given string is not an absolute URL - -# PASS test/dropRight/dropRight.test.js - -ok 208 — dropRight is a Function -ok 209 — Returns a new array with n elements removed from the right -ok 210 — Returns a new array with n elements removed from the right -ok 211 — Returns a new array with n elements removed from the right - -# PASS test/isPrime/isPrime.test.js - -ok 212 — isPrime is a Function -ok 213 — passed number is a prime - -# PASS test/factorial/factorial.test.js - -ok 214 — factorial is a Function -ok 215 — Calculates the factorial of 720 -ok 216 — Calculates the factorial of 0 -ok 217 — Calculates the factorial of 1 -ok 218 — Calculates the factorial of 4 -ok 219 — Calculates the factorial of 10 - -# PASS test/toCamelCase/toCamelCase.test.js - -ok 220 — toCamelCase is a Function -ok 221 — toCamelCase('some_database_field_name') returns someDatabaseFieldName -ok 222 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized -ok 223 — toCamelCase('some-javascript-property') return someJavascriptProperty -ok 224 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens -ok 225 — toCamelCase() throws a error -ok 226 — toCamelCase([]) throws a error -ok 227 — toCamelCase({}) throws a error -ok 228 — toCamelCase(123) throws a error -ok 229 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run - -# PASS test/sampleSize/sampleSize.test.js - -ok 230 — sampleSize is a Function -ok 231 — Returns a single element without n specified -ok 232 — Returns a random sample of specified size from an array -ok 233 — Returns all elements in an array if n >= length -ok 234 — Returns an empty array if original array is empty -ok 235 — Returns an empty array if n = 0 - -# PASS test/composeRight/composeRight.test.js - -ok 236 — composeRight is a Function -ok 237 — Performs left-to-right function composition - -# PASS test/binarySearch/binarySearch.test.js - -ok 238 — binarySearch is a Function -ok 239 — Finds item in array -ok 240 — Returns -1 when not found -ok 241 — Works with empty arrays -ok 242 — Works for one element arrays - -# PASS test/binomialCoefficient/binomialCoefficient.test.js - -ok 243 — binomialCoefficient is a Function -ok 244 — Returns the appropriate value -ok 245 — Returns the appropriate value -ok 246 — Returns the appropriate value -ok 247 — Returns NaN -ok 248 — Returns NaN - -# PASS test/isObject/isObject.test.js - -ok 249 — isObject is a Function -ok 250 — isObject([1, 2, 3, 4]) is a object -ok 251 — isObject([]) is a object -ok 252 — isObject({ a:1 }) is a object -ok 253 — isObject(true) is not a object - -# PASS test/transform/transform.test.js - -ok 254 — transform is a Function -ok 255 — Transforms an object - -# PASS test/toSnakeCase/toSnakeCase.test.js - -ok 256 — toSnakeCase is a Function -ok 257 — toSnakeCase('camelCase') returns camel_case -ok 258 — toSnakeCase('some text') returns some_text -ok 259 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens -ok 260 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html -ok 261 — toSnakeCase() returns undefined -ok 262 — toSnakeCase([]) throws an error -ok 263 — toSnakeCase({}) throws an error -ok 264 — toSnakeCase(123) throws an error -ok 265 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/getStyle/getStyle.test.js - -ok 266 — getStyle is a Function - -# PASS test/inRange/inRange.test.js - -ok 267 — inRange is a Function -ok 268 — The given number falls within the given range -ok 269 — The given number falls within the given range -ok 270 — The given number does not falls within the given range -ok 271 — The given number does not falls within the given range - -# PASS test/toDecimalMark/toDecimalMark.test.js - -ok 272 — toDecimalMark is a Function -ok 273 — convert a float-point arithmetic to the Decimal mark form - -# PASS test/last/last.test.js - -ok 274 — last is a Function -ok 275 — last({ a: 1234}) returns undefined -ok 276 — last([1, 2, 3]) returns 3 -ok 277 — last({ 0: false}) returns undefined -ok 278 — last(String) returns g -ok 279 — last(null) throws an Error -ok 280 — last(undefined) throws an Error -ok 281 — last() throws an Error -ok 282 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/rearg/rearg.test.js - -ok 283 — rearg is a Function -ok 284 — Reorders arguments in invoked function - -# PASS test/compose/compose.test.js - -ok 285 — compose is a Function -ok 286 — Performs right-to-left function composition - -# PASS test/castArray/castArray.test.js - -ok 287 — castArray is a Function -ok 288 — Works for single values -ok 289 — Works for arrays with one value -ok 290 — Works for arrays with multiple value -ok 291 — Works for strings -ok 292 — Works for objects - -# PASS test/union/union.test.js - -ok 293 — union is a Function -ok 294 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] -ok 295 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] -ok 296 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] -ok 297 — union([], []) returns [] -ok 298 — union() throws an error -ok 299 — union(true, 'str') throws an error -ok 300 — union('false', true) throws an error -ok 301 — union((123, {}) throws an error -ok 302 — union([], {}) throws an error -ok 303 — union(undefined, null) throws an error -ok 304 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run - -# PASS test/isBoolean/isBoolean.test.js - -ok 305 — isBoolean is a Function -ok 306 — passed value is not a boolean -ok 307 — passed value is not a boolean - -# PASS test/httpsRedirect/httpsRedirect.test.js - -ok 308 — httpsRedirect is a Function - -# PASS test/mostPerformant/mostPerformant.test.js - -ok 309 — mostPerformant is a Function - -# PASS test/unflattenObject/unflattenObject.test.js - -ok 310 — unflattenObject is a Function -ok 311 — Unflattens an object with the paths for keys - -# PASS test/all/all.test.js - -ok 312 — all is a Function -ok 313 — Returns true for arrays with no falsey values -ok 314 — Returns false for arrays with 0 -ok 315 — Returns false for arrays with NaN -ok 316 — Returns false for arrays with undefined -ok 317 — Returns false for arrays with null -ok 318 — Returns false for arrays with empty strings -ok 319 — Returns true with predicate function -ok 320 — Returns false with a predicate function - -# PASS test/takeWhile/takeWhile.test.js - -ok 321 — takeWhile is a Function -ok 322 — Removes elements until the function returns true - -# PASS test/JSONtoCSV/JSONtoCSV.test.js - -ok 323 — JSONtoCSV is a Function -ok 324 — JSONtoCSV works with default delimiter -ok 325 — JSONtoCSV works with custom delimiter - -# PASS test/isSorted/isSorted.test.js - -ok 326 — isSorted is a Function -ok 327 — Array is sorted in ascending order -ok 328 — Array is sorted in ascending order -ok 329 — Array is sorted in ascending order -ok 330 — Array is sorted in ascending order -ok 331 — Array is sorted in descending order -ok 332 — Array is sorted in descending order -ok 333 — Array is sorted in descending order -ok 334 — Array is sorted in descending order -ok 335 — Array is empty -ok 336 — Array is not sorted, direction changed in array -ok 337 — Array is not sorted, direction changed in array - -# PASS test/isAnagram/isAnagram.test.js - -ok 338 — isAnagram is a Function -ok 339 — Checks valid anagram -ok 340 — Works with spaces -ok 341 — Ignores case -ok 342 — Ignores special characters - -# PASS test/indexOfAll/indexOfAll.test.js - -ok 343 — indexOfAll is a Function -ok 344 — Returns all indices of val in an array -ok 345 — Returns all indices of val in an array - -# PASS test/difference/difference.test.js - -ok 346 — difference is a Function -ok 347 — Returns the difference between two arrays - -# PASS test/percentile/percentile.test.js - -ok 348 — percentile is a Function -ok 349 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. - -# PASS test/yesNo/yesNo.test.js - -ok 350 — yesNo is a Function -ok 351 — yesNo(Y) returns true -ok 352 — yesNo(yes) returns true -ok 353 — yesNo(foo, true) returns true -ok 354 — yesNo(No) returns false -ok 355 — yesNo() returns false -ok 356 — yesNo(null) returns false -ok 357 — yesNo(undefined) returns false -ok 358 — yesNo([123, null]) returns false -ok 359 — yesNo([Yes, No]) returns false -ok 360 — yesNo({ 2: Yes }) returns false -ok 361 — yesNo([Yes, No], true) returns true -ok 362 — yesNo({ 2: Yes }, true) returns true - -# PASS test/reverseString/reverseString.test.js - -ok 363 — reverseString is a Function -ok 364 — Reverses a string. - -# PASS test/httpPost/httpPost.test.js - -ok 365 — httpPost is a Function - -# PASS test/isNull/isNull.test.js - -ok 366 — isNull is a Function -ok 367 — passed argument is a null -ok 368 — passed argument is a null - -# PASS test/isUpperCase/isUpperCase.test.js - -ok 369 — isUpperCase is a Function -ok 370 — ABC is all upper case -ok 371 — abc is not all upper case -ok 372 — A3@$ is all uppercase - -# PASS test/distance/distance.test.js - -ok 373 — distance is a Function -ok 374 — Calculates the distance between two points - -# PASS test/elo/elo.test.js - -ok 375 — elo is a Function -ok 376 — Standard 1v1s -ok 377 — Standard 1v1s -ok 378 — 4 player FFA, all same rank - -# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js - -ok 379 — sortedLastIndexBy is a Function -ok 380 — Returns the highest index to insert the element without messing up the list order - -# PASS test/quickSort/quickSort.test.js - -ok 381 — quickSort is a Function -ok 382 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] -ok 383 — quickSort([-1, 0, -2]) returns [-2, -1, 0] -ok 384 — quickSort() throws an error -ok 385 — quickSort(123) throws an error -ok 386 — quickSort({ 234: string}) throws an error -ok 387 — quickSort(null) throws an error -ok 388 — quickSort(undefined) throws an error -ok 389 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run - -# PASS test/runPromisesInSeries/runPromisesInSeries.test.js - -ok 390 — runPromisesInSeries is a Function -ok 391 — Runs promises in series - -# PASS test/everyNth/everyNth.test.js - -ok 392 — everyNth is a Function -ok 393 — Returns every nth element in an array - -# PASS test/tail/tail.test.js - -ok 394 — tail is a Function -ok 395 — Returns tail -ok 396 — Returns tail - -# PASS test/fromCamelCase/fromCamelCase.test.js - -ok 397 — fromCamelCase is a Function -ok 398 — Converts a string from camelcase -ok 399 — Converts a string from camelcase -ok 400 — Converts a string from camelcase - -# PASS test/randomHexColorCode/randomHexColorCode.test.js - -ok 401 — randomHexColorCode is a Function -ok 402 — randomHexColorCode has to proper length -ok 403 — The color code starts with "#" -ok 404 — The color code contains only valid hex-digits - -# PASS test/head/head.test.js - -ok 405 — head is a Function -ok 406 — head({ a: 1234}) returns undefined -ok 407 — head([1, 2, 3]) returns 1 -ok 408 — head({ 0: false}) returns false -ok 409 — head(String) returns S -ok 410 — head(null) throws an Error -ok 411 — head(undefined) throws an Error -ok 412 — head() throws an Error -ok 413 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/digitize/digitize.test.js - -ok 414 — digitize is a Function -ok 415 — Converts a number to an array of digits - -# PASS test/initializeNDArray/initializeNDArray.test.js - -ok 416 — initializeNDArray is a Function - -# PASS test/untildify/untildify.test.js - -ok 417 — untildify is a Function -ok 418 — Contains no tildes -ok 419 — Does not alter the rest of the path -ok 420 — Does not alter paths without tildes - -# PASS test/on/on.test.js - -ok 421 — on is a Function - -# PASS test/mapObject/mapObject.test.js - -ok 422 — mapObject is a Function -ok 423 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } -ok 424 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } -ok 425 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } - -# PASS test/atob/atob.test.js - -ok 426 — atob is a Function -ok 427 — atob("Zm9vYmFy") equals "foobar" -ok 428 — atob("Z") returns "" - -# PASS test/flattenObject/flattenObject.test.js - -ok 429 — flattenObject is a Function -ok 430 — Flattens an object with the paths for keys -ok 431 — Works with arrays - -# PASS test/once/once.test.js - -ok 432 — once is a Function - -# PASS test/nest/nest.test.js - -ok 433 — nest is a Function - -# PASS test/smoothScroll/smoothScroll.test.js - -ok 434 — smoothScroll is a Function - -# PASS test/reducedFilter/reducedFilter.test.js - -ok 435 — reducedFilter is a Function -ok 436 — Filter an array of objects based on a condition while also filtering out unspecified keys. - -# PASS test/invertKeyValues/invertKeyValues.test.js - -ok 437 — invertKeyValues is a Function -ok 438 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } -ok 439 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } - -# PASS test/matchesWith/matchesWith.test.js - -ok 440 — matchesWith is a Function -ok 441 — Returns true for two objects with similar values, based on the provided function - -# PASS test/unionWith/unionWith.test.js - -ok 442 — unionWith is a Function -ok 443 — Produces the appropriate results - -# PASS test/splitLines/splitLines.test.js - -ok 444 — splitLines is a Function -ok 445 — Splits a multiline string into an array of lines. - -# PASS test/remove/remove.test.js - -ok 446 — remove is a Function -ok 447 — Removes elements from an array for which the given function returns false - -# PASS test/getURLParameters/getURLParameters.test.js - -ok 448 — getURLParameters is a Function -ok 449 — Returns an object containing the parameters of the current URL - -# PASS test/median/median.test.js - -ok 450 — median is a Function -ok 451 — Returns the median of an array of numbers -ok 452 — Returns the median of an array of numbers - -# PASS test/join/join.test.js - -ok 453 — join is a Function -ok 454 — Joins all elements of an array into a string and returns this string -ok 455 — Joins all elements of an array into a string and returns this string -ok 456 — Joins all elements of an array into a string and returns this string - -# PASS test/luhnCheck/luhnCheck.test.js - -ok 457 — luhnCheck is a Function -ok 458 — validates identification number -ok 459 — validates identification number -ok 460 — validates identification number - -# PASS test/isNil/isNil.test.js - -ok 461 — isNil is a Function -ok 462 — Returns true for null -ok 463 — Returns true for undefined -ok 464 — Returns false for an empty string - -# PASS test/isPromiseLike/isPromiseLike.test.js - -ok 465 — isPromiseLike is a Function -ok 466 — Returns true for a promise-like object -ok 467 — Returns false for an empty object - -# PASS test/differenceBy/differenceBy.test.js - -ok 468 — differenceBy is a Function -ok 469 — Works using a native function and numbers -ok 470 — Works with arrow function and objects - -# PASS test/randomIntegerInRange/randomIntegerInRange.test.js - -ok 471 — randomIntegerInRange is a Function -ok 472 — The returned value is an integer -ok 473 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js - -ok 474 — symmetricDifferenceBy is a Function -ok 475 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both - -# PASS test/unary/unary.test.js - -ok 476 — unary is a Function -ok 477 — Discards arguments after the first one - -# PASS test/coalesce/coalesce.test.js - -ok 478 — coalesce is a Function -ok 479 — Returns the first non-null/undefined argument - -# PASS test/insertBefore/insertBefore.test.js - -ok 480 — insertBefore is a Function - -# PASS test/isArray/isArray.test.js - -ok 481 — isArray is a Function -ok 482 — passed value is an array -ok 483 — passed value is not an array - -# PASS test/longestItem/longestItem.test.js - -ok 484 — longestItem is a Function -ok 485 — Returns the longest object - -# PASS test/xProd/xProd.test.js - -ok 486 — xProd is a Function -ok 487 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] - -# PASS test/recordAnimationFrames/recordAnimationFrames.test.js - -ok 488 — recordAnimationFrames is a Function - -# PASS test/memoize/memoize.test.js - -ok 489 — memoize is a Function -ok 490 — Function works properly -ok 491 — Function works properly -ok 492 — Cache stores values - -# PASS test/isPlainObject/isPlainObject.test.js - -ok 493 — isPlainObject is a Function -ok 494 — Returns true for a plain object -ok 495 — Returns false for a Map (example of non-plain object) - -# PASS test/orderBy/orderBy.test.js - -ok 496 — orderBy is a Function -ok 497 — Returns a sorted array of objects ordered by properties and orders. -ok 498 — Returns a sorted array of objects ordered by properties and orders. - -# PASS test/httpGet/httpGet.test.js - -ok 499 — httpGet is a Function - -# PASS test/offset/offset.test.js - -ok 500 — offset is a Function -ok 501 — Offset of 0 returns the same array. -ok 502 — Offset > 0 returns the offsetted array. -ok 503 — Offset < 0 returns the reverse offsetted array. -ok 504 — Offset greater than the length of the array returns the same array. -ok 505 — Offset less than the negative length of the array returns the same array. -ok 506 — Offsetting empty array returns an empty array. - -# PASS test/lcm/lcm.test.js - -ok 507 — lcm is a Function -ok 508 — Returns the least common multiple of two or more numbers. -ok 509 — Returns the least common multiple of two or more numbers. - -# PASS test/clampNumber/clampNumber.test.js - -ok 510 — clampNumber is a Function -ok 511 — Clamps num within the inclusive range specified by the boundary values a and b - -# PASS test/degreesToRads/degreesToRads.test.js - -ok 512 — degreesToRads is a Function -ok 513 — Returns the appropriate value - -# PASS test/URLJoin/URLJoin.test.js - -ok 514 — URLJoin is a Function -ok 515 — Returns proper URL -ok 516 — Returns proper URL - -# PASS test/currentURL/currentURL.test.js - -ok 517 — currentURL is a Function - -# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js - -ok 518 — UUIDGeneratorBrowser is a Function - -# PASS test/isArrayLike/isArrayLike.test.js - -ok 519 — isArrayLike is a Function -ok 520 — Returns true for a string -ok 521 — Returns true for an array -ok 522 — Returns false for null - -# PASS test/geometricProgression/geometricProgression.test.js - -ok 523 — geometricProgression is a Function -ok 524 — Initializes an array containing the numbers in the specified range -ok 525 — Initializes an array containing the numbers in the specified range -ok 526 — Initializes an array containing the numbers in the specified range - -# PASS test/JSONToDate/JSONToDate.test.js - -ok 527 — JSONToDate is a Function - -# PASS test/bindKey/bindKey.test.js - -ok 528 — bindKey is a Function -ok 529 — Binds function to an object context - -# PASS test/cloneRegExp/cloneRegExp.test.js - -ok 530 — cloneRegExp is a Function -ok 531 — Clones regular expressions properly - -# PASS test/any/any.test.js - -ok 532 — any is a Function -ok 533 — Returns true for arrays with at least one truthy value -ok 534 — Returns false for arrays with no truthy values -ok 535 — Returns false for arrays with no truthy values -ok 536 — Returns true with predicate function -ok 537 — Returns false with a predicate function - -# PASS test/mask/mask.test.js - -ok 538 — mask is a Function -ok 539 — Replaces all but the last num of characters with the specified mask character -ok 540 — Replaces all but the last num of characters with the specified mask character -ok 541 — Replaces all but the last num of characters with the specified mask character - -# PASS test/zipWith/zipWith.test.js - -ok 542 — zipWith is a Function - -# PASS test/throttle/throttle.test.js - -ok 543 — throttle is a Function - -# PASS test/without/without.test.js - -ok 544 — without is a Function -ok 545 — without([2, 1, 2, 3], 1, 2) returns [3] -ok 546 — without([]) returns [] -ok 547 — without([3, 1, true, '3', true], '3', true) returns [3, 1] -ok 548 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] -ok 549 — without() throws an error -ok 550 — without(null) throws an error -ok 551 — without(undefined) throws an error -ok 552 — without(123) throws an error -ok 553 — without({}) throws an error - -# PASS test/radsToDegrees/radsToDegrees.test.js - -ok 554 — radsToDegrees is a Function -ok 555 — Returns the appropriate value - -# PASS test/approximatelyEqual/approximatelyEqual.test.js - -ok 556 — approximatelyEqual is a Function -ok 557 — Works for PI / 2 -ok 558 — Works for 0.1 + 0.2 === 0.3 -ok 559 — Works for exactly equal values -ok 560 — Works for a custom epsilon - -# PASS test/none/none.test.js - -ok 561 — none is a Function -ok 562 — Returns true for arrays with no truthy values -ok 563 — Returns false for arrays with at least one truthy value -ok 564 — Returns true with a predicate function -ok 565 — Returns false with predicate function - -# PASS test/isSimilar/isSimilar.test.js - -ok 566 — isSimilar is a Function - -# PASS test/arrayToHtmlList/arrayToHtmlList.test.js - -ok 567 — arrayToHtmlList is a Function - -# PASS test/bifurcateBy/bifurcateBy.test.js - -ok 568 — bifurcateBy is a Function -ok 569 — Splits the collection into two groups - -# PASS test/CSVToArray/CSVToArray.test.js - -ok 570 — CSVToArray is a Function -ok 571 — CSVToArray works with default delimiter -ok 572 — CSVToArray works with custom delimiter -ok 573 — CSVToArray omits the first row -ok 574 — CSVToArray omits the first row and works with a custom delimiter - -# PASS test/cleanObj/cleanObj.test.js - -ok 575 — cleanObj is a Function -ok 576 — Removes any properties except the ones specified from a JSON object - -# PASS test/isTypedArray/isTypedArray.test.js - -ok 577 — isTypedArray is a Function - -# PASS test/pluralize/pluralize.test.js - -ok 578 — pluralize is a Function -ok 579 — Produces the plural of the word -ok 580 — Produces the singular of the word -ok 581 — Produces the plural of the word -ok 582 — Prodices the defined plural of the word -ok 583 — Works with a dictionary - -# PASS test/bindAll/bindAll.test.js - -ok 584 — bindAll is a Function -ok 585 — Binds to an object context - -# PASS test/capitalize/capitalize.test.js - -ok 586 — capitalize is a Function -ok 587 — Capitalizes the first letter of a string -ok 588 — Capitalizes the first letter of a string -ok 589 — Works with characters -ok 590 — "Works with single character words - -# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js - -ok 591 — getMeridiemSuffixOfInteger is a Function - -# PASS test/lowercaseKeys/lowercaseKeys.test.js - -ok 592 — lowercaseKeys is a Function -ok 593 — Lowercases object keys -ok 594 — Does not mutate original object - -# PASS test/pullAtIndex/pullAtIndex.test.js - -ok 595 — pullAtIndex is a Function -ok 596 — Pulls the given values -ok 597 — Pulls the given values - -# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js - -ok 598 — isBrowserTabFocused is a Function - -# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js - -ok 599 — fibonacciCountUntilNum is a Function - -# PASS test/isEmpty/isEmpty.test.js - -ok 600 — isEmpty is a Function -ok 601 — Returns true for empty Map -ok 602 — Returns true for empty Set -ok 603 — Returns true for empty array -ok 604 — Returns true for empty object -ok 605 — Returns true for empty string -ok 606 — Returns false for non-empty array -ok 607 — Returns false for non-empty object -ok 608 — Returns false for non-empty string -ok 609 — Returns true - type is not considered a collection -ok 610 — Returns true - type is not considered a collection - -# PASS test/isTravisCI/isTravisCI.test.js - -ok 611 — isTravisCI is a Function -ok 612 — Not running on Travis, correctly evaluates - -# PASS test/truthCheckCollection/truthCheckCollection.test.js - -ok 613 — truthCheckCollection is a Function -ok 614 — second argument is truthy on all elements of a collection - -# PASS test/dropRightWhile/dropRightWhile.test.js - -ok 615 — dropRightWhile is a Function -ok 616 — Removes elements from the end of an array until the passed function returns true. - -# PASS test/colorize/colorize.test.js - -ok 617 — colorize is a Function - -# PASS test/chainAsync/chainAsync.test.js - -ok 618 — chainAsync is a Function -ok 619 — Calls all functions in an array - -# PASS test/negate/negate.test.js - -ok 620 — negate is a Function -ok 621 — Negates a predicate function - -# PASS test/functions/functions.test.js - -ok 622 — functions is a Function -ok 623 — Returns own methods -ok 624 — Returns own and inherited methods - -# PASS test/isPrimitive/isPrimitive.test.js - -ok 625 — isPrimitive is a Function -ok 626 — isPrimitive(null) is primitive -ok 627 — isPrimitive(undefined) is primitive -ok 628 — isPrimitive(string) is primitive -ok 629 — isPrimitive(true) is primitive -ok 630 — isPrimitive(50) is primitive -ok 631 — isPrimitive('Hello') is primitive -ok 632 — isPrimitive(false) is primitive -ok 633 — isPrimitive(Symbol()) is primitive -ok 634 — isPrimitive([1, 2, 3]) is not primitive -ok 635 — isPrimitive({ a: 123 }) is not primitive -ok 636 — isPrimitive({ a: 123 }) takes less than 2s to run - -# PASS test/initial/initial.test.js - -ok 637 — initial is a Function -ok 638 — Returns all the elements of an array except the last one - -# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js - -ok 639 — getColonTimeFromDate is a Function - -# PASS test/unzip/unzip.test.js - -ok 640 — unzip is a Function -ok 641 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] -ok 642 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] - -# PASS test/intersection/intersection.test.js - -ok 643 — intersection is a Function -ok 644 — Returns a list of elements that exist in both arrays - -# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js - -ok 645 — UUIDGeneratorNode is a Function -ok 646 — Contains dashes in the proper places -ok 647 — Only contains hexadecimal digits - -# PASS test/reduceWhich/reduceWhich.test.js - -ok 648 — reduceWhich is a Function -ok 649 — Returns the minimum of an array -ok 650 — Returns the maximum of an array -ok 651 — Returns the object with the minimum specified value in an array - -# PASS test/sortedIndexBy/sortedIndexBy.test.js - -ok 652 — sortedIndexBy is a Function -ok 653 — Returns the lowest index to insert the element without messing up the list order - -# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js - -ok 654 — randomIntArrayInRange is a Function -ok 655 — The returned array contains only integers -ok 656 — The returned array has the proper length -ok 657 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/deepFlatten/deepFlatten.test.js - -ok 658 — deepFlatten is a Function -ok 659 — Deep flattens an array - -# PASS test/escapeRegExp/escapeRegExp.test.js - -ok 660 — escapeRegExp is a Function -ok 661 — Escapes a string to use in a regular expression - -# PASS test/countVowels/countVowels.test.js - -ok 662 — countVowels is a Function - -# PASS test/unionBy/unionBy.test.js - -ok 663 — unionBy is a Function -ok 664 — Produces the appropriate results - -# PASS test/findKey/findKey.test.js - -ok 665 — findKey is a Function -ok 666 — Returns the appropriate key - -# PASS test/findLastIndex/findLastIndex.test.js - -ok 667 — findLastIndex is a Function -ok 668 — Finds last index for which the given function returns true - -# PASS test/shuffle/shuffle.test.js - -ok 669 — shuffle is a Function -ok 670 — Shuffles the array -ok 671 — New array contains all original elements -ok 672 — Works for empty arrays -ok 673 — Works for single-element arrays - -# PASS test/attempt/attempt.test.js - -ok 674 — attempt is a Function -ok 675 — Returns a value -ok 676 — Returns an error - -# PASS test/drop/drop.test.js - -ok 677 — drop is a Function -ok 678 — Works without the last argument -ok 679 — Removes appropriate element count as specified -ok 680 — Empties array given a count greater than length - -# PASS test/forOwnRight/forOwnRight.test.js - -ok 681 — forOwnRight is a Function -ok 682 — Iterates over an element's key-value pairs in reverse - -# PASS test/flip/flip.test.js - -ok 683 — flip is a Function -ok 684 — Flips argument order - -# PASS test/when/when.test.js - -ok 685 — when is a Function -ok 686 — Returns the proper result -ok 687 — Returns the proper result - -# PASS test/readFileLines/readFileLines.test.js - -ok 688 — readFileLines is a Function - -# PASS test/createElement/createElement.test.js - -ok 689 — createElement is a Function - -# PASS test/renameKeys/renameKeys.test.js - -ok 690 — renameKeys is a Function -ok 691 — renameKeys is a Function - -# PASS test/coalesceFactory/coalesceFactory.test.js - -ok 692 — coalesceFactory is a Function -ok 693 — Returns a customized coalesce function - -# PASS test/onUserInputChange/onUserInputChange.test.js - -ok 694 — onUserInputChange is a Function - -# PASS test/reject/reject.test.js - -ok 695 — reject is a Function -ok 696 — Works with numbers -ok 697 — Works with strings - -# PASS test/isMap/isMap.test.js - -ok 698 — isMap is a Function - -# PASS test/reduceSuccessive/reduceSuccessive.test.js - -ok 699 — reduceSuccessive is a Function -ok 700 — Returns the array of successively reduced values - -# PASS test/byteSize/byteSize.test.js - -ok 701 — byteSize is a Function -ok 702 — Works for a single letter -ok 703 — Works for a common string -ok 704 — Works for emoji - -# PASS test/omitBy/omitBy.test.js - -ok 705 — omitBy is a Function -ok 706 — Creates an object composed of the properties the given function returns falsey for - -# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js - -ok 707 — elementIsVisibleInViewport is a Function - -# PASS test/objectToPairs/objectToPairs.test.js - -ok 708 — objectToPairs is a Function -ok 709 — Creates an array of key-value pair arrays from an object. - -# PASS test/isFunction/isFunction.test.js - -ok 710 — isFunction is a Function -ok 711 — passed value is a function -ok 712 — passed value is not a function - -# PASS test/httpDelete/httpDelete.test.js - -ok 713 — httpDelete is a Function - -# PASS test/bifurcate/bifurcate.test.js - -ok 714 — bifurcate is a Function -ok 715 — Splits the collection into two groups - -# PASS test/equals/equals.test.js - -ok 716 — equals is a Function -ok 717 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 718 — [1,2,3] is equal to [1,2,3] -ok 719 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 720 — [1,2,3] is not equal to [1,2,4] -ok 721 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. - -# PASS test/compact/compact.test.js - -ok 722 — compact is a Function -ok 723 — Removes falsey values from an array - -# PASS test/uncurry/uncurry.test.js - -ok 724 — uncurry is a Function -ok 725 — Works without a provided value for n -ok 726 — Works with n = 2 -ok 727 — Works with n = 3 - -# PASS test/sleep/sleep.test.js - -ok 728 — sleep is a Function -ok 729 — Works as expected - -# PASS test/scrollToTop/scrollToTop.test.js - -ok 730 — scrollToTop is a Function - -# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js - -ok 731 — initializeArrayWithRangeRight is a Function - -# PASS test/triggerEvent/triggerEvent.test.js - -ok 732 — triggerEvent is a Function - -# PASS test/toggleClass/toggleClass.test.js - -ok 733 — toggleClass is a Function - -# PASS test/forOwn/forOwn.test.js - -ok 734 — forOwn is a Function -ok 735 — Iterates over an element's key-value pairs - -# PASS test/hammingDistance/hammingDistance.test.js - -ok 736 — hammingDistance is a Function -ok 737 — retuns hamming disance between 2 values - -# PASS test/isString/isString.test.js - -ok 738 — isString is a Function -ok 739 — foo is a string -ok 740 — "10" is a string -ok 741 — Empty string is a string -ok 742 — 10 is not a string -ok 743 — true is not string - -# PASS test/parseCookie/parseCookie.test.js - -ok 744 — parseCookie is a Function -ok 745 — Parses the cookie - -# PASS test/btoa/btoa.test.js - -ok 746 — btoa is a Function -ok 747 — btoa("foobar") equals "Zm9vYmFy" - -# PASS test/partialRight/partialRight.test.js - -ok 748 — partialRight is a Function -ok 749 — Appends arguments - -# PASS test/takeRight/takeRight.test.js - -ok 750 — takeRight is a Function -ok 751 — Returns an array with n elements removed from the end -ok 752 — Returns an array with n elements removed from the end - -# PASS test/shallowClone/shallowClone.test.js - -ok 753 — shallowClone is a Function -ok 754 — Shallow cloning works -ok 755 — Does not clone deeply - -# PASS test/pickBy/pickBy.test.js - -ok 756 — pickBy is a Function -ok 757 — Creates an object composed of the properties the given function returns truthy for. - -# PASS test/unfold/unfold.test.js - -ok 758 — unfold is a Function -ok 759 — Works with a given function, producing an array - -# PASS test/redirect/redirect.test.js - -ok 760 — redirect is a Function - -# PASS test/groupBy/groupBy.test.js - -ok 761 — groupBy is a Function -ok 762 — Groups the elements of an array based on the given function -ok 763 — Groups the elements of an array based on the given function - -# PASS test/maxN/maxN.test.js - -ok 764 — maxN is a Function -ok 765 — Returns the n maximum elements from the provided array -ok 766 — Returns the n maximum elements from the provided array - -# PASS test/partial/partial.test.js - -ok 767 — partial is a Function -ok 768 — Prepends arguments - -# PASS test/mapValues/mapValues.test.js - -ok 769 — mapValues is a Function -ok 770 — Maps values - -# PASS test/hexToRGB/hexToRGB.test.js - -ok 771 — hexToRGB is a Function -ok 772 — Converts a color code to a rgb() or rgba() string -ok 773 — Converts a color code to a rgb() or rgba() string -ok 774 — Converts a color code to a rgb() or rgba() string - -# PASS test/intersectionBy/intersectionBy.test.js - -ok 775 — intersectionBy is a Function -ok 776 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both - -# PASS test/hasFlags/hasFlags.test.js - -ok 777 — hasFlags is a Function - -# PASS test/stableSort/stableSort.test.js - -ok 778 — stableSort is a Function -ok 779 — Array is properly sorted - -# PASS test/randomNumberInRange/randomNumberInRange.test.js - -ok 780 — randomNumberInRange is a Function -ok 781 — The returned value is a number -ok 782 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/pull/pull.test.js - -ok 783 — pull is a Function -ok 784 — Pulls the specified values - -# PASS test/over/over.test.js - -ok 785 — over is a Function -ok 786 — Applies given functions over multiple arguments - -# PASS test/hasClass/hasClass.test.js - -ok 787 — hasClass is a Function - -# PASS test/isLowerCase/isLowerCase.test.js - -ok 788 — isLowerCase is a Function -ok 789 — passed string is a lowercase -ok 790 — passed string is a lowercase -ok 791 — passed value is not a lowercase - -# PASS test/isSet/isSet.test.js - -ok 792 — isSet is a Function - -# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js - -ok 793 — getDaysDiffBetweenDates is a Function -ok 794 — Returns the difference in days between two dates - -# PASS test/sortedLastIndex/sortedLastIndex.test.js - -ok 795 — sortedLastIndex is a Function -ok 796 — Returns the highest index to insert the element without messing up the list order - -# PASS test/take/take.test.js - -ok 797 — take is a Function -ok 798 — Returns an array with n elements removed from the beginning. -ok 799 — Returns an array with n elements removed from the beginning. - -# PASS test/solveRPN/solveRPN.test.js - -ok 800 — solveRPN is a Function - -# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js - -ok 801 — pipeAsyncFunctions is a Function -ok 802 — pipeAsyncFunctions result should be 15 - -# PASS test/takeRightWhile/takeRightWhile.test.js - -ok 803 — takeRightWhile is a Function -ok 804 — Removes elements until the function returns true - -# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js - -ok 805 — initializeArrayWithValues is a Function -ok 806 — Initializes and fills an array with the specified values - -# PASS test/primes/primes.test.js - -ok 807 — primes is a Function -ok 808 — Generates primes up to a given number, using the Sieve of Eratosthenes. - -# PASS test/nthArg/nthArg.test.js - -ok 809 — nthArg is a Function -ok 810 — Returns the nth argument -ok 811 — Returns undefined if arguments too few -ok 812 — Works for negative values - -# PASS test/bottomVisible/bottomVisible.test.js - -ok 813 — bottomVisible is a Function - -# PASS test/objectFromPairs/objectFromPairs.test.js - -ok 814 — objectFromPairs is a Function -ok 815 — Creates an object from the given key-value pairs. - -# PASS test/pullAtValue/pullAtValue.test.js - -ok 816 — pullAtValue is a Function -ok 817 — Pulls the specified values -ok 818 — Pulls the specified values - -# PASS test/isObjectLike/isObjectLike.test.js - -ok 819 — isObjectLike is a Function -ok 820 — Returns true for an object -ok 821 — Returns true for an array -ok 822 — Returns false for a function -ok 823 — Returns false for null - -# PASS test/collectInto/collectInto.test.js - -ok 824 — collectInto is a Function -ok 825 — Works with multiple promises - -# PASS test/isEven/isEven.test.js - -ok 826 — isEven is a Function -ok 827 — 4 is even number -ok 828 — 5 is not an even number - -# PASS test/deepClone/deepClone.test.js - -ok 829 — deepClone is a Function -ok 830 — Shallow cloning works -ok 831 — Deep cloning works -ok 832 — Array shallow cloning works -ok 833 — Array deep cloning works - -# PASS test/copyToClipboard/copyToClipboard.test.js - -ok 834 — copyToClipboard is a Function - -# PASS test/isWeakMap/isWeakMap.test.js - -ok 835 — isWeakMap is a Function - -# PASS test/hashBrowser/hashBrowser.test.js - -ok 836 — hashBrowser is a Function - -# PASS test/stripHTMLTags/stripHTMLTags.test.js - -ok 837 — stripHTMLTags is a Function -ok 838 — Removes HTML tags - -# PASS test/speechSynthesis/speechSynthesis.test.js - -ok 839 — speechSynthesis is a Function - -# PASS test/formatDuration/formatDuration.test.js - -ok 840 — formatDuration is a Function -ok 841 — Returns the human readable format of the given number of milliseconds -ok 842 — Returns the human readable format of the given number of milliseconds - -# PASS test/findLastKey/findLastKey.test.js - -ok 843 — findLastKey is a Function -ok 844 — eturns the appropriate key - -# PASS test/isBrowser/isBrowser.test.js - -ok 845 — isBrowser is a Function - -# PASS test/getScrollPosition/getScrollPosition.test.js - -ok 846 — getScrollPosition is a Function - -# PASS test/elementContains/elementContains.test.js - -ok 847 — elementContains is a Function - -# PASS test/omit/omit.test.js - -ok 848 — omit is a Function -ok 849 — Omits the key-value pairs corresponding to the given keys from an object - -# PASS test/hashNode/hashNode.test.js - -ok 850 — hashNode is a Function -ok 851 — Produces the appropriate hash - -# PASS test/fibonacci/fibonacci.test.js - -ok 852 — fibonacci is a Function -ok 853 — Generates an array, containing the Fibonacci sequence - -# PASS test/minBy/minBy.test.js - -ok 854 — minBy is a Function -ok 855 — Produces the right result with a function -ok 856 — Produces the right result with a property name - -# PASS test/isUndefined/isUndefined.test.js - -ok 857 — isUndefined is a Function -ok 858 — Returns true for undefined - -# PASS test/curry/curry.test.js - -ok 859 — curry is a Function -ok 860 — curries a Math.pow -ok 861 — curries a Math.min - -# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js - -ok 862 — fibonacciUntilNum is a Function - -# PASS test/call/call.test.js - -ok 863 — call is a Function -ok 864 — Calls function on given object - -# PASS test/serializeCookie/serializeCookie.test.js - -ok 865 — serializeCookie is a Function -ok 866 — Serializes the cookie - -# PASS test/times/times.test.js - -ok 867 — times is a Function -ok 868 — Runs a function the specified amount of times - -# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js - -ok 869 — toOrdinalSuffix is a Function -ok 870 — Adds an ordinal suffix to a number -ok 871 — Adds an ordinal suffix to a number -ok 872 — Adds an ordinal suffix to a number -ok 873 — Adds an ordinal suffix to a number - -# PASS test/arrayToCSV/arrayToCSV.test.js - -ok 874 — arrayToCSV is a Function -ok 875 — arrayToCSV works with default delimiter -ok 876 — arrayToCSV works with custom delimiter - -# PASS test/countOccurrences/countOccurrences.test.js - -ok 877 — countOccurrences is a Function -ok 878 — Counts the occurrences of a value in an array - -# PASS test/promisify/promisify.test.js - -ok 879 — promisify is a Function -ok 880 — Returns a promise -ok 881 — Runs the function provided - -# PASS test/sumPower/sumPower.test.js - -ok 882 — sumPower is a Function -ok 883 — Returns the sum of the powers of all the numbers from start to end -ok 884 — Returns the sum of the powers of all the numbers from start to end -ok 885 — Returns the sum of the powers of all the numbers from start to end - -# PASS test/isArrayBuffer/isArrayBuffer.test.js - -ok 886 — isArrayBuffer is a Function - -# PASS test/prefix/prefix.test.js - -ok 887 — prefix is a Function - -# PASS test/overArgs/overArgs.test.js - -ok 888 — overArgs is a Function -ok 889 — Invokes the provided function with its arguments transformed - -# PASS test/isArmstrongNumber/isArmstrongNumber.test.js - -ok 890 — isArmstrongNumber is a Function - -# PASS test/intersectionWith/intersectionWith.test.js - -ok 891 — intersectionWith is a Function -ok 892 — Returns a list of elements that exist in both arrays, using a provided comparator function - -# PASS test/standardDeviation/standardDeviation.test.js - -ok 893 — standardDeviation is a Function -ok 894 — Returns the standard deviation of an array of numbers -ok 895 — Returns the standard deviation of an array of numbers - -# PASS test/averageBy/averageBy.test.js - -ok 896 — averageBy is a Function -ok 897 — Produces the right result with a function -ok 898 — Produces the right result with a property name - -# PASS test/isRegExp/isRegExp.test.js - -ok 899 — isRegExp is a Function - -# PASS test/extendHex/extendHex.test.js - -ok 900 — extendHex is a Function -ok 901 — Extends a 3-digit color code to a 6-digit color code -ok 902 — Extends a 3-digit color code to a 6-digit color code - -# PASS test/toHash/toHash.test.js - -ok 903 — toHash is a Function - -# PASS test/dropWhile/dropWhile.test.js - -ok 904 — dropWhile is a Function -ok 905 — Removes elements in an array until the passed function returns true. - -# PASS test/truncateString/truncateString.test.js - -ok 906 — truncateString is a Function -ok 907 — Truncates a "boomerang" up to a specified length. - -# PASS test/isDivisible/isDivisible.test.js - -ok 908 — isDivisible is a Function -ok 909 — The number 6 is divisible by 3 - -# PASS test/delay/delay.test.js - -ok 910 — delay is a Function -ok 911 — Works as expecting, passing arguments properly - -# PASS test/createEventHub/createEventHub.test.js - -ok 912 — createEventHub is a Function - -# PASS test/insertAfter/insertAfter.test.js - -ok 913 — insertAfter is a Function - -# PASS test/levenshteinDistance/levenshteinDistance.test.js - -ok 914 — levenshteinDistance is a Function - -# PASS test/unescapeHTML/unescapeHTML.test.js - -ok 915 — unescapeHTML is a Function -ok 916 — Unescapes escaped HTML characters. - -# PASS test/maxBy/maxBy.test.js - -ok 917 — maxBy is a Function -ok 918 — Produces the right result with a function -ok 919 — Produces the right result with a property name - -# PASS test/show/show.test.js - -ok 920 — show is a Function - -# PASS test/nodeListToArray/nodeListToArray.test.js - -ok 921 — nodeListToArray is a Function - -# PASS test/setStyle/setStyle.test.js - -ok 922 — setStyle is a Function - -# PASS test/pad/pad.test.js - -ok 923 — pad is a Function -ok 924 — cat is padded on both sides -ok 925 — length of string is 8 -ok 926 — pads 42 with "0" -ok 927 — does not truncates if string exceeds length - -# PASS test/merge/merge.test.js - -ok 928 — merge is a Function -ok 929 — Merges two objects - -# PASS test/forEachRight/forEachRight.test.js - -ok 930 — forEachRight is a Function -ok 931 — Iterates over the array in reverse - -# PASS test/isNumber/isNumber.test.js - -ok 932 — isNumber is a Function -ok 933 — passed argument is a number -ok 934 — passed argument is not a number - -# PASS test/defaults/defaults.test.js - -ok 935 — defaults is a Function -ok 936 — Assigns default values for undefined properties - -# PASS test/RGBToHex/RGBToHex.test.js - -ok 937 — RGBToHex is a Function -ok 938 — Converts the values of RGB components to a color code. - -# PASS test/converge/converge.test.js - -ok 939 — converge is a Function -ok 940 — Produces the average of the array -ok 941 — Produces the strange concatenation - -# PASS test/minN/minN.test.js - -ok 942 — minN is a Function -ok 943 — Returns the n minimum elements from the provided array -ok 944 — Returns the n minimum elements from the provided array - -# PASS test/unzipWith/unzipWith.test.js - -ok 945 — unzipWith is a Function -ok 946 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] - -# PASS test/hide/hide.test.js - -ok 947 — hide is a Function - -# PASS test/palindrome/palindrome.test.js - -ok 948 — palindrome is a Function -ok 949 — Given string is a palindrome -ok 950 — Given string is not a palindrome - -# PASS test/observeMutations/observeMutations.test.js - -ok 951 — observeMutations is a Function - -# PASS test/detectDeviceType/detectDeviceType.test.js - -ok 952 — detectDeviceType is a Function - -# PASS test/httpPut/httpPut.test.js - -ok 953 — httpPut is a Function - -# PASS test/pick/pick.test.js - -ok 954 — pick is a Function -ok 955 — Picks the key-value pairs corresponding to the given keys from an object. - -# PASS test/filterNonUnique/filterNonUnique.test.js - -ok 956 — filterNonUnique is a Function -ok 957 — Filters out the non-unique values in an array - -# PASS test/sortCharactersInString/sortCharactersInString.test.js - -ok 958 — sortCharactersInString is a Function -ok 959 — Alphabetically sorts the characters in a string. - -# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js - -ok 960 — capitalizeEveryWord is a Function -ok 961 — Capitalizes the first letter of every word in a string -ok 962 — Works with characters -ok 963 — Works with one word string - -# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js - -ok 964 — symmetricDifferenceWith is a Function -ok 965 — Returns the symmetric difference between two arrays, using a provided function as a comparator - -# PASS test/howManyTimes/howManyTimes.test.js - -ok 966 — howManyTimes is a Function - -# PASS test/isWeakSet/isWeakSet.test.js - -ok 967 — isWeakSet is a Function - -# PASS test/symmetricDifference/symmetricDifference.test.js - -ok 968 — symmetricDifference is a Function -ok 969 — Returns the symmetric difference between two arrays. - -# PASS test/decapitalize/decapitalize.test.js - -ok 970 — decapitalize is a Function -ok 971 — Works with default parameter -ok 972 — Works with second parameter set to true - -# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js - -ok 973 — initializeArrayWithRange is a Function -ok 974 — Initializes an array containing the numbers in the specified range - -# PASS test/ary/ary.test.js - -ok 975 — ary is a Function -ok 976 — Discards arguments with index >=n - -# PASS test/debounce/debounce.test.js - -ok 977 — debounce is a Function -ok 978 — Works as expected - -# PASS test/runAsync/runAsync.test.js - -ok 979 — runAsync is a Function - -# PASS test/sum/sum.test.js - -ok 980 — sum is a Function -ok 981 — Returns the sum of two or more numbers/arrays. - -# PASS test/defer/defer.test.js - -ok 982 — defer is a Function - -# PASS test/getType/getType.test.js - -ok 983 — getType is a Function -ok 984 — Returns the native type of a value - -# PASS test/get/get.test.js - -ok 985 — get is a Function -ok 986 — Retrieve a property indicated by the selector from an object. - -# PASS test/bind/bind.test.js - -ok 987 — bind is a Function -ok 988 — Binds to an object context - -# PASS test/sumBy/sumBy.test.js - -ok 989 — sumBy is a Function - -# PASS test/differenceWith/differenceWith.test.js - -ok 990 — differenceWith is a Function -ok 991 — Filters out all values from an array - -# PASS test/functionName/functionName.test.js - -ok 992 — functionName is a Function -ok 993 — Works for native functions -ok 994 — Works for functions -ok 995 — Works for arrow functions - -# PASS test/removeVowels/removeVowels.test.js - -ok 996 — removeVowels is a Function - -# PASS test/findLast/findLast.test.js - -ok 997 — findLast is a Function -ok 998 — Finds last element for which the given function returns true - -# PASS test/similarity/similarity.test.js - -ok 999 — similarity is a Function -ok 1000 — Returns an array of elements that appear in both arrays. - -# PASS test/JSONToFile/JSONToFile.test.js - -ok 1001 — JSONToFile is a Function - -# PASS test/sdbm/sdbm.test.js - -ok 1002 — sdbm is a Function -ok 1003 — Hashes the input string into a whole number. - -# FAIL test/dig/dig.test.js - -# -# ReferenceError: dig is not defined -# -# Stack: -# -# at Object. (test/dig/dig.js:1:45) -# -# > 1 | module.exports = dig; -# | ^ -# -# at Generator.next () -# at new Promise () -# at Generator.next () -# at - -# PASS test/flatten/flatten.test.js - -ok 1004 — flatten is a Function -ok 1005 — Flattens an array -ok 1006 — Flattens an array - -1..1006 - -# Test Suites: 99% ██████████, 2 failed, 338 passed, 340 total -# Tests: 100% ██████████, 1 failed, 1005 passed, 1006 total -# Time: 5.767s, estimated 5s - -# Ran all test suites. - -undefined \ No newline at end of file From 915931ebf6df108399c7d1d6ef4eb0b92e25a3c8 Mon Sep 17 00:00:00 2001 From: Henry Szeto Date: Fri, 13 Jul 2018 11:10:45 -0700 Subject: [PATCH 08/10] more codacy cleanup --- test/dig/dig.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/dig/dig.js b/test/dig/dig.js index db996762f..710fce0c9 100644 --- a/test/dig/dig.js +++ b/test/dig/dig.js @@ -5,11 +5,11 @@ const dig = (obj, target) => .values(obj) .reduce((acc, val) => { if (acc !== undefined) { - return acc - }; + return acc; + } if (typeof val === "object") { - return dig(val, target) - }; + return dig(val, target); + } }, undefined); module.exports = dig; From bcef534ab1b3dfe0575e327a95d7ca3d294bd7dc Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 14 Jul 2018 10:25:44 +0300 Subject: [PATCH 09/10] Update dig.md --- snippets/dig.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/snippets/dig.md b/snippets/dig.md index f521bd290..8cf692a0c 100644 --- a/snippets/dig.md +++ b/snippets/dig.md @@ -1,9 +1,9 @@ ### dig -Return the value in a nested JSON object by the key. +Returns the target value in a nested JSON object, based on the given key. -Given the key name (or target), it will loop through each key/value in the object and look for object type. -If value is an object, dig is called recusively until the first matching key/value is found. +Use the `in` operator to check if `target` exists in `obj`. +If found, return the value of `obj[target]`, otherwise use `Object.values(obj)` and `Array.reduce()` to recursively call `dig` on each nested object until the first matching key/value pair is found. ``` const dig = (obj, target) => @@ -21,11 +21,10 @@ const dig = (obj, target) => const data = { level1:{ level2:{ - level3: "some data" + level3: 'some data' } } }; - -dig(data, 'level3'); // "some data" +dig(data, 'level3'); // 'some data' dig(data, 'level4'); // undefined ``` From a068f8a2ecff98641ef1089b28b90eb5a7a8b8cf Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 14 Jul 2018 10:30:07 +0300 Subject: [PATCH 10/10] Revert changes to testlog --- test/testlog | 2036 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2036 insertions(+) create mode 100644 test/testlog diff --git a/test/testlog b/test/testlog new file mode 100644 index 000000000..858a4e695 --- /dev/null +++ b/test/testlog @@ -0,0 +1,2036 @@ + + +# Starting... +# 339 test suites found. + +# PASS test/zipObject/zipObject.test.js + +ok 1 — zipObject is a Function +ok 2 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} +ok 3 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} +ok 4 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } +ok 5 — zipObject([a], string) returns { a: s } +ok 6 — zipObject() throws an error +ok 7 — zipObject((['string'], null) throws an error +ok 8 — zipObject(null, [1]) throws an error +ok 9 — zipObject('string') throws an error +ok 10 — zipObject('test', 'string') throws an error + +# PASS test/toSafeInteger/toSafeInteger.test.js + +ok 11 — toSafeInteger is a Function +ok 12 — Number(toSafeInteger(3.2)) is a number +ok 13 — Converts a value to a safe integer +ok 14 — toSafeInteger('4.2') returns 4 +ok 15 — toSafeInteger(4.6) returns 5 +ok 16 — toSafeInteger([]) returns 0 +ok 17 — isNaN(toSafeInteger([1.5, 3124])) is true +ok 18 — isNaN(toSafeInteger('string')) is true +ok 19 — isNaN(toSafeInteger({})) is true +ok 20 — isNaN(toSafeInteger()) is true +ok 21 — toSafeInteger(Infinity) returns 9007199254740991 +ok 22 — toSafeInteger(3.2) takes less than 2s to run + +# PASS test/average/average.test.js + +ok 23 — average is a Function +ok 24 — average(true) returns 0 +ok 25 — average(false) returns 1 +ok 26 — average(9, 1) returns 5 +ok 27 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 +ok 28 — average(1, 2, 3) returns 2 +ok 29 — average(null) returns 0 +ok 30 — average(1, 2, 3) returns NaN +ok 31 — average(String) returns NaN +ok 32 — average({ a: 123}) returns NaN +ok 33 — average([undefined, 0, string]) returns NaN +ok 34 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/toKebabCase/toKebabCase.test.js + +ok 35 — toKebabCase is a Function +ok 36 — toKebabCase('camelCase') returns camel-case +ok 37 — toKebabCase('some text') returns some-text +ok 38 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens +ok 39 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html +ok 40 — toKebabCase() returns undefined +ok 41 — toKebabCase([]) throws an erro +ok 42 — toKebabCase({}) throws an erro +ok 43 — toKebabCase(123) throws an erro +ok 44 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run + +# PASS test/validateNumber/validateNumber.test.js + +ok 45 — validateNumber is a Function +ok 46 — validateNumber(9) returns true +ok 47 — validateNumber(234asd.slice(0, 2)) returns true +ok 48 — validateNumber(1232) returns true +ok 49 — validateNumber(1232 + 13423) returns true +ok 50 — validateNumber(1232 * 2342 * 123) returns true +ok 51 — validateNumber(1232.23423536) returns true +ok 52 — validateNumber(234asd) returns false +ok 53 — validateNumber(e234d) returns false +ok 54 — validateNumber(false) returns false +ok 55 — validateNumber(true) returns false +ok 56 — validateNumber(null) returns false +ok 57 — validateNumber(123 * asd) returns false + +# PASS test/toSnakeCase/toSnakeCase.test.js + +ok 58 — toSnakeCase is a Function +ok 59 — toSnakeCase('camelCase') returns camel_case +ok 60 — toSnakeCase('some text') returns some_text +ok 61 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens +ok 62 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html +ok 63 — toSnakeCase() returns undefined +ok 64 — toSnakeCase([]) throws an error +ok 65 — toSnakeCase({}) throws an error +ok 66 — toSnakeCase(123) throws an error +ok 67 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run + +# PASS test/isPrimitive/isPrimitive.test.js + +ok 68 — isPrimitive is a Function +ok 69 — isPrimitive(null) is primitive +ok 70 — isPrimitive(undefined) is primitive +ok 71 — isPrimitive(string) is primitive +ok 72 — isPrimitive(true) is primitive +ok 73 — isPrimitive(50) is primitive +ok 74 — isPrimitive('Hello') is primitive +ok 75 — isPrimitive(false) is primitive +ok 76 — isPrimitive(Symbol()) is primitive +ok 77 — isPrimitive([1, 2, 3]) is not primitive +ok 78 — isPrimitive({ a: 123 }) is not primitive +ok 79 — isPrimitive({ a: 123 }) takes less than 2s to run + +# PASS test/mapObject/mapObject.test.js + +ok 80 — mapObject is a Function +ok 81 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 82 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 83 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } + +# PASS test/chunk/chunk.test.js + +ok 84 — chunk is a Function +ok 85 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] +ok 86 — chunk([]) returns [] +ok 87 — chunk(123) returns [] +ok 88 — chunk({ a: 123}) returns [] +ok 89 — chunk(string, 2) returns [ st, ri, ng ] +ok 90 — chunk() throws an error +ok 91 — chunk(undefined) throws an error +ok 92 — chunk(null) throws an error +ok 93 — chunk(This is a string, 2) takes less than 2s to run + +# PASS test/geometricProgression/geometricProgression.test.js + +ok 94 — geometricProgression is a Function +ok 95 — Initializes an array containing the numbers in the specified range +ok 96 — Initializes an array containing the numbers in the specified range +ok 97 — Initializes an array containing the numbers in the specified range + +# PASS test/uniqueElements/uniqueElements.test.js + +ok 98 — uniqueElements is a Function +ok 99 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] +ok 100 — uniqueElements([1, 23, 53]) returns [1, 23, 53] +ok 101 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] +ok 102 — uniqueElements() returns [] +ok 103 — uniqueElements(null) returns [] +ok 104 — uniqueElements(undefined) returns [] +ok 105 — uniqueElements('strt') returns ['s', 't', 'r'] +ok 106 — uniqueElements(1, 1, 2543, 534, 5) throws an error +ok 107 — uniqueElements({}) throws an error +ok 108 — uniqueElements(true) throws an error +ok 109 — uniqueElements(false) throws an error +ok 110 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run + +# PASS test/without/without.test.js + +ok 111 — without is a Function +ok 112 — without([2, 1, 2, 3], 1, 2) returns [3] +ok 113 — without([]) returns [] +ok 114 — without([3, 1, true, '3', true], '3', true) returns [3, 1] +ok 115 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] +ok 116 — without() throws an error +ok 117 — without(null) throws an error +ok 118 — without(undefined) throws an error +ok 119 — without(123) throws an error +ok 120 — without({}) throws an error + +# PASS test/is/is.test.js + +ok 121 — is is a Function +ok 122 — Works for arrays with data +ok 123 — Works for empty arrays +ok 124 — Works for arrays, not objects +ok 125 — Works for objects +ok 126 — Works for maps +ok 127 — Works for regular expressions +ok 128 — Works for sets +ok 129 — Works for weak maps +ok 130 — Works for weak sets +ok 131 — Works for strings - returns true for primitive +ok 132 — Works for strings - returns true when using constructor +ok 133 — Works for numbers - returns true for primitive +ok 134 — Works for numbers - returns true when using constructor +ok 135 — Works for booleans - returns true for primitive +ok 136 — Works for booleans - returns true when using constructor +ok 137 — Works for functions + +# PASS test/isSorted/isSorted.test.js + +ok 138 — isSorted is a Function +ok 139 — Array is sorted in ascending order +ok 140 — Array is sorted in ascending order +ok 141 — Array is sorted in ascending order +ok 142 — Array is sorted in ascending order +ok 143 — Array is sorted in descending order +ok 144 — Array is sorted in descending order +ok 145 — Array is sorted in descending order +ok 146 — Array is sorted in descending order +ok 147 — Array is empty +ok 148 — Array is not sorted, direction changed in array +ok 149 — Array is not sorted, direction changed in array + +# PASS test/any/any.test.js + +ok 150 — any is a Function +ok 151 — Returns true for arrays with at least one truthy value +ok 152 — Returns false for arrays with no truthy values +ok 153 — Returns false for arrays with no truthy values +ok 154 — Returns true with predicate function +ok 155 — Returns false with a predicate function + +# PASS test/orderBy/orderBy.test.js + +ok 156 — orderBy is a Function +ok 157 — Returns a sorted array of objects ordered by properties and orders. +ok 158 — Returns a sorted array of objects ordered by properties and orders. + +# PASS test/join/join.test.js + +ok 159 — join is a Function +ok 160 — Joins all elements of an array into a string and returns this string +ok 161 — Joins all elements of an array into a string and returns this string +ok 162 — Joins all elements of an array into a string and returns this string + +# PASS test/isEmpty/isEmpty.test.js + +ok 163 — isEmpty is a Function +ok 164 — Returns true for empty Map +ok 165 — Returns true for empty Set +ok 166 — Returns true for empty array +ok 167 — Returns true for empty object +ok 168 — Returns true for empty string +ok 169 — Returns false for non-empty array +ok 170 — Returns false for non-empty object +ok 171 — Returns false for non-empty string +ok 172 — Returns true - type is not considered a collection +ok 173 — Returns true - type is not considered a collection + +# PASS test/union/union.test.js + +ok 174 — union is a Function +ok 175 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] +ok 176 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] +ok 177 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] +ok 178 — union([], []) returns [] +ok 179 — union() throws an error +ok 180 — union(true, 'str') throws an error +ok 181 — union('false', true) throws an error +ok 182 — union((123, {}) throws an error +ok 183 — union([], {}) throws an error +ok 184 — union(undefined, null) throws an error +ok 185 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run + +# PASS test/round/round.test.js + +ok 186 — round is a Function +ok 187 — round(1.005, 2) returns 1.01 +ok 188 — round(123.3423345345345345344, 11) returns 123.34233453453 +ok 189 — round(3.342, 11) returns 3.342 +ok 190 — round(1.005) returns 1 +ok 191 — round([1.005, 2]) returns NaN +ok 192 — round(string) returns NaN +ok 193 — round() returns NaN +ok 194 — round(132, 413, 4134) returns NaN +ok 195 — round({a: 132}, 413) returns NaN +ok 196 — round(123.3423345345345345344, 11) takes less than 2s to run + +# PASS test/words/words.test.js + +ok 197 — words is a Function +ok 198 — words('I love javaScript!!') returns [I, love, javaScript] +ok 199 — words('python, javaScript & coffee') returns [python, javaScript, coffee] +ok 200 — words(I love javaScript!!) returns an array +ok 201 — words() throws an error +ok 202 — words(null) throws an error +ok 203 — words(undefined) throws an error +ok 204 — words({}) throws an error +ok 205 — words([]) throws an error +ok 206 — words(1234) throws an error + +# PASS test/toCamelCase/toCamelCase.test.js + +ok 207 — toCamelCase is a Function +ok 208 — toCamelCase('some_database_field_name') returns someDatabaseFieldName +ok 209 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized +ok 210 — toCamelCase('some-javascript-property') return someJavascriptProperty +ok 211 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens +ok 212 — toCamelCase() throws a error +ok 213 — toCamelCase([]) throws a error +ok 214 — toCamelCase({}) throws a error +ok 215 — toCamelCase(123) throws a error +ok 216 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run + +# PASS test/toCurrency/toCurrency.test.js + +ok 217 — toCurrency is a Function +ok 218 — currency: Euro | currencyLangFormat: Local +ok 219 — currency: US Dollar | currencyLangFormat: English (United States) +ok 220 — currency: Japanese Yen | currencyLangFormat: Local + +# PASS test/quickSort/quickSort.test.js + +ok 221 — quickSort is a Function +ok 222 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] +ok 223 — quickSort([-1, 0, -2]) returns [-2, -1, 0] +ok 224 — quickSort() throws an error +ok 225 — quickSort(123) throws an error +ok 226 — quickSort({ 234: string}) throws an error +ok 227 — quickSort(null) throws an error +ok 228 — quickSort(undefined) throws an error +ok 229 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run + +# PASS test/binomialCoefficient/binomialCoefficient.test.js + +ok 230 — binomialCoefficient is a Function +ok 231 — Returns the appropriate value +ok 232 — Returns the appropriate value +ok 233 — Returns the appropriate value +ok 234 — Returns NaN +ok 235 — Returns NaN + +# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js + +ok 236 — randomIntArrayInRange is a Function +ok 237 — The returned array contains only integers +ok 238 — The returned array has the proper length +ok 239 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/all/all.test.js + +ok 240 — all is a Function +ok 241 — Returns true for arrays with no falsey values +ok 242 — Returns false for arrays with 0 +ok 243 — Returns false for arrays with NaN +ok 244 — Returns false for arrays with undefined +ok 245 — Returns false for arrays with null +ok 246 — Returns false for arrays with empty strings +ok 247 — Returns true with predicate function +ok 248 — Returns false with a predicate function + +# PASS test/offset/offset.test.js + +ok 249 — offset is a Function +ok 250 — Offset of 0 returns the same array. +ok 251 — Offset > 0 returns the offsetted array. +ok 252 — Offset < 0 returns the reverse offsetted array. +ok 253 — Offset greater than the length of the array returns the same array. +ok 254 — Offset less than the negative length of the array returns the same array. +ok 255 — Offsetting empty array returns an empty array. + +# PASS test/pluralize/pluralize.test.js + +ok 256 — pluralize is a Function +ok 257 — Produces the plural of the word +ok 258 — Produces the singular of the word +ok 259 — Produces the plural of the word +ok 260 — Prodices the defined plural of the word +ok 261 — Works with a dictionary + +# PASS test/equals/equals.test.js + +ok 262 — equals is a Function +ok 263 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 264 — [1,2,3] is equal to [1,2,3] +ok 265 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 266 — [1,2,3] is not equal to [1,2,4] +ok 267 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. + +# PASS test/head/head.test.js + +ok 268 — head is a Function +ok 269 — head({ a: 1234}) returns undefined +ok 270 — head([1, 2, 3]) returns 1 +ok 271 — head({ 0: false}) returns false +ok 272 — head(String) returns S +ok 273 — head(null) throws an Error +ok 274 — head(undefined) throws an Error +ok 275 — head() throws an Error +ok 276 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/CSVToArray/CSVToArray.test.js + +ok 277 — CSVToArray is a Function +ok 278 — CSVToArray works with default delimiter +ok 279 — CSVToArray works with custom delimiter +ok 280 — CSVToArray omits the first row +ok 281 — CSVToArray omits the first row and works with a custom delimiter + +# PASS test/randomNumberInRange/randomNumberInRange.test.js + +ok 282 — randomNumberInRange is a Function +ok 283 — The returned value is a number +ok 284 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/sampleSize/sampleSize.test.js + +ok 285 — sampleSize is a Function +ok 286 — Returns a single element without n specified +ok 287 — Returns a random sample of specified size from an array +ok 288 — Returns all elements in an array if n >= length +ok 289 — Returns an empty array if original array is empty +ok 290 — Returns an empty array if n = 0 + +# PASS test/last/last.test.js + +ok 291 — last is a Function +ok 292 — last({ a: 1234}) returns undefined +ok 293 — last([1, 2, 3]) returns 3 +ok 294 — last({ 0: false}) returns undefined +ok 295 — last(String) returns g +ok 296 — last(null) throws an Error +ok 297 — last(undefined) throws an Error +ok 298 — last() throws an Error +ok 299 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/yesNo/yesNo.test.js + +ok 300 — yesNo is a Function +ok 301 — yesNo(Y) returns true +ok 302 — yesNo(yes) returns true +ok 303 — yesNo(foo, true) returns true +ok 304 — yesNo(No) returns false +ok 305 — yesNo() returns false +ok 306 — yesNo(null) returns false +ok 307 — yesNo(undefined) returns false +ok 308 — yesNo([123, null]) returns false +ok 309 — yesNo([Yes, No]) returns false +ok 310 — yesNo({ 2: Yes }) returns false +ok 311 — yesNo([Yes, No], true) returns true +ok 312 — yesNo({ 2: Yes }, true) returns true + +# PASS test/randomIntegerInRange/randomIntegerInRange.test.js + +ok 313 — randomIntegerInRange is a Function +ok 314 — The returned value is an integer +ok 315 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/zip/zip.test.js + +ok 316 — zip is a Function +ok 317 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] +ok 318 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] +ok 319 — zip([]) returns [] +ok 320 — zip(123) returns [] +ok 321 — zip([a, b], [1, 2], [true, false]) returns an Array +ok 322 — zip([a], [1, 2], [true, false]) returns an Array +ok 323 — zip(null) throws an error +ok 324 — zip(undefined) throws an error + +# PASS test/invertKeyValues/invertKeyValues.test.js + +ok 325 — invertKeyValues is a Function +ok 326 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 327 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# PASS test/inRange/inRange.test.js + +ok 328 — inRange is a Function +ok 329 — The given number falls within the given range +ok 330 — The given number falls within the given range +ok 331 — The given number does not falls within the given range +ok 332 — The given number does not falls within the given range + +# PASS test/factorial/factorial.test.js + +ok 333 — factorial is a Function +ok 334 — Calculates the factorial of 720 +ok 335 — Calculates the factorial of 0 +ok 336 — Calculates the factorial of 1 +ok 337 — Calculates the factorial of 4 +ok 338 — Calculates the factorial of 10 + +# PASS test/fromCamelCase/fromCamelCase.test.js + +ok 339 — fromCamelCase is a Function +ok 340 — Converts a string from camelcase +ok 341 — Converts a string from camelcase +ok 342 — Converts a string from camelcase + +# PASS test/mask/mask.test.js + +ok 343 — mask is a Function +ok 344 — Replaces all but the last num of characters with the specified mask character +ok 345 — Replaces all but the last num of characters with the specified mask character +ok 346 — Replaces all but the last num of characters with the specified mask character + +# PASS test/none/none.test.js + +ok 347 — none is a Function +ok 348 — Returns true for arrays with no truthy values +ok 349 — Returns false for arrays with at least one truthy value +ok 350 — Returns true with a predicate function +ok 351 — Returns false with predicate function + +# PASS test/converge/converge.test.js + +ok 352 — converge is a Function +ok 353 — Produces the average of the array +ok 354 — Produces the strange concatenation + +# PASS test/reduceWhich/reduceWhich.test.js + +ok 355 — reduceWhich is a Function +ok 356 — Returns the minimum of an array +ok 357 — Returns the maximum of an array +ok 358 — Returns the object with the minimum specified value in an array + +# PASS test/approximatelyEqual/approximatelyEqual.test.js + +ok 359 — approximatelyEqual is a Function +ok 360 — Works for PI / 2 +ok 361 — Works for 0.1 + 0.2 === 0.3 +ok 362 — Works for exactly equal values +ok 363 — Works for a custom epsilon + +# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js + +ok 364 — toOrdinalSuffix is a Function +ok 365 — Adds an ordinal suffix to a number +ok 366 — Adds an ordinal suffix to a number +ok 367 — Adds an ordinal suffix to a number +ok 368 — Adds an ordinal suffix to a number + +# PASS test/binarySearch/binarySearch.test.js + +ok 369 — binarySearch is a Function +ok 370 — Finds item in array +ok 371 — Returns -1 when not found +ok 372 — Works with empty arrays +ok 373 — Works for one element arrays + +# PASS test/castArray/castArray.test.js + +ok 374 — castArray is a Function +ok 375 — Works for single values +ok 376 — Works for arrays with one value +ok 377 — Works for arrays with multiple value +ok 378 — Works for strings +ok 379 — Works for objects + +# PASS test/isAnagram/isAnagram.test.js + +ok 380 — isAnagram is a Function +ok 381 — Checks valid anagram +ok 382 — Works with spaces +ok 383 — Ignores case +ok 384 — Ignores special characters + +# PASS test/randomHexColorCode/randomHexColorCode.test.js + +ok 385 — randomHexColorCode is a Function +ok 386 — randomHexColorCode has to proper length +ok 387 — The color code starts with "#" +ok 388 — The color code contains only valid hex-digits + +# PASS test/capitalize/capitalize.test.js + +ok 389 — capitalize is a Function +ok 390 — Capitalizes the first letter of a string +ok 391 — Capitalizes the first letter of a string +ok 392 — Works with characters +ok 393 — "Works with single character words + +# PASS test/tomorrow/tomorrow.test.js + +ok 394 — tomorrow is a Function +ok 395 — Returns the correct year +ok 396 — Returns the correct month +ok 397 — Returns the correct date + +# PASS test/deepClone/deepClone.test.js + +ok 398 — deepClone is a Function +ok 399 — Shallow cloning works +ok 400 — Deep cloning works +ok 401 — Array shallow cloning works +ok 402 — Array deep cloning works + +# PASS test/JSONtoCSV/JSONtoCSV.test.js + +ok 403 — JSONtoCSV is a Function +ok 404 — JSONtoCSV works with default delimiter +ok 405 — JSONtoCSV works with custom delimiter + +# PASS test/isString/isString.test.js + +ok 406 — isString is a Function +ok 407 — foo is a string +ok 408 — "10" is a string +ok 409 — Empty string is a string +ok 410 — 10 is not a string +ok 411 — true is not string + +# PASS test/partition/partition.test.js + +ok 412 — partition is a Function +ok 413 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. + +# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js + +ok 414 — capitalizeEveryWord is a Function +ok 415 — Capitalizes the first letter of every word in a string +ok 416 — Works with characters +ok 417 — Works with one word string + +# PASS test/dropRight/dropRight.test.js + +ok 418 — dropRight is a Function +ok 419 — Returns a new array with n elements removed from the right +ok 420 — Returns a new array with n elements removed from the right +ok 421 — Returns a new array with n elements removed from the right + +# PASS test/hexToRGB/hexToRGB.test.js + +ok 422 — hexToRGB is a Function +ok 423 — Converts a color code to a rgb() or rgba() string +ok 424 — Converts a color code to a rgb() or rgba() string +ok 425 — Converts a color code to a rgb() or rgba() string + +# PASS test/stringPermutations/stringPermutations.test.js + +ok 426 — stringPermutations is a Function +ok 427 — Generates all stringPermutations of a string +ok 428 — Works for single-letter strings +ok 429 — Works for empty strings + +# PASS test/sumPower/sumPower.test.js + +ok 430 — sumPower is a Function +ok 431 — Returns the sum of the powers of all the numbers from start to end +ok 432 — Returns the sum of the powers of all the numbers from start to end +ok 433 — Returns the sum of the powers of all the numbers from start to end + +# PASS test/prettyBytes/prettyBytes.test.js + +ok 434 — prettyBytes is a Function +ok 435 — Converts a number in bytes to a human-readable string. +ok 436 — Converts a number in bytes to a human-readable string. +ok 437 — Converts a number in bytes to a human-readable string. + +# PASS test/isObjectLike/isObjectLike.test.js + +ok 438 — isObjectLike is a Function +ok 439 — Returns true for an object +ok 440 — Returns true for an array +ok 441 — Returns false for a function +ok 442 — Returns false for null + +# PASS test/shuffle/shuffle.test.js + +ok 443 — shuffle is a Function +ok 444 — Shuffles the array +ok 445 — New array contains all original elements +ok 446 — Works for empty arrays +ok 447 — Works for single-element arrays + +# PASS test/unzip/unzip.test.js + +ok 448 — unzip is a Function +ok 449 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 450 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] + +# PASS test/formatDuration/formatDuration.test.js + +ok 451 — formatDuration is a Function +ok 452 — Returns the human readable format of the given number of milliseconds +ok 453 — Returns the human readable format of the given number of milliseconds + +# PASS test/standardDeviation/standardDeviation.test.js + +ok 454 — standardDeviation is a Function +ok 455 — Returns the standard deviation of an array of numbers +ok 456 — Returns the standard deviation of an array of numbers + +# PASS test/byteSize/byteSize.test.js + +ok 457 — byteSize is a Function +ok 458 — Works for a single letter +ok 459 — Works for a common string +ok 460 — Works for emoji + +# PASS test/untildify/untildify.test.js + +ok 461 — untildify is a Function +ok 462 — Contains no tildes +ok 463 — Does not alter the rest of the path +ok 464 — Does not alter paths without tildes + +# PASS test/isAbsoluteURL/isAbsoluteURL.test.js + +ok 465 — isAbsoluteURL is a Function +ok 466 — Given string is an absolute URL +ok 467 — Given string is an absolute URL +ok 468 — Given string is not an absolute URL + +# PASS test/isObject/isObject.test.js + +ok 469 — isObject is a Function +ok 470 — isObject([1, 2, 3, 4]) is a object +ok 471 — isObject([]) is a object +ok 472 — isObject({ a:1 }) is a object +ok 473 — isObject(true) is not a object + +# PASS test/sortedIndex/sortedIndex.test.js + +ok 474 — sortedIndex is a Function +ok 475 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. +ok 476 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. + +# PASS test/pad/pad.test.js + +ok 477 — pad is a Function +ok 478 — cat is padded on both sides +ok 479 — length of string is 8 +ok 480 — pads 42 with "0" +ok 481 — does not truncates if string exceeds length + +# PASS test/uncurry/uncurry.test.js + +ok 482 — uncurry is a Function +ok 483 — Works without a provided value for n +ok 484 — Works with n = 2 +ok 485 — Works with n = 3 + +# PASS test/URLJoin/URLJoin.test.js + +ok 486 — URLJoin is a Function +ok 487 — Returns proper URL +ok 488 — Returns proper URL + +# PASS test/isValidJSON/isValidJSON.test.js + +ok 489 — isValidJSON is a Function +ok 490 — {"name":"Adam","age":20} is a valid JSON +ok 491 — {"name":"Adam",age:"20"} is not a valid JSON +ok 492 — null is a valid JSON + +# PASS test/matches/matches.test.js + +ok 493 — matches is a Function +ok 494 — Matches returns true for two similar objects +ok 495 — Matches returns false for two non-similar objects + +# PASS test/groupBy/groupBy.test.js + +ok 496 — groupBy is a Function +ok 497 — Groups the elements of an array based on the given function +ok 498 — Groups the elements of an array based on the given function + +# PASS test/lowercaseKeys/lowercaseKeys.test.js + +ok 499 — lowercaseKeys is a Function +ok 500 — Lowercases object keys +ok 501 — Does not mutate original object + +# PASS test/reducedFilter/reducedFilter.test.js + +ok 502 — reducedFilter is a Function +ok 503 — Filter an array of objects based on a condition while also filtering out unspecified keys. + +# PASS test/reject/reject.test.js + +ok 504 — reject is a Function +ok 505 — Works with numbers +ok 506 — Works with strings + +# PASS test/functionName/functionName.test.js + +ok 507 — functionName is a Function +ok 508 — Works for native functions +ok 509 — Works for functions +ok 510 — Works for arrow functions + +# PASS test/CSVToJSON/CSVToJSON.test.js + +ok 511 — CSVToJSON is a Function +ok 512 — CSVToJSON works with default delimiter +ok 513 — CSVToJSON works with custom delimiter + +# PASS test/collectInto/collectInto.test.js + +ok 514 — collectInto is a Function +ok 515 — Works with multiple promises + +# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js + +ok 516 — symmetricDifferenceWith is a Function +ok 517 — Returns the symmetric difference between two arrays, using a provided function as a comparator + +# PASS test/collatz/collatz.test.js + +ok 518 — collatz is a Function +ok 519 — When n is even, divide by 2 +ok 520 — When n is odd, times by 3 and add 1 +ok 521 — Eventually reaches 1 + +# PASS test/drop/drop.test.js + +ok 522 — drop is a Function +ok 523 — Works without the last argument +ok 524 — Removes appropriate element count as specified +ok 525 — Empties array given a count greater than length + +# PASS test/differenceBy/differenceBy.test.js + +ok 526 — differenceBy is a Function +ok 527 — Works using a native function and numbers +ok 528 — Works with arrow function and objects + +# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js + +ok 529 — UUIDGeneratorNode is a Function +ok 530 — Contains dashes in the proper places +ok 531 — Only contains hexadecimal digits + +# PASS test/matchesWith/matchesWith.test.js + +ok 532 — matchesWith is a Function +ok 533 — Returns true for two objects with similar values, based on the provided function + +# PASS test/luhnCheck/luhnCheck.test.js + +ok 534 — luhnCheck is a Function +ok 535 — validates identification number +ok 536 — validates identification number +ok 537 — validates identification number + +# PASS test/nthArg/nthArg.test.js + +ok 538 — nthArg is a Function +ok 539 — Returns the nth argument +ok 540 — Returns undefined if arguments too few +ok 541 — Works for negative values + +# PASS test/sample/sample.test.js + +ok 542 — sample is a Function +ok 543 — Returns a random element from the array +ok 544 — Works for single-element arrays +ok 545 — Returns undefined for empty array + +# PASS test/flattenObject/flattenObject.test.js + +ok 546 — flattenObject is a Function +ok 547 — Flattens an object with the paths for keys +ok 548 — Works with arrays + +# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js + +ok 549 — pipeAsyncFunctions is a Function +ok 550 — pipeAsyncFunctions result should be 15 + +# PASS test/functions/functions.test.js + +ok 551 — functions is a Function +ok 552 — Returns own methods +ok 553 — Returns own and inherited methods + +# PASS test/renameKeys/renameKeys.test.js + +ok 554 — renameKeys is a Function +ok 555 — renameKeys is a Function + +# PASS test/elo/elo.test.js + +ok 556 — elo is a Function +ok 557 — Standard 1v1s +ok 558 — Standard 1v1s +ok 559 — 4 player FFA, all same rank + +# PASS test/isLowerCase/isLowerCase.test.js + +ok 560 — isLowerCase is a Function +ok 561 — passed string is a lowercase +ok 562 — passed string is a lowercase +ok 563 — passed value is not a lowercase + +# PASS test/memoize/memoize.test.js + +ok 564 — memoize is a Function +ok 565 — Function works properly +ok 566 — Function works properly +ok 567 — Cache stores values + +# PASS test/bindKey/bindKey.test.js + +ok 568 — bindKey is a Function +ok 569 — Binds function to an object context + +# PASS test/averageBy/averageBy.test.js + +ok 570 — averageBy is a Function +ok 571 — Produces the right result with a function +ok 572 — Produces the right result with a property name + +# PASS test/promisify/promisify.test.js + +ok 573 — promisify is a Function +ok 574 — Returns a promise +ok 575 — Runs the function provided + +# PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js + +ok 576 — symmetricDifferenceBy is a Function +ok 577 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both + +# 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/isUpperCase/isUpperCase.test.js + +ok 580 — isUpperCase is a Function +ok 581 — ABC is all upper case +ok 582 — abc is not all upper case +ok 583 — A3@$ is all uppercase + +# PASS test/maxBy/maxBy.test.js + +ok 584 — maxBy is a Function +ok 585 — Produces the right result with a function +ok 586 — Produces the right result with a property name + +# PASS test/isArrayLike/isArrayLike.test.js + +ok 587 — isArrayLike is a Function +ok 588 — Returns true for a string +ok 589 — Returns true for an array +ok 590 — Returns false for null + +# PASS test/minBy/minBy.test.js + +ok 591 — minBy is a Function +ok 592 — Produces the right result with a function +ok 593 — Produces the right result with a property name + +# PASS test/arrayToCSV/arrayToCSV.test.js + +ok 594 — arrayToCSV is a Function +ok 595 — arrayToCSV works with default delimiter +ok 596 — arrayToCSV works with custom delimiter + +# PASS test/pullAtValue/pullAtValue.test.js + +ok 597 — pullAtValue is a Function +ok 598 — Pulls the specified values +ok 599 — Pulls the specified values + +# PASS test/isPromiseLike/isPromiseLike.test.js + +ok 600 — isPromiseLike is a Function +ok 601 — Returns true for a promise-like object +ok 602 — Returns false for an empty object + +# PASS test/unzipWith/unzipWith.test.js + +ok 603 — unzipWith is a Function +ok 604 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] + +# PASS test/coalesceFactory/coalesceFactory.test.js + +ok 605 — coalesceFactory is a Function +ok 606 — Returns a customized coalesce function + +# PASS test/truthCheckCollection/truthCheckCollection.test.js + +ok 607 — truthCheckCollection is a Function +ok 608 — second argument is truthy on all elements of a collection + +# PASS test/pullAtIndex/pullAtIndex.test.js + +ok 609 — pullAtIndex is a Function +ok 610 — Pulls the given values +ok 611 — Pulls the given values + +# PASS test/takeRight/takeRight.test.js + +ok 612 — takeRight is a Function +ok 613 — Returns an array with n elements removed from the end +ok 614 — Returns an array with n elements removed from the end + +# PASS test/runPromisesInSeries/runPromisesInSeries.test.js + +ok 615 — runPromisesInSeries is a Function +ok 616 — Runs promises in series + +# PASS test/isNil/isNil.test.js + +ok 617 — isNil is a Function +ok 618 — Returns true for null +ok 619 — Returns true for undefined +ok 620 — Returns false for an empty string + +# PASS test/gcd/gcd.test.js + +ok 621 — gcd is a Function +ok 622 — Calculates the greatest common divisor between two or more numbers/arrays +ok 623 — Calculates the greatest common divisor between two or more numbers/arrays + +# PASS test/bind/bind.test.js + +ok 624 — bind is a Function +ok 625 — Binds to an object context + +# PASS test/findLastKey/findLastKey.test.js + +ok 626 — findLastKey is a Function +ok 627 — eturns the appropriate key + +# PASS test/isPlainObject/isPlainObject.test.js + +ok 628 — isPlainObject is a Function +ok 629 — Returns true for a plain object +ok 630 — Returns false for a Map (example of non-plain object) + +# PASS test/intersectionBy/intersectionBy.test.js + +ok 631 — intersectionBy is a Function +ok 632 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both + +# PASS test/pipeFunctions/pipeFunctions.test.js + +ok 633 — pipeFunctions is a Function +ok 634 — Performs left-to-right function composition + +# PASS test/extendHex/extendHex.test.js + +ok 635 — extendHex is a Function +ok 636 — Extends a 3-digit color code to a 6-digit color code +ok 637 — Extends a 3-digit color code to a 6-digit color code + +# PASS test/merge/merge.test.js + +ok 638 — merge is a Function +ok 639 — Merges two objects + +# PASS test/isTravisCI/isTravisCI.test.js + +ok 640 — isTravisCI is a Function +ok 641 — Running on Travis, correctly evaluates + +# PASS test/take/take.test.js + +ok 642 — take is a Function +ok 643 — Returns an array with n elements removed from the beginning. +ok 644 — Returns an array with n elements removed from the beginning. + +# PASS test/indexOfAll/indexOfAll.test.js + +ok 645 — indexOfAll is a Function +ok 646 — Returns all indices of val in an array +ok 647 — Returns all indices of val in an array + +# PASS test/chainAsync/chainAsync.test.js + +ok 648 — chainAsync is a Function +ok 649 — Calls all functions in an array + +# PASS test/getURLParameters/getURLParameters.test.js + +ok 650 — getURLParameters is a Function +ok 651 — Returns an object containing the parameters of the current URL + +# PASS test/overArgs/overArgs.test.js + +ok 652 — overArgs is a Function +ok 653 — Invokes the provided function with its arguments transformed + +# PASS test/cleanObj/cleanObj.test.js + +ok 654 — cleanObj is a Function +ok 655 — Removes any properties except the ones specified from a JSON object + +# PASS test/when/when.test.js + +ok 656 — when is a Function +ok 657 — Returns the proper result +ok 658 — Returns the proper result + +# PASS test/spreadOver/spreadOver.test.js + +ok 659 — spreadOver is a Function +ok 660 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. + +# PASS test/partialRight/partialRight.test.js + +ok 661 — partialRight is a Function +ok 662 — Appends arguments + +# PASS test/decapitalize/decapitalize.test.js + +ok 663 — decapitalize is a Function +ok 664 — Works with default parameter +ok 665 — Works with second parameter set to true + +# PASS test/composeRight/composeRight.test.js + +ok 666 — composeRight is a Function +ok 667 — Performs left-to-right function composition + +# PASS test/nthElement/nthElement.test.js + +ok 668 — nthElement is a Function +ok 669 — Returns the nth element of an array. +ok 670 — Returns the nth element of an array. + +# PASS test/findKey/findKey.test.js + +ok 671 — findKey is a Function +ok 672 — Returns the appropriate key + +# PASS test/countBy/countBy.test.js + +ok 673 — countBy is a Function +ok 674 — Works for functions +ok 675 — Works for property names + +# PASS test/shallowClone/shallowClone.test.js + +ok 676 — shallowClone is a Function +ok 677 — Shallow cloning works +ok 678 — Does not clone deeply + +# PASS test/minN/minN.test.js + +ok 679 — minN is a Function +ok 680 — Returns the n minimum elements from the provided array +ok 681 — Returns the n minimum elements from the provided array + +# PASS test/maxN/maxN.test.js + +ok 682 — maxN is a Function +ok 683 — Returns the n maximum elements from the provided array +ok 684 — Returns the n maximum elements from the provided array + +# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js + +ok 685 — getDaysDiffBetweenDates is a Function +ok 686 — Returns the difference in days between two dates + +# PASS test/hashNode/hashNode.test.js + +ok 687 — hashNode is a Function +ok 688 — Produces the appropriate hash + +# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js + +ok 689 — initializeArrayWithRange is a Function +ok 690 — Initializes an array containing the numbers in the specified range + +# PASS test/flatten/flatten.test.js + +ok 691 — flatten is a Function +ok 692 — Flattens an array +ok 693 — Flattens an array + +# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js + +ok 694 — initializeArrayWithValues is a Function +ok 695 — Initializes and fills an array with the specified values + +# PASS test/percentile/percentile.test.js + +ok 696 — percentile is a Function +ok 697 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. + +# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js + +ok 698 — sortedLastIndexBy is a Function +ok 699 — Returns the highest index to insert the element without messing up the list order + +# PASS test/differenceWith/differenceWith.test.js + +ok 700 — differenceWith is a Function +ok 701 — Filters out all values from an array + +# PASS test/reduceSuccessive/reduceSuccessive.test.js + +ok 702 — reduceSuccessive is a Function +ok 703 — Returns the array of successively reduced values + +# PASS test/compose/compose.test.js + +ok 704 — compose is a Function +ok 705 — Performs right-to-left function composition + +# PASS test/lcm/lcm.test.js + +ok 706 — lcm is a Function +ok 707 — Returns the least common multiple of two or more numbers. +ok 708 — Returns the least common multiple of two or more numbers. + +# PASS test/transform/transform.test.js + +ok 709 — transform is a Function +ok 710 — Transforms an object + +# PASS test/bindAll/bindAll.test.js + +ok 711 — bindAll is a Function +ok 712 — Binds to an object context + +# PASS test/permutations/permutations.test.js + +ok 713 — permutations is a Function +ok 714 — Generates all permutations of an array + +# PASS test/partial/partial.test.js + +ok 715 — partial is a Function +ok 716 — Prepends arguments + +# PASS test/palindrome/palindrome.test.js + +ok 717 — palindrome is a Function +ok 718 — Given string is a palindrome +ok 719 — Given string is not a palindrome + +# PASS test/mapValues/mapValues.test.js + +ok 720 — mapValues is a Function +ok 721 — Maps values + +# PASS test/degreesToRads/degreesToRads.test.js + +ok 722 — degreesToRads is a Function +ok 723 — Returns the appropriate value + +# PASS test/median/median.test.js + +ok 724 — median is a Function +ok 725 — Returns the median of an array of numbers +ok 726 — Returns the median of an array of numbers + +# PASS test/dropRightWhile/dropRightWhile.test.js + +ok 727 — dropRightWhile is a Function +ok 728 — Removes elements from the end of an array until the passed function returns true. + +# PASS test/size/size.test.js + +ok 729 — size is a Function +ok 730 — Get size of arrays, objects or strings. +ok 731 — Get size of arrays, objects or strings. + +# PASS test/unionWith/unionWith.test.js + +ok 732 — unionWith is a Function +ok 733 — Produces the appropriate results + +# PASS test/forOwnRight/forOwnRight.test.js + +ok 734 — forOwnRight is a Function +ok 735 — Iterates over an element's key-value pairs in reverse + +# PASS test/pickBy/pickBy.test.js + +ok 736 — pickBy is a Function +ok 737 — Creates an object composed of the properties the given function returns truthy for. + +# PASS test/splitLines/splitLines.test.js + +ok 738 — splitLines is a Function +ok 739 — Splits a multiline string into an array of lines. + +# PASS test/sortedIndexBy/sortedIndexBy.test.js + +ok 740 — sortedIndexBy is a Function +ok 741 — Returns the lowest index to insert the element without messing up the list order + +# PASS test/bifurcate/bifurcate.test.js + +ok 742 — bifurcate is a Function +ok 743 — Splits the collection into two groups + +# PASS test/isFunction/isFunction.test.js + +ok 744 — isFunction is a Function +ok 745 — passed value is a function +ok 746 — passed value is not a function + +# PASS test/rearg/rearg.test.js + +ok 747 — rearg is a Function +ok 748 — Reorders arguments in invoked function + +# PASS test/sortedLastIndex/sortedLastIndex.test.js + +ok 749 — sortedLastIndex is a Function +ok 750 — Returns the highest index to insert the element without messing up the list order + +# PASS test/bifurcateBy/bifurcateBy.test.js + +ok 751 — bifurcateBy is a Function +ok 752 — Splits the collection into two groups + +# PASS test/flip/flip.test.js + +ok 753 — flip is a Function +ok 754 — Flips argument order + +# PASS test/sortCharactersInString/sortCharactersInString.test.js + +ok 755 — sortCharactersInString is a Function +ok 756 — Alphabetically sorts the characters in a string. + +# PASS test/isBoolean/isBoolean.test.js + +ok 757 — isBoolean is a Function +ok 758 — passed value is not a boolean +ok 759 — passed value is not a boolean + +# PASS test/symmetricDifference/symmetricDifference.test.js + +ok 760 — symmetricDifference is a Function +ok 761 — Returns the symmetric difference between two arrays. + +# PASS test/get/get.test.js + +ok 762 — get is a Function +ok 763 — Retrieve a property indicated by the selector from an object. + +# PASS test/unescapeHTML/unescapeHTML.test.js + +ok 764 — unescapeHTML is a Function +ok 765 — Unescapes escaped HTML characters. + +# PASS test/isNumber/isNumber.test.js + +ok 766 — isNumber is a Function +ok 767 — passed argument is a number +ok 768 — passed argument is not a number + +# PASS test/unflattenObject/unflattenObject.test.js + +ok 769 — unflattenObject is a Function +ok 770 — Unflattens an object with the paths for keys + +# PASS test/xProd/xProd.test.js + +ok 771 — xProd is a Function +ok 772 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] + +# PASS test/initialize2DArray/initialize2DArray.test.js + +ok 773 — initialize2DArray is a Function +ok 774 — Initializes a 2D array of given width and height and value + +# PASS test/attempt/attempt.test.js + +ok 775 — attempt is a Function +ok 776 — Returns a value +ok 777 — Returns an error + +# PASS test/pullBy/pullBy.test.js + +ok 778 — pullBy is a Function +ok 779 — Pulls the specified values + +# PASS test/objectFromPairs/objectFromPairs.test.js + +ok 780 — objectFromPairs is a Function +ok 781 — Creates an object from the given key-value pairs. + +# PASS test/omitBy/omitBy.test.js + +ok 782 — omitBy is a Function +ok 783 — Creates an object composed of the properties the given function returns falsey for + +# PASS test/stableSort/stableSort.test.js + +ok 784 — stableSort is a Function +ok 785 — Array is properly sorted + +# PASS test/forEachRight/forEachRight.test.js + +ok 786 — forEachRight is a Function +ok 787 — Iterates over the array in reverse + +# PASS test/objectToPairs/objectToPairs.test.js + +ok 788 — objectToPairs is a Function +ok 789 — Creates an array of key-value pair arrays from an object. + +# PASS test/escapeHTML/escapeHTML.test.js + +ok 790 — escapeHTML is a Function +ok 791 — Escapes a string for use in HTML + +# PASS test/isArray/isArray.test.js + +ok 792 — isArray is a Function +ok 793 — passed value is an array +ok 794 — passed value is not an array + +# PASS test/findLastIndex/findLastIndex.test.js + +ok 795 — findLastIndex is a Function +ok 796 — Finds last index for which the given function returns true + +# PASS test/unfold/unfold.test.js + +ok 797 — unfold is a Function +ok 798 — Works with a given function, producing an array + +# PASS test/toDecimalMark/toDecimalMark.test.js + +ok 799 — toDecimalMark is a Function +ok 800 — convert a float-point arithmetic to the Decimal mark form + +# PASS test/stripHTMLTags/stripHTMLTags.test.js + +ok 801 — stripHTMLTags is a Function +ok 802 — Removes HTML tags + +# PASS test/filterNonUnique/filterNonUnique.test.js + +ok 803 — filterNonUnique is a Function +ok 804 — Filters out the non-unique values in an array + +# PASS test/ary/ary.test.js + +ok 805 — ary is a Function +ok 806 — Discards arguments with index >=n + +# PASS test/forOwn/forOwn.test.js + +ok 807 — forOwn is a Function +ok 808 — Iterates over an element's key-value pairs + +# PASS test/takeRightWhile/takeRightWhile.test.js + +ok 809 — takeRightWhile is a Function +ok 810 — Removes elements until the function returns true + +# PASS test/curry/curry.test.js + +ok 811 — curry is a Function +ok 812 — curries a Math.pow +ok 813 — curries a Math.min + +# PASS test/compact/compact.test.js + +ok 814 — compact is a Function +ok 815 — Removes falsey values from an array + +# PASS test/pick/pick.test.js + +ok 816 — pick is a Function +ok 817 — Picks the key-value pairs corresponding to the given keys from an object. + +# PASS test/removeNonASCII/removeNonASCII.test.js + +ok 818 — removeNonASCII is a Function +ok 819 — Removes non-ASCII characters + +# PASS test/countOccurrences/countOccurrences.test.js + +ok 820 — countOccurrences is a Function +ok 821 — Counts the occurrences of a value in an array + +# PASS test/isNull/isNull.test.js + +ok 822 — isNull is a Function +ok 823 — passed argument is a null +ok 824 — passed argument is a null + +# PASS test/dropWhile/dropWhile.test.js + +ok 825 — dropWhile is a Function +ok 826 — Removes elements in an array until the passed function returns true. + +# PASS test/defaults/defaults.test.js + +ok 827 — defaults is a Function +ok 828 — Assigns default values for undefined properties + +# PASS test/remove/remove.test.js + +ok 829 — remove is a Function +ok 830 — Removes elements from an array for which the given function returns false + +# PASS test/truncateString/truncateString.test.js + +ok 831 — truncateString is a Function +ok 832 — Truncates a "boomerang" up to a specified length. + +# PASS test/delay/delay.test.js + +ok 833 — delay is a Function +ok 834 — Works as expecting, passing arguments properly + +# PASS test/clampNumber/clampNumber.test.js + +ok 835 — clampNumber is a Function +ok 836 — Clamps num within the inclusive range specified by the boundary values a and b + +# PASS test/findLast/findLast.test.js + +ok 837 — findLast is a Function +ok 838 — Finds last element for which the given function returns true + +# PASS test/omit/omit.test.js + +ok 839 — omit is a Function +ok 840 — Omits the key-value pairs corresponding to the given keys from an object + +# PASS test/similarity/similarity.test.js + +ok 841 — similarity is a Function +ok 842 — Returns an array of elements that appear in both arrays. + +# PASS test/intersection/intersection.test.js + +ok 843 — intersection is a Function +ok 844 — Returns a list of elements that exist in both arrays + +# PASS test/over/over.test.js + +ok 845 — over is a Function +ok 846 — Applies given functions over multiple arguments + +# PASS test/parseCookie/parseCookie.test.js + +ok 847 — parseCookie is a Function +ok 848 — Parses the cookie + +# PASS test/atob/atob.test.js + +ok 849 — atob is a Function +ok 850 — atob("Zm9vYmFy") equals "foobar" +ok 851 — atob("Z") returns "" + +# PASS test/isEven/isEven.test.js + +ok 852 — isEven is a Function +ok 853 — 4 is even number +ok 854 — 5 is not an even number + +# PASS test/cloneRegExp/cloneRegExp.test.js + +ok 855 — cloneRegExp is a Function +ok 856 — Clones regular expressions properly + +# PASS test/pull/pull.test.js + +ok 857 — pull is a Function +ok 858 — Pulls the specified values + +# PASS test/escapeRegExp/escapeRegExp.test.js + +ok 859 — escapeRegExp is a Function +ok 860 — Escapes a string to use in a regular expression + +# PASS test/fibonacci/fibonacci.test.js + +ok 861 — fibonacci is a Function +ok 862 — Generates an array, containing the Fibonacci sequence + +# PASS test/longestItem/longestItem.test.js + +ok 863 — longestItem is a Function +ok 864 — Returns the longest object + +# PASS test/coalesce/coalesce.test.js + +ok 865 — coalesce is a Function +ok 866 — Returns the first non-null/undefined argument + +# PASS test/takeWhile/takeWhile.test.js + +ok 867 — takeWhile is a Function +ok 868 — Removes elements until the function returns true + +# PASS test/times/times.test.js + +ok 869 — times is a Function +ok 870 — Runs a function the specified amount of times + +# PASS test/powerset/powerset.test.js + +ok 871 — powerset is a Function +ok 872 — Returns the powerset of a given array of numbers. + +# PASS test/hammingDistance/hammingDistance.test.js + +ok 873 — hammingDistance is a Function +ok 874 — retuns hamming disance between 2 values + +# PASS test/serializeCookie/serializeCookie.test.js + +ok 875 — serializeCookie is a Function +ok 876 — Serializes the cookie + +# PASS test/distance/distance.test.js + +ok 877 — distance is a Function +ok 878 — Calculates the distance between two points + +# PASS test/deepFlatten/deepFlatten.test.js + +ok 879 — deepFlatten is a Function +ok 880 — Deep flattens an array + +# PASS test/tail/tail.test.js + +ok 881 — tail is a Function +ok 882 — Returns tail +ok 883 — Returns tail + +# PASS test/primes/primes.test.js + +ok 884 — primes is a Function +ok 885 — Generates primes up to a given number, using the Sieve of Eratosthenes. + +# PASS test/difference/difference.test.js + +ok 886 — difference is a Function +ok 887 — Returns the difference between two arrays + +# PASS test/negate/negate.test.js + +ok 888 — negate is a Function +ok 889 — Negates a predicate function + +# PASS test/initial/initial.test.js + +ok 890 — initial is a Function +ok 891 — Returns all the elements of an array except the last one + +# PASS test/RGBToHex/RGBToHex.test.js + +ok 892 — RGBToHex is a Function +ok 893 — Converts the values of RGB components to a color code. + +# PASS test/everyNth/everyNth.test.js + +ok 894 — everyNth is a Function +ok 895 — Returns every nth element in an array + +# PASS test/mapKeys/mapKeys.test.js + +ok 896 — mapKeys is a Function +ok 897 — Maps keys + +# PASS test/unary/unary.test.js + +ok 898 — unary is a Function +ok 899 — Discards arguments after the first one + +# PASS test/reverseString/reverseString.test.js + +ok 900 — reverseString is a Function +ok 901 — Reverses a string. + +# PASS test/sleep/sleep.test.js + +ok 902 — sleep is a Function +ok 903 — Works as expected + +# PASS test/isSymbol/isSymbol.test.js + +ok 904 — isSymbol is a Function +ok 905 — Checks if the given argument is a symbol + +# PASS test/radsToDegrees/radsToDegrees.test.js + +ok 906 — radsToDegrees is a Function +ok 907 — Returns the appropriate value + +# PASS test/call/call.test.js + +ok 908 — call is a Function +ok 909 — Calls function on given object + +# PASS test/isDivisible/isDivisible.test.js + +ok 910 — isDivisible is a Function +ok 911 — The number 6 is divisible by 3 + +# PASS test/debounce/debounce.test.js + +ok 912 — debounce is a Function +ok 913 — Works as expected + +# PASS test/isUndefined/isUndefined.test.js + +ok 914 — isUndefined is a Function +ok 915 — Returns true for undefined + +# PASS test/digitize/digitize.test.js + +ok 916 — digitize is a Function +ok 917 — Converts a number to an array of digits + +# PASS test/unionBy/unionBy.test.js + +ok 918 — unionBy is a Function +ok 919 — Produces the appropriate results + +# PASS test/sdbm/sdbm.test.js + +ok 920 — sdbm is a Function +ok 921 — Hashes the input string into a whole number. + +# PASS test/getType/getType.test.js + +ok 922 — getType is a Function +ok 923 — Returns the native type of a value + +# PASS test/sum/sum.test.js + +ok 924 — sum is a Function +ok 925 — Returns the sum of two or more numbers/arrays. + +# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js + +ok 926 — initializeArrayWithRangeRight is a Function + +# PASS test/btoa/btoa.test.js + +ok 927 — btoa is a Function +ok 928 — btoa("foobar") equals "Zm9vYmFy" + +# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js + +ok 929 — fibonacciCountUntilNum is a Function + +# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js + +ok 930 — getMeridiemSuffixOfInteger is a Function + +# PASS test/isPrime/isPrime.test.js + +ok 931 — isPrime is a Function +ok 932 — passed number is a prime + +# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js + +ok 933 — elementIsVisibleInViewport is a Function + +# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js + +ok 934 — UUIDGeneratorBrowser is a Function + +# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js + +ok 935 — isBrowserTabFocused is a Function + +# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js + +ok 936 — getColonTimeFromDate is a Function + +# PASS test/initializeNDArray/initializeNDArray.test.js + +ok 937 — initializeNDArray is a Function + +# PASS test/recordAnimationFrames/recordAnimationFrames.test.js + +ok 938 — recordAnimationFrames is a Function + +# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js + +ok 939 — fibonacciUntilNum is a Function + +# PASS test/levenshteinDistance/levenshteinDistance.test.js + +ok 940 — levenshteinDistance is a Function + +# PASS test/isArmstrongNumber/isArmstrongNumber.test.js + +ok 941 — isArmstrongNumber is a Function + +# PASS test/getScrollPosition/getScrollPosition.test.js + +ok 942 — getScrollPosition is a Function + +# PASS test/detectDeviceType/detectDeviceType.test.js + +ok 943 — detectDeviceType is a Function + +# PASS test/onUserInputChange/onUserInputChange.test.js + +ok 944 — onUserInputChange is a Function + +# PASS test/observeMutations/observeMutations.test.js + +ok 945 — observeMutations is a Function + +# PASS test/nodeListToArray/nodeListToArray.test.js + +ok 946 — nodeListToArray is a Function + +# PASS test/speechSynthesis/speechSynthesis.test.js + +ok 947 — speechSynthesis is a Function + +# PASS test/elementContains/elementContains.test.js + +ok 948 — elementContains is a Function + +# PASS test/arrayToHtmlList/arrayToHtmlList.test.js + +ok 949 — arrayToHtmlList is a Function + +# PASS test/copyToClipboard/copyToClipboard.test.js + +ok 950 — copyToClipboard is a Function + +# PASS test/mostPerformant/mostPerformant.test.js + +ok 951 — mostPerformant is a Function + +# PASS test/isArrayBuffer/isArrayBuffer.test.js + +ok 952 — isArrayBuffer is a Function + +# PASS test/isTypedArray/isTypedArray.test.js + +ok 953 — isTypedArray is a Function + +# PASS test/readFileLines/readFileLines.test.js + +ok 954 — readFileLines is a Function + +# PASS test/smoothScroll/smoothScroll.test.js + +ok 955 — smoothScroll is a Function + +# PASS test/createEventHub/createEventHub.test.js + +ok 956 — createEventHub is a Function + +# PASS test/removeVowels/removeVowels.test.js + +ok 957 — removeVowels is a Function + +# PASS test/httpsRedirect/httpsRedirect.test.js + +ok 958 — httpsRedirect is a Function + +# PASS test/createElement/createElement.test.js + +ok 959 — createElement is a Function + +# PASS test/bottomVisible/bottomVisible.test.js + +ok 960 — bottomVisible is a Function + +# PASS test/insertBefore/insertBefore.test.js + +ok 961 — insertBefore is a Function + +# PASS test/triggerEvent/triggerEvent.test.js + +ok 962 — triggerEvent is a Function + +# PASS test/howManyTimes/howManyTimes.test.js + +ok 963 — howManyTimes is a Function + +# PASS test/toggleClass/toggleClass.test.js + +ok 964 — toggleClass is a Function + +# PASS test/scrollToTop/scrollToTop.test.js + +ok 965 — scrollToTop is a Function + +# PASS test/countVowels/countVowels.test.js + +ok 966 — countVowels is a Function + +# PASS test/hashBrowser/hashBrowser.test.js + +ok 967 — hashBrowser is a Function + +# PASS test/insertAfter/insertAfter.test.js + +ok 968 — insertAfter is a Function + +# PASS test/httpDelete/httpDelete.test.js + +ok 969 — httpDelete is a Function + +# PASS test/currentURL/currentURL.test.js + +ok 970 — currentURL is a Function + +# PASS test/isWeakSet/isWeakSet.test.js + +ok 971 — isWeakSet is a Function + +# PASS test/JSONToFile/JSONToFile.test.js + +ok 972 — JSONToFile is a Function + +# PASS test/JSONToDate/JSONToDate.test.js + +ok 973 — JSONToDate is a Function + +# PASS test/isWeakMap/isWeakMap.test.js + +ok 974 — isWeakMap is a Function + +# PASS test/timeTaken/timeTaken.test.js + +ok 975 — timeTaken is a Function + +# PASS test/isBrowser/isBrowser.test.js + +ok 976 — isBrowser is a Function + +# PASS test/setStyle/setStyle.test.js + +ok 977 — setStyle is a Function + +# PASS test/hasClass/hasClass.test.js + +ok 978 — hasClass is a Function + +# PASS test/httpPost/httpPost.test.js + +ok 979 — httpPost is a Function + +# PASS test/isSimilar/isSimilar.test.js + +ok 980 — isSimilar is a Function + +# PASS test/isRegExp/isRegExp.test.js + +ok 981 — isRegExp is a Function + +# PASS test/redirect/redirect.test.js + +ok 982 — redirect is a Function + +# PASS test/getStyle/getStyle.test.js + +ok 983 — getStyle is a Function + +# PASS test/hasFlags/hasFlags.test.js + +ok 984 — hasFlags is a Function + +# PASS test/httpGet/httpGet.test.js + +ok 985 — httpGet is a Function + +# PASS test/runAsync/runAsync.test.js + +ok 986 — runAsync is a Function + +# PASS test/throttle/throttle.test.js + +ok 987 — throttle is a Function + +# PASS test/httpPut/httpPut.test.js + +ok 988 — httpPut is a Function + +# PASS test/counter/counter.test.js + +ok 989 — counter is a Function + +# PASS test/prefix/prefix.test.js + +ok 990 — prefix is a Function + +# PASS test/zipWith/zipWith.test.js + +ok 991 — zipWith is a Function + +# PASS test/colorize/colorize.test.js + +ok 992 — colorize is a Function + +# PASS test/defer/defer.test.js + +ok 993 — defer is a Function + +# PASS test/solveRPN/solveRPN.test.js + +ok 994 — solveRPN is a Function + +# PASS test/sumBy/sumBy.test.js + +ok 995 — sumBy is a Function + +# PASS test/isMap/isMap.test.js + +ok 996 — isMap is a Function + +# PASS test/factors/factors.test.js + +ok 997 — factors is a Function + +# PASS test/isSet/isSet.test.js + +ok 998 — isSet is a Function + +# PASS test/toHash/toHash.test.js + +ok 999 — toHash is a Function + +# PASS test/once/once.test.js + +ok 1000 — once is a Function + +# PASS test/nest/nest.test.js + +ok 1001 — nest is a Function + +# PASS test/hide/hide.test.js + +ok 1002 — hide is a Function + +# PASS test/show/show.test.js + +ok 1003 — show is a Function + +# PASS test/hz/hz.test.js + +ok 1004 — hz is a Function + +# PASS test/off/off.test.js + +ok 1005 — off is a Function + +# PASS test/on/on.test.js + +ok 1006 — on is a Function + +1..1006 + +# Test Suites: 100% ██████████, 339 passed, 339 total +# Tests: 100% ██████████, 1006 passed, 1006 total +# Time: 39.277s + +# Ran all test suites. +