diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 255efac8d..60de8f10e 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -154,7 +154,7 @@ "fileName": "atob.md", "text": "Decodes a string of data which has been encoded using base-64 encoding.\n\nCreate a `Buffer` for the given string with base-64 encoding and use `Buffer.toString('binary')` to return the decoded string.", "codeBlocks": [ - "const atob = str => new Buffer(str, 'base64').toString('binary');", + "const atob = str => Buffer.from(str, 'base64').toString('binary');", "atob('Zm9vYmFy'); // 'foobar'" ], "tags": [ @@ -166,7 +166,7 @@ }, "meta": { "archived": false, - "hash": "b0f4a972f1e217c5f558359fa17693140a8b97a04a48ec1261691f10fb0c2a3e" + "hash": "a1cdc6db4c91c17ea5f072fa38f40505a7500c1d142c33a9f7e8280fb9357fb5" } }, { @@ -383,7 +383,7 @@ "fileName": "btoa.md", "text": "Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data.\n\nCreate a `Buffer` for the given string with binary encoding and use `Buffer.toString('base64')` to return the encoded string.", "codeBlocks": [ - "const btoa = str => new Buffer(str, 'binary').toString('base64');", + "const btoa = str => Buffer.from(str, 'binary').toString('base64');", "btoa('foobar'); // 'Zm9vYmFy'" ], "tags": [ @@ -395,7 +395,7 @@ }, "meta": { "archived": false, - "hash": "ddbab0e7190004d5240469256d66629aa2fcf3c22348818edc01a8beb64831a6" + "hash": "021ec24497f79ba1e18b01f1fc5a7498d21adbb4f556ac026afa817f10d46ae9" } }, { diff --git a/snippet_data/snippetsArchive.json b/snippet_data/snippetsArchive.json index e516957dd..a9c45958b 100644 --- a/snippet_data/snippetsArchive.json +++ b/snippet_data/snippetsArchive.json @@ -303,7 +303,7 @@ "const password = \"fooBaz\";\nconst data = JSON.stringify(password);\nhttpPut('https://website.com/users/123', data, request => {\n console.log(request.responseText);\n}); // 'Updates a user's password in database'", "const isArmstrongNumber = digits =>\n (arr => arr.reduce((a, d) => a + parseInt(d) ** arr.length, 0) == digits)(\n (digits + '').split('')\n );", "isArmstrongNumber(1634); // true\nisArmstrongNumber(56); // false", - "const isSimilar = (pattern, str) =>\n [...str].reduce(\n (matchIndex, char) =>\n char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase()\n ? matchIndex + 1\n : matchIndex,\n 0\n ) === pattern.length\n ? true\n : false;", + "const isSimilar = (pattern, str) =>\n [...str].reduce(\n (matchIndex, char) =>\n char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase()\n ? matchIndex + 1\n : matchIndex,\n 0\n ) === pattern.length;", "isSimilar('rt','Rohit'); // true\nisSimilar('tr','Rohit'); // false", "``` js\nconst levenshteinDistance = (string1, string2) => {\n if (string1.length === 0) return string2.length;\n if (string2.length === 0) return string1.length;\n let matrix = Array(string2.length + 1)\n .fill(0)\n .map((x, i) => [i]);\n matrix[0] = Array(string1.length + 1)\n .fill(0)\n .map((x, i) => i);\n for (let i = 1; i <= string2.length; i++) {\n for (let j = 1; j <= string1.length; j++) {\n if (string2[i - 1] === string1[j - 1]) {\n matrix[i][j] = matrix[i - 1][j - 1];\n } else {\n matrix[i][j] = Math.min(\n matrix[i - 1][j - 1] + 1,\n matrix[i][j - 1] + 1,\n matrix[i - 1][j] + 1\n );\n }\n }\n }\n return matrix[string2.length][string1.length];\n};\n```", "levenshteinDistance('30-seconds-of-code','30-seconds-of-python-code'); // 7\nconst compareStrings = (string1,string2) => (100 - levenshteinDistance(string1,string2) / Math.max(string1.length,string2.length));\ncompareStrings('30-seconds-of-code', '30-seconds-of-python-code'); // 99.72 (%)", @@ -322,7 +322,7 @@ }, "meta": { "archived": true, - "hash": "93e8862a89acd7be83ffbbb3f732759a84c9e9e7ebd5763251bcd265f8e7fbce" + "hash": "923a1f48f03450680f6150058f7ae52edf8a08a0d00d57cf26aa803f707643c9" } }, { diff --git a/snippets_archive/README.md b/snippets_archive/README.md index 4069bb389..b001d2eb8 100644 --- a/snippets_archive/README.md +++ b/snippets_archive/README.md @@ -391,14 +391,12 @@ Adapted from [here](https://github.com/forrestthewoods/lib_fts/blob/80f3f8c52db5 ```js const isSimilar = (pattern, str) => [...str].reduce( - (matchIndex, char) => - char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() - ? matchIndex + 1 - : matchIndex, - 0 - ) === pattern.length - ? true - : false; + (matchIndex, char) => + char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() + ? matchIndex + 1 + : matchIndex, + 0 + ) === pattern.length; ```
diff --git a/test/testlog b/test/testlog index ea4bd965b..bee59d8f1 100644 --- a/test/testlog +++ b/test/testlog @@ -337,84 +337,1897 @@ ok 257 — head(undefined) throws an Error ok 258 — head() throws an Error ok 259 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +# PASS test/allEqual/allEqual.test.js + +ok 260 — allEqual is a Function +ok 261 — Truthy numbers +ok 262 — Falsy numbers +ok 263 — Truthy strings +ok 264 — Falsy numbers +ok 265 — Truthy trues +ok 266 — Truthy falses +ok 267 — Falsy trues +ok 268 — Falsy falses +ok 269 — False when there are different types + # PASS test/filterNonUniqueBy/filterNonUniqueBy.test.js -ok 260 — filterNonUniqueBy is a Function -ok 261 — filterNonUniqueBy works for properties -ok 262 — filterNonUniqueBy works for nested properties +ok 270 — filterNonUniqueBy is a Function +ok 271 — filterNonUniqueBy works for properties +ok 272 — filterNonUniqueBy works for nested properties # PASS test/all/all.test.js -ok 263 — all is a Function -ok 264 — Returns true for arrays with no falsey values -ok 265 — Returns false for arrays with 0 -ok 266 — Returns false for arrays with NaN -ok 267 — Returns false for arrays with undefined -ok 268 — Returns false for arrays with null -ok 269 — Returns false for arrays with empty strings -ok 270 — Returns true with predicate function -ok 271 — Returns false with a predicate function +ok 273 — all is a Function +ok 274 — Returns true for arrays with no falsey values +ok 275 — Returns false for arrays with 0 +ok 276 — Returns false for arrays with NaN +ok 277 — Returns false for arrays with undefined +ok 278 — Returns false for arrays with null +ok 279 — Returns false for arrays with empty strings +ok 280 — Returns true with predicate function +ok 281 — Returns false with a predicate function # PASS test/offset/offset.test.js -ok 272 — offset is a Function -ok 273 — Offset of 0 returns the same array. -ok 274 — Offset > 0 returns the offsetted array. -ok 275 — Offset < 0 returns the reverse offsetted array. -ok 276 — Offset greater than the length of the array returns the same array. -ok 277 — Offset less than the negative length of the array returns the same array. -ok 278 — Offsetting empty array returns an empty array. +ok 282 — offset is a Function +ok 283 — Offset of 0 returns the same array. +ok 284 — Offset > 0 returns the offsetted array. +ok 285 — Offset < 0 returns the reverse offsetted array. +ok 286 — Offset greater than the length of the array returns the same array. +ok 287 — Offset less than the negative length of the array returns the same array. +ok 288 — Offsetting empty array returns an empty array. # PASS test/equals/equals.test.js -ok 279 — equals is a Function -ok 280 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 281 — [1,2,3] is equal to [1,2,3] -ok 282 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 283 — [1,2,3] is not equal to [1,2,4] -ok 284 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. - -# PASS test/allEqual/allEqual.test.js - -ok 285 — allEqual is a Function -ok 286 — Truthy numbers -ok 287 — Falsy numbers -ok 288 — Truthy strings -ok 289 — Falsy numbers -ok 290 — Truthy trues -ok 291 — Truthy falses -ok 292 — Falsy trues -ok 293 — Falsy falses +ok 289 — equals is a Function +ok 290 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 291 — [1,2,3] is equal to [1,2,3] +ok 292 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 293 — [1,2,3] is not equal to [1,2,4] +ok 294 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. # PASS test/isWritableStream/isWritableStream.test.js -ok 294 — isWritableStream is a Function -ok 295 — isWritableStream returns false for read streams -ok 296 — isWritableStream returns true for write streams -ok 297 — isWritableStream returns true for duplex streams -ok 298 — isWritableStream returns false for non-streams +ok 295 — isWritableStream is a Function +ok 296 — isWritableStream returns false for read streams +ok 297 — isWritableStream returns true for write streams +ok 298 — isWritableStream returns true for duplex streams +ok 299 — isWritableStream returns false for non-streams # PASS test/isReadableStream/isReadableStream.test.js -ok 299 — isReadableStream is a Function -ok 300 — isReadableStream returns true for read streams -ok 301 — isReadableStream returns false for write streams -ok 302 — isReadableStream returns true for duplex streams -ok 303 — isReadableStream returns false for non-streams +ok 300 — isReadableStream is a Function +ok 301 — isReadableStream returns true for read streams +ok 302 — isReadableStream returns false for write streams +ok 303 — isReadableStream returns true for duplex streams +ok 304 — isReadableStream returns false for non-streams # PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js -ok 304 — randomIntArrayInRange is a Function -ok 305 — The returned array contains only integers -ok 306 — The returned array has the proper length -ok 307 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). +ok 305 — randomIntArrayInRange is a Function +ok 306 — The returned array contains only integers +ok 307 — The returned array has the proper length +ok 308 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). # PASS test/pluralize/pluralize.test.js -ok 308 — pluralize is a Function -ok 309 — Produces the plural of the word -ok 310 — Produces the singular of the word -ok 311 — Produces the plural of the word -ok 312 — Prodices the defined plural of the word -ok 313 — Works with a dictionary +ok 309 — pluralize is a Function +ok 310 — Produces the plural of the word +ok 311 — Produces the singular of the word +ok 312 — Produces the plural of the word +ok 313 — Prodices the defined plural of the word +ok 314 — Works with a dictionary + +# FAIL test/isDuplexStream/isDuplexStream.test.js + +ok 315 — isDuplexStream is a Function +not ok 316 ● isDuplexStream returns true for read streams +# +# expect(received).toBeTruthy() +# +# +# +# Received: +# +# Stack: +# +# at Object..test (test/isDuplexStream/isDuplexStream.test.js:10:68) +# +# 6 | test('isDuplexStream is a Function', () => { +# 7 | expect(isDuplexStream).toBeInstanceOf(Function); +# 8 | }); +# 9 | test('isDuplexStream returns true for read streams', () => { +# > 10 | expect(isDuplexStream(fs.createReadStream('isDuplexStream.js'))).toBeTruthy(); +# | ^ +# 11 | }); +# 12 | test('isDuplexStream returns true for write streams', () => { +# 13 | expect(isDuplexStream(fs.createWriteStream('isDuplexStream.js'))).toBeTruthy(); +# +# at new Promise () + +not ok 317 ● isDuplexStream returns true for write streams +# +# expect(received).toBeTruthy() +# +# +# +# Received: +# +# Stack: +# +# at Object..test (test/isDuplexStream/isDuplexStream.test.js:13:69) +# +# 9 | test('isDuplexStream returns true for read streams', () => { +# 10 | expect(isDuplexStream(fs.createReadStream('isDuplexStream.js'))).toBeTruthy(); +# 11 | }); +# 12 | test('isDuplexStream returns true for write streams', () => { +# > 13 | expect(isDuplexStream(fs.createWriteStream('isDuplexStream.js'))).toBeTruthy(); +# | ^ +# 14 | }); +# 15 | test('isDuplexStream returns true for duplex streams', () => { +# 16 | expect(isDuplexStream(new Stream.Duplex())).toBeTruthy(); +# +# at new Promise () + +ok 318 — isDuplexStream returns true for duplex streams +ok 319 — isDuplexStream returns false for non-streams + +# PASS test/sampleSize/sampleSize.test.js + +ok 320 — sampleSize is a Function +ok 321 — Returns a single element without n specified +ok 322 — Returns a random sample of specified size from an array +ok 323 — Returns all elements in an array if n >= length +ok 324 — Returns an empty array if original array is empty +ok 325 — Returns an empty array if n = 0 + +# PASS test/orderBy/orderBy.test.js + +ok 326 — orderBy is a Function +ok 327 — Returns a sorted array of objects ordered by properties and orders. +ok 328 — Returns a sorted array of objects ordered by properties and orders. + +# PASS test/deepFreeze/deepFreeze.test.js + +ok 329 — deepFreeze is a Function +ok 330 — modifying deeply freezed object prop throws an error in strict mode +ok 331 — should not modify deeply freezed object inside another object +ok 332 — should not add prop to deeply freezed empty object + +# PASS test/CSVToArray/CSVToArray.test.js + +ok 333 — CSVToArray is a Function +ok 334 — CSVToArray works with default delimiter +ok 335 — CSVToArray works with custom delimiter +ok 336 — CSVToArray omits the first row +ok 337 — CSVToArray omits the first row and works with a custom delimiter + +# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js + +ok 338 — initializeArrayWithRange is a Function +ok 339 — Initializes an array containing the numbers in the specified range (witout start value) +ok 340 — Initializes an array containing the numbers in the specified range +ok 341 — Initializes an array containing the numbers in the specified range (with step) + +# PASS test/randomIntegerInRange/randomIntegerInRange.test.js + +ok 342 — randomIntegerInRange is a Function +ok 343 — The returned value is an integer +ok 344 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/randomNumberInRange/randomNumberInRange.test.js + +ok 345 — randomNumberInRange is a Function +ok 346 — The returned value is a number +ok 347 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/any/any.test.js + +ok 348 — any is a Function +ok 349 — Returns true for arrays with at least one truthy value +ok 350 — Returns false for arrays with no truthy values +ok 351 — Returns false for arrays with no truthy values +ok 352 — Returns true with predicate function +ok 353 — Returns false with a predicate function + +# PASS test/toCurrency/toCurrency.test.js + +ok 354 — toCurrency is a Function +ok 355 — currency: Euro | currencyLangFormat: Local +ok 356 — currency: US Dollar | currencyLangFormat: English (United States) +ok 357 — currency: Japanese Yen | currencyLangFormat: Local + +# PASS test/geometricProgression/geometricProgression.test.js + +ok 358 — geometricProgression is a Function +ok 359 — Initializes an array containing the numbers in the specified range +ok 360 — Initializes an array containing the numbers in the specified range +ok 361 — Initializes an array containing the numbers in the specified range + +# PASS test/mapObject/mapObject.test.js + +ok 362 — mapObject is a Function +ok 363 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 364 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 365 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } + +# PASS test/join/join.test.js + +ok 366 — join is a Function +ok 367 — Joins all elements of an array into a string and returns this string +ok 368 — Joins all elements of an array into a string and returns this string +ok 369 — Joins all elements of an array into a string and returns this string + +# PASS test/isStream/isStream.test.js + +ok 370 — isStream is a Function +ok 371 — isStream returns true for read streams +ok 372 — isStream returns true for write streams +ok 373 — isStream returns true for duplex streams +ok 374 — isStream returns false for non-streams + +# PASS test/binomialCoefficient/binomialCoefficient.test.js + +ok 375 — binomialCoefficient is a Function +ok 376 — Returns the appropriate value +ok 377 — Returns the appropriate value +ok 378 — Returns the appropriate value +ok 379 — Returns NaN +ok 380 — Returns NaN + +# PASS test/mapString/mapString.test.js + +ok 381 — mapString is a Function +ok 382 — mapString returns a capitalized string +ok 383 — mapString can deal with indexes +ok 384 — mapString can deal with the full string + +# PASS test/dig/dig.test.js + +ok 385 — dig is a Function +ok 386 — Dig target success +ok 387 — Dig target with falsey value +ok 388 — Dig target with array +ok 389 — Unknown target return undefined + +# PASS test/reduceWhich/reduceWhich.test.js + +ok 390 — reduceWhich is a Function +ok 391 — Returns the minimum of an array +ok 392 — Returns the maximum of an array +ok 393 — Returns the object with the minimum specified value in an array + +# PASS test/invertKeyValues/invertKeyValues.test.js + +ok 394 — invertKeyValues is a Function +ok 395 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 396 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# 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/approximatelyEqual/approximatelyEqual.test.js + +ok 401 — approximatelyEqual is a Function +ok 402 — Works for PI / 2 +ok 403 — Works for 0.1 + 0.2 === 0.3 +ok 404 — Works for exactly equal values +ok 405 — Works for a custom epsilon + +# PASS test/shank/shank.test.js + +ok 406 — shank is a Function +ok 407 — Returns an array with the added elements. +ok 408 — Returns an array with the removed elements. +ok 409 — Does not mutate the original array + +# PASS test/none/none.test.js + +ok 410 — none is a Function +ok 411 — Returns true for arrays with no truthy values +ok 412 — Returns false for arrays with at least one truthy value +ok 413 — Returns true with a predicate function +ok 414 — Returns false with predicate function + +# PASS test/castArray/castArray.test.js + +ok 415 — castArray is a Function +ok 416 — Works for single values +ok 417 — Works for arrays with one value +ok 418 — Works for arrays with multiple value +ok 419 — Works for strings +ok 420 — Works for objects + +# PASS test/binarySearch/binarySearch.test.js + +ok 421 — binarySearch is a Function +ok 422 — Finds item in array +ok 423 — Returns -1 when not found +ok 424 — Works with empty arrays +ok 425 — Works for one element arrays + +# PASS test/randomHexColorCode/randomHexColorCode.test.js + +ok 426 — randomHexColorCode is a Function +ok 427 — randomHexColorCode has to proper length +ok 428 — The color code starts with "#" +ok 429 — The color code contains only valid hex-digits + +# PASS test/inRange/inRange.test.js + +ok 430 — inRange is a Function +ok 431 — The given number falls within the given range +ok 432 — The given number falls within the given range +ok 433 — The given number does not falls within the given range +ok 434 — The given number does not falls within the given range + +# 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/factorial/factorial.test.js + +ok 439 — factorial is a Function +ok 440 — Calculates the factorial of 720 +ok 441 — Calculates the factorial of 0 +ok 442 — Calculates the factorial of 1 +ok 443 — Calculates the factorial of 4 +ok 444 — Calculates the factorial of 10 + +# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js + +ok 445 — toOrdinalSuffix is a Function +ok 446 — Adds an ordinal suffix to a number +ok 447 — Adds an ordinal suffix to a number +ok 448 — Adds an ordinal suffix to a number +ok 449 — Adds an ordinal suffix to a number + +# PASS test/JSONtoCSV/JSONtoCSV.test.js + +ok 450 — JSONtoCSV is a Function +ok 451 — JSONtoCSV works with default delimiter +ok 452 — JSONtoCSV works with custom delimiter + +# PASS test/capitalize/capitalize.test.js + +ok 453 — capitalize is a Function +ok 454 — Capitalizes the first letter of a string +ok 455 — Capitalizes the first letter of a string +ok 456 — Works with characters +ok 457 — "Works with single character words + +# PASS test/converge/converge.test.js + +ok 458 — converge is a Function +ok 459 — Produces the average of the array +ok 460 — Produces the strange concatenation + +# PASS test/deepClone/deepClone.test.js + +ok 461 — deepClone is a Function +ok 462 — Shallow cloning works +ok 463 — Deep cloning works +ok 464 — Array shallow cloning works +ok 465 — Array deep cloning works + +# PASS test/isAnagram/isAnagram.test.js + +ok 466 — isAnagram is a Function +ok 467 — Checks valid anagram +ok 468 — Works with spaces +ok 469 — Ignores case +ok 470 — Ignores special characters + +# PASS test/tomorrow/tomorrow.test.js + +ok 471 — tomorrow is a Function +ok 472 — Returns the correct year +ok 473 — Returns the correct month +ok 474 — Returns the correct date + +# PASS test/prettyBytes/prettyBytes.test.js + +ok 475 — prettyBytes is a Function +ok 476 — Converts a number in bytes to a human-readable string. +ok 477 — Converts a number in bytes to a human-readable string. +ok 478 — Converts a number in bytes to a human-readable string. + +# PASS test/shuffle/shuffle.test.js + +ok 479 — shuffle is a Function +ok 480 — Shuffles the array +ok 481 — New array contains all original elements +ok 482 — Works for empty arrays +ok 483 — Works for single-element arrays + +# PASS test/stringPermutations/stringPermutations.test.js + +ok 484 — stringPermutations is a Function +ok 485 — Generates all stringPermutations of a string +ok 486 — Works for single-letter strings +ok 487 — Works for empty strings + +# PASS test/isString/isString.test.js + +ok 488 — isString is a Function +ok 489 — foo is a string +ok 490 — "10" is a string +ok 491 — Empty string is a string +ok 492 — 10 is not a string +ok 493 — true is not string + +# PASS test/dropRight/dropRight.test.js + +ok 494 — dropRight is a Function +ok 495 — Returns a new array with n elements removed from the right +ok 496 — Returns a new array with n elements removed from the right +ok 497 — Returns a new array with n elements removed from the right + +# PASS test/hexToRGB/hexToRGB.test.js + +ok 498 — hexToRGB is a Function +ok 499 — Converts a color code to a rgb() or rgba() string +ok 500 — Converts a color code to a rgb() or rgba() string +ok 501 — Converts a color code to a rgb() or rgba() string + +# PASS test/formatDuration/formatDuration.test.js + +ok 502 — formatDuration is a Function +ok 503 — Returns the human readable format of the given number of milliseconds +ok 504 — Returns the human readable format of the given number of milliseconds + +# PASS test/partition/partition.test.js + +ok 505 — partition is a Function +ok 506 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. + +# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js + +ok 507 — capitalizeEveryWord is a Function +ok 508 — Capitalizes the first letter of every word in a string +ok 509 — Works with characters +ok 510 — Works with one word string + +# PASS test/isObjectLike/isObjectLike.test.js + +ok 511 — isObjectLike is a Function +ok 512 — Returns true for an object +ok 513 — Returns true for an array +ok 514 — Returns false for a function +ok 515 — Returns false for null + +# PASS test/standardDeviation/standardDeviation.test.js + +ok 516 — standardDeviation is a Function +ok 517 — Returns the standard deviation of an array of numbers +ok 518 — Returns the standard deviation of an array of numbers + +# PASS test/sumPower/sumPower.test.js + +ok 519 — sumPower is a Function +ok 520 — Returns the sum of the powers of all the numbers from start to end +ok 521 — Returns the sum of the powers of all the numbers from start to end +ok 522 — Returns the sum of the powers of all the numbers from start to end + +# PASS test/untildify/untildify.test.js + +ok 523 — untildify is a Function +ok 524 — Contains no tildes +ok 525 — Does not alter the rest of the path +ok 526 — Does not alter paths without tildes + +# PASS test/isObject/isObject.test.js + +ok 527 — isObject is a Function +ok 528 — isObject([1, 2, 3, 4]) is a object +ok 529 — isObject([]) is a object +ok 530 — isObject({ a:1 }) is a object +ok 531 — isObject(true) is not a object + +# PASS test/CSVToJSON/CSVToJSON.test.js + +ok 532 — CSVToJSON is a Function +ok 533 — CSVToJSON works with default delimiter +ok 534 — CSVToJSON works with custom delimiter + +# PASS test/URLJoin/URLJoin.test.js + +ok 535 — URLJoin is a Function +ok 536 — Returns proper URL +ok 537 — Returns proper URL + +# PASS test/reducedFilter/reducedFilter.test.js + +ok 538 — reducedFilter is a Function +ok 539 — Filter an array of objects based on a condition while also filtering out unspecified keys. + +# PASS test/unzip/unzip.test.js + +ok 540 — unzip is a Function +ok 541 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 542 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] + +# PASS test/sortedIndex/sortedIndex.test.js + +ok 543 — sortedIndex is a Function +ok 544 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. +ok 545 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. + +# PASS test/byteSize/byteSize.test.js + +ok 546 — byteSize is a Function +ok 547 — Works for a single letter +ok 548 — Works for a common string +ok 549 — Works for emoji + +# PASS test/uniqueSymmetricDifference/uniqueSymmetricDifference.test.js + +ok 550 — uniqueSymmetricDifference is a Function +ok 551 — Returns the symmetric difference between two arrays. +ok 552 — Does not return duplicates from one array + +# PASS test/isAbsoluteURL/isAbsoluteURL.test.js + +ok 553 — isAbsoluteURL is a Function +ok 554 — Given string is an absolute URL +ok 555 — Given string is an absolute URL +ok 556 — Given string is not an absolute URL + +# PASS test/matches/matches.test.js + +ok 557 — matches is a Function +ok 558 — Matches returns true for two similar objects +ok 559 — Matches returns false for two non-similar objects + +# PASS test/uncurry/uncurry.test.js + +ok 560 — uncurry is a Function +ok 561 — Works without a provided value for n +ok 562 — Works with n = 2 +ok 563 — Works with n = 3 + +# PASS test/collectInto/collectInto.test.js + +ok 564 — collectInto is a Function +ok 565 — Works with multiple promises + +# PASS test/isValidJSON/isValidJSON.test.js + +ok 566 — isValidJSON is a Function +ok 567 — {"name":"Adam","age":20} is a valid JSON +ok 568 — {"name":"Adam",age:"20"} is not a valid JSON +ok 569 — null is a valid JSON + +# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js + +ok 570 — symmetricDifferenceWith is a Function +ok 571 — Returns the symmetric difference between two arrays, using a provided function as a comparator + +# PASS test/pad/pad.test.js + +ok 572 — pad is a Function +ok 573 — cat is padded on both sides +ok 574 — length of string is 8 +ok 575 — pads 42 with "0" +ok 576 — does not truncates if string exceeds length + +# PASS test/groupBy/groupBy.test.js + +ok 577 — groupBy is a Function +ok 578 — Groups the elements of an array based on the given function +ok 579 — Groups the elements of an array based on the given function + +# PASS test/lowercaseKeys/lowercaseKeys.test.js + +ok 580 — lowercaseKeys is a Function +ok 581 — Lowercases object keys +ok 582 — Does not mutate original object + +# PASS test/functionName/functionName.test.js + +ok 583 — functionName is a Function +ok 584 — Works for native functions +ok 585 — Works for functions +ok 586 — Works for arrow functions + +# PASS test/matchesWith/matchesWith.test.js + +ok 587 — matchesWith is a Function +ok 588 — Returns true for two objects with similar values, based on the provided function + +# PASS test/collatz/collatz.test.js + +ok 589 — collatz is a Function +ok 590 — When n is even, divide by 2 +ok 591 — When n is odd, times by 3 and add 1 +ok 592 — Eventually reaches 1 + +# PASS test/reject/reject.test.js + +ok 593 — reject is a Function +ok 594 — Works with numbers +ok 595 — Works with strings + +# PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js + +ok 596 — UUIDGeneratorNode is a Function +ok 597 — Contains dashes in the proper places +ok 598 — Only contains hexadecimal digits + +# PASS test/symmetricDifference/symmetricDifference.test.js + +ok 599 — symmetricDifference is a Function +ok 600 — Returns the symmetric difference between two arrays. +ok 601 — Returns duplicates from one array + +# PASS test/luhnCheck/luhnCheck.test.js + +ok 602 — luhnCheck is a Function +ok 603 — validates identification number +ok 604 — validates identification number +ok 605 — validates identification number + +# PASS test/isBeforeDate/isBeforeDate.test.js + +ok 606 — isBeforeDate is a Function +ok 607 — isBeforeDate produces the correct result +ok 608 — isBeforeDate produces the correct result + +# PASS test/intersectionWith/intersectionWith.test.js + +ok 609 — intersectionWith is a Function +ok 610 — Returns a list of elements that exist in both arrays, using a provided comparator function + +# PASS test/sample/sample.test.js + +ok 611 — sample is a Function +ok 612 — Returns a random element from the array +ok 613 — Works for single-element arrays +ok 614 — Returns undefined for empty array + +# PASS test/flattenObject/flattenObject.test.js + +ok 615 — flattenObject is a Function +ok 616 — Flattens an object with the paths for keys +ok 617 — Works with arrays + +# PASS test/nthArg/nthArg.test.js + +ok 618 — nthArg is a Function +ok 619 — Returns the nth argument +ok 620 — Returns undefined if arguments too few +ok 621 — Works for negative values + +# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js + +ok 622 — pipeAsyncFunctions is a Function +ok 623 — pipeAsyncFunctions result should be 15 + +# PASS test/drop/drop.test.js + +ok 624 — drop is a Function +ok 625 — Works without the last argument +ok 626 — Removes appropriate element count as specified +ok 627 — Empties array given a count greater than length + +# PASS test/isAfterDate/isAfterDate.test.js + +ok 628 — isAfterDate is a Function +ok 629 — isAfterDate produces the correct result +ok 630 — isBeforeDate produces the correct result + +# PASS test/functions/functions.test.js + +ok 631 — functions is a Function +ok 632 — Returns own methods +ok 633 — Returns own and inherited methods + +# PASS test/differenceBy/differenceBy.test.js + +ok 634 — differenceBy is a Function +ok 635 — Works using a native function and numbers +ok 636 — Works with arrow function and objects + +# PASS test/renameKeys/renameKeys.test.js + +ok 637 — renameKeys is a Function +ok 638 — renameKeys is a Function + +# PASS test/elo/elo.test.js + +ok 639 — elo is a Function +ok 640 — Standard 1v1s +ok 641 — Standard 1v1s +ok 642 — 4 player FFA, all same rank + +# PASS test/memoize/memoize.test.js + +ok 643 — memoize is a Function +ok 644 — Function works properly +ok 645 — Function works properly +ok 646 — Cache stores values + +# PASS test/isLowerCase/isLowerCase.test.js + +ok 647 — isLowerCase is a Function +ok 648 — passed string is a lowercase +ok 649 — passed string is a lowercase +ok 650 — passed value is not a lowercase + +# PASS test/isSameDate/isSameDate.test.js + +ok 651 — isSameDate is a Function +ok 652 — isSameDate produces the correct result +ok 653 — isSameDate produces the correct result + +# PASS test/averageBy/averageBy.test.js + +ok 654 — averageBy is a Function +ok 655 — Produces the right result with a function +ok 656 — Produces the right result with a property name + +# PASS test/bindKey/bindKey.test.js + +ok 657 — bindKey is a Function +ok 658 — Binds function to an object context + +# PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js + +ok 659 — symmetricDifferenceBy is a Function +ok 660 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both + +# PASS test/isPromiseLike/isPromiseLike.test.js + +ok 661 — isPromiseLike is a Function +ok 662 — Returns true for a promise-like object +ok 663 — Returns false for an empty object + +# PASS test/findLastKey/findLastKey.test.js + +ok 664 — findLastKey is a Function +ok 665 — eturns the appropriate key + +# PASS test/isArrayLike/isArrayLike.test.js + +ok 666 — isArrayLike is a Function +ok 667 — Returns true for a string +ok 668 — Returns true for an array +ok 669 — Returns false for null + +# PASS test/arrayToCSV/arrayToCSV.test.js + +ok 670 — arrayToCSV is a Function +ok 671 — arrayToCSV works with default delimiter +ok 672 — arrayToCSV works with custom delimiter + +# PASS test/promisify/promisify.test.js + +ok 673 — promisify is a Function +ok 674 — Returns a promise +ok 675 — Runs the function provided + +# PASS test/truthCheckCollection/truthCheckCollection.test.js + +ok 676 — truthCheckCollection is a Function +ok 677 — second argument is truthy on all elements of a collection + +# PASS test/isUpperCase/isUpperCase.test.js + +ok 678 — isUpperCase is a Function +ok 679 — ABC is all upper case +ok 680 — abc is not all upper case +ok 681 — A3@$ is all uppercase + +# PASS test/pullAtValue/pullAtValue.test.js + +ok 682 — pullAtValue is a Function +ok 683 — Pulls the specified values +ok 684 — Pulls the specified values + +# PASS test/maxBy/maxBy.test.js + +ok 685 — maxBy is a Function +ok 686 — Produces the right result with a function +ok 687 — Produces the right result with a property name + +# PASS test/minBy/minBy.test.js + +ok 688 — minBy is a Function +ok 689 — Produces the right result with a function +ok 690 — Produces the right result with a property name + +# PASS test/unzipWith/unzipWith.test.js + +ok 691 — unzipWith is a Function +ok 692 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] + +# PASS test/findKey/findKey.test.js + +ok 693 — findKey is a Function +ok 694 — Returns the appropriate key + +# PASS test/merge/merge.test.js + +ok 695 — merge is a Function +ok 696 — Merges two objects + +# PASS test/pullAtIndex/pullAtIndex.test.js + +ok 697 — pullAtIndex is a Function +ok 698 — Pulls the given values +ok 699 — Pulls the given values + +# PASS test/coalesceFactory/coalesceFactory.test.js + +ok 700 — coalesceFactory is a Function +ok 701 — Returns a customized coalesce function + +# PASS test/indentString/indentString.test.js + +ok 702 — indentString is a Function +ok 703 — indentString is a Function +ok 704 — indentString is a Function + +# PASS test/bind/bind.test.js + +ok 705 — bind is a Function +ok 706 — Binds to an object context + +# PASS test/takeRight/takeRight.test.js + +ok 707 — takeRight is a Function +ok 708 — Returns an array with n elements removed from the end +ok 709 — Returns an array with n elements removed from the end + +# PASS test/transform/transform.test.js + +ok 710 — transform is a Function +ok 711 — Transforms an object + +# PASS test/getURLParameters/getURLParameters.test.js + +ok 712 — getURLParameters is a Function +ok 713 — Returns an object containing the parameters of the current URL + +# PASS test/reduceSuccessive/reduceSuccessive.test.js + +ok 714 — reduceSuccessive is a Function +ok 715 — Returns the array of successively reduced values + +# PASS test/isPlainObject/isPlainObject.test.js + +ok 716 — isPlainObject is a Function +ok 717 — Returns true for a plain object +ok 718 — Returns false for a Map (example of non-plain object) + +# PASS test/runPromisesInSeries/runPromisesInSeries.test.js + +ok 719 — runPromisesInSeries is a Function +ok 720 — Runs promises in series + +# PASS test/intersectionBy/intersectionBy.test.js + +ok 721 — intersectionBy is a Function +ok 722 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both + +# PASS test/indexOfAll/indexOfAll.test.js + +ok 723 — indexOfAll is a Function +ok 724 — Returns all indices of val in an array +ok 725 — When val is not found, return an empty array + +# PASS test/isNil/isNil.test.js + +ok 726 — isNil is a Function +ok 727 — Returns true for null +ok 728 — Returns true for undefined +ok 729 — Returns false for an empty string + +# PASS test/pipeFunctions/pipeFunctions.test.js + +ok 730 — pipeFunctions is a Function +ok 731 — Performs left-to-right function composition + +# PASS test/gcd/gcd.test.js + +ok 732 — gcd is a Function +ok 733 — Calculates the greatest common divisor between two or more numbers/arrays +ok 734 — Calculates the greatest common divisor between two or more numbers/arrays + +# PASS test/extendHex/extendHex.test.js + +ok 735 — extendHex is a Function +ok 736 — Extends a 3-digit color code to a 6-digit color code +ok 737 — Extends a 3-digit color code to a 6-digit color code + +# PASS test/isTravisCI/isTravisCI.test.js + +ok 738 — isTravisCI is a Function +ok 739 — Running on Travis, correctly evaluates + +# PASS test/take/take.test.js + +ok 740 — take is a Function +ok 741 — Returns an array with n elements removed from the beginning. +ok 742 — Returns an array with n elements removed from the beginning. + +# PASS test/maxDate/maxDate.test.js + +ok 743 — maxDate is a Function +ok 744 — maxDate produces the maximum date + +# PASS test/minDate/minDate.test.js + +ok 745 — minDate is a Function +ok 746 — minDate produces the maximum date + +# PASS test/chainAsync/chainAsync.test.js + +ok 747 — chainAsync is a Function +ok 748 — Calls all functions in an array + +# PASS test/cleanObj/cleanObj.test.js + +ok 749 — cleanObj is a Function +ok 750 — Removes any properties except the ones specified from a JSON 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/decapitalize/decapitalize.test.js + +ok 754 — decapitalize is a Function +ok 755 — Works with default parameter +ok 756 — Works with second parameter set to true + +# PASS test/overArgs/overArgs.test.js + +ok 757 — overArgs is a Function +ok 758 — Invokes the provided function with its arguments transformed + +# PASS test/shallowClone/shallowClone.test.js + +ok 759 — shallowClone is a Function +ok 760 — Shallow cloning works +ok 761 — Does not clone deeply + +# PASS test/nthElement/nthElement.test.js + +ok 762 — nthElement is a Function +ok 763 — Returns the nth element of an array. +ok 764 — Returns the nth element of an array. + +# PASS test/hashNode/hashNode.test.js + +ok 765 — hashNode is a Function +ok 766 — Produces the appropriate hash + +# PASS test/spreadOver/spreadOver.test.js + +ok 767 — spreadOver is a Function +ok 768 — 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 769 — partialRight is a Function +ok 770 — Appends arguments + +# PASS test/composeRight/composeRight.test.js + +ok 771 — composeRight is a Function +ok 772 — Performs left-to-right function composition + +# PASS test/permutations/permutations.test.js + +ok 773 — permutations is a Function +ok 774 — Generates all permutations of an array + +# PASS test/maxN/maxN.test.js + +ok 775 — maxN is a Function +ok 776 — Returns the n maximum elements from the provided array +ok 777 — Returns the n maximum elements from the provided array + +# PASS test/minN/minN.test.js + +ok 778 — minN is a Function +ok 779 — Returns the n minimum elements from the provided array +ok 780 — Returns the n minimum elements from the provided array + +# PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js + +ok 781 — getDaysDiffBetweenDates is a Function +ok 782 — Returns the difference in days between two dates + +# PASS test/flatten/flatten.test.js + +ok 783 — flatten is a Function +ok 784 — Flattens an array +ok 785 — Flattens an array + +# PASS test/when/when.test.js + +ok 786 — when is a Function +ok 787 — Returns the proper result +ok 788 — Returns the proper result + +# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js + +ok 789 — sortedLastIndexBy is a Function +ok 790 — Returns the highest index to insert the element without messing up the list order + +# PASS test/compose/compose.test.js + +ok 791 — compose is a Function +ok 792 — Performs right-to-left function composition + +# PASS test/splitLines/splitLines.test.js + +ok 793 — splitLines is a Function +ok 794 — Splits a multiline string into an array of lines. + +# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js + +ok 795 — initializeArrayWithValues is a Function +ok 796 — Initializes and fills an array with the specified values + +# PASS test/differenceWith/differenceWith.test.js + +ok 797 — differenceWith is a Function +ok 798 — Filters out all values from an array + +# PASS test/percentile/percentile.test.js + +ok 799 — percentile is a Function +ok 800 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. + +# PASS test/lcm/lcm.test.js + +ok 801 — lcm is a Function +ok 802 — Returns the least common multiple of two or more numbers. +ok 803 — Returns the least common multiple of two or more numbers. + +# PASS test/bindAll/bindAll.test.js + +ok 804 — bindAll is a Function +ok 805 — Binds to an object context + +# PASS test/mapValues/mapValues.test.js + +ok 806 — mapValues is a Function +ok 807 — Maps values + +# PASS test/partial/partial.test.js + +ok 808 — partial is a Function +ok 809 — Prepends arguments + +# PASS test/unionWith/unionWith.test.js + +ok 810 — unionWith is a Function +ok 811 — Produces the appropriate results + +# PASS test/palindrome/palindrome.test.js + +ok 812 — palindrome is a Function +ok 813 — Given string is a palindrome +ok 814 — Given string is not a palindrome + +# PASS test/bifurcateBy/bifurcateBy.test.js + +ok 815 — bifurcateBy is a Function +ok 816 — Splits the collection into two groups + +# PASS test/degreesToRads/degreesToRads.test.js + +ok 817 — degreesToRads is a Function +ok 818 — Returns the appropriate value + +# PASS test/size/size.test.js + +ok 819 — size is a Function +ok 820 — Get size of arrays, objects or strings. +ok 821 — Get size of arrays, objects or strings. + +# PASS test/median/median.test.js + +ok 822 — median is a Function +ok 823 — Returns the median of an array of numbers +ok 824 — Returns the median of an array of numbers + +# PASS test/bifurcate/bifurcate.test.js + +ok 825 — bifurcate is a Function +ok 826 — Splits the collection into two groups + +# PASS test/forOwnRight/forOwnRight.test.js + +ok 827 — forOwnRight is a Function +ok 828 — Iterates over an element's key-value pairs in reverse + +# PASS test/sortedIndexBy/sortedIndexBy.test.js + +ok 829 — sortedIndexBy is a Function +ok 830 — Returns the lowest index to insert the element without messing up the list order + +# PASS test/dropRightWhile/dropRightWhile.test.js + +ok 831 — dropRightWhile is a Function +ok 832 — Removes elements from the end of an array until the passed function returns true. + +# PASS test/attempt/attempt.test.js + +ok 833 — attempt is a Function +ok 834 — Returns a value +ok 835 — Returns an error + +# PASS test/rearg/rearg.test.js + +ok 836 — rearg is a Function +ok 837 — Reorders arguments in invoked function + +# PASS test/sortedLastIndex/sortedLastIndex.test.js + +ok 838 — sortedLastIndex is a Function +ok 839 — Returns the highest index to insert the element without messing up the list order + +# PASS test/unescapeHTML/unescapeHTML.test.js + +ok 840 — unescapeHTML is a Function +ok 841 — Unescapes escaped HTML characters. + +# PASS test/pickBy/pickBy.test.js + +ok 842 — pickBy is a Function +ok 843 — Creates an object composed of the properties the given function returns truthy for. + +# PASS test/flip/flip.test.js + +ok 844 — flip is a Function +ok 845 — Flips argument order + +# PASS test/isFunction/isFunction.test.js + +ok 846 — isFunction is a Function +ok 847 — passed value is a function +ok 848 — passed value is not a function + +# PASS test/compact/compact.test.js + +ok 849 — compact is a Function +ok 850 — Removes falsey values from an array + +# PASS test/sortCharactersInString/sortCharactersInString.test.js + +ok 851 — sortCharactersInString is a Function +ok 852 — Alphabetically sorts the characters in a string. + +# PASS test/omitBy/omitBy.test.js + +ok 853 — omitBy is a Function +ok 854 — Creates an object composed of the properties the given function returns falsey for + +# PASS test/isBoolean/isBoolean.test.js + +ok 855 — isBoolean is a Function +ok 856 — passed value is not a boolean +ok 857 — passed value is not a boolean + +# PASS test/pullBy/pullBy.test.js + +ok 858 — pullBy is a Function +ok 859 — Pulls the specified values + +# PASS test/get/get.test.js + +ok 860 — get is a Function +ok 861 — Retrieve a property indicated by the selector from an object. + +# PASS test/unflattenObject/unflattenObject.test.js + +ok 862 — unflattenObject is a Function +ok 863 — Unflattens an object with the paths for keys + +# PASS test/initialize2DArray/initialize2DArray.test.js + +ok 864 — initialize2DArray is a Function +ok 865 — Initializes a 2D array of given width and height and value + +# PASS test/escapeHTML/escapeHTML.test.js + +ok 866 — escapeHTML is a Function +ok 867 — Escapes a string for use in HTML + +# PASS test/stableSort/stableSort.test.js + +ok 868 — stableSort is a Function +ok 869 — Array is properly sorted + +# PASS test/isNumber/isNumber.test.js + +ok 870 — isNumber is a Function +ok 871 — passed argument is a number +ok 872 — passed argument is not a number + +# PASS test/objectFromPairs/objectFromPairs.test.js + +ok 873 — objectFromPairs is a Function +ok 874 — Creates an object from the given key-value pairs. + +# PASS test/forEachRight/forEachRight.test.js + +ok 875 — forEachRight is a Function +ok 876 — Iterates over the array in reverse + +# PASS test/xProd/xProd.test.js + +ok 877 — xProd is a Function +ok 878 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] + +# PASS test/stripHTMLTags/stripHTMLTags.test.js + +ok 879 — stripHTMLTags is a Function +ok 880 — Removes HTML tags + +# PASS test/objectToPairs/objectToPairs.test.js + +ok 881 — objectToPairs is a Function +ok 882 — Creates an array of key-value pair arrays from an object. + +# PASS test/toDecimalMark/toDecimalMark.test.js + +ok 883 — toDecimalMark is a Function +ok 884 — convert a float-point arithmetic to the Decimal mark form + +# PASS test/isArray/isArray.test.js + +ok 885 — isArray is a Function +ok 886 — passed value is an array +ok 887 — passed value is not an array + +# PASS test/unfold/unfold.test.js + +ok 888 — unfold is a Function +ok 889 — Works with a given function, producing an array + +# PASS test/findLastIndex/findLastIndex.test.js + +ok 890 — findLastIndex is a Function +ok 891 — Finds last index for which the given function returns true + +# PASS test/filterNonUnique/filterNonUnique.test.js + +ok 892 — filterNonUnique is a Function +ok 893 — Filters out the non-unique values in an array + +# PASS test/ary/ary.test.js + +ok 894 — ary is a Function +ok 895 — Discards arguments with index >=n + +# PASS test/forOwn/forOwn.test.js + +ok 896 — forOwn is a Function +ok 897 — Iterates over an element's key-value pairs + +# PASS test/takeRightWhile/takeRightWhile.test.js + +ok 898 — takeRightWhile is a Function +ok 899 — Removes elements until the function returns true + +# PASS test/curry/curry.test.js + +ok 900 — curry is a Function +ok 901 — curries a Math.pow +ok 902 — curries a Math.min + +# PASS test/countOccurrences/countOccurrences.test.js + +ok 903 — countOccurrences is a Function +ok 904 — Counts the occurrences of a value in an array + +# PASS test/removeNonASCII/removeNonASCII.test.js + +ok 905 — removeNonASCII is a Function +ok 906 — Removes non-ASCII characters + +# PASS test/dropWhile/dropWhile.test.js + +ok 907 — dropWhile is a Function +ok 908 — Removes elements in an array until the passed function returns true. + +# PASS test/isNull/isNull.test.js + +ok 909 — isNull is a Function +ok 910 — passed argument is a null +ok 911 — passed argument is a null + +# PASS test/pick/pick.test.js + +ok 912 — pick is a Function +ok 913 — Picks the key-value pairs corresponding to the given keys from an object. + +# PASS test/truncateString/truncateString.test.js + +ok 914 — truncateString is a Function +ok 915 — Truncates a "boomerang" up to a specified length. + +# PASS test/defaults/defaults.test.js + +ok 916 — defaults is a Function +ok 917 — Assigns default values for undefined properties + +# PASS test/remove/remove.test.js + +ok 918 — remove is a Function +ok 919 — Removes elements from an array for which the given function returns false + +# PASS test/intersection/intersection.test.js + +ok 920 — intersection is a Function +ok 921 — Returns a list of elements that exist in both arrays + +# PASS test/atob/atob.test.js + +ok 922 — atob is a Function +ok 923 — atob("Zm9vYmFy") equals "foobar" +ok 924 — atob("Z") returns "" + +# PASS test/delay/delay.test.js + +ok 925 — delay is a Function +ok 926 — Works as expecting, passing arguments properly + +# PASS test/clampNumber/clampNumber.test.js + +ok 927 — clampNumber is a Function +ok 928 — Clamps num within the inclusive range specified by the boundary values a and b + +# PASS test/parseCookie/parseCookie.test.js + +ok 929 — parseCookie is a Function +ok 930 — Parses the cookie + +# PASS test/omit/omit.test.js + +ok 931 — omit is a Function +ok 932 — Omits the key-value pairs corresponding to the given keys from an object + +# PASS test/similarity/similarity.test.js + +ok 933 — similarity is a Function +ok 934 — Returns an array of elements that appear in both arrays. + +# PASS test/over/over.test.js + +ok 935 — over is a Function +ok 936 — Applies given functions over multiple arguments + +# PASS test/pull/pull.test.js + +ok 937 — pull is a Function +ok 938 — Pulls the specified values + +# PASS test/findLast/findLast.test.js + +ok 939 — findLast is a Function +ok 940 — Finds last element for which the given function returns true + +# PASS test/isEven/isEven.test.js + +ok 941 — isEven is a Function +ok 942 — 4 is even number +ok 943 — 5 is not an even number + +# PASS test/takeWhile/takeWhile.test.js + +ok 944 — takeWhile is a Function +ok 945 — Removes elements until the function returns true + +# PASS test/escapeRegExp/escapeRegExp.test.js + +ok 946 — escapeRegExp is a Function +ok 947 — Escapes a string to use in a regular expression + +# PASS test/cloneRegExp/cloneRegExp.test.js + +ok 948 — cloneRegExp is a Function +ok 949 — Clones regular expressions properly + +# PASS test/coalesce/coalesce.test.js + +ok 950 — coalesce is a Function +ok 951 — Returns the first non-null/undefined argument + +# PASS test/times/times.test.js + +ok 952 — times is a Function +ok 953 — Runs a function the specified amount of times + +# PASS test/fibonacci/fibonacci.test.js + +ok 954 — fibonacci is a Function +ok 955 — Generates an array, containing the Fibonacci sequence + +# PASS test/powerset/powerset.test.js + +ok 956 — powerset is a Function +ok 957 — Returns the powerset of a given array of numbers. + +# PASS test/hammingDistance/hammingDistance.test.js + +ok 958 — hammingDistance is a Function +ok 959 — retuns hamming disance between 2 values + +# PASS test/distance/distance.test.js + +ok 960 — distance is a Function +ok 961 — Calculates the distance between two points + +# PASS test/primes/primes.test.js + +ok 962 — primes is a Function +ok 963 — Generates primes up to a given number, using the Sieve of Eratosthenes. + +# PASS test/difference/difference.test.js + +ok 964 — difference is a Function +ok 965 — Returns the difference between two arrays + +# PASS test/tail/tail.test.js + +ok 966 — tail is a Function +ok 967 — Returns tail +ok 968 — Returns tail + +# PASS test/serializeCookie/serializeCookie.test.js + +ok 969 — serializeCookie is a Function +ok 970 — Serializes the cookie + +# PASS test/deepFlatten/deepFlatten.test.js + +ok 971 — deepFlatten is a Function +ok 972 — Deep flattens an array + +# PASS test/negate/negate.test.js + +ok 973 — negate is a Function +ok 974 — Negates a predicate function + +# PASS test/RGBToHex/RGBToHex.test.js + +ok 975 — RGBToHex is a Function +ok 976 — Converts the values of RGB components to a color code. + +# PASS test/everyNth/everyNth.test.js + +ok 977 — everyNth is a Function +ok 978 — Returns every nth element in an array + +# PASS test/unionBy/unionBy.test.js + +ok 979 — unionBy is a Function +ok 980 — Produces the appropriate results + +# PASS test/initial/initial.test.js + +ok 981 — initial is a Function +ok 982 — Returns all the elements of an array except the last one + +# PASS test/radsToDegrees/radsToDegrees.test.js + +ok 983 — radsToDegrees is a Function +ok 984 — Returns the appropriate value + +# PASS test/sleep/sleep.test.js + +ok 985 — sleep is a Function +ok 986 — Works as expected + +# PASS test/unary/unary.test.js + +ok 987 — unary is a Function +ok 988 — Discards arguments after the first one + +# PASS test/mapKeys/mapKeys.test.js + +ok 989 — mapKeys is a Function +ok 990 — Maps keys + +# PASS test/reverseString/reverseString.test.js + +ok 991 — reverseString is a Function +ok 992 — Reverses a string. + +# PASS test/isSymbol/isSymbol.test.js + +ok 993 — isSymbol is a Function +ok 994 — Checks if the given argument is a symbol + +# PASS test/isUndefined/isUndefined.test.js + +ok 995 — isUndefined is a Function +ok 996 — Returns true for undefined + +# PASS test/isDivisible/isDivisible.test.js + +ok 997 — isDivisible is a Function +ok 998 — The number 6 is divisible by 3 + +# PASS test/digitize/digitize.test.js + +ok 999 — digitize is a Function +ok 1000 — Converts a number to an array of digits + +# PASS test/getType/getType.test.js + +ok 1001 — getType is a Function +ok 1002 — Returns the native type of a value + +# PASS test/call/call.test.js + +ok 1003 — call is a Function +ok 1004 — Calls function on given object + +# PASS test/debounce/debounce.test.js + +ok 1005 — debounce is a Function +ok 1006 — Works as expected + +# PASS test/sdbm/sdbm.test.js + +ok 1007 — sdbm is a Function +ok 1008 — Hashes the input string into a whole number. + +# PASS test/sum/sum.test.js + +ok 1009 — sum is a Function +ok 1010 — Returns the sum of two or more numbers/arrays. + +# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js + +ok 1011 — initializeArrayWithRangeRight is a Function + +# PASS test/btoa/btoa.test.js + +ok 1012 — btoa is a Function +ok 1013 — btoa("foobar") equals "Zm9vYmFy" + +# PASS test/isPrime/isPrime.test.js + +ok 1014 — isPrime is a Function +ok 1015 — passed number is a prime + +# PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js + +ok 1016 — elementIsVisibleInViewport is a Function + +# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js + +ok 1017 — getMeridiemSuffixOfInteger is a Function + +# PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js + +ok 1018 — fibonacciCountUntilNum is a Function + +# PASS test/recordAnimationFrames/recordAnimationFrames.test.js + +ok 1019 — recordAnimationFrames is a Function + +# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js + +ok 1020 — UUIDGeneratorBrowser is a Function + +# PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js + +ok 1021 — getColonTimeFromDate is a Function + +# PASS test/levenshteinDistance/levenshteinDistance.test.js + +ok 1022 — levenshteinDistance is a Function + +# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js + +ok 1023 — isBrowserTabFocused is a Function + +# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js + +ok 1024 — fibonacciUntilNum is a Function + +# PASS test/getScrollPosition/getScrollPosition.test.js + +ok 1025 — getScrollPosition is a Function + +# PASS test/isArmstrongNumber/isArmstrongNumber.test.js + +ok 1026 — isArmstrongNumber is a Function + +# PASS test/onUserInputChange/onUserInputChange.test.js + +ok 1027 — onUserInputChange is a Function + +# PASS test/initializeNDArray/initializeNDArray.test.js + +ok 1028 — initializeNDArray is a Function + +# PASS test/detectDeviceType/detectDeviceType.test.js + +ok 1029 — detectDeviceType is a Function + +# PASS test/observeMutations/observeMutations.test.js + +ok 1030 — observeMutations is a Function + +# PASS test/copyToClipboard/copyToClipboard.test.js + +ok 1031 — copyToClipboard is a Function + +# PASS test/elementContains/elementContains.test.js + +ok 1032 — elementContains is a Function + +# PASS test/speechSynthesis/speechSynthesis.test.js + +ok 1033 — speechSynthesis is a Function + +# PASS test/nodeListToArray/nodeListToArray.test.js + +ok 1034 — nodeListToArray is a Function + +# PASS test/arrayToHtmlList/arrayToHtmlList.test.js + +ok 1035 — arrayToHtmlList is a Function + +# PASS test/mostPerformant/mostPerformant.test.js + +ok 1036 — mostPerformant is a Function + +# PASS test/createEventHub/createEventHub.test.js + +ok 1037 — createEventHub is a Function + +# PASS test/readFileLines/readFileLines.test.js + +ok 1038 — readFileLines is a Function + +# PASS test/createElement/createElement.test.js + +ok 1039 — createElement is a Function + +# PASS test/bottomVisible/bottomVisible.test.js + +ok 1040 — bottomVisible is a Function + +# PASS test/httpsRedirect/httpsRedirect.test.js + +ok 1041 — httpsRedirect is a Function + +# PASS test/isArrayBuffer/isArrayBuffer.test.js + +ok 1042 — isArrayBuffer is a Function + +# PASS test/insertBefore/insertBefore.test.js + +ok 1043 — insertBefore is a Function + +# PASS test/removeVowels/removeVowels.test.js + +ok 1044 — removeVowels is a Function + +# PASS test/isTypedArray/isTypedArray.test.js + +ok 1045 — isTypedArray is a Function + +# PASS test/howManyTimes/howManyTimes.test.js + +ok 1046 — howManyTimes is a Function + +# PASS test/triggerEvent/triggerEvent.test.js + +ok 1047 — triggerEvent is a Function + +# PASS test/smoothScroll/smoothScroll.test.js + +ok 1048 — smoothScroll is a Function + +# PASS test/countVowels/countVowels.test.js + +ok 1049 — countVowels is a Function + +# PASS test/hashBrowser/hashBrowser.test.js + +ok 1050 — hashBrowser is a Function + +# PASS test/toggleClass/toggleClass.test.js + +ok 1051 — toggleClass is a Function + +# PASS test/insertAfter/insertAfter.test.js + +ok 1052 — insertAfter is a Function + +# PASS test/scrollToTop/scrollToTop.test.js + +ok 1053 — scrollToTop is a Function + +# PASS test/currentURL/currentURL.test.js + +ok 1054 — currentURL is a Function + +# PASS test/JSONToFile/JSONToFile.test.js + +ok 1055 — JSONToFile is a Function + +# PASS test/JSONToDate/JSONToDate.test.js + +ok 1056 — JSONToDate is a Function + +# PASS test/httpDelete/httpDelete.test.js + +ok 1057 — httpDelete is a Function + +# PASS test/isWeakMap/isWeakMap.test.js + +ok 1058 — isWeakMap is a Function + +# PASS test/isSimilar/isSimilar.test.js + +ok 1059 — isSimilar is a Function + +# PASS test/dayOfYear/dayOfYear.test.js + +ok 1060 — dayOfYear is a Function + +# PASS test/timeTaken/timeTaken.test.js + +ok 1061 — timeTaken is a Function + +# PASS test/isWeakSet/isWeakSet.test.js + +ok 1062 — isWeakSet is a Function + +# PASS test/isBrowser/isBrowser.test.js + +ok 1063 — isBrowser is a Function + +# PASS test/hasClass/hasClass.test.js + +ok 1064 — hasClass is a Function + +# PASS test/setStyle/setStyle.test.js + +ok 1065 — setStyle is a Function + +# PASS test/throttle/throttle.test.js + +ok 1066 — throttle is a Function + +# PASS test/runAsync/runAsync.test.js + +ok 1067 — runAsync is a Function + +# PASS test/redirect/redirect.test.js + +ok 1068 — redirect is a Function + +# PASS test/httpPost/httpPost.test.js + +ok 1069 — httpPost is a Function + +# PASS test/getStyle/getStyle.test.js + +ok 1070 — getStyle is a Function + +# PASS test/isRegExp/isRegExp.test.js + +ok 1071 — isRegExp is a Function + +# PASS test/colorize/colorize.test.js + +ok 1072 — colorize is a Function + +# PASS test/hasFlags/hasFlags.test.js + +ok 1073 — hasFlags is a Function + +# PASS test/solveRPN/solveRPN.test.js + +ok 1074 — solveRPN is a Function + +# PASS test/pipeLog/pipeLog.test.js + +ok 1075 — pipeLog is a Function + +# PASS test/counter/counter.test.js + +ok 1076 — counter is a Function + +# PASS test/zipWith/zipWith.test.js + +ok 1077 — zipWith is a Function + +# PASS test/factors/factors.test.js + +ok 1078 — factors is a Function + +# PASS test/httpPut/httpPut.test.js + +ok 1079 — httpPut is a Function + +# PASS test/httpGet/httpGet.test.js + +ok 1080 — httpGet is a Function + +# PASS test/prefix/prefix.test.js + +ok 1081 — prefix is a Function + +# PASS test/toHash/toHash.test.js + +ok 1082 — toHash is a Function + +# PASS test/isSet/isSet.test.js + +ok 1083 — isSet is a Function + +# PASS test/defer/defer.test.js + +ok 1084 — defer is a Function + +# PASS test/sumBy/sumBy.test.js + +ok 1085 — sumBy is a Function + +# PASS test/isMap/isMap.test.js + +ok 1086 — isMap is a Function + +# PASS test/show/show.test.js + +ok 1087 — show is a Function + +# PASS test/nest/nest.test.js + +ok 1088 — nest is a Function + +# PASS test/once/once.test.js + +ok 1089 — once is a Function + +# PASS test/hide/hide.test.js + +ok 1090 — hide is a Function + +# PASS test/off/off.test.js + +ok 1091 — off is a Function + +# PASS test/hz/hz.test.js + +ok 1092 — hz is a Function + +# PASS test/on/on.test.js + +ok 1093 — on is a Function + +1..1093 + +# Test Suites: 100% ██████████, 1 failed, 359 passed, 360 total +# Tests: 100% ██████████, 2 failed, 1091 passed, 1093 total +# Time: 27.785s + +# Ran all test suites. + undefined \ No newline at end of file