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