Adapter
ary
Creates a function that accepts up to n arguments, ignoring any additional arguments.
Call the provided function, fn, with up to n arguments, using Array.slice(0,n) and the spread operator (...).
const ary = (fn, n) => (...args) => fn(...args.slice(0, n)); + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Adapter
ary
Creates a function that accepts up to
narguments, ignoring any additional arguments.Call the provided function,
fn, with up tonarguments, usingArray.slice(0,n)and the spread operator (...).const ary = (fn, n) => (...args) => fn(...args.slice(0, n));const firstTwoMax = ary(Math.max, 2); [[2, 6, 'a'], [8, 4, 6], [10]].map(x => firstTwoMax(...x)); // [6, 8, 10]call
Given a key and a set of arguments, call them when given a context. Primarily useful in composition.
Use a closure to call a stored key with stored arguments.
const call = (key, ...args) => context => context[key](...args); diff --git a/docs/array.html b/docs/array.html index dc3cc774b..ba90c7bdf 100644 --- a/docs/array.html +++ b/docs/array.html @@ -79,12 +79,15 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Array
all
Returns
trueif the provided predicate function returnstruefor all elements in a collection,falseotherwise.Use
Array.every()to test if all elements in the collection returntruebased onfn. Omit the second argument,fn, to useBooleanas a default.const all = (arr, fn = Boolean) => arr.every(fn); + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Array
all
Returns
trueif the provided predicate function returnstruefor all elements in a collection,falseotherwise.Use
Array.every()to test if all elements in the collection returntruebased onfn. Omit the second argument,fn, to useBooleanas a default.const all = (arr, fn = Boolean) => arr.every(fn);all([4, 2, 3], x => x > 1); // true all([1, 2, 3]); // trueany
Returns
trueif the provided predicate function returnstruefor at least one element in a collection,falseotherwise.Use
Array.some()to test if any elements in the collection returntruebased onfn. Omit the second argument,fn, to useBooleanas a default.const any = (arr, fn = Boolean) => arr.some(fn);any([0, 1, 2, 0], x => x >= 2); // true any([0, 0, 1, 0]); // true +arrayToCSV
Converts a 2D array to a comma-separated values (CSV) string.
Use
Array.map()andString.join(delimiter)to combine individual 1D arrays (rows) into strings. UseString.join('\n')to combine all rows into a CSV string, separating each row with a newline. Omit the second argument,delimiterto use a default delimiter of,.const arrayToCSV = (arr, delimiter = ',') => arr.map(v => v.join(delimiter)).join('\n'); +arrayToCSV([['a', 'b'], ['c', 'd']]); // 'a,b\nc,d' +arrayToCSV([['a', 'b'], ['c', 'd']], ';'); // 'a;b\nc;d'bifurcate
Splits values into two groups. If an element in
filteris truthy, the corresponding element in the collection belongs to the first group; otherwise, it belongs to the second group.Use
Array.reduce()andArray.push()to add elements to groups, based onfilter.const bifurcate = (arr, filter) => arr.reduce((acc, val, i) => (acc[filter[i] ? 0 : 1].push(val), acc), [[], []]);bifurcate(['beep', 'boop', 'foo', 'bar'], [true, true, false, true]); // [ ['beep', 'boop', 'bar'], ['foo'] ] diff --git a/docs/browser.html b/docs/browser.html index 71aba7409..2717f924b 100644 --- a/docs/browser.html +++ b/docs/browser.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Browser
arrayToHtmlList
Converts the given array elements into
<li>tags and appends them to the list of the given id.Use
Array.map(),document.querySelector(), and an anonymous inner closure to create a list of html tags.const arrayToHtmlList = (arr, listID) => + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Browser
arrayToHtmlList
Converts the given array elements into
<li>tags and appends them to the list of the given id.Use
Array.map(),document.querySelector(), and an anonymous inner closure to create a list of html tags.const arrayToHtmlList = (arr, listID) => (el => ( (el = document.querySelector('#' + listID)), (el.innerHTML += arr.map(item => `<li>${item}</li>`).join('')) diff --git a/docs/date.html b/docs/date.html index 85051ab85..c972ff052 100644 --- a/docs/date.html +++ b/docs/date.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Date
formatDuration
Returns the human readable format of the given number of milliseconds.
Divide
mswith the appropriate values to obtain the appropriate values forday,hour,minute,secondandmillisecond. UseObject.entries()withArray.filter()to keep only non-zero values. UseArray.map()to create the string for each value, pluralizing appropriately. UseString.join(', ')to combine the values into a string.const formatDuration = ms => { + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Date
formatDuration
Returns the human readable format of the given number of milliseconds.
Divide
mswith the appropriate values to obtain the appropriate values forday,hour,minute,secondandmillisecond. UseObject.entries()withArray.filter()to keep only non-zero values. UseArray.map()to create the string for each value, pluralizing appropriately. UseString.join(', ')to combine the values into a string.const formatDuration = ms => { if (ms < 0) ms = -ms; const time = { day: Math.floor(ms / 86400000), diff --git a/docs/function.html b/docs/function.html index d577f7918..4b3808ae7 100644 --- a/docs/function.html +++ b/docs/function.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Function
attempt
Attempts to invoke a function with the provided arguments, returning either the result or the caught error object.
Use a
try... catchblock to return either the result of the function or an appropriate error.const attempt = (fn, ...args) => { + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Function
attempt
Attempts to invoke a function with the provided arguments, returning either the result or the caught error object.
Use a
try... catchblock to return either the result of the function or an appropriate error.const attempt = (fn, ...args) => { try { return fn(...args); } catch (e) { diff --git a/docs/index.html b/docs/index.html index e74a8a674..abf3c6c27 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,24 +1,21 @@ -30 seconds of code
30 seconds of code
Curated collection of useful JavaScript snippets
that you can understand in 30 seconds or less.309
snippets120
contributors3336
commits20789
starsOur philosophy
The core goal of 30 seconds of code is to provide a quality resource for beginner and advanced JavaScript developers alike. We want to help improve the JavaScript ecosystem, by lowering the barrier of entry for newcomers and help seasoned veterans pick up new tricks and remember old ones. In order to achieve this, we have collected hundreds of snippets that can be of use in a wide range of situations. We welcome new contributors and we like fresh ideas, as long as the code is short and easy to grasp in about 30 seconds. The only catch, if you may, is that many of our snippets are not perfectly suited for large, enterprise applications and they might not be deemed production-ready.
In order for 30 seconds of code to be as accessible and useful as possible, all of the snippets in the collection are licensed under the CC0-1.0 License, meaning they are absolutely free to use in any project you like. If you like what we do, you can always credit us, but that is not mandatory.
Today's picks
Our sophisticated robot helpers pick new snippets from our collection daily, so that you can discover new snippets to enhance your projects:
binomialCoefficient
Evaluates the binomial coefficient of two integers
nandk.Use
Number.isNaN()to check if any of the two values isNaN. Check ifkis less than0, greater than or equal ton, equal to1orn - 1and return the appropriate result. Check ifn - kis less thankand switch their values accordingly. Loop from2throughkand calculate the binomial coefficient. UseMath.round()to account for rounding errors in the calculation.const binomialCoefficient = (n, k) => { - if (Number.isNaN(n) || Number.isNaN(k)) return NaN; - if (k < 0 || k > n) return 0; - if (k === 0 || k === n) return 1; - if (k === 1 || k === n - 1) return n; - if (n - k < k) k = n - k; - let res = n; - for (let j = 2; j <= k; j++) res *= (n - j + 1) / j; - return Math.round(res); +30 seconds of code
30 seconds of code
Curated collection of useful JavaScript snippets
that you can understand in 30 seconds or less.310
snippets120
contributors3339
commits20808
starsOur philosophy
The core goal of 30 seconds of code is to provide a quality resource for beginner and advanced JavaScript developers alike. We want to help improve the JavaScript ecosystem, by lowering the barrier of entry for newcomers and help seasoned veterans pick up new tricks and remember old ones. In order to achieve this, we have collected hundreds of snippets that can be of use in a wide range of situations. We welcome new contributors and we like fresh ideas, as long as the code is short and easy to grasp in about 30 seconds. The only catch, if you may, is that many of our snippets are not perfectly suited for large, enterprise applications and they might not be deemed production-ready.
In order for 30 seconds of code to be as accessible and useful as possible, all of the snippets in the collection are licensed under the CC0-1.0 License, meaning they are absolutely free to use in any project you like. If you like what we do, you can always credit us, but that is not mandatory.
Today's picks
Our sophisticated robot helpers pick new snippets from our collection daily, so that you can discover new snippets to enhance your projects:
isEven
Returns
trueif the given number is even,falseotherwise.Checks whether a number is odd or even using the modulo (
%) operator. Returnstrueif the number is even,falseif the number is odd.const isEven = num => num % 2 === 0; +isEven(3); // false +pullAtValue
Mutates the original array to filter out the values specified. Returns the removed elements.
Use
Array.filter()andArray.includes()to pull out the values that are not needed. UseArray.length = 0to mutate the passed in an array by resetting it's length to zero andArray.push()to re-populate it with only the pulled values. UseArray.push()to keep track of pulled valuesconst pullAtValue = (arr, pullArr) => { + let removed = [], + pushToRemove = arr.forEach((v, i) => (pullArr.includes(v) ? removed.push(v) : v)), + mutateTo = arr.filter((v, i) => !pullArr.includes(v)); + arr.length = 0; + mutateTo.forEach(v => arr.push(v)); + return removed; }; -binomialCoefficient(8, 2); // 28 -overArgs
Creates a function that invokes the provided function with its arguments transformed.
Use
Array.map()to applytransformstoargsin combination with the spread operator (...) to pass the transformed arguments tofn.const overArgs = (fn, transforms) => (...args) => fn(...args.map((val, i) => transforms[i](val))); -const square = n => n * n; -const double = n => n * 2; -const fn = overArgs((x, y) => [x, y], [square, double]); -fn(9, 3); // [81, 6] -removeNonASCII
Removes non-printable ASCII characters.
Use a regular expression to remove non-printable ASCII characters.
const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, ''); -removeNonASCII('äÄçÇéÉêlorem-ipsumöÖÐþúÚ'); // 'lorem-ipsum' +let myArray = ['a', 'b', 'c', 'd']; +let pulled = pullAtValue(myArray, ['b', 'd']); // myArray = [ 'a', 'c' ] , pulled = [ 'b', 'd' ] +unionWith
Returns every element that exists in any of the two arrays once, using a provided comparator function.
Create a
Setwith all values ofaand values inbfor which the comparator finds no matches ina, usingArray.findIndex().const unionWith = (a, b, comp) => + Array.from(new Set([...a, ...b.filter(x => a.findIndex(y => comp(x, y)) === -1)])); +unionWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0, 3.9], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2, 1.5, 3, 0, 3.9]Getting started
- If you are new to JavaScript, we suggest you start by taking a look at the Beginner's snippets
- If you want to level up your JavaScript skills, check out the full Snippet collection
- If you want to see how the project was built and contribute, visit our Github repository
- If you want to check out some more complex snippets, you can visit the Archive
Related projects
The idea behind 30 seconds of code has inspired some people to create similar collections in other programming languages and environments. Here are the ones we like the most:
- 30 seconds of CSS by atomiks
- 30 seconds of Interviews by fejes713
- 30 seconds of Python by kriadmin
How to contribute
Do you have a cool idea for a new snippet? Maybe some code you use often and is not part of our collection? Contributing to 30 seconds of code is as simple as 1,2,3,4!
1Create
Start by creating a snippet, according to the snippet template. Make sure to follow these simple guidelines:
- Your snippet title must be unique and the same as the name of the implemented function.
- Use the snippet description to explain what your snippet does and how it works.
- Try to keep the snippet's code short and to the point. Use modern techniques and features.
- Remember to provide an example of how your snippet works.
- Your snippet should solve a real-world problem, no matter how simple.
- Never modify README.md or any of the HTML files.
2Tag
Run
npm run taggerfrom your terminal, then open the tag_database file and tag your snippet appropriately. Multitagging is also supported, just make sure the first tag you specify is on of the major tags and the one that is most relevant to the implemneted function.3Test
You can optionally test your snippet to make our job easier. Simply run
npm run testerto generate the test files for your snippet. Find the related folder for you snippet under the test directory and write some tests. Remember to runnpm run testeragain to make sure your tests are passing.4Pull request
If you have done everything mentioned above, you should now have an awesome snippet to add to our collection. Simply start a pull request and follow the guidelines provided. Remember to only submit one snippet per pull request, so that we can quickly evaluate and merge your code into the collection.
If you need additional pointers about writing a snippet, be sure to read the complete contribution guidelines.
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Math
approximatelyEqual
Checks if two numbers are approximately equal to each other.
Use
Math.abs()to compare the absolute difference of the two values toepsilon. Omit the third parameter,epsilon, to use a default value of0.001.const approximatelyEqual = (v1, v2, epsilon = 0.001) => Math.abs(v1 - v2) < epsilon; + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Math
approximatelyEqual
Checks if two numbers are approximately equal to each other.
Use
Math.abs()to compare the absolute difference of the two values toepsilon. Omit the third parameter,epsilon, to use a default value of0.001.const approximatelyEqual = (v1, v2, epsilon = 0.001) => Math.abs(v1 - v2) < epsilon;approximatelyEqual(Math.PI / 2.0, 1.5708); // trueaverage
Returns the average of two or more numbers.
Use
Array.reduce()to add each value to an accumulator, initialized with a value of0, divide by thelengthof the array.const average = (...nums) => [...nums].reduce((acc, val) => acc + val, 0) / nums.length;average(...[1, 2, 3]); // 2 diff --git a/docs/node.html b/docs/node.html index 7c11e05c4..4581185be 100644 --- a/docs/node.html +++ b/docs/node.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Node
atob
Decodes a string of data which has been encoded using base-64 encoding.
Create a
Bufferfor the given string with base-64 encoding and useBuffer.toString('binary')to return the decoded string.const atob = str => new Buffer(str, 'base64').toString('binary'); + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Node
atob
Decodes a string of data which has been encoded using base-64 encoding.
Create a
Bufferfor the given string with base-64 encoding and useBuffer.toString('binary')to return the decoded string.const atob = str => new Buffer(str, 'base64').toString('binary');atob('Zm9vYmFy'); // 'foobar'btoa
Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data.
Create a
Bufferfor the given string with binary encoding and useBuffer.toString('base64')to return the encoded string.const btoa = str => new Buffer(str, 'binary').toString('base64');btoa('foobar'); // 'Zm9vYmFy' diff --git a/docs/object.html b/docs/object.html index 495957bef..a4034b0eb 100644 --- a/docs/object.html +++ b/docs/object.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Object
bindAll
Binds methods of an object to the object itself, overwriting the existing method.
Use
Array.forEach()to return afunctionthat usesFunction.apply()to apply the given context (obj) tofnfor each function specified.const bindAll = (obj, ...fns) => + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Object
bindAll
Binds methods of an object to the object itself, overwriting the existing method.
Use
Array.forEach()to return afunctionthat usesFunction.apply()to apply the given context (obj) tofnfor each function specified.const bindAll = (obj, ...fns) => fns.forEach( fn => ( (f = obj[fn]), diff --git a/docs/string.html b/docs/string.html index 6a235aa10..5bcf66bcb 100644 --- a/docs/string.html +++ b/docs/string.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
String
byteSize
Returns the length of a string in bytes.
Convert a given string to a
BlobObject and find itssize.const byteSize = str => new Blob([str]).size; + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
String
byteSize
Returns the length of a string in bytes.
Convert a given string to a
BlobObject and find itssize.const byteSize = str => new Blob([str]).size;byteSize('😀'); // 4 byteSize('Hello World'); // 11capitalize
Capitalizes the first letter of a string.
Use array destructuring and
String.toUpperCase()to capitalize first letter,...restto get array of characters after first letter and thenArray.join('')to make it a string again. Omit thelowerRestparameter to keep the rest of the string intact, or set it totrueto convert to lowercase.const capitalize = ([first, ...rest], lowerRest = false) => diff --git a/docs/type.html b/docs/type.html index 7a42851a4..431fc19ac 100644 --- a/docs/type.html +++ b/docs/type.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Type
getType
Returns the native type of a value.
Returns lowercased constructor name of value,
"undefined"or"null"if value isundefinedornull.const getType = v => + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Type
getType
Returns the native type of a value.
Returns lowercased constructor name of value,
"undefined"or"null"if value isundefinedornull.const getType = v => v === undefined ? 'undefined' : v === null ? 'null' : v.constructor.name.toLowerCase();getType(new Set([1, 2, 3])); // 'set'is
Checks if the provided value is of the specified type.
Ensure the value is not
undefinedornullusingArray.includes(), and compare theconstructorproperty on the value withtypeto check if the provided value is of the specifiedtype.const is = (type, val) => ![, null].includes(val) && val.constructor === type; diff --git a/docs/utility.html b/docs/utility.html index f25ef372d..1fe97d44e 100644 --- a/docs/utility.html +++ b/docs/utility.html @@ -79,7 +79,7 @@ document.getElementById('doc-drawer-checkbox').checked = false; } }, false); - }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Utility
castArray
Casts the provided value as an array if it's not one.
Use
Array.isArray()to determine ifvalis an array and return it as-is or encapsulated in an array accordingly.const castArray = val => (Array.isArray(val) ? val : [val]); + }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
Utility
castArray
Casts the provided value as an array if it's not one.
Use
Array.isArray()to determine ifvalis an array and return it as-is or encapsulated in an array accordingly.const castArray = val => (Array.isArray(val) ? val : [val]);castArray('foo'); // ['foo'] castArray([1]); // [1]cloneRegExp
Clones a regular expression.
Use
new RegExp(),RegExp.sourceandRegExp.flagsto clone the given regular expression.const cloneRegExp = regExp => new RegExp(regExp.source, regExp.flags); diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 02f1d5494..b48d6ab93 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -59,6 +59,27 @@ "hash": "4fa8b87ac30ec67afe40c80101a702986dd1e5cab3cd8b9653f1b7c8cbac7540" } }, + { + "id": "arrayToCSV", + "type": "snippet", + "attributes": { + "fileName": "arrayToCSV.md", + "text": "Converts a 2D array to a comma-separated values (CSV) string.\n\nUse `Array.map()` and `String.join(delimiter)` to combine individual 1D arrays (rows) into strings.\nUse `String.join('\\n')` to combine all rows into a CSV string, separating each row with a newline.\nOmit the second argument, `delimiter` to use a default delimiter of `,`.", + "codeBlocks": [ + "const arrayToCSV = (arr, delimiter = ',') => arr.map(v => v.join(delimiter)).join('\\n');", + "arrayToCSV([['a', 'b'], ['c', 'd']]); // 'a,b\\nc,d'\narrayToCSV([['a', 'b'], ['c', 'd']], ';'); // 'a;b\\nc;d'" + ], + "tags": [ + "array", + "string", + "utility" + ] + }, + "meta": { + "archived": false, + "hash": "a4b4c5a8bd490da8fa4c065beb88014541bf71e7ff6a875123f297ff06bacd12" + } + }, { "id": "arrayToHtmlList", "type": "snippet", diff --git a/snippets/arrayToCSV.md b/snippets/arrayToCSV.md index d06de40aa..73c3feb28 100644 --- a/snippets/arrayToCSV.md +++ b/snippets/arrayToCSV.md @@ -11,6 +11,6 @@ const arrayToCSV = (arr, delimiter = ',') => arr.map(v => v.join(delimiter)).joi ``` ```js -arrayToCSV([['a','b'],['c','d']]); // 'a,b\nc,d' -arrayToCSV([['a','b'],['c','d']], ';'); // 'a;b\nc;d' +arrayToCSV([['a', 'b'], ['c', 'd']]); // 'a,b\nc,d' +arrayToCSV([['a', 'b'], ['c', 'd']], ';'); // 'a;b\nc;d' ``` diff --git a/test/testlog b/test/testlog index 3346a376d..7b8540dd0 100644 --- a/test/testlog +++ b/test/testlog @@ -1,3994 +1,2016 @@ # Starting... -<<<<<<< HEAD # 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 - -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. - -# PASS test\collatz\collatz.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 - -# PASS test\countVowels\countVowels.test.js - -ok 98 — countVowels is a Function - -# PASS test\isSorted\isSorted.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 - -# PASS test\tail\tail.test.js - -ok 111 — tail is a Function -ok 112 — Returns tail -ok 113 — Returns tail - -# PASS test\sampleSize\sampleSize.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 - -# PASS test\reduceSuccessive\reduceSuccessive.test.js - -ok 120 — reduceSuccessive is a Function -ok 121 — Returns the array of successively reduced values - -# PASS test\isArmstrongNumber\isArmstrongNumber.test.js - -ok 122 — isArmstrongNumber is a Function - -# PASS test\unzipWith\unzipWith.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] - -# PASS test\fibonacciCountUntilNum\fibonacciCountUntilNum.test.js - -ok 125 — fibonacciCountUntilNum is a Function - -# PASS test\curry\curry.test.js - -ok 126 — curry is a Function -ok 127 — curries a Math.pow -ok 128 — curries a Math.min - -# PASS test\sumBy\sumBy.test.js - -ok 129 — sumBy is a Function - -# PASS test\initializeArrayWithValues\initializeArrayWithValues.test.js - -ok 130 — initializeArrayWithValues is a Function -ok 131 — Initializes and fills an array with the specified values - -# PASS test\countOccurrences\countOccurrences.test.js - -ok 132 — countOccurrences is a Function -ok 133 — Counts the occurrences of a value in an array - -# PASS test\differenceWith\differenceWith.test.js - -ok 134 — differenceWith is a Function -ok 135 — Filters out all values from an array - -# PASS test\binomialCoefficient\binomialCoefficient.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 - -# PASS test\differenceBy\differenceBy.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 - -# PASS test\RGBToHex\RGBToHex.test.js - -ok 145 — RGBToHex is a Function -ok 146 — Converts the values of RGB components to a color code. - -# PASS test\isFunction\isFunction.test.js - -ok 147 — isFunction is a Function -ok 148 — passed value is a function -ok 149 — passed value is not a function - -# PASS test\factorial\factorial.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 - -# PASS test\pullAtIndex\pullAtIndex.test.js - -ok 156 — pullAtIndex is a Function -ok 157 — Pulls the given values -ok 158 — Pulls the given values - -# PASS test\everyNth\everyNth.test.js - -ok 159 — everyNth is a Function -ok 160 — Returns every nth element in an array - -# PASS test\httpPut\httpPut.test.js - -ok 161 — httpPut is a Function - -# PASS test\getType\getType.test.js - -ok 162 — getType is a Function -ok 163 — Returns the native type of a value - -# PASS test\approximatelyEqual\approximatelyEqual.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 - -# PASS test\detectDeviceType\detectDeviceType.test.js - -ok 169 — detectDeviceType is a Function - -# PASS test\serializeCookie\serializeCookie.test.js - -ok 170 — serializeCookie is a Function -ok 171 — Serializes the cookie - -# PASS test\pick\pick.test.js - -ok 172 — pick is a Function -ok 173 — Picks the key-value pairs corresponding to the given keys from an object. - -# PASS test\partition\partition.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. - -# PASS test\offset\offset.test.js -======= -# 335 test suites found. - -# PASS test/union/union.test.js - -ok 1 — union is a Function -ok 2 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] -ok 3 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] -ok 4 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] -ok 5 — union([], []) returns [] -ok 6 — union() throws an error -ok 7 — union(true, 'str') throws an error -ok 8 — union('false', true) throws an error -ok 9 — union((123, {}) throws an error -ok 10 — union([], {}) throws an error -ok 11 — union(undefined, null) throws an error -ok 12 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run - -# PASS test/orderBy/orderBy.test.js - -ok 13 — orderBy is a Function -ok 14 — Returns a sorted array of objects ordered by properties and orders. -ok 15 — Returns a sorted array of objects ordered by properties and orders. - -# PASS test/zipObject/zipObject.test.js - -ok 16 — zipObject is a Function -ok 17 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} -ok 18 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} -ok 19 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } -ok 20 — zipObject([a], string) returns { a: s } -ok 21 — zipObject() throws an error -ok 22 — zipObject((['string'], null) throws an error -ok 23 — zipObject(null, [1]) throws an error -ok 24 — zipObject('string') throws an error -ok 25 — zipObject('test', 'string') throws an error - -# PASS test/geometricProgression/geometricProgression.test.js - -ok 26 — geometricProgression is a Function -ok 27 — Initializes an array containing the numbers in the specified range -ok 28 — Initializes an array containing the numbers in the specified range -ok 29 — Initializes an array containing the numbers in the specified range - -# PASS test/head/head.test.js - -ok 30 — head is a Function -ok 31 — head({ a: 1234}) returns undefined -ok 32 — head([1, 2, 3]) returns 1 -ok 33 — head({ 0: false}) returns false -ok 34 — head(String) returns S -ok 35 — head(null) throws an Error -ok 36 — head(undefined) throws an Error -ok 37 — head() throws an Error -ok 38 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/round/round.test.js - -ok 39 — round is a Function -ok 40 — round(1.005, 2) returns 1.01 -ok 41 — round(123.3423345345345345344, 11) returns 123.34233453453 -ok 42 — round(3.342, 11) returns 3.342 -ok 43 — round(1.005) returns 1 -ok 44 — round([1.005, 2]) returns NaN -ok 45 — round(string) returns NaN -ok 46 — round() returns NaN -ok 47 — round(132, 413, 4134) returns NaN -ok 48 — round({a: 132}, 413) returns NaN -ok 49 — round(123.3423345345345345344, 11) takes less than 2s to run - -# PASS test/toSnakeCase/toSnakeCase.test.js - -ok 50 — toSnakeCase is a Function -ok 51 — toSnakeCase('camelCase') returns camel_case -ok 52 — toSnakeCase('some text') returns some_text -ok 53 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens -ok 54 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html -ok 55 — toSnakeCase() returns undefined -ok 56 — toSnakeCase([]) throws an error -ok 57 — toSnakeCase({}) throws an error -ok 58 — toSnakeCase(123) throws an error -ok 59 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/chunk/chunk.test.js - -ok 60 — chunk is a Function -ok 61 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] -ok 62 — chunk([]) returns [] -ok 63 — chunk(123) returns [] -ok 64 — chunk({ a: 123}) returns [] -ok 65 — chunk(string, 2) returns [ st, ri, ng ] -ok 66 — chunk() throws an error -ok 67 — chunk(undefined) throws an error -ok 68 — chunk(null) throws an error -ok 69 — chunk(This is a string, 2) takes less than 2s to run - -# PASS test/yesNo/yesNo.test.js - -ok 70 — yesNo is a Function -ok 71 — yesNo(Y) returns true -ok 72 — yesNo(yes) returns true -ok 73 — yesNo(foo, true) returns true -ok 74 — yesNo(No) returns false -ok 75 — yesNo() returns false -ok 76 — yesNo(null) returns false -ok 77 — yesNo(undefined) returns false -ok 78 — yesNo([123, null]) returns false -ok 79 — yesNo([Yes, No]) returns false -ok 80 — yesNo({ 2: Yes }) returns false -ok 81 — yesNo([Yes, No], true) returns true -ok 82 — yesNo({ 2: Yes }, true) returns true - -# PASS test/mapObject/mapObject.test.js - -ok 83 — mapObject is a Function -ok 84 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } -ok 85 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } -ok 86 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } - -# PASS test/join/join.test.js - -ok 87 — join is a Function -ok 88 — Joins all elements of an array into a string and returns this string -ok 89 — Joins all elements of an array into a string and returns this string -ok 90 — Joins all elements of an array into a string and returns this string - -# PASS test/toCurrency/toCurrency.test.js - -ok 91 — toCurrency is a Function -ok 92 — currency: Euro | currencyLangFormat: Local -ok 93 — currency: US Dollar | currencyLangFormat: English (United States) -ok 94 — currency: Japanese Yen | currencyLangFormat: Local - -# PASS test/any/any.test.js - -ok 95 — any is a Function -ok 96 — Returns true for arrays with at least one truthy value -ok 97 — Returns false for arrays with no truthy values -ok 98 — Returns false for arrays with no truthy values -ok 99 — Returns true with predicate function -ok 100 — Returns false with a predicate function - -# PASS test/binomialCoefficient/binomialCoefficient.test.js - -ok 101 — binomialCoefficient is a Function -ok 102 — Returns the appropriate value -ok 103 — Returns the appropriate value -ok 104 — Returns the appropriate value -ok 105 — Returns NaN -ok 106 — Returns NaN - -# PASS test/reduceWhich/reduceWhich.test.js - -ok 107 — reduceWhich is a Function -ok 108 — Returns the minimum of an array -ok 109 — Returns the maximum of an array -ok 110 — Returns the object with the minimum specified value in an array - -# PASS test/invertKeyValues/invertKeyValues.test.js - -ok 111 — invertKeyValues is a Function -ok 112 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } -ok 113 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } - -# PASS test/fromCamelCase/fromCamelCase.test.js - -ok 114 — fromCamelCase is a Function -ok 115 — Converts a string from camelcase -ok 116 — Converts a string from camelcase -ok 117 — Converts a string from camelcase - -# PASS test/approximatelyEqual/approximatelyEqual.test.js - -ok 118 — approximatelyEqual is a Function -ok 119 — Works for PI / 2 -ok 120 — Works for 0.1 + 0.2 === 0.3 -ok 121 — Works for exactly equal values -ok 122 — Works for a custom epsilon - -# PASS test/isSorted/isSorted.test.js - -ok 123 — isSorted is a Function -ok 124 — Array is sorted in ascending order -ok 125 — Array is sorted in ascending order -ok 126 — Array is sorted in ascending order -ok 127 — Array is sorted in ascending order -ok 128 — Array is sorted in descending order -ok 129 — Array is sorted in descending order -ok 130 — Array is sorted in descending order -ok 131 — Array is sorted in descending order -ok 132 — Array is empty -ok 133 — Array is not sorted, direction changed in array -ok 134 — Array is not sorted, direction changed in array - -# PASS test/castArray/castArray.test.js - -ok 135 — castArray is a Function -ok 136 — Works for single values -ok 137 — Works for arrays with one value -ok 138 — Works for arrays with multiple value -ok 139 — Works for strings -ok 140 — Works for objects - -# PASS test/uniqueElements/uniqueElements.test.js - -ok 141 — uniqueElements is a Function -ok 142 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] -ok 143 — uniqueElements([1, 23, 53]) returns [1, 23, 53] -ok 144 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] -ok 145 — uniqueElements() returns [] -ok 146 — uniqueElements(null) returns [] -ok 147 — uniqueElements(undefined) returns [] -ok 148 — uniqueElements('strt') returns ['s', 't', 'r'] -ok 149 — uniqueElements(1, 1, 2543, 534, 5) throws an error -ok 150 — uniqueElements({}) throws an error -ok 151 — uniqueElements(true) throws an error -ok 152 — uniqueElements(false) throws an error -ok 153 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run - -# PASS test/toCamelCase/toCamelCase.test.js - -ok 154 — toCamelCase is a Function -ok 155 — toCamelCase('some_database_field_name') returns someDatabaseFieldName -ok 156 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized -ok 157 — toCamelCase('some-javascript-property') return someJavascriptProperty -ok 158 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens -ok 159 — toCamelCase() throws a error -ok 160 — toCamelCase([]) throws a error -ok 161 — toCamelCase({}) throws a error -ok 162 — toCamelCase(123) throws a error -ok 163 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run - -# PASS test/is/is.test.js - -ok 164 — is is a Function -ok 165 — Works for arrays with data -ok 166 — Works for empty arrays -ok 167 — Works for arrays, not objects -ok 168 — Works for objects -ok 169 — Works for maps -ok 170 — Works for regular expressions -ok 171 — Works for sets -ok 172 — Works for weak maps -ok 173 — Works for weak sets -ok 174 — Works for strings - returns true for primitive -ok 175 — Works for strings - returns true when using constructor -ok 176 — Works for numbers - returns true for primitive -ok 177 — Works for numbers - returns true when using constructor -ok 178 — Works for booleans - returns true for primitive -ok 179 — Works for booleans - returns true when using constructor -ok 180 — Works for functions - -# PASS test/binarySearch/binarySearch.test.js - -ok 181 — binarySearch is a Function -ok 182 — Finds item in array -ok 183 — Returns -1 when not found -ok 184 — Works with empty arrays -ok 185 — Works for one element arrays - -# PASS test/average/average.test.js - -ok 186 — average is a Function -ok 187 — average(true) returns 0 -ok 188 — average(false) returns 1 -ok 189 — average(9, 1) returns 5 -ok 190 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 -ok 191 — average(1, 2, 3) returns 2 -ok 192 — average(null) returns 0 -ok 193 — average(1, 2, 3) returns NaN -ok 194 — average(String) returns NaN -ok 195 — average({ a: 123}) returns NaN -ok 196 — average([undefined, 0, string]) returns NaN -ok 197 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test/mask/mask.test.js - -ok 198 — mask is a Function -ok 199 — Replaces all but the last num of characters with the specified mask character -ok 200 — Replaces all but the last num of characters with the specified mask character -ok 201 — Replaces all but the last num of characters with the specified mask character - -# PASS test/none/none.test.js - -ok 202 — none is a Function -ok 203 — Returns true for arrays with no truthy values -ok 204 — Returns false for arrays with at least one truthy value -ok 205 — Returns true with a predicate function -ok 206 — Returns false with predicate function - -# PASS test/inRange/inRange.test.js - -ok 207 — inRange is a Function -ok 208 — The given number falls within the given range -ok 209 — The given number falls within the given range -ok 210 — The given number does not falls within the given range -ok 211 — The given number does not falls within the given range - -# PASS test/equals/equals.test.js - -ok 212 — equals is a Function -ok 213 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 214 — [1,2,3] is equal to [1,2,3] -ok 215 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 216 — [1,2,3] is not equal to [1,2,4] -ok 217 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. - -# PASS test/all/all.test.js - -ok 218 — all is a Function -ok 219 — Returns true for arrays with no falsey values -ok 220 — Returns false for arrays with 0 -ok 221 — Returns false for arrays with NaN -ok 222 — Returns false for arrays with undefined -ok 223 — Returns false for arrays with null -ok 224 — Returns false for arrays with empty strings -ok 225 — Returns true with predicate function -ok 226 — Returns false with a predicate function - # PASS test/toKebabCase/toKebabCase.test.js -ok 227 — toKebabCase is a Function -ok 228 — toKebabCase('camelCase') returns camel-case -ok 229 — toKebabCase('some text') returns some-text -ok 230 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens -ok 231 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html -ok 232 — toKebabCase() returns undefined -ok 233 — toKebabCase([]) throws an erro -ok 234 — toKebabCase({}) throws an erro -ok 235 — toKebabCase(123) throws an erro -ok 236 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run - -# PASS test/factorial/factorial.test.js - -ok 237 — factorial is a Function -ok 238 — Calculates the factorial of 720 -ok 239 — Calculates the factorial of 0 -ok 240 — Calculates the factorial of 1 -ok 241 — Calculates the factorial of 4 -ok 242 — Calculates the factorial of 10 - -# PASS test/converge/converge.test.js - -ok 243 — converge is a Function -ok 244 — Produces the average of the array -ok 245 — Produces the strange concatenation - -# PASS test/isPrimitive/isPrimitive.test.js - -ok 246 — isPrimitive is a Function -ok 247 — isPrimitive(null) is primitive -ok 248 — isPrimitive(undefined) is primitive -ok 249 — isPrimitive(string) is primitive -ok 250 — isPrimitive(true) is primitive -ok 251 — isPrimitive(50) is primitive -ok 252 — isPrimitive('Hello') is primitive -ok 253 — isPrimitive(false) is primitive -ok 254 — isPrimitive(Symbol()) is primitive -ok 255 — isPrimitive([1, 2, 3]) is not primitive -ok 256 — isPrimitive({ a: 123 }) is not primitive -ok 257 — isPrimitive({ a: 123 }) takes less than 2s to run - -# PASS test/without/without.test.js - -ok 258 — without is a Function -ok 259 — without([2, 1, 2, 3], 1, 2) returns [3] -ok 260 — without([]) returns [] -ok 261 — without([3, 1, true, '3', true], '3', true) returns [3, 1] -ok 262 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] -ok 263 — without() throws an error -ok 264 — without(null) throws an error -ok 265 — without(undefined) throws an error -ok 266 — without(123) throws an error -ok 267 — without({}) throws an error - -# PASS test/capitalize/capitalize.test.js - -ok 268 — capitalize is a Function -ok 269 — Capitalizes the first letter of a string -ok 270 — Capitalizes the first letter of a string -ok 271 — Works with characters -ok 272 — "Works with single character words - -# PASS test/randomHexColorCode/randomHexColorCode.test.js - -ok 273 — randomHexColorCode is a Function -ok 274 — randomHexColorCode has to proper length -ok 275 — The color code starts with "#" -ok 276 — The color code contains only valid hex-digits - -# PASS test/validateNumber/validateNumber.test.js - -ok 277 — validateNumber is a Function -ok 278 — validateNumber(9) returns true -ok 279 — validateNumber(234asd.slice(0, 2)) returns true -ok 280 — validateNumber(1232) returns true -ok 281 — validateNumber(1232 + 13423) returns true -ok 282 — validateNumber(1232 * 2342 * 123) returns true -ok 283 — validateNumber(1232.23423536) returns true -ok 284 — validateNumber(234asd) returns false -ok 285 — validateNumber(e234d) returns false -ok 286 — validateNumber(false) returns false -ok 287 — validateNumber(true) returns false -ok 288 — validateNumber(null) returns false -ok 289 — validateNumber(123 * asd) returns false - -# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js - -ok 290 — toOrdinalSuffix is a Function -ok 291 — Adds an ordinal suffix to a number -ok 292 — Adds an ordinal suffix to a number -ok 293 — Adds an ordinal suffix to a number -ok 294 — Adds an ordinal suffix to a number +ok 1 — toKebabCase is a Function +ok 2 — toKebabCase('camelCase') returns camel-case +ok 3 — toKebabCase('some text') returns some-text +ok 4 — toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens +ok 5 — toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html +ok 6 — toKebabCase() returns undefined +ok 7 — toKebabCase([]) throws an erro +ok 8 — toKebabCase({}) throws an erro +ok 9 — toKebabCase(123) throws an erro +ok 10 — toKebabCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run # PASS test/quickSort/quickSort.test.js -ok 295 — quickSort is a Function -ok 296 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] -ok 297 — quickSort([-1, 0, -2]) returns [-2, -1, 0] -ok 298 — quickSort() throws an error -ok 299 — quickSort(123) throws an error -ok 300 — quickSort({ 234: string}) throws an error -ok 301 — quickSort(null) throws an error -ok 302 — quickSort(undefined) throws an error -ok 303 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run +ok 11 — quickSort is a Function +ok 12 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] +ok 13 — quickSort([-1, 0, -2]) returns [-2, -1, 0] +ok 14 — quickSort() throws an error +ok 15 — quickSort(123) throws an error +ok 16 — quickSort({ 234: string}) throws an error +ok 17 — quickSort(null) throws an error +ok 18 — quickSort(undefined) throws an error +ok 19 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run -# PASS test/isAnagram/isAnagram.test.js +# PASS test/toCamelCase/toCamelCase.test.js -ok 304 — isAnagram is a Function -ok 305 — Checks valid anagram -ok 306 — Works with spaces -ok 307 — Ignores case -ok 308 — Ignores special characters +ok 20 — toCamelCase is a Function +ok 21 — toCamelCase('some_database_field_name') returns someDatabaseFieldName +ok 22 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized +ok 23 — toCamelCase('some-javascript-property') return someJavascriptProperty +ok 24 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens +ok 25 — toCamelCase() throws a error +ok 26 — toCamelCase([]) throws a error +ok 27 — toCamelCase({}) throws a error +ok 28 — toCamelCase(123) throws a error +ok 29 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run -# PASS test/isEmpty/isEmpty.test.js +# PASS test/validateNumber/validateNumber.test.js -ok 309 — isEmpty is a Function -ok 310 — Returns true for empty Map -ok 311 — Returns true for empty Set -ok 312 — Returns true for empty array -ok 313 — Returns true for empty object -ok 314 — Returns true for empty string -ok 315 — Returns false for non-empty array -ok 316 — Returns false for non-empty object -ok 317 — Returns false for non-empty string -ok 318 — Returns true - type is not considered a collection -ok 319 — Returns true - type is not considered a collection +ok 30 — validateNumber is a Function +ok 31 — validateNumber(9) returns true +ok 32 — validateNumber(234asd.slice(0, 2)) returns true +ok 33 — validateNumber(1232) returns true +ok 34 — validateNumber(1232 + 13423) returns true +ok 35 — validateNumber(1232 * 2342 * 123) returns true +ok 36 — validateNumber(1232.23423536) returns true +ok 37 — validateNumber(234asd) returns false +ok 38 — validateNumber(e234d) returns false +ok 39 — validateNumber(false) returns false +ok 40 — validateNumber(true) returns false +ok 41 — validateNumber(null) returns false +ok 42 — validateNumber(123 * asd) returns false -# PASS test/deepClone/deepClone.test.js +# PASS test/chunk/chunk.test.js -ok 320 — deepClone is a Function -ok 321 — Shallow cloning works -ok 322 — Deep cloning works -ok 323 — Array shallow cloning works -ok 324 — Array deep cloning works +ok 43 — chunk is a Function +ok 44 — chunk([1, 2, 3, 4, 5], 2) returns [[1,2],[3,4],[5]] +ok 45 — chunk([]) returns [] +ok 46 — chunk(123) returns [] +ok 47 — chunk({ a: 123}) returns [] +ok 48 — chunk(string, 2) returns [ st, ri, ng ] +ok 49 — chunk() throws an error +ok 50 — chunk(undefined) throws an error +ok 51 — chunk(null) throws an error +ok 52 — chunk(This is a string, 2) takes less than 2s to run + +# PASS test/equals/equals.test.js + +ok 53 — equals is a Function +ok 54 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 55 — [1,2,3] is equal to [1,2,3] +ok 56 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 57 — [1,2,3] is not equal to [1,2,4] +ok 58 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. + +# PASS test/round/round.test.js + +ok 59 — round is a Function +ok 60 — round(1.005, 2) returns 1.01 +ok 61 — round(123.3423345345345345344, 11) returns 123.34233453453 +ok 62 — round(3.342, 11) returns 3.342 +ok 63 — round(1.005) returns 1 +ok 64 — round([1.005, 2]) returns NaN +ok 65 — round(string) returns NaN +ok 66 — round() returns NaN +ok 67 — round(132, 413, 4134) returns NaN +ok 68 — round({a: 132}, 413) returns NaN +ok 69 — round(123.3423345345345345344, 11) takes less than 2s to run + +# PASS test/is/is.test.js + +ok 70 — is is a Function +ok 71 — Works for arrays with data +ok 72 — Works for empty arrays +ok 73 — Works for arrays, not objects +ok 74 — Works for objects +ok 75 — Works for maps +ok 76 — Works for regular expressions +ok 77 — Works for sets +ok 78 — Works for weak maps +ok 79 — Works for weak sets +ok 80 — Works for strings - returns true for primitive +ok 81 — Works for strings - returns true when using constructor +ok 82 — Works for numbers - returns true for primitive +ok 83 — Works for numbers - returns true when using constructor +ok 84 — Works for booleans - returns true for primitive +ok 85 — Works for booleans - returns true when using constructor +ok 86 — Works for functions + +# PASS test/union/union.test.js + +ok 87 — union is a Function +ok 88 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] +ok 89 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] +ok 90 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] +ok 91 — union([], []) returns [] +ok 92 — union() throws an error +ok 93 — union(true, 'str') throws an error +ok 94 — union('false', true) throws an error +ok 95 — union((123, {}) throws an error +ok 96 — union([], {}) throws an error +ok 97 — union(undefined, null) throws an error +ok 98 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run + +# PASS test/average/average.test.js + +ok 99 — average is a Function +ok 100 — average(true) returns 0 +ok 101 — average(false) returns 1 +ok 102 — average(9, 1) returns 5 +ok 103 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 +ok 104 — average(1, 2, 3) returns 2 +ok 105 — average(null) returns 0 +ok 106 — average(1, 2, 3) returns NaN +ok 107 — average(String) returns NaN +ok 108 — average({ a: 123}) returns NaN +ok 109 — average([undefined, 0, string]) returns NaN +ok 110 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test/geometricProgression/geometricProgression.test.js + +ok 111 — geometricProgression is a Function +ok 112 — Initializes an array containing the numbers in the specified range +ok 113 — Initializes an array containing the numbers in the specified range +ok 114 — Initializes an array containing the numbers in the specified range + +# PASS test/isSorted/isSorted.test.js + +ok 115 — isSorted is a Function +ok 116 — Array is sorted in ascending order +ok 117 — Array is sorted in ascending order +ok 118 — Array is sorted in ascending order +ok 119 — Array is sorted in ascending order +ok 120 — Array is sorted in descending order +ok 121 — Array is sorted in descending order +ok 122 — Array is sorted in descending order +ok 123 — Array is sorted in descending order +ok 124 — Array is empty +ok 125 — Array is not sorted, direction changed in array +ok 126 — Array is not sorted, direction changed in array + +# PASS test/isPrimitive/isPrimitive.test.js + +ok 127 — isPrimitive is a Function +ok 128 — isPrimitive(null) is primitive +ok 129 — isPrimitive(undefined) is primitive +ok 130 — isPrimitive(string) is primitive +ok 131 — isPrimitive(true) is primitive +ok 132 — isPrimitive(50) is primitive +ok 133 — isPrimitive('Hello') is primitive +ok 134 — isPrimitive(false) is primitive +ok 135 — isPrimitive(Symbol()) is primitive +ok 136 — isPrimitive([1, 2, 3]) is not primitive +ok 137 — isPrimitive({ a: 123 }) is not primitive +ok 138 — isPrimitive({ a: 123 }) takes less than 2s to run # PASS test/last/last.test.js -ok 325 — last is a Function -ok 326 — last({ a: 1234}) returns undefined -ok 327 — last([1, 2, 3]) returns 3 -ok 328 — last({ 0: false}) returns undefined -ok 329 — last(String) returns g -ok 330 — last(null) throws an Error -ok 331 — last(undefined) throws an Error -ok 332 — last() throws an Error -ok 333 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +ok 139 — last is a Function +ok 140 — last({ a: 1234}) returns undefined +ok 141 — last([1, 2, 3]) returns 3 +ok 142 — last({ 0: false}) returns undefined +ok 143 — last(String) returns g +ok 144 — last(null) throws an Error +ok 145 — last(undefined) throws an Error +ok 146 — last() throws an Error +ok 147 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run -# PASS test/tomorrow/tomorrow.test.js +# PASS test/head/head.test.js -ok 334 — tomorrow is a Function -ok 335 — Returns the correct year -ok 336 — Returns the correct month -ok 337 — Returns the correct date +ok 148 — head is a Function +ok 149 — head({ a: 1234}) returns undefined +ok 150 — head([1, 2, 3]) returns 1 +ok 151 — head({ 0: false}) returns false +ok 152 — head(String) returns S +ok 153 — head(null) throws an Error +ok 154 — head(undefined) throws an Error +ok 155 — head() throws an Error +ok 156 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run -# PASS test/prettyBytes/prettyBytes.test.js +# PASS test/yesNo/yesNo.test.js -ok 338 — prettyBytes is a Function -ok 339 — Converts a number in bytes to a human-readable string. -ok 340 — Converts a number in bytes to a human-readable string. -ok 341 — Converts a number in bytes to a human-readable string. +ok 157 — yesNo is a Function +ok 158 — yesNo(Y) returns true +ok 159 — yesNo(yes) returns true +ok 160 — yesNo(foo, true) returns true +ok 161 — yesNo(No) returns false +ok 162 — yesNo() returns false +ok 163 — yesNo(null) returns false +ok 164 — yesNo(undefined) returns false +ok 165 — yesNo([123, null]) returns false +ok 166 — yesNo([Yes, No]) returns false +ok 167 — yesNo({ 2: Yes }) returns false +ok 168 — yesNo([Yes, No], true) returns true +ok 169 — yesNo({ 2: Yes }, true) returns true -# PASS test/zip/zip.test.js +# PASS test/toSnakeCase/toSnakeCase.test.js -ok 342 — zip is a Function -ok 343 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] -ok 344 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] -ok 345 — zip([]) returns [] -ok 346 — zip(123) returns [] -ok 347 — zip([a, b], [1, 2], [true, false]) returns an Array -ok 348 — zip([a], [1, 2], [true, false]) returns an Array -ok 349 — zip(null) throws an error -ok 350 — zip(undefined) throws an error +ok 170 — toSnakeCase is a Function +ok 171 — toSnakeCase('camelCase') returns camel_case +ok 172 — toSnakeCase('some text') returns some_text +ok 173 — toSnakeCase('some-mixed_string With spaces_underscores-and-hyphens') returns some_mixed_string_with_spaces_underscores_and_hyphens +ok 174 — toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html +ok 175 — toSnakeCase() returns undefined +ok 176 — toSnakeCase([]) throws an error +ok 177 — toSnakeCase({}) throws an error +ok 178 — toSnakeCase(123) throws an error +ok 179 — toSnakeCase(IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML) takes less than 2s to run -# PASS test/dropRight/dropRight.test.js +# PASS test/orderBy/orderBy.test.js -ok 351 — dropRight is a Function -ok 352 — Returns a new array with n elements removed from the right -ok 353 — Returns a new array with n elements removed from the right -ok 354 — Returns a new array with n elements removed from the right +ok 180 — orderBy is a Function +ok 181 — Returns a sorted array of objects ordered by properties and orders. +ok 182 — Returns a sorted array of objects ordered by properties and orders. -# PASS test/randomNumberInRange/randomNumberInRange.test.js +# PASS test/without/without.test.js -ok 355 — randomNumberInRange is a Function -ok 356 — The returned value is a number -ok 357 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/isString/isString.test.js - -ok 358 — isString is a Function -ok 359 — foo is a string -ok 360 — "10" is a string -ok 361 — Empty string is a string -ok 362 — 10 is not a string -ok 363 — true is not string - -# PASS test/partition/partition.test.js - -ok 364 — partition is a Function -ok 365 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. +ok 183 — without is a Function +ok 184 — without([2, 1, 2, 3], 1, 2) returns [3] +ok 185 — without([]) returns [] +ok 186 — without([3, 1, true, '3', true], '3', true) returns [3, 1] +ok 187 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] +ok 188 — without() throws an error +ok 189 — without(null) throws an error +ok 190 — without(undefined) throws an error +ok 191 — without(123) throws an error +ok 192 — without({}) throws an error # PASS test/sampleSize/sampleSize.test.js -ok 366 — sampleSize is a Function -ok 367 — Returns a single element without n specified -ok 368 — Returns a random sample of specified size from an array -ok 369 — Returns all elements in an array if n >= length -ok 370 — Returns an empty array if original array is empty -ok 371 — Returns an empty array if n = 0 +ok 193 — sampleSize is a Function +ok 194 — Returns a single element without n specified +ok 195 — Returns a random sample of specified size from an array +ok 196 — Returns all elements in an array if n >= length +ok 197 — Returns an empty array if original array is empty +ok 198 — Returns an empty array if n = 0 -# PASS test/isObjectLike/isObjectLike.test.js +# PASS test/randomNumberInRange/randomNumberInRange.test.js -ok 372 — isObjectLike is a Function -ok 373 — Returns true for an object -ok 374 — Returns true for an array -ok 375 — Returns false for a function -ok 376 — Returns false for null +ok 199 — randomNumberInRange is a Function +ok 200 — The returned value is a number +ok 201 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). -# PASS test/shuffle/shuffle.test.js +# PASS test/uniqueElements/uniqueElements.test.js -ok 377 — shuffle is a Function -ok 378 — Shuffles the array -ok 379 — New array contains all original elements -ok 380 — Works for empty arrays -ok 381 — Works for single-element arrays +ok 202 — uniqueElements is a Function +ok 203 — uniqueElements([1, 2, 2, 3, 4, 4, 5]) returns [1,2,3,4,5] +ok 204 — uniqueElements([1, 23, 53]) returns [1, 23, 53] +ok 205 — uniqueElements([true, 0, 1, false, false, undefined, null, '']) returns [true, 0, 1, false, false, undefined, null, ''] +ok 206 — uniqueElements() returns [] +ok 207 — uniqueElements(null) returns [] +ok 208 — uniqueElements(undefined) returns [] +ok 209 — uniqueElements('strt') returns ['s', 't', 'r'] +ok 210 — uniqueElements(1, 1, 2543, 534, 5) throws an error +ok 211 — uniqueElements({}) throws an error +ok 212 — uniqueElements(true) throws an error +ok 213 — uniqueElements(false) throws an error +ok 214 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run -# PASS test/hexToRGB/hexToRGB.test.js +# PASS test/mapObject/mapObject.test.js -ok 382 — hexToRGB is a Function -ok 383 — Converts a color code to a rgb() or rgba() string -ok 384 — Converts a color code to a rgb() or rgba() string -ok 385 — Converts a color code to a rgb() or rgba() string - -# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js - -ok 386 — capitalizeEveryWord is a Function -ok 387 — Capitalizes the first letter of every word in a string -ok 388 — Works with characters -ok 389 — Works with one word string +ok 215 — mapObject is a Function +ok 216 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 217 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 218 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } # PASS test/words/words.test.js -ok 390 — words is a Function -ok 391 — words('I love javaScript!!') returns [I, love, javaScript] -ok 392 — words('python, javaScript & coffee') returns [python, javaScript, coffee] -ok 393 — words(I love javaScript!!) returns an array -ok 394 — words() throws an error -ok 395 — words(null) throws an error -ok 396 — words(undefined) throws an error -ok 397 — words({}) throws an error -ok 398 — words([]) throws an error -ok 399 — words(1234) throws an error +ok 219 — words is a Function +ok 220 — words('I love javaScript!!') returns [I, love, javaScript] +ok 221 — words('python, javaScript & coffee') returns [python, javaScript, coffee] +ok 222 — words(I love javaScript!!) returns an array +ok 223 — words() throws an error +ok 224 — words(null) throws an error +ok 225 — words(undefined) throws an error +ok 226 — words({}) throws an error +ok 227 — words([]) throws an error +ok 228 — words(1234) throws an error -# PASS test/unzip/unzip.test.js +# PASS test/zipObject/zipObject.test.js -ok 400 — unzip is a Function -ok 401 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] -ok 402 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] - -# PASS test/sumPower/sumPower.test.js - -ok 403 — sumPower is a Function -ok 404 — Returns the sum of the powers of all the numbers from start to end -ok 405 — Returns the sum of the powers of all the numbers from start to end -ok 406 — Returns the sum of the powers of all the numbers from start to end - -# PASS test/toSafeInteger/toSafeInteger.test.js - -ok 407 — toSafeInteger is a Function -ok 408 — Number(toSafeInteger(3.2)) is a number -ok 409 — Converts a value to a safe integer -ok 410 — toSafeInteger('4.2') returns 4 -ok 411 — toSafeInteger(4.6) returns 5 -ok 412 — toSafeInteger([]) returns 0 -ok 413 — isNaN(toSafeInteger([1.5, 3124])) is true -ok 414 — isNaN(toSafeInteger('string')) is true -ok 415 — isNaN(toSafeInteger({})) is true -ok 416 — isNaN(toSafeInteger()) is true -ok 417 — toSafeInteger(Infinity) returns 9007199254740991 -ok 418 — toSafeInteger(3.2) takes less than 2s to run - -# PASS test/untildify/untildify.test.js - -ok 419 — untildify is a Function -ok 420 — Contains no tildes -ok 421 — Does not alter the rest of the path -ok 422 — Does not alter paths without tildes - -# PASS test/stringPermutations/stringPermutations.test.js - -ok 423 — stringPermutations is a Function -ok 424 — Generates all stringPermutations of a string -ok 425 — Works for single-letter strings -ok 426 — Works for empty strings - -# PASS test/randomIntegerInRange/randomIntegerInRange.test.js - -ok 427 — randomIntegerInRange is a Function -ok 428 — The returned value is an integer -ok 429 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/byteSize/byteSize.test.js - -ok 430 — byteSize is a Function -ok 431 — Works for a single letter -ok 432 — Works for a common string -ok 433 — Works for emoji - -# PASS test/standardDeviation/standardDeviation.test.js - -ok 434 — standardDeviation is a Function -ok 435 — Returns the standard deviation of an array of numbers -ok 436 — Returns the standard deviation of an array of numbers ->>>>>>> master - -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. - -# PASS test\degreesToRads\degreesToRads.test.js - -<<<<<<< HEAD -ok 183 — degreesToRads is a Function -ok 184 — Returns the appropriate value - -# PASS test\chunk\chunk.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 - -# PASS test\levenshteinDistance\levenshteinDistance.test.js - -ok 195 — levenshteinDistance is a Function - -# PASS test\pad\pad.test.js -======= -# PASS test/sortedIndex/sortedIndex.test.js - -ok 440 — sortedIndex is a Function -ok 441 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -ok 442 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. - -# PASS test/isObject/isObject.test.js - -ok 443 — isObject is a Function -ok 444 — isObject([1, 2, 3, 4]) is a object -ok 445 — isObject([]) is a object -ok 446 — isObject({ a:1 }) is a object -ok 447 — isObject(true) is not a object - -# PASS test/pluralize/pluralize.test.js - -ok 448 — pluralize is a Function -ok 449 — Produces the plural of the word -ok 450 — Produces the singular of the word -ok 451 — Produces the plural of the word -ok 452 — Prodices the defined plural of the word -ok 453 — Works with a dictionary ->>>>>>> master - -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 - -<<<<<<< HEAD -# PASS test\getURLParameters\getURLParameters.test.js - -ok 201 — getURLParameters is a Function -ok 202 — Returns an object containing the parameters of the current URL - -# PASS test\arrayToCSV\arrayToCSV.test.js - -ok 203 — arrayToCSV is a Function -ok 204 — arrayToCSV works with default delimiter -ok 205 — arrayToCSV works with custom delimiter - -# PASS test\isRegExp\isRegExp.test.js - -ok 206 — isRegExp is a Function - -# PASS test\getColonTimeFromDate\getColonTimeFromDate.test.js - -ok 207 — getColonTimeFromDate is a Function - -# PASS test\isWeakMap\isWeakMap.test.js - -ok 208 — isWeakMap is a Function - -# PASS test\bottomVisible\bottomVisible.test.js - -ok 209 — bottomVisible is a Function - -# PASS test\transform\transform.test.js - -ok 210 — transform is a Function -ok 211 — Transforms an object - -# PASS test\elo\elo.test.js - -ok 212 — elo is a Function -ok 213 — Standard 1v1s -ok 214 — Standard 1v1s -ok 215 — 4 player FFA, all same rank - -# PASS test\truthCheckCollection\truthCheckCollection.test.js - -ok 216 — truthCheckCollection is a Function -ok 217 — second argument is truthy on all elements of a collection - -# PASS test\fromCamelCase\fromCamelCase.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 - -# PASS test\isObject\isObject.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 - -# PASS test\debounce\debounce.test.js -======= -ok 454 — isAbsoluteURL is a Function -ok 455 — Given string is an absolute URL -ok 456 — Given string is an absolute URL -ok 457 — Given string is not an absolute URL - -# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js - -ok 458 — randomIntArrayInRange is a Function -ok 459 — The returned array contains only integers -ok 460 — The returned array has the proper length -ok 461 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). - -# PASS test/URLJoin/URLJoin.test.js - -ok 462 — URLJoin is a Function -ok 463 — Returns proper URL -ok 464 — Returns proper URL - -# PASS test/uncurry/uncurry.test.js - -ok 465 — uncurry is a Function -ok 466 — Works without a provided value for n -ok 467 — Works with n = 2 -ok 468 — Works with n = 3 - -# PASS test/pad/pad.test.js - -ok 469 — pad is a Function -ok 470 — cat is padded on both sides -ok 471 — length of string is 8 -ok 472 — pads 42 with "0" -ok 473 — does not truncates if string exceeds length - -# PASS test/isValidJSON/isValidJSON.test.js - -ok 474 — isValidJSON is a Function -ok 475 — {"name":"Adam","age":20} is a valid JSON -ok 476 — {"name":"Adam",age:"20"} is not a valid JSON -ok 477 — null is a valid JSON +ok 229 — zipObject is a Function +ok 230 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} +ok 231 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} +ok 232 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } +ok 233 — zipObject([a], string) returns { a: s } +ok 234 — zipObject() throws an error +ok 235 — zipObject((['string'], null) throws an error +ok 236 — zipObject(null, [1]) throws an error +ok 237 — zipObject('string') throws an error +ok 238 — zipObject('test', 'string') throws an error # PASS test/offset/offset.test.js -ok 478 — offset is a Function -ok 479 — Offset of 0 returns the same array. -ok 480 — Offset > 0 returns the offsetted array. -ok 481 — Offset < 0 returns the reverse offsetted array. -ok 482 — Offset greater than the length of the array returns the same array. -ok 483 — Offset less than the negative length of the array returns the same array. -ok 484 — Offsetting empty array returns an empty array. +ok 239 — offset is a Function +ok 240 — Offset of 0 returns the same array. +ok 241 — Offset > 0 returns the offsetted array. +ok 242 — Offset < 0 returns the reverse offsetted array. +ok 243 — Offset greater than the length of the array returns the same array. +ok 244 — Offset less than the negative length of the array returns the same array. +ok 245 — Offsetting empty array returns an empty array. -# PASS test/matches/matches.test.js +# PASS test/join/join.test.js -ok 485 — matches is a Function -ok 486 — Matches returns true for two similar objects -ok 487 — Matches returns false for two non-similar objects +ok 246 — join is a Function +ok 247 — Joins all elements of an array into a string and returns this string +ok 248 — Joins all elements of an array into a string and returns this string +ok 249 — Joins all elements of an array into a string and returns this string -# PASS test/groupBy/groupBy.test.js +# PASS test/toSafeInteger/toSafeInteger.test.js -ok 488 — groupBy is a Function -ok 489 — Groups the elements of an array based on the given function -ok 490 — Groups the elements of an array based on the given function +ok 250 — toSafeInteger is a Function +ok 251 — Number(toSafeInteger(3.2)) is a number +ok 252 — Converts a value to a safe integer +ok 253 — toSafeInteger('4.2') returns 4 +ok 254 — toSafeInteger(4.6) returns 5 +ok 255 — toSafeInteger([]) returns 0 +ok 256 — isNaN(toSafeInteger([1.5, 3124])) is true +ok 257 — isNaN(toSafeInteger('string')) is true +ok 258 — isNaN(toSafeInteger({})) is true +ok 259 — isNaN(toSafeInteger()) is true +ok 260 — toSafeInteger(Infinity) returns 9007199254740991 +ok 261 — toSafeInteger(3.2) takes less than 2s to run + +# PASS test/any/any.test.js + +ok 262 — any is a Function +ok 263 — Returns true for arrays with at least one truthy value +ok 264 — Returns false for arrays with no truthy values +ok 265 — Returns false for arrays with no truthy values +ok 266 — Returns true with predicate function +ok 267 — Returns false with a predicate function + +# PASS test/zip/zip.test.js + +ok 268 — zip is a Function +ok 269 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] +ok 270 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] +ok 271 — zip([]) returns [] +ok 272 — zip(123) returns [] +ok 273 — zip([a, b], [1, 2], [true, false]) returns an Array +ok 274 — zip([a], [1, 2], [true, false]) returns an Array +ok 275 — zip(null) throws an error +ok 276 — zip(undefined) throws an error + +# PASS test/randomIntegerInRange/randomIntegerInRange.test.js + +ok 277 — randomIntegerInRange is a Function +ok 278 — The returned value is an integer +ok 279 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/toCurrency/toCurrency.test.js + +ok 280 — toCurrency is a Function +ok 281 — currency: Euro | currencyLangFormat: Local +ok 282 — currency: US Dollar | currencyLangFormat: English (United States) +ok 283 — currency: Japanese Yen | currencyLangFormat: Local + +# PASS test/randomIntArrayInRange/randomIntArrayInRange.test.js + +ok 284 — randomIntArrayInRange is a Function +ok 285 — The returned array contains only integers +ok 286 — The returned array has the proper length +ok 287 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). + +# PASS test/binomialCoefficient/binomialCoefficient.test.js + +ok 288 — binomialCoefficient is a Function +ok 289 — Returns the appropriate value +ok 290 — Returns the appropriate value +ok 291 — Returns the appropriate value +ok 292 — Returns NaN +ok 293 — Returns NaN + +# PASS test/reduceWhich/reduceWhich.test.js + +ok 294 — reduceWhich is a Function +ok 295 — Returns the minimum of an array +ok 296 — Returns the maximum of an array +ok 297 — Returns the object with the minimum specified value in an array + +# PASS test/invertKeyValues/invertKeyValues.test.js + +ok 298 — invertKeyValues is a Function +ok 299 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 300 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# PASS test/fromCamelCase/fromCamelCase.test.js + +ok 301 — fromCamelCase is a Function +ok 302 — Converts a string from camelcase +ok 303 — Converts a string from camelcase +ok 304 — Converts a string from camelcase + +# PASS test/castArray/castArray.test.js + +ok 305 — castArray is a Function +ok 306 — Works for single values +ok 307 — Works for arrays with one value +ok 308 — Works for arrays with multiple value +ok 309 — Works for strings +ok 310 — Works for objects + +# PASS test/approximatelyEqual/approximatelyEqual.test.js + +ok 311 — approximatelyEqual is a Function +ok 312 — Works for PI / 2 +ok 313 — Works for 0.1 + 0.2 === 0.3 +ok 314 — Works for exactly equal values +ok 315 — Works for a custom epsilon + +# PASS test/isEmpty/isEmpty.test.js + +ok 316 — isEmpty is a Function +ok 317 — Returns true for empty Map +ok 318 — Returns true for empty Set +ok 319 — Returns true for empty array +ok 320 — Returns true for empty object +ok 321 — Returns true for empty string +ok 322 — Returns false for non-empty array +ok 323 — Returns false for non-empty object +ok 324 — Returns false for non-empty string +ok 325 — Returns true - type is not considered a collection +ok 326 — Returns true - type is not considered a collection + +# PASS test/none/none.test.js + +ok 327 — none is a Function +ok 328 — Returns true for arrays with no truthy values +ok 329 — Returns false for arrays with at least one truthy value +ok 330 — Returns true with a predicate function +ok 331 — Returns false with predicate function + +# PASS test/binarySearch/binarySearch.test.js + +ok 332 — binarySearch is a Function +ok 333 — Finds item in array +ok 334 — Returns -1 when not found +ok 335 — Works with empty arrays +ok 336 — Works for one element arrays + +# PASS test/factorial/factorial.test.js + +ok 337 — factorial is a Function +ok 338 — Calculates the factorial of 720 +ok 339 — Calculates the factorial of 0 +ok 340 — Calculates the factorial of 1 +ok 341 — Calculates the factorial of 4 +ok 342 — Calculates the factorial of 10 + +# PASS test/pluralize/pluralize.test.js + +ok 343 — pluralize is a Function +ok 344 — Produces the plural of the word +ok 345 — Produces the singular of the word +ok 346 — Produces the plural of the word +ok 347 — Prodices the defined plural of the word +ok 348 — Works with a dictionary + +# PASS test/mask/mask.test.js + +ok 349 — mask is a Function +ok 350 — Replaces all but the last num of characters with the specified mask character +ok 351 — Replaces all but the last num of characters with the specified mask character +ok 352 — Replaces all but the last num of characters with the specified mask character + +# PASS test/all/all.test.js + +ok 353 — all is a Function +ok 354 — Returns true for arrays with no falsey values +ok 355 — Returns false for arrays with 0 +ok 356 — Returns false for arrays with NaN +ok 357 — Returns false for arrays with undefined +ok 358 — Returns false for arrays with null +ok 359 — Returns false for arrays with empty strings +ok 360 — Returns true with predicate function +ok 361 — Returns false with a predicate function + +# PASS test/inRange/inRange.test.js + +ok 362 — inRange is a Function +ok 363 — The given number falls within the given range +ok 364 — The given number falls within the given range +ok 365 — The given number does not falls within the given range +ok 366 — The given number does not falls within the given range + +# PASS test/converge/converge.test.js + +ok 367 — converge is a Function +ok 368 — Produces the average of the array +ok 369 — Produces the strange concatenation + +# PASS test/capitalize/capitalize.test.js + +ok 370 — capitalize is a Function +ok 371 — Capitalizes the first letter of a string +ok 372 — Capitalizes the first letter of a string +ok 373 — Works with characters +ok 374 — "Works with single character words + +# PASS test/randomHexColorCode/randomHexColorCode.test.js + +ok 375 — randomHexColorCode is a Function +ok 376 — randomHexColorCode has to proper length +ok 377 — The color code starts with "#" +ok 378 — The color code contains only valid hex-digits + +# PASS test/isAnagram/isAnagram.test.js + +ok 379 — isAnagram is a Function +ok 380 — Checks valid anagram +ok 381 — Works with spaces +ok 382 — Ignores case +ok 383 — Ignores special characters + +# PASS test/dropRight/dropRight.test.js + +ok 384 — dropRight is a Function +ok 385 — Returns a new array with n elements removed from the right +ok 386 — Returns a new array with n elements removed from the right +ok 387 — Returns a new array with n elements removed from the right + +# PASS test/toOrdinalSuffix/toOrdinalSuffix.test.js + +ok 388 — toOrdinalSuffix is a Function +ok 389 — Adds an ordinal suffix to a number +ok 390 — Adds an ordinal suffix to a number +ok 391 — Adds an ordinal suffix to a number +ok 392 — Adds an ordinal suffix to a number + +# PASS test/capitalizeEveryWord/capitalizeEveryWord.test.js + +ok 393 — capitalizeEveryWord is a Function +ok 394 — Capitalizes the first letter of every word in a string +ok 395 — Works with characters +ok 396 — Works with one word string + +# PASS test/isString/isString.test.js + +ok 397 — isString is a Function +ok 398 — foo is a string +ok 399 — "10" is a string +ok 400 — Empty string is a string +ok 401 — 10 is not a string +ok 402 — true is not string + +# PASS test/prettyBytes/prettyBytes.test.js + +ok 403 — prettyBytes is a Function +ok 404 — Converts a number in bytes to a human-readable string. +ok 405 — Converts a number in bytes to a human-readable string. +ok 406 — Converts a number in bytes to a human-readable string. + +# PASS test/tomorrow/tomorrow.test.js + +ok 407 — tomorrow is a Function +ok 408 — Returns the correct year +ok 409 — Returns the correct month +ok 410 — Returns the correct date + +# PASS test/deepClone/deepClone.test.js + +ok 411 — deepClone is a Function +ok 412 — Shallow cloning works +ok 413 — Deep cloning works +ok 414 — Array shallow cloning works +ok 415 — Array deep cloning works + +# PASS test/shuffle/shuffle.test.js + +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/hexToRGB/hexToRGB.test.js + +ok 421 — hexToRGB is a Function +ok 422 — Converts a color code to a rgb() or rgba() string +ok 423 — Converts a color code to a rgb() or rgba() string +ok 424 — Converts a color code to a rgb() or rgba() string + +# PASS test/formatDuration/formatDuration.test.js + +ok 425 — formatDuration is a Function +ok 426 — Returns the human readable format of the given number of milliseconds +ok 427 — Returns the human readable format of the given number of milliseconds + +# PASS test/stringPermutations/stringPermutations.test.js + +ok 428 — stringPermutations is a Function +ok 429 — Generates all stringPermutations of a string +ok 430 — Works for single-letter strings +ok 431 — Works for empty strings + +# PASS test/isObjectLike/isObjectLike.test.js + +ok 432 — isObjectLike is a Function +ok 433 — Returns true for an object +ok 434 — Returns true for an array +ok 435 — Returns false for a function +ok 436 — Returns false for null + +# PASS test/partition/partition.test.js + +ok 437 — partition is a Function +ok 438 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. + +# PASS test/sumPower/sumPower.test.js + +ok 439 — sumPower is a Function +ok 440 — Returns the sum of the powers of all the numbers from start to end +ok 441 — Returns the sum of the powers of all the numbers from start to end +ok 442 — Returns the sum of the powers of all the numbers from start to end + +# PASS test/untildify/untildify.test.js + +ok 443 — untildify is a Function +ok 444 — Contains no tildes +ok 445 — Does not alter the rest of the path +ok 446 — Does not alter paths without tildes + +# PASS test/standardDeviation/standardDeviation.test.js + +ok 447 — standardDeviation is a Function +ok 448 — Returns the standard deviation of an array of numbers +ok 449 — Returns the standard deviation of an array of numbers + +# PASS test/isObject/isObject.test.js + +ok 450 — isObject is a Function +ok 451 — isObject([1, 2, 3, 4]) is a object +ok 452 — isObject([]) is a object +ok 453 — isObject({ a:1 }) is a object +ok 454 — isObject(true) is not a object + +# PASS test/sortedIndex/sortedIndex.test.js + +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/isAbsoluteURL/isAbsoluteURL.test.js + +ok 458 — isAbsoluteURL is a Function +ok 459 — Given string is an absolute URL +ok 460 — Given string is an absolute URL +ok 461 — Given string is not an absolute URL + +# PASS test/unzip/unzip.test.js + +ok 462 — unzip is a Function +ok 463 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 464 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] + +# PASS test/URLJoin/URLJoin.test.js + +ok 465 — URLJoin is a Function +ok 466 — Returns proper URL +ok 467 — Returns proper URL + +# PASS test/byteSize/byteSize.test.js + +ok 468 — byteSize is a Function +ok 469 — Works for a single letter +ok 470 — Works for a common string +ok 471 — Works for emoji + +# PASS test/pad/pad.test.js + +ok 472 — pad is a Function +ok 473 — cat is padded on both sides +ok 474 — length of string is 8 +ok 475 — pads 42 with "0" +ok 476 — does not truncates if string exceeds length + +# PASS test/uncurry/uncurry.test.js + +ok 477 — uncurry is a Function +ok 478 — Works without a provided value for n +ok 479 — Works with n = 2 +ok 480 — Works with n = 3 # PASS test/reject/reject.test.js -ok 491 — reject is a Function -ok 492 — Works with numbers -ok 493 — Works with strings +ok 481 — reject is a Function +ok 482 — Works with numbers +ok 483 — Works with strings -# PASS test/collatz/collatz.test.js +# PASS test/matches/matches.test.js -ok 494 — collatz is a Function -ok 495 — When n is even, divide by 2 -ok 496 — When n is odd, times by 3 and add 1 -ok 497 — Eventually reaches 1 +ok 484 — matches is a Function +ok 485 — Matches returns true for two similar objects +ok 486 — Matches returns false for two non-similar objects -# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js +# PASS test/isValidJSON/isValidJSON.test.js -ok 498 — symmetricDifferenceWith is a Function -ok 499 — Returns the symmetric difference between two arrays, using a provided function as a comparator ->>>>>>> master +ok 487 — isValidJSON is a Function +ok 488 — {"name":"Adam","age":20} is a valid JSON +ok 489 — {"name":"Adam",age:"20"} is not a valid JSON +ok 490 — null is a valid JSON -ok 227 — debounce is a Function -ok 228 — Works as expected +# PASS test/groupBy/groupBy.test.js -<<<<<<< HEAD -# PASS test\deepClone\deepClone.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 - -# PASS test\mapValues\mapValues.test.js - -ok 234 — mapValues is a Function -ok 235 — Maps values - -# PASS test\sumPower\sumPower.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 - -# PASS test\elementIsVisibleInViewport\elementIsVisibleInViewport.test.js - -ok 240 — elementIsVisibleInViewport is a Function - -# PASS test\without\without.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 - -# PASS test\isPrime\isPrime.test.js - -ok 251 — isPrime is a Function -ok 252 — passed number is a prime - -# PASS test\findLastIndex\findLastIndex.test.js - -ok 253 — findLastIndex is a Function -ok 254 — Finds last index for which the given function returns true - -# PASS test\partial\partial.test.js - -ok 255 — partial is a Function -ok 256 — Prepends arguments - -# PASS test\hasFlags\hasFlags.test.js - -ok 257 — hasFlags is a Function - -# PASS test\randomIntegerInRange\randomIntegerInRange.test.js -======= -ok 500 — collectInto is a Function -ok 501 — Works with multiple promises - -# PASS test/reducedFilter/reducedFilter.test.js - -ok 502 — reducedFilter is a Function -ok 503 — Filter an array of objects based on a condition while also filtering out unspecified keys. - -# PASS test/functionName/functionName.test.js - -ok 504 — functionName is a Function -ok 505 — Works for native functions -ok 506 — Works for functions -ok 507 — Works for arrow functions - -# PASS test/luhnCheck/luhnCheck.test.js - -ok 508 — luhnCheck is a Function -ok 509 — validates identification number -ok 510 — validates identification number -ok 511 — validates identification number +ok 491 — groupBy is a Function +ok 492 — Groups the elements of an array based on the given function +ok 493 — Groups the elements of an array based on the given function # PASS test/lowercaseKeys/lowercaseKeys.test.js -ok 512 — lowercaseKeys is a Function -ok 513 — Lowercases object keys -ok 514 — Does not mutate original object +ok 494 — lowercaseKeys is a Function +ok 495 — Lowercases object keys +ok 496 — Does not mutate original object + +# PASS test/symmetricDifferenceWith/symmetricDifferenceWith.test.js + +ok 497 — symmetricDifferenceWith is a Function +ok 498 — Returns the symmetric difference between two arrays, using a provided function as a comparator + +# PASS test/reducedFilter/reducedFilter.test.js + +ok 499 — reducedFilter is a Function +ok 500 — Filter an array of objects based on a condition while also filtering out unspecified keys. + +# PASS test/collectInto/collectInto.test.js + +ok 501 — collectInto is a Function +ok 502 — Works with multiple promises # PASS test/UUIDGeneratorNode/UUIDGeneratorNode.test.js -ok 515 — UUIDGeneratorNode is a Function -ok 516 — Contains dashes in the proper places -ok 517 — Only contains hexadecimal digits +ok 503 — UUIDGeneratorNode is a Function +ok 504 — Contains dashes in the proper places +ok 505 — Only contains hexadecimal digits -# PASS test/matchesWith/matchesWith.test.js +# PASS test/collatz/collatz.test.js -ok 518 — matchesWith is a Function -ok 519 — Returns true for two objects with similar values, based on the provided function +ok 506 — collatz is a Function +ok 507 — When n is even, divide by 2 +ok 508 — When n is odd, times by 3 and add 1 +ok 509 — Eventually reaches 1 + +# PASS test/functionName/functionName.test.js + +ok 510 — functionName is a Function +ok 511 — Works for native functions +ok 512 — Works for functions +ok 513 — Works for arrow functions + +# PASS test/luhnCheck/luhnCheck.test.js + +ok 514 — luhnCheck is a Function +ok 515 — validates identification number +ok 516 — validates identification number +ok 517 — validates identification number # PASS test/differenceBy/differenceBy.test.js -ok 520 — differenceBy is a Function -ok 521 — Works using a native function and numbers -ok 522 — Works with arrow function and objects +ok 518 — differenceBy is a Function +ok 519 — Works using a native function and numbers +ok 520 — Works with arrow function and objects # PASS test/sample/sample.test.js -ok 523 — sample is a Function -ok 524 — Returns a random element from the array -ok 525 — Works for single-element arrays -ok 526 — Returns undefined for empty array - -# PASS test/isLowerCase/isLowerCase.test.js - -ok 527 — isLowerCase is a Function -ok 528 — passed string is a lowercase -ok 529 — passed string is a lowercase -ok 530 — passed value is not a lowercase ->>>>>>> master - -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). - -<<<<<<< HEAD -# PASS test\isUpperCase\isUpperCase.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 - -# PASS test\isEven\isEven.test.js - -ok 265 — isEven is a Function -ok 266 — 4 is even number -ok 267 — 5 is not an even number - -# PASS test\untildify\untildify.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 - -# PASS test\initializeArrayWithRange\initializeArrayWithRange.test.js -======= -ok 531 — nthArg is a Function -ok 532 — Returns the nth argument -ok 533 — Returns undefined if arguments too few -ok 534 — Works for negative values - -# PASS test/renameKeys/renameKeys.test.js - -ok 535 — renameKeys is a Function -ok 536 — renameKeys is a Function - -# PASS test/flattenObject/flattenObject.test.js - -ok 537 — flattenObject is a Function -ok 538 — Flattens an object with the paths for keys -ok 539 — Works with arrays +ok 521 — sample is a Function +ok 522 — Returns a random element from the array +ok 523 — Works for single-element arrays +ok 524 — Returns undefined for empty array # PASS test/drop/drop.test.js -ok 540 — drop is a Function -ok 541 — Works without the last argument -ok 542 — Removes appropriate element count as specified -ok 543 — Empties array given a count greater than length ->>>>>>> master +ok 525 — drop is a Function +ok 526 — Works without the last argument +ok 527 — Removes appropriate element count as specified +ok 528 — Empties array given a count greater than length -ok 272 — initializeArrayWithRange is a Function -ok 273 — Initializes an array containing the numbers in the specified range +# PASS test/matchesWith/matchesWith.test.js -<<<<<<< HEAD -# PASS test\nest\nest.test.js +ok 529 — matchesWith is a Function +ok 530 — Returns true for two objects with similar values, based on the provided function -ok 274 — nest is a Function +# PASS test/isLowerCase/isLowerCase.test.js -# PASS test\coalesce\coalesce.test.js -======= -ok 544 — pipeAsyncFunctions is a Function -ok 545 — pipeAsyncFunctions result should be 15 +ok 531 — isLowerCase is a Function +ok 532 — passed string is a lowercase +ok 533 — passed string is a lowercase +ok 534 — passed value is not a lowercase -# PASS test/functions/functions.test.js +# PASS test/nthArg/nthArg.test.js -ok 546 — functions is a Function -ok 547 — Returns own methods -ok 548 — Returns own and inherited methods ->>>>>>> master +ok 535 — nthArg is a Function +ok 536 — Returns the nth argument +ok 537 — Returns undefined if arguments too few +ok 538 — Works for negative values -ok 275 — coalesce is a Function -ok 276 — Returns the first non-null/undefined argument +# PASS test/renameKeys/renameKeys.test.js -<<<<<<< HEAD -# PASS test\powerset\powerset.test.js +ok 539 — renameKeys is a Function +ok 540 — renameKeys is a Function -ok 277 — powerset is a Function -ok 278 — Returns the powerset of a given array of numbers. +# PASS test/pipeAsyncFunctions/pipeAsyncFunctions.test.js -# PASS test\removeNonASCII\removeNonASCII.test.js +ok 541 — pipeAsyncFunctions is a Function +ok 542 — pipeAsyncFunctions result should be 15 -ok 279 — removeNonASCII is a Function -ok 280 — Removes non-ASCII characters +# PASS test/flattenObject/flattenObject.test.js -# PASS test\forEachRight\forEachRight.test.js - -ok 281 — forEachRight is a Function -ok 282 — Iterates over the array in reverse - -# PASS test\isBrowser\isBrowser.test.js -======= -ok 549 — isUpperCase is a Function -ok 550 — ABC is all upper case -ok 551 — abc is not all upper case -ok 552 — A3@$ is all uppercase - -# PASS test/elo/elo.test.js - -ok 553 — elo is a Function -ok 554 — Standard 1v1s -ok 555 — Standard 1v1s -ok 556 — 4 player FFA, all same rank - -# PASS test/memoize/memoize.test.js - -ok 557 — memoize is a Function -ok 558 — Function works properly -ok 559 — Function works properly -ok 560 — Cache stores values - -# PASS test/promisify/promisify.test.js - -ok 561 — promisify is a Function -ok 562 — Returns a promise -ok 563 — Runs the function provided ->>>>>>> master - -ok 283 — isBrowser is a Function - -<<<<<<< HEAD -# PASS test\uncurry\uncurry.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 - -# PASS test\sum\sum.test.js - -ok 288 — sum is a Function -ok 289 — Returns the sum of two or more numbers/arrays. - -# PASS test\head\head.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 - -# PASS test\isBrowserTabFocused\isBrowserTabFocused.test.js - -ok 299 — isBrowserTabFocused is a Function - -# PASS test\luhnCheck\luhnCheck.test.js -======= -ok 564 — intersectionWith is a Function -ok 565 — Returns a list of elements that exist in both arrays, using a provided comparator function - -# PASS test/isArrayLike/isArrayLike.test.js - -ok 566 — isArrayLike is a Function -ok 567 — Returns true for a string -ok 568 — Returns true for an array -ok 569 — Returns false for null +ok 543 — flattenObject is a Function +ok 544 — Flattens an object with the paths for keys +ok 545 — Works with arrays # PASS test/averageBy/averageBy.test.js -ok 570 — averageBy is a Function -ok 571 — Produces the right result with a function -ok 572 — Produces the right result with a property name ->>>>>>> master +ok 546 — averageBy is a Function +ok 547 — Produces the right result with a function +ok 548 — Produces the right result with a property name -ok 300 — luhnCheck is a Function -ok 301 — validates identification number -ok 302 — validates identification number -ok 303 — validates identification number +# PASS test/memoize/memoize.test.js -<<<<<<< HEAD -# PASS test\elementContains\elementContains.test.js +ok 549 — memoize is a Function +ok 550 — Function works properly +ok 551 — Function works properly +ok 552 — Cache stores values -ok 304 — elementContains is a Function +# PASS test/bindKey/bindKey.test.js -# PASS test\scrollToTop\scrollToTop.test.js - -ok 305 — scrollToTop is a Function - -# PASS test\rearg\rearg.test.js - -ok 306 — rearg is a Function -ok 307 — Reorders arguments in invoked function - -# PASS test\isUndefined\isUndefined.test.js - -ok 308 — isUndefined is a Function -ok 309 — Returns true for undefined - -# PASS test\castArray\castArray.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 - -# PASS test\flip\flip.test.js - -ok 316 — flip is a Function -ok 317 — Flips argument order - -# PASS test\reduceWhich\reduceWhich.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 - -# PASS test\tomorrow\tomorrow.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 - -# PASS test\any\any.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 - -# PASS test\isSet\isSet.test.js -======= -ok 573 — bindKey is a Function -ok 574 — Binds function to an object context - -# PASS test/maxBy/maxBy.test.js - -ok 575 — maxBy is a Function -ok 576 — Produces the right result with a function -ok 577 — Produces the right result with a property name - -# PASS test/isPromiseLike/isPromiseLike.test.js - -ok 578 — isPromiseLike is a Function -ok 579 — Returns true for a promise-like object -ok 580 — Returns false for an empty object +ok 553 — bindKey is a Function +ok 554 — Binds function to an object context # PASS test/symmetricDifferenceBy/symmetricDifferenceBy.test.js -ok 581 — symmetricDifferenceBy is a Function -ok 582 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both +ok 555 — symmetricDifferenceBy is a Function +ok 556 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both -# PASS test/coalesceFactory/coalesceFactory.test.js +# PASS test/functions/functions.test.js -ok 583 — coalesceFactory is a Function -ok 584 — Returns a customized coalesce function +ok 557 — functions is a Function +ok 558 — Returns own methods +ok 559 — Returns own and inherited methods -# PASS test/minBy/minBy.test.js +# PASS test/elo/elo.test.js -ok 585 — minBy is a Function -ok 586 — Produces the right result with a function -ok 587 — Produces the right result with a property name +ok 560 — elo is a Function +ok 561 — Standard 1v1s +ok 562 — Standard 1v1s +ok 563 — 4 player FFA, all same rank -# PASS test/unzipWith/unzipWith.test.js +# PASS test/isUpperCase/isUpperCase.test.js -ok 588 — unzipWith is a Function -ok 589 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] +ok 564 — isUpperCase is a Function +ok 565 — ABC is all upper case +ok 566 — abc is not all upper case +ok 567 — A3@$ is all uppercase -# PASS test/truthCheckCollection/truthCheckCollection.test.js +# PASS test/promisify/promisify.test.js -ok 590 — truthCheckCollection is a Function -ok 591 — second argument is truthy on all elements of a collection +ok 568 — promisify is a Function +ok 569 — Returns a promise +ok 570 — Runs the function provided -# PASS test/pullAtValue/pullAtValue.test.js +# PASS test/isArrayLike/isArrayLike.test.js -ok 592 — pullAtValue is a Function -ok 593 — Pulls the specified values -ok 594 — Pulls the specified values +ok 571 — isArrayLike is a Function +ok 572 — Returns true for a string +ok 573 — Returns true for an array +ok 574 — Returns false for null + +# PASS test/isPromiseLike/isPromiseLike.test.js + +ok 575 — isPromiseLike is a Function +ok 576 — Returns true for a promise-like object +ok 577 — Returns false for an empty object + +# PASS test/intersectionWith/intersectionWith.test.js + +ok 578 — intersectionWith is a Function +ok 579 — Returns a list of elements that exist in both arrays, using a provided comparator function # PASS test/pullAtIndex/pullAtIndex.test.js -ok 595 — pullAtIndex is a Function -ok 596 — Pulls the given values -ok 597 — Pulls the given values ->>>>>>> master +ok 580 — pullAtIndex is a Function +ok 581 — Pulls the given values +ok 582 — Pulls the given values -ok 332 — isSet is a Function +# PASS test/maxBy/maxBy.test.js -# PASS test\delay\delay.test.js +ok 583 — maxBy is a Function +ok 584 — Produces the right result with a function +ok 585 — Produces the right result with a property name -<<<<<<< HEAD -ok 333 — delay is a Function -ok 334 — Works as expecting, passing arguments properly +# PASS test/minBy/minBy.test.js -# PASS test\sortedIndex\sortedIndex.test.js +ok 586 — minBy is a Function +ok 587 — Produces the right result with a function +ok 588 — Produces the right result with a property name -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. +# PASS test/arrayToCSV/arrayToCSV.test.js -# PASS test\isEmpty\isEmpty.test.js +ok 589 — arrayToCSV is a Function +ok 590 — arrayToCSV works with default delimiter +ok 591 — arrayToCSV works with custom delimiter -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 +# PASS test/unzipWith/unzipWith.test.js -# PASS test\join\join.test.js +ok 592 — unzipWith is a Function +ok 593 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] -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 +# PASS test/pullAtValue/pullAtValue.test.js -# PASS test\promisify\promisify.test.js - -ok 353 — promisify is a Function -ok 354 — Returns a promise -ok 355 — Runs the function provided - -# PASS test\timeTaken\timeTaken.test.js - -ok 356 — timeTaken is a Function - -# PASS test\hasClass\hasClass.test.js - -ok 357 — hasClass is a Function - -# PASS test\collectInto\collectInto.test.js -======= -# PASS test/intersectionBy/intersectionBy.test.js - -ok 600 — intersectionBy is a Function -ok 601 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both - -# PASS test/merge/merge.test.js - -ok 602 — merge is a Function -ok 603 — Merges two objects +ok 594 — pullAtValue is a Function +ok 595 — Pulls the specified values +ok 596 — Pulls the specified values # PASS test/takeRight/takeRight.test.js -ok 604 — takeRight is a Function -ok 605 — Returns an array with n elements removed from the end -ok 606 — Returns an array with n elements removed from the end +ok 597 — takeRight is a Function +ok 598 — Returns an array with n elements removed from the end +ok 599 — Returns an array with n elements removed from the end -# PASS test/bind/bind.test.js +# PASS test/truthCheckCollection/truthCheckCollection.test.js -ok 607 — bind is a Function -ok 608 — Binds to an object context - -# PASS test/runPromisesInSeries/runPromisesInSeries.test.js - -ok 609 — runPromisesInSeries is a Function -ok 610 — Runs promises in series - -# PASS test/isPlainObject/isPlainObject.test.js - -ok 611 — isPlainObject is a Function -ok 612 — Returns true for a plain object -ok 613 — Returns false for a Map (example of non-plain object) ->>>>>>> master - -ok 358 — collectInto is a Function -ok 359 — Works with multiple promises - -<<<<<<< HEAD -# PASS test\hashBrowser\hashBrowser.test.js - -ok 360 — hashBrowser is a Function - -# PASS test\btoa\btoa.test.js - -ok 361 — btoa is a Function -ok 362 — btoa("foobar") equals "Zm9vYmFy" - -# PASS test\httpDelete\httpDelete.test.js - -ok 363 — httpDelete is a Function - -# PASS test\unescapeHTML\unescapeHTML.test.js - -ok 364 — unescapeHTML is a Function -ok 365 — Unescapes escaped HTML characters. - -# PASS test\currentURL\currentURL.test.js - -ok 366 — currentURL is a Function - -# PASS test\prettyBytes\prettyBytes.test.js -======= -ok 614 — isNil is a Function -ok 615 — Returns true for null -ok 616 — Returns true for undefined -ok 617 — Returns false for an empty string - -# PASS test/extendHex/extendHex.test.js - -ok 618 — extendHex is a Function -ok 619 — Extends a 3-digit color code to a 6-digit color code -ok 620 — Extends a 3-digit color code to a 6-digit color code - -# PASS test/getURLParameters/getURLParameters.test.js - -ok 621 — getURLParameters is a Function -ok 622 — Returns an object containing the parameters of the current URL - -# PASS test/chainAsync/chainAsync.test.js - -ok 623 — chainAsync is a Function -ok 624 — Calls all functions in an array - -# PASS test/pipeFunctions/pipeFunctions.test.js - -ok 625 — pipeFunctions is a Function -ok 626 — Performs left-to-right function composition - -# PASS test/decapitalize/decapitalize.test.js - -ok 627 — decapitalize is a Function -ok 628 — Works with default parameter -ok 629 — Works with second parameter set to true ->>>>>>> master - -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. - -<<<<<<< HEAD -# PASS test\nthArg\nthArg.test.js -======= -ok 630 — isTravisCI is a Function -ok 631 — Running on Travis, correctly evaluates - -# PASS test/when/when.test.js - -ok 632 — when is a Function -ok 633 — Returns the proper result -ok 634 — Returns the proper result ->>>>>>> master - -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 - -<<<<<<< HEAD -# PASS test\setStyle\setStyle.test.js - -ok 375 — setStyle is a Function - -# PASS test\unionBy\unionBy.test.js - -ok 376 — unionBy is a Function -ok 377 — Produces the appropriate results - -# PASS test\isNumber\isNumber.test.js - -ok 378 — isNumber is a Function -ok 379 — passed argument is a number -ok 380 — passed argument is not a number - -# PASS test\memoize\memoize.test.js - -ok 381 — memoize is a Function -ok 382 — Function works properly -ok 383 — Function works properly -ok 384 — Cache stores values - -# PASS test\lcm\lcm.test.js -======= -ok 635 — cleanObj is a Function -ok 636 — Removes any properties except the ones specified from a JSON object - -# PASS test/take/take.test.js - -ok 637 — take is a Function -ok 638 — Returns an array with n elements removed from the beginning. -ok 639 — Returns an array with n elements removed from the beginning. +ok 600 — truthCheckCollection is a Function +ok 601 — second argument is truthy on all elements of a collection # PASS test/gcd/gcd.test.js -ok 640 — gcd is a Function -ok 641 — Calculates the greatest common divisor between two or more numbers/arrays -ok 642 — Calculates the greatest common divisor between two or more numbers/arrays +ok 602 — gcd is a Function +ok 603 — Calculates the greatest common divisor between two or more numbers/arrays +ok 604 — Calculates the greatest common divisor between two or more numbers/arrays -# PASS test/nthElement/nthElement.test.js +# PASS test/bind/bind.test.js -ok 643 — nthElement is a Function -ok 644 — Returns the nth element of an array. -ok 645 — Returns the nth element of an array. +ok 605 — bind is a Function +ok 606 — Binds to an object context -# PASS test/countBy/countBy.test.js +# PASS test/coalesceFactory/coalesceFactory.test.js -ok 646 — countBy is a Function -ok 647 — Works for functions -ok 648 — Works for property names ->>>>>>> master +ok 607 — coalesceFactory is a Function +ok 608 — Returns a customized coalesce function -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. +# PASS test/intersectionBy/intersectionBy.test.js -<<<<<<< HEAD -# PASS test\isObjectLike\isObjectLike.test.js +ok 609 — intersectionBy is a Function +ok 610 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both -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 +# PASS test/isNil/isNil.test.js -# PASS test\JSONToFile\JSONToFile.test.js +ok 611 — isNil is a Function +ok 612 — Returns true for null +ok 613 — Returns true for undefined +ok 614 — Returns false for an empty string -ok 393 — JSONToFile is a Function +# PASS test/pipeFunctions/pipeFunctions.test.js -# PASS test\zip\zip.test.js +ok 615 — pipeFunctions is a Function +ok 616 — Performs left-to-right function composition -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 +# PASS test/extendHex/extendHex.test.js -# PASS test\renameKeys\renameKeys.test.js +ok 617 — extendHex is a Function +ok 618 — Extends a 3-digit color code to a 6-digit color code +ok 619 — Extends a 3-digit color code to a 6-digit color code -ok 403 — renameKeys is a Function -ok 404 — renameKeys is a Function +# PASS test/isPlainObject/isPlainObject.test.js -# PASS test\dropRightWhile\dropRightWhile.test.js +ok 620 — isPlainObject is a Function +ok 621 — Returns true for a plain object +ok 622 — Returns false for a Map (example of non-plain object) -ok 405 — dropRightWhile is a Function -ok 406 — Removes elements from the end of an array until the passed function returns true. +# PASS test/merge/merge.test.js -# PASS test\isNull\isNull.test.js +ok 623 — merge is a Function +ok 624 — Merges two objects -ok 407 — isNull is a Function -ok 408 — passed argument is a null -ok 409 — passed argument is a null +# PASS test/isTravisCI/isTravisCI.test.js -# PASS test\hide\hide.test.js +ok 625 — isTravisCI is a Function +ok 626 — Running on Travis, correctly evaluates -ok 410 — hide is a Function +# PASS test/findLastKey/findLastKey.test.js -# PASS test\nthElement\nthElement.test.js -======= -ok 649 — overArgs is a Function -ok 650 — Invokes the provided function with its arguments transformed +ok 627 — findLastKey is a Function +ok 628 — eturns the appropriate key + +# PASS test/take/take.test.js + +ok 629 — take is a Function +ok 630 — Returns an array with n elements removed from the beginning. +ok 631 — Returns an array with n elements removed from the beginning. + +# PASS test/runPromisesInSeries/runPromisesInSeries.test.js + +ok 632 — runPromisesInSeries is a Function +ok 633 — Runs promises in series # PASS test/indexOfAll/indexOfAll.test.js -ok 651 — indexOfAll is a Function -ok 652 — Returns all indices of val in an array -ok 653 — Returns all indices of val in an array +ok 634 — indexOfAll is a Function +ok 635 — Returns all indices of val in an array +ok 636 — Returns all indices of val in an array + +# PASS test/getURLParameters/getURLParameters.test.js + +ok 637 — getURLParameters is a Function +ok 638 — Returns an object containing the parameters of the current URL + +# PASS test/nthElement/nthElement.test.js + +ok 639 — nthElement is a Function +ok 640 — Returns the nth element of an array. +ok 641 — Returns the nth element of an array. + +# PASS test/when/when.test.js + +ok 642 — when is a Function +ok 643 — Returns the proper result +ok 644 — Returns the proper result + +# PASS test/chainAsync/chainAsync.test.js + +ok 645 — chainAsync is a Function +ok 646 — Calls all functions in an array # PASS test/shallowClone/shallowClone.test.js -ok 654 — shallowClone is a Function -ok 655 — Shallow cloning works -ok 656 — Does not clone deeply +ok 647 — shallowClone is a Function +ok 648 — Shallow cloning works +ok 649 — Does not clone deeply + +# PASS test/countBy/countBy.test.js + +ok 650 — countBy is a Function +ok 651 — Works for functions +ok 652 — Works for property names + +# PASS test/overArgs/overArgs.test.js + +ok 653 — overArgs is a Function +ok 654 — Invokes the provided function with its arguments transformed # PASS test/spreadOver/spreadOver.test.js -ok 657 — spreadOver is a Function -ok 658 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. +ok 655 — spreadOver is a Function +ok 656 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. -# PASS test/composeRight/composeRight.test.js +# PASS test/cleanObj/cleanObj.test.js -ok 659 — composeRight is a Function -ok 660 — Performs left-to-right function composition +ok 657 — cleanObj is a Function +ok 658 — Removes any properties except the ones specified from a JSON object -# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js +# PASS test/decapitalize/decapitalize.test.js -ok 661 — initializeArrayWithValues is a Function -ok 662 — Initializes and fills an array with the specified values - -# PASS test/flatten/flatten.test.js - -ok 663 — flatten is a Function -ok 664 — Flattens an array -ok 665 — Flattens an array - -# PASS test/minN/minN.test.js - -ok 666 — minN is a Function -ok 667 — Returns the n minimum elements from the provided array -ok 668 — Returns the n minimum elements from the provided array +ok 659 — decapitalize is a Function +ok 660 — Works with default parameter +ok 661 — Works with second parameter set to true # PASS test/partialRight/partialRight.test.js -ok 669 — partialRight is a Function -ok 670 — Appends arguments +ok 662 — partialRight is a Function +ok 663 — Appends arguments -# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js +# PASS test/minN/minN.test.js -ok 671 — initializeArrayWithRange is a Function -ok 672 — Initializes an array containing the numbers in the specified range - -# PASS test/reduceSuccessive/reduceSuccessive.test.js - -ok 673 — reduceSuccessive is a Function -ok 674 — Returns the array of successively reduced values ->>>>>>> master - -ok 411 — nthElement is a Function -ok 412 — Returns the nth element of an array. -ok 413 — Returns the nth element of an array. - -<<<<<<< HEAD -# PASS test\bifurcate\bifurcate.test.js - -ok 414 — bifurcate is a Function -ok 415 — Splits the collection into two groups - -# PASS test\quickSort\quickSort.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 - -# PASS test\UUIDGeneratorNode\UUIDGeneratorNode.test.js - -ok 425 — UUIDGeneratorNode is a Function -ok 426 — Contains dashes in the proper places -ok 427 — Only contains hexadecimal digits - -# PASS test\merge\merge.test.js -======= -ok 675 — hashNode is a Function -ok 676 — Produces the appropriate hash - -# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js - -ok 677 — sortedLastIndexBy is a Function -ok 678 — Returns the highest index to insert the element without messing up the list order - -# PASS test/findKey/findKey.test.js - -ok 679 — findKey is a Function -ok 680 — Returns the appropriate key - -# PASS test/maxN/maxN.test.js - -ok 681 — maxN is a Function -ok 682 — Returns the n maximum elements from the provided array -ok 683 — Returns the n maximum elements from the provided array ->>>>>>> master - -ok 428 — merge is a Function -ok 429 — Merges two objects - -<<<<<<< HEAD -# PASS test\randomNumberInRange\randomNumberInRange.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). - -# PASS test\objectToPairs\objectToPairs.test.js - -ok 433 — objectToPairs is a Function -ok 434 — Creates an array of key-value pair arrays from an object. - -# PASS test\unary\unary.test.js - -ok 435 — unary is a Function -ok 436 — Discards arguments after the first one - -# PASS test\hz\hz.test.js - -ok 437 — hz is a Function - -# PASS test\sortCharactersInString\sortCharactersInString.test.js - -ok 438 — sortCharactersInString is a Function -ok 439 — Alphabetically sorts the characters in a string. - -# PASS test\counter\counter.test.js - -ok 440 — counter is a Function - -# PASS test\splitLines\splitLines.test.js - -ok 441 — splitLines is a Function -ok 442 — Splits a multiline string into an array of lines. - -# PASS test\composeRight\composeRight.test.js - -ok 443 — composeRight is a Function -ok 444 — Performs left-to-right function composition - -# PASS test\copyToClipboard\copyToClipboard.test.js -======= -ok 684 — percentile is a Function -ok 685 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. - -# PASS test/transform/transform.test.js - -ok 686 — transform is a Function -ok 687 — Transforms an object +ok 664 — minN is a Function +ok 665 — Returns the n minimum elements from the provided array +ok 666 — Returns the n minimum elements from the provided array # PASS test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.test.js -ok 688 — getDaysDiffBetweenDates is a Function -ok 689 — Returns the difference in days between two dates - -# PASS test/differenceWith/differenceWith.test.js - -ok 690 — differenceWith is a Function -ok 691 — Filters out all values from an array +ok 667 — getDaysDiffBetweenDates is a Function +ok 668 — Returns the difference in days between two dates # PASS test/compose/compose.test.js -ok 692 — compose is a Function -ok 693 — Performs right-to-left function composition +ok 669 — compose is a Function +ok 670 — Performs right-to-left function composition + +# PASS test/findKey/findKey.test.js + +ok 671 — findKey is a Function +ok 672 — Returns the appropriate key + +# PASS test/maxN/maxN.test.js + +ok 673 — maxN is a Function +ok 674 — Returns the n maximum elements from the provided array +ok 675 — Returns the n maximum elements from the provided array + +# PASS test/composeRight/composeRight.test.js + +ok 676 — composeRight is a Function +ok 677 — Performs left-to-right function composition + +# PASS test/hashNode/hashNode.test.js + +ok 678 — hashNode is a Function +ok 679 — Produces the appropriate hash + +# PASS test/percentile/percentile.test.js + +ok 680 — percentile is a Function +ok 681 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. + +# PASS test/transform/transform.test.js + +ok 682 — transform is a Function +ok 683 — Transforms an object + +# PASS test/flatten/flatten.test.js + +ok 684 — flatten is a Function +ok 685 — Flattens an array +ok 686 — Flattens an array + +# PASS test/initializeArrayWithValues/initializeArrayWithValues.test.js + +ok 687 — initializeArrayWithValues is a Function +ok 688 — Initializes and fills an array with the specified values + +# PASS test/sortedLastIndexBy/sortedLastIndexBy.test.js + +ok 689 — sortedLastIndexBy is a Function +ok 690 — Returns the highest index to insert the element without messing up the list order # PASS test/lcm/lcm.test.js -ok 694 — lcm is a Function -ok 695 — Returns the least common multiple of two or more numbers. -ok 696 — Returns the least common multiple of two or more numbers. +ok 691 — lcm is a Function +ok 692 — Returns the least common multiple of two or more numbers. +ok 693 — Returns the least common multiple of two or more numbers. + +# PASS test/differenceWith/differenceWith.test.js + +ok 694 — differenceWith is a Function +ok 695 — Filters out all values from an array # PASS test/bindAll/bindAll.test.js -ok 697 — bindAll is a Function -ok 698 — Binds to an object context +ok 696 — bindAll is a Function +ok 697 — Binds to an object context + +# PASS test/reduceSuccessive/reduceSuccessive.test.js + +ok 698 — reduceSuccessive is a Function +ok 699 — Returns the array of successively reduced values + +# PASS test/initializeArrayWithRange/initializeArrayWithRange.test.js + +ok 700 — initializeArrayWithRange is a Function +ok 701 — Initializes an array containing the numbers in the specified range # PASS test/permutations/permutations.test.js -ok 699 — permutations is a Function -ok 700 — Generates all permutations of an array - -# PASS test/partial/partial.test.js - -ok 701 — partial is a Function -ok 702 — Prepends arguments ->>>>>>> master - -ok 445 — copyToClipboard is a Function - -<<<<<<< HEAD -# PASS test\JSONToDate\JSONToDate.test.js - -ok 446 — JSONToDate is a Function - -# PASS test\maxN\maxN.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 - -# PASS test\distance\distance.test.js - -ok 450 — distance is a Function -ok 451 — Calculates the distance between two points - -# PASS test\onUserInputChange\onUserInputChange.test.js - -ok 452 — onUserInputChange is a Function - -# PASS test\hashNode\hashNode.test.js - -ok 453 — hashNode is a Function -ok 454 — Produces the appropriate hash - -# PASS test\isLowerCase\isLowerCase.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 - -# PASS test\spreadOver\spreadOver.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. - -# PASS test\runAsync\runAsync.test.js - -ok 461 — runAsync is a Function - -# PASS test\isBoolean\isBoolean.test.js -======= -ok 703 — degreesToRads is a Function -ok 704 — Returns the appropriate value - -# PASS test/palindrome/palindrome.test.js - -ok 705 — palindrome is a Function -ok 706 — Given string is a palindrome -ok 707 — Given string is not a palindrome - -# PASS test/mapValues/mapValues.test.js - -ok 708 — mapValues is a Function -ok 709 — Maps values - -# PASS test/dropRightWhile/dropRightWhile.test.js - -ok 710 — dropRightWhile is a Function -ok 711 — Removes elements from the end of an array until the passed function returns true. +ok 702 — permutations is a Function +ok 703 — Generates all permutations of an array # PASS test/forOwnRight/forOwnRight.test.js -ok 712 — forOwnRight is a Function -ok 713 — Iterates over an element's key-value pairs in reverse - -# PASS test/sortedIndexBy/sortedIndexBy.test.js - -ok 714 — sortedIndexBy is a Function -ok 715 — Returns the lowest index to insert the element without messing up the list order +ok 704 — forOwnRight is a Function +ok 705 — Iterates over an element's key-value pairs in reverse # PASS test/size/size.test.js -ok 716 — size is a Function -ok 717 — Get size of arrays, objects or strings. -ok 718 — Get size of arrays, objects or strings. +ok 706 — size is a Function +ok 707 — Get size of arrays, objects or strings. +ok 708 — Get size of arrays, objects or strings. -# PASS test/pickBy/pickBy.test.js +# PASS test/palindrome/palindrome.test.js -ok 719 — pickBy is a Function -ok 720 — Creates an object composed of the properties the given function returns truthy for. +ok 709 — palindrome is a Function +ok 710 — Given string is a palindrome +ok 711 — Given string is not a palindrome + +# PASS test/degreesToRads/degreesToRads.test.js + +ok 712 — degreesToRads is a Function +ok 713 — Returns the appropriate value + +# PASS test/mapValues/mapValues.test.js + +ok 714 — mapValues is a Function +ok 715 — Maps values + +# PASS test/partial/partial.test.js + +ok 716 — partial is a Function +ok 717 — Prepends arguments # PASS test/median/median.test.js -ok 721 — median is a Function -ok 722 — Returns the median of an array of numbers -ok 723 — Returns the median of an array of numbers ->>>>>>> master - -ok 462 — isBoolean is a Function -ok 463 — passed value is not a boolean -ok 464 — passed value is not a boolean - -<<<<<<< HEAD -# PASS test\size\size.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. - -# PASS test\intersectionWith\intersectionWith.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 - -# PASS test\triggerEvent\triggerEvent.test.js - -ok 470 — triggerEvent is a Function - -# PASS test\toCamelCase\toCamelCase.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 - -# PASS test\unionWith\unionWith.test.js - -ok 481 — unionWith is a Function -ok 482 — Produces the appropriate results - -# PASS test\groupBy\groupBy.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 - -# PASS test\orderBy\orderBy.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. - -# PASS test\mostPerformant\mostPerformant.test.js - -ok 489 — mostPerformant is a Function - -# PASS test\insertBefore\insertBefore.test.js - -ok 490 — insertBefore is a Function - -# PASS test\isTypedArray\isTypedArray.test.js - -ok 491 — isTypedArray is a Function - -# PASS test\pull\pull.test.js - -ok 492 — pull is a Function -ok 493 — Pulls the specified values - -# PASS test\filterNonUnique\filterNonUnique.test.js -======= -ok 724 — unionWith is a Function -ok 725 — Produces the appropriate results +ok 718 — median is a Function +ok 719 — Returns the median of an array of numbers +ok 720 — Returns the median of an array of numbers # PASS test/bifurcateBy/bifurcateBy.test.js -ok 726 — bifurcateBy is a Function -ok 727 — Splits the collection into two groups - -# PASS test/isFunction/isFunction.test.js - -ok 728 — isFunction is a Function -ok 729 — passed value is a function -ok 730 — passed value is not a function - -# PASS test/splitLines/splitLines.test.js - -ok 731 — splitLines is a Function -ok 732 — Splits a multiline string into an array of lines. - -# PASS test/sortedLastIndex/sortedLastIndex.test.js - -ok 733 — sortedLastIndex is a Function -ok 734 — Returns the highest index to insert the element without messing up the list order - -# PASS test/isBoolean/isBoolean.test.js - -ok 735 — isBoolean is a Function -ok 736 — passed value is not a boolean -ok 737 — passed value is not a boolean - -# PASS test/sortCharactersInString/sortCharactersInString.test.js - -ok 738 — sortCharactersInString is a Function -ok 739 — Alphabetically sorts the characters in a string. - -# PASS test/flip/flip.test.js - -ok 740 — flip is a Function -ok 741 — Flips argument order - -# PASS test/rearg/rearg.test.js - -ok 742 — rearg is a Function -ok 743 — Reorders arguments in invoked function - -# PASS test/symmetricDifference/symmetricDifference.test.js - -ok 744 — symmetricDifference is a Function -ok 745 — Returns the symmetric difference between two arrays. +ok 721 — bifurcateBy is a Function +ok 722 — Splits the collection into two groups # PASS test/bifurcate/bifurcate.test.js -ok 746 — bifurcate is a Function -ok 747 — Splits the collection into two groups +ok 723 — bifurcate is a Function +ok 724 — Splits the collection into two groups + +# PASS test/isFunction/isFunction.test.js + +ok 725 — isFunction is a Function +ok 726 — passed value is a function +ok 727 — passed value is not a function + +# PASS test/pickBy/pickBy.test.js + +ok 728 — pickBy is a Function +ok 729 — Creates an object composed of the properties the given function returns truthy for. + +# PASS test/dropRightWhile/dropRightWhile.test.js + +ok 730 — dropRightWhile is a Function +ok 731 — Removes elements from the end of an array until the passed function returns true. + +# PASS test/unionWith/unionWith.test.js + +ok 732 — unionWith is a Function +ok 733 — Produces the appropriate results + +# PASS test/sortedIndexBy/sortedIndexBy.test.js + +ok 734 — sortedIndexBy is a Function +ok 735 — Returns the lowest index to insert the element without messing up the list order + +# PASS test/sortedLastIndex/sortedLastIndex.test.js + +ok 736 — sortedLastIndex is a Function +ok 737 — Returns the highest index to insert the element without messing up the list order + +# PASS test/splitLines/splitLines.test.js + +ok 738 — splitLines is a Function +ok 739 — Splits a multiline string into an array of lines. + +# PASS test/rearg/rearg.test.js + +ok 740 — rearg is a Function +ok 741 — Reorders arguments in invoked function + +# PASS test/symmetricDifference/symmetricDifference.test.js + +ok 742 — symmetricDifference is a Function +ok 743 — Returns the symmetric difference between two arrays. + +# PASS test/sortCharactersInString/sortCharactersInString.test.js + +ok 744 — sortCharactersInString is a Function +ok 745 — Alphabetically sorts the characters in a string. # PASS test/omitBy/omitBy.test.js -ok 748 — omitBy is a Function -ok 749 — Creates an object composed of the properties the given function returns falsey for ->>>>>>> master +ok 746 — omitBy is a Function +ok 747 — Creates an object composed of the properties the given function returns falsey for -ok 494 — filterNonUnique is a Function -ok 495 — Filters out the non-unique values in an array +# PASS test/unescapeHTML/unescapeHTML.test.js -<<<<<<< HEAD -# PASS test\maxBy\maxBy.test.js -======= -ok 750 — unescapeHTML is a Function -ok 751 — Unescapes escaped HTML characters. ->>>>>>> master +ok 748 — unescapeHTML is a Function +ok 749 — Unescapes escaped HTML characters. -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 +# PASS test/flip/flip.test.js -<<<<<<< HEAD -# PASS test\off\off.test.js - -ok 499 — off is a Function - -# PASS test\initializeArrayWithRangeRight\initializeArrayWithRangeRight.test.js - -ok 500 — initializeArrayWithRangeRight is a Function - -# PASS test\randomIntArrayInRange\randomIntArrayInRange.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). - -# PASS test\isNil\isNil.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 - -# PASS test\ary\ary.test.js - -ok 509 — ary is a Function -ok 510 — Discards arguments with index >=n - -# PASS test\isPlainObject\isPlainObject.test.js -======= -ok 752 — unflattenObject is a Function -ok 753 — Unflattens an object with the paths for keys - -# PASS test/xProd/xProd.test.js - -ok 754 — xProd is a Function -ok 755 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] +ok 750 — flip is a Function +ok 751 — Flips argument order # PASS test/get/get.test.js -ok 756 — get is a Function -ok 757 — Retrieve a property indicated by the selector from an object. - -# PASS test/initialize2DArray/initialize2DArray.test.js - -ok 758 — initialize2DArray is a Function -ok 759 — Initializes a 2D array of given width and height and value ->>>>>>> master - -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) - -<<<<<<< HEAD -# PASS test\speechSynthesis\speechSynthesis.test.js - -ok 514 — speechSynthesis is a Function - -# PASS test\sortedLastIndexBy\sortedLastIndexBy.test.js - -ok 515 — sortedLastIndexBy is a Function -ok 516 — Returns the highest index to insert the element without messing up the list order - -# PASS test\when\when.test.js - -ok 517 — when is a Function -ok 518 — Returns the proper result -ok 519 — Returns the proper result - -# PASS test\drop\drop.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 - -# PASS test\pullAtValue\pullAtValue.test.js - -ok 524 — pullAtValue is a Function -ok 525 — Pulls the specified values -ok 526 — Pulls the specified values - -# PASS test\httpsRedirect\httpsRedirect.test.js - -ok 527 — httpsRedirect is a Function - -# PASS test\symmetricDifferenceBy\symmetricDifferenceBy.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 - -# PASS test\compact\compact.test.js - -ok 530 — compact is a Function -ok 531 — Removes falsey values from an array - -# PASS test\pluralize\pluralize.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 - -# PASS test\isSimilar\isSimilar.test.js - -ok 538 — isSimilar is a Function - -# PASS test\extendHex\extendHex.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 - -# PASS test\objectFromPairs\objectFromPairs.test.js - -ok 542 — objectFromPairs is a Function -ok 543 — Creates an object from the given key-value pairs. - -# PASS test\pullBy\pullBy.test.js - -ok 544 — pullBy is a Function -ok 545 — Pulls the specified values - -# PASS test\readFileLines\readFileLines.test.js - -ok 546 — readFileLines is a Function - -# PASS test\findLast\findLast.test.js - -ok 547 — findLast is a Function -ok 548 — Finds last element for which the given function returns true - -# PASS test\getDaysDiffBetweenDates\getDaysDiffBetweenDates.test.js - -ok 549 — getDaysDiffBetweenDates is a Function -ok 550 — Returns the difference in days between two dates - -# PASS test\omitBy\omitBy.test.js -======= -ok 760 — pullBy is a Function -ok 761 — Pulls the specified values - -# PASS test/attempt/attempt.test.js - -ok 762 — attempt is a Function -ok 763 — Returns a value -ok 764 — Returns an error - -# PASS test/stableSort/stableSort.test.js - -ok 765 — stableSort is a Function -ok 766 — Array is properly sorted +ok 752 — get is a Function +ok 753 — Retrieve a property indicated by the selector from an object. # PASS test/isNumber/isNumber.test.js -ok 767 — isNumber is a Function -ok 768 — passed argument is a number -ok 769 — passed argument is not a number +ok 754 — isNumber is a Function +ok 755 — passed argument is a number +ok 756 — passed argument is not a number -# PASS test/objectToPairs/objectToPairs.test.js +# PASS test/attempt/attempt.test.js -ok 770 — objectToPairs is a Function -ok 771 — Creates an array of key-value pair arrays from an object. +ok 757 — attempt is a Function +ok 758 — Returns a value +ok 759 — Returns an error -# PASS test/objectFromPairs/objectFromPairs.test.js +# PASS test/initialize2DArray/initialize2DArray.test.js -ok 772 — objectFromPairs is a Function -ok 773 — Creates an object from the given key-value pairs. +ok 760 — initialize2DArray is a Function +ok 761 — Initializes a 2D array of given width and height and value -# PASS test/toDecimalMark/toDecimalMark.test.js +# PASS test/xProd/xProd.test.js -ok 774 — toDecimalMark is a Function -ok 775 — convert a float-point arithmetic to the Decimal mark form +ok 762 — xProd is a Function +ok 763 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] -# PASS test/escapeHTML/escapeHTML.test.js +# PASS test/isBoolean/isBoolean.test.js -ok 776 — escapeHTML is a Function -ok 777 — Escapes a string for use in HTML +ok 764 — isBoolean is a Function +ok 765 — passed value is not a boolean +ok 766 — passed value is not a boolean + +# PASS test/unflattenObject/unflattenObject.test.js + +ok 767 — unflattenObject is a Function +ok 768 — Unflattens an object with the paths for keys + +# PASS test/stableSort/stableSort.test.js + +ok 769 — stableSort is a Function +ok 770 — Array is properly sorted + +# PASS test/pullBy/pullBy.test.js + +ok 771 — pullBy is a Function +ok 772 — Pulls the specified values # PASS test/forEachRight/forEachRight.test.js -ok 778 — forEachRight is a Function -ok 779 — Iterates over the array in reverse - -# PASS test/stripHTMLTags/stripHTMLTags.test.js - -ok 780 — stripHTMLTags is a Function -ok 781 — Removes HTML tags +ok 773 — forEachRight is a Function +ok 774 — Iterates over the array in reverse # PASS test/isArray/isArray.test.js -ok 782 — isArray is a Function -ok 783 — passed value is an array -ok 784 — passed value is not an array +ok 775 — isArray is a Function +ok 776 — passed value is an array +ok 777 — passed value is not an array -# PASS test/filterNonUnique/filterNonUnique.test.js +# PASS test/objectFromPairs/objectFromPairs.test.js -ok 785 — filterNonUnique is a Function -ok 786 — Filters out the non-unique values in an array - -# PASS test/countOccurrences/countOccurrences.test.js - -ok 787 — countOccurrences is a Function -ok 788 — Counts the occurrences of a value in an array +ok 778 — objectFromPairs is a Function +ok 779 — Creates an object from the given key-value pairs. # PASS test/unfold/unfold.test.js -ok 789 — unfold is a Function -ok 790 — Works with a given function, producing an array - -# PASS test/forOwn/forOwn.test.js - -ok 791 — forOwn is a Function -ok 792 — Iterates over an element's key-value pairs +ok 780 — unfold is a Function +ok 781 — Works with a given function, producing an array # PASS test/findLastIndex/findLastIndex.test.js -ok 793 — findLastIndex is a Function -ok 794 — Finds last index for which the given function returns true ->>>>>>> master +ok 782 — findLastIndex is a Function +ok 783 — Finds last index for which the given function returns true -ok 551 — omitBy is a Function -ok 552 — Creates an object composed of the properties the given function returns falsey for +# PASS test/toDecimalMark/toDecimalMark.test.js -<<<<<<< HEAD -# PASS test\getMeridiemSuffixOfInteger\getMeridiemSuffixOfInteger.test.js +ok 784 — toDecimalMark is a Function +ok 785 — convert a float-point arithmetic to the Decimal mark form -ok 553 — getMeridiemSuffixOfInteger is a Function +# PASS test/escapeHTML/escapeHTML.test.js -# PASS test\flatten\flatten.test.js +ok 786 — escapeHTML is a Function +ok 787 — Escapes a string for use in HTML -ok 554 — flatten is a Function -ok 555 — Flattens an array -ok 556 — Flattens an array +# PASS test/stripHTMLTags/stripHTMLTags.test.js -# PASS test\coalesceFactory\coalesceFactory.test.js +ok 788 — stripHTMLTags is a Function +ok 789 — Removes HTML tags -ok 557 — coalesceFactory is a Function -ok 558 — Returns a customized coalesce function +# PASS test/countOccurrences/countOccurrences.test.js -# PASS test\sample\sample.test.js +ok 790 — countOccurrences is a Function +ok 791 — Counts the occurrences of a value in an array -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 +# PASS test/objectToPairs/objectToPairs.test.js -# PASS test\createEventHub\createEventHub.test.js - -ok 563 — createEventHub is a Function - -# PASS test\lowercaseKeys\lowercaseKeys.test.js - -ok 564 — lowercaseKeys is a Function -ok 565 — Lowercases object keys -ok 566 — Does not mutate original object - -# PASS test\functions\functions.test.js - -ok 567 — functions is a Function -ok 568 — Returns own methods -ok 569 — Returns own and inherited methods - -# PASS test\randomHexColorCode\randomHexColorCode.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 - -# PASS test\isAbsoluteURL\isAbsoluteURL.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 - -# PASS test\round\round.test.js -======= -ok 795 — takeRightWhile is a Function -ok 796 — Removes elements until the function returns true - -# PASS test/curry/curry.test.js - -ok 797 — curry is a Function -ok 798 — curries a Math.pow -ok 799 — curries a Math.min +ok 792 — objectToPairs is a Function +ok 793 — Creates an array of key-value pair arrays from an object. # PASS test/ary/ary.test.js -ok 800 — ary is a Function -ok 801 — Discards arguments with index >=n +ok 794 — ary is a Function +ok 795 — Discards arguments with index >=n -# PASS test/dropWhile/dropWhile.test.js +# PASS test/filterNonUnique/filterNonUnique.test.js -ok 802 — dropWhile is a Function -ok 803 — Removes elements in an array until the passed function returns true. +ok 796 — filterNonUnique is a Function +ok 797 — Filters out the non-unique values in an array -# PASS test/pick/pick.test.js +# PASS test/forOwn/forOwn.test.js -ok 804 — pick is a Function -ok 805 — Picks the key-value pairs corresponding to the given keys from an object. +ok 798 — forOwn is a Function +ok 799 — Iterates over an element's key-value pairs -# PASS test/compact/compact.test.js +# PASS test/curry/curry.test.js -ok 806 — compact is a Function -ok 807 — Removes falsey values from an array +ok 800 — curry is a Function +ok 801 — curries a Math.pow +ok 802 — curries a Math.min # PASS test/removeNonASCII/removeNonASCII.test.js -ok 808 — removeNonASCII is a Function -ok 809 — Removes non-ASCII characters +ok 803 — removeNonASCII is a Function +ok 804 — Removes non-ASCII characters -# PASS test/isNull/isNull.test.js +# PASS test/takeRightWhile/takeRightWhile.test.js -ok 810 — isNull is a Function -ok 811 — passed argument is a null -ok 812 — passed argument is a null +ok 805 — takeRightWhile is a Function +ok 806 — Removes elements until the function returns true -# PASS test/clampNumber/clampNumber.test.js +# PASS test/pick/pick.test.js -ok 813 — clampNumber is a Function -ok 814 — Clamps num within the inclusive range specified by the boundary values a and b +ok 807 — pick is a Function +ok 808 — Picks the key-value pairs corresponding to the given keys from an object. + +# PASS test/truncateString/truncateString.test.js + +ok 809 — truncateString is a Function +ok 810 — Truncates a "boomerang" up to a specified length. # PASS test/delay/delay.test.js -ok 815 — delay is a Function -ok 816 — Works as expecting, passing arguments properly ->>>>>>> master - -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 - -# PASS test\fibonacciUntilNum\fibonacciUntilNum.test.js - -<<<<<<< HEAD -ok 589 — fibonacciUntilNum is a Function - -# PASS test\recordAnimationFrames\recordAnimationFrames.test.js - -ok 590 — recordAnimationFrames is a Function - -# PASS test\chainAsync\chainAsync.test.js -======= -# PASS test/remove/remove.test.js - -ok 819 — remove is a Function -ok 820 — Removes elements from an array for which the given function returns false ->>>>>>> master - -ok 591 — chainAsync is a Function -ok 592 — Calls all functions in an array - -<<<<<<< HEAD -# PASS test\geometricProgression\geometricProgression.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 - -# PASS test\difference\difference.test.js - -ok 597 — difference is a Function -ok 598 — Returns the difference between two arrays - -# PASS test\shuffle\shuffle.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 - -# PASS test\takeWhile\takeWhile.test.js - -ok 604 — takeWhile is a Function -ok 605 — Removes elements until the function returns true - -# PASS test\isArrayLike\isArrayLike.test.js -======= -ok 821 — intersection is a Function -ok 822 — Returns a list of elements that exist in both arrays - -# PASS test/defaults/defaults.test.js - -ok 823 — defaults is a Function -ok 824 — Assigns default values for undefined properties - -# PASS test/takeWhile/takeWhile.test.js - -ok 825 — takeWhile is a Function -ok 826 — Removes elements until the function returns true - -# PASS test/over/over.test.js - -ok 827 — over is a Function -ok 828 — Applies given functions over multiple arguments +ok 811 — delay is a Function +ok 812 — Works as expecting, passing arguments properly # PASS test/omit/omit.test.js -ok 829 — omit is a Function -ok 830 — Omits the key-value pairs corresponding to the given keys from an object ->>>>>>> master +ok 813 — omit is a Function +ok 814 — Omits the key-value pairs corresponding to the given keys from an object -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 +# PASS test/remove/remove.test.js -<<<<<<< HEAD -# PASS test\decapitalize\decapitalize.test.js +ok 815 — remove is a Function +ok 816 — Removes elements from an array for which the given function returns false -ok 610 — decapitalize is a Function -ok 611 — Works with default parameter -ok 612 — Works with second parameter set to true +# PASS test/intersection/intersection.test.js -# PASS test\isValidJSON\isValidJSON.test.js -======= -ok 831 — similarity is a Function -ok 832 — Returns an array of elements that appear in both arrays. - -# PASS test/atob/atob.test.js - -ok 833 — atob is a Function -ok 834 — atob("Zm9vYmFy") equals "foobar" -ok 835 — atob("Z") returns "" ->>>>>>> master - -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 - -<<<<<<< HEAD -# PASS test\indexOfAll\indexOfAll.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 - -# PASS test\percentile\percentile.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. - -# PASS test\digitize\digitize.test.js -======= -ok 836 — findLast is a Function -ok 837 — Finds last element for which the given function returns true +ok 817 — intersection is a Function +ok 818 — Returns a list of elements that exist in both arrays # PASS test/parseCookie/parseCookie.test.js -ok 838 — parseCookie is a Function -ok 839 — Parses the cookie +ok 819 — parseCookie is a Function +ok 820 — Parses the cookie -# PASS test/escapeRegExp/escapeRegExp.test.js +# PASS test/isNull/isNull.test.js -ok 840 — escapeRegExp is a Function -ok 841 — Escapes a string to use in a regular expression +ok 821 — isNull is a Function +ok 822 — passed argument is a null +ok 823 — passed argument is a null -# PASS test/cloneRegExp/cloneRegExp.test.js +# PASS test/compact/compact.test.js -ok 842 — cloneRegExp is a Function -ok 843 — Clones regular expressions properly ->>>>>>> master +ok 824 — compact is a Function +ok 825 — Removes falsey values from an array -ok 622 — digitize is a Function -ok 623 — Converts a number to an array of digits +# PASS test/dropWhile/dropWhile.test.js -# PASS test\over\over.test.js +ok 826 — dropWhile is a Function +ok 827 — Removes elements in an array until the passed function returns true. -<<<<<<< HEAD -ok 624 — over is a Function -ok 625 — Applies given functions over multiple arguments +# PASS test/defaults/defaults.test.js -# PASS test\redirect\redirect.test.js +ok 828 — defaults is a Function +ok 829 — Assigns default values for undefined properties -ok 626 — redirect is a Function +# PASS test/atob/atob.test.js -# PASS test\bifurcateBy\bifurcateBy.test.js +ok 830 — atob is a Function +ok 831 — atob("Zm9vYmFy") equals "foobar" +ok 832 — atob("Z") returns "" -ok 627 — bifurcateBy is a Function -ok 628 — Splits the collection into two groups +# PASS test/clampNumber/clampNumber.test.js -# PASS test\reject\reject.test.js +ok 833 — clampNumber is a Function +ok 834 — Clamps num within the inclusive range specified by the boundary values a and b -ok 629 — reject is a Function -ok 630 — Works with numbers -ok 631 — Works with strings +# PASS test/similarity/similarity.test.js -# PASS test\hammingDistance\hammingDistance.test.js +ok 835 — similarity is a Function +ok 836 — Returns an array of elements that appear in both arrays. -ok 632 — hammingDistance is a Function -ok 633 — retuns hamming disance between 2 values +# PASS test/over/over.test.js -# PASS test\isWeakSet\isWeakSet.test.js -======= -# PASS test/longestItem/longestItem.test.js +ok 837 — over is a Function +ok 838 — Applies given functions over multiple arguments -ok 847 — longestItem is a Function -ok 848 — Returns the longest object +# PASS test/findLast/findLast.test.js -# PASS test/coalesce/coalesce.test.js +ok 839 — findLast is a Function +ok 840 — Finds last element for which the given function returns true -ok 849 — coalesce is a Function -ok 850 — Returns the first non-null/undefined argument +# PASS test/takeWhile/takeWhile.test.js -# PASS test/pull/pull.test.js - -ok 851 — pull is a Function -ok 852 — Pulls the specified values - -# PASS test/serializeCookie/serializeCookie.test.js - -ok 853 — serializeCookie is a Function -ok 854 — Serializes the cookie - -# PASS test/times/times.test.js - -ok 855 — times is a Function -ok 856 — Runs a function the specified amount of times ->>>>>>> master - -ok 634 — isWeakSet is a Function - -# PASS test\forOwn\forOwn.test.js - -<<<<<<< HEAD -ok 635 — forOwn is a Function -ok 636 — Iterates over an element's key-value pairs - -# PASS test\bindAll\bindAll.test.js - -ok 637 — bindAll is a Function -ok 638 — Binds to an object context - -# PASS test\throttle\throttle.test.js - -ok 639 — throttle is a Function - -# PASS test\stringPermutations\stringPermutations.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 - -# PASS test\sortedIndexBy\sortedIndexBy.test.js - -ok 644 — sortedIndexBy is a Function -ok 645 — Returns the lowest index to insert the element without messing up the list order - -# PASS test\minN\minN.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 - -# PASS test\takeRightWhile\takeRightWhile.test.js - -ok 649 — takeRightWhile is a Function -ok 650 — Removes elements until the function returns true - -# PASS test\observeMutations\observeMutations.test.js - -ok 651 — observeMutations is a Function - -# PASS test\zipObject\zipObject.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 - -# PASS test\negate\negate.test.js - -ok 662 — negate is a Function -ok 663 — Negates a predicate function - -# PASS test\omit\omit.test.js - -ok 664 — omit is a Function -ok 665 — Omits the key-value pairs corresponding to the given keys from an object - -# PASS test\flattenObject\flattenObject.test.js - -ok 666 — flattenObject is a Function -ok 667 — Flattens an object with the paths for keys -ok 668 — Works with arrays - -# PASS test\howManyTimes\howManyTimes.test.js - -ok 669 — howManyTimes is a Function - -# PASS test\stripHTMLTags\stripHTMLTags.test.js - -ok 670 — stripHTMLTags is a Function -ok 671 — Removes HTML tags - -# PASS test\union\union.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 - -# PASS test\inRange\inRange.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 - -# PASS test\toSafeInteger\toSafeInteger.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 - -# PASS test\formatDuration\formatDuration.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 - -# PASS test\remove\remove.test.js - -ok 704 — remove is a Function -ok 705 — Removes elements from an array for which the given function returns false - -# PASS test\isArrayBuffer\isArrayBuffer.test.js - -ok 706 — isArrayBuffer is a Function - -# PASS test\all\all.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 - -# PASS test\times\times.test.js - -ok 716 — times is a Function -ok 717 — Runs a function the specified amount of times - -# PASS test\matches\matches.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 - -# PASS test\xProd\xProd.test.js - -ok 721 — xProd is a Function -ok 722 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] - -# PASS test\initializeNDArray\initializeNDArray.test.js - -ok 723 — initializeNDArray is a Function - -# PASS test\findLastKey\findLastKey.test.js - -ok 724 — findLastKey is a Function -ok 725 — eturns the appropriate key - -# PASS test\defaults\defaults.test.js - -ok 726 — defaults is a Function -ok 727 — Assigns default values for undefined properties - -# PASS test\reverseString\reverseString.test.js - -ok 728 — reverseString is a Function -ok 729 — Reverses a string. - -# PASS test\words\words.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 - -# PASS test\isTravisCI\isTravisCI.test.js - -ok 740 — isTravisCI is a Function -ok 741 — Not running on Travis, correctly evaluates - -# PASS test\isAnagram\isAnagram.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 - -# PASS test\longestItem\longestItem.test.js - -ok 747 — longestItem is a Function -ok 748 — Returns the longest object - -# PASS test\toHash\toHash.test.js - -ok 749 — toHash is a Function - -# PASS test\attempt\attempt.test.js - -ok 750 — attempt is a Function -ok 751 — Returns a value -ok 752 — Returns an error - -# PASS test\last\last.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 - -# PASS test\isMap\isMap.test.js -======= -# PASS test/unary/unary.test.js - -ok 859 — unary is a Function -ok 860 — Discards arguments after the first one +ok 841 — takeWhile is a Function +ok 842 — Removes elements until the function returns true # PASS test/powerset/powerset.test.js -ok 861 — powerset is a Function -ok 862 — Returns the powerset of a given array of numbers. +ok 843 — powerset is a Function +ok 844 — Returns the powerset of a given array of numbers. + +# PASS test/cloneRegExp/cloneRegExp.test.js + +ok 845 — cloneRegExp is a Function +ok 846 — Clones regular expressions properly + +# PASS test/pull/pull.test.js + +ok 847 — pull is a Function +ok 848 — Pulls the specified values + +# PASS test/hammingDistance/hammingDistance.test.js + +ok 849 — hammingDistance is a Function +ok 850 — retuns hamming disance between 2 values + +# PASS test/escapeRegExp/escapeRegExp.test.js + +ok 851 — escapeRegExp is a Function +ok 852 — Escapes a string to use in a regular expression + +# PASS test/times/times.test.js + +ok 853 — times is a Function +ok 854 — Runs a function the specified amount of times # PASS test/fibonacci/fibonacci.test.js -ok 863 — fibonacci is a Function -ok 864 — Generates an array, containing the Fibonacci sequence +ok 855 — fibonacci is a Function +ok 856 — Generates an array, containing the Fibonacci sequence -# PASS test/everyNth/everyNth.test.js +# PASS test/tail/tail.test.js -ok 865 — everyNth is a Function -ok 866 — Returns every nth element in an array +ok 857 — tail is a Function +ok 858 — Returns tail +ok 859 — Returns tail + +# PASS test/isEven/isEven.test.js + +ok 860 — isEven is a Function +ok 861 — 4 is even number +ok 862 — 5 is not an even number + +# PASS test/longestItem/longestItem.test.js + +ok 863 — longestItem is a Function +ok 864 — Returns the longest object + +# PASS test/serializeCookie/serializeCookie.test.js + +ok 865 — serializeCookie is a Function +ok 866 — Serializes the cookie + +# PASS test/coalesce/coalesce.test.js + +ok 867 — coalesce is a Function +ok 868 — Returns the first non-null/undefined argument # PASS test/distance/distance.test.js -ok 867 — distance is a Function -ok 868 — Calculates the distance between two points - -# PASS test/RGBToHex/RGBToHex.test.js - -ok 869 — RGBToHex is a Function -ok 870 — Converts the values of RGB components to a color code. +ok 869 — distance is a Function +ok 870 — Calculates the distance between two points # PASS test/primes/primes.test.js ok 871 — primes is a Function ok 872 — Generates primes up to a given number, using the Sieve of Eratosthenes. -# PASS test/deepFlatten/deepFlatten.test.js - -ok 873 — deepFlatten is a Function -ok 874 — Deep flattens an array - -# PASS test/initial/initial.test.js - -ok 875 — initial is a Function -ok 876 — Returns all the elements of an array except the last one - -# PASS test/negate/negate.test.js - -ok 877 — negate is a Function -ok 878 — Negates a predicate function - # PASS test/radsToDegrees/radsToDegrees.test.js -ok 879 — radsToDegrees is a Function -ok 880 — Returns the appropriate value - -# PASS test/tail/tail.test.js - -ok 881 — tail is a Function -ok 882 — Returns tail -ok 883 — Returns tail - -# PASS test/difference/difference.test.js - -ok 884 — difference is a Function -ok 885 — Returns the difference between two arrays - -# PASS test/unionBy/unionBy.test.js - -ok 886 — unionBy is a Function -ok 887 — Produces the appropriate results - -# PASS test/isDivisible/isDivisible.test.js - -ok 888 — isDivisible is a Function -ok 889 — The number 6 is divisible by 3 - -# PASS test/mapKeys/mapKeys.test.js - -ok 890 — mapKeys is a Function -ok 891 — Maps keys - -# PASS test/isSymbol/isSymbol.test.js - -ok 892 — isSymbol is a Function -ok 893 — Checks if the given argument is a symbol - -# PASS test/isUndefined/isUndefined.test.js - -ok 894 — isUndefined is a Function -ok 895 — Returns true for undefined +ok 873 — radsToDegrees is a Function +ok 874 — Returns the appropriate value # PASS test/sleep/sleep.test.js -ok 896 — sleep is a Function -ok 897 — Works as expected +ok 875 — sleep is a Function +ok 876 — Works as expected + +# PASS test/difference/difference.test.js + +ok 877 — difference is a Function +ok 878 — Returns the difference between two arrays + +# PASS test/initial/initial.test.js + +ok 879 — initial is a Function +ok 880 — Returns all the elements of an array except the last one + +# PASS test/deepFlatten/deepFlatten.test.js + +ok 881 — deepFlatten is a Function +ok 882 — Deep flattens an array + +# PASS test/RGBToHex/RGBToHex.test.js + +ok 883 — RGBToHex is a Function +ok 884 — Converts the values of RGB components to a color code. + +# PASS test/unary/unary.test.js + +ok 885 — unary is a Function +ok 886 — Discards arguments after the first one + +# PASS test/negate/negate.test.js + +ok 887 — negate is a Function +ok 888 — Negates a predicate function + +# PASS test/mapKeys/mapKeys.test.js + +ok 889 — mapKeys is a Function +ok 890 — Maps keys + +# PASS test/everyNth/everyNth.test.js + +ok 891 — everyNth is a Function +ok 892 — Returns every nth element in an array + +# PASS test/unionBy/unionBy.test.js + +ok 893 — unionBy is a Function +ok 894 — Produces the appropriate results # PASS test/reverseString/reverseString.test.js -ok 898 — reverseString is a Function -ok 899 — Reverses a string. +ok 895 — reverseString is a Function +ok 896 — Reverses a string. -# PASS test/getType/getType.test.js +# PASS test/isDivisible/isDivisible.test.js -ok 900 — getType is a Function -ok 901 — Returns the native type of a value +ok 897 — isDivisible is a Function +ok 898 — The number 6 is divisible by 3 -# PASS test/debounce/debounce.test.js +# PASS test/isUndefined/isUndefined.test.js -ok 902 — debounce is a Function -ok 903 — Works as expected +ok 899 — isUndefined is a Function +ok 900 — Returns true for undefined -# PASS test/btoa/btoa.test.js +# PASS test/isSymbol/isSymbol.test.js -ok 904 — btoa is a Function -ok 905 — btoa("foobar") equals "Zm9vYmFy" - -# PASS test/sum/sum.test.js - -ok 906 — sum is a Function -ok 907 — Returns the sum of two or more numbers/arrays. - -# PASS test/sdbm/sdbm.test.js - -ok 908 — sdbm is a Function -ok 909 — Hashes the input string into a whole number. - -# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js - -ok 910 — UUIDGeneratorBrowser is a Function - -# PASS test/call/call.test.js - -ok 911 — call is a Function -ok 912 — Calls function on given object - -# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js - -ok 913 — initializeArrayWithRangeRight is a Function - -# PASS test/isPrime/isPrime.test.js - -ok 914 — isPrime is a Function -ok 915 — passed number is a prime - -# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js - -ok 916 — isBrowserTabFocused is a Function +ok 901 — isSymbol is a Function +ok 902 — Checks if the given argument is a symbol # PASS test/digitize/digitize.test.js -ok 917 — digitize is a Function -ok 918 — Converts a number to an array of digits +ok 903 — digitize is a Function +ok 904 — Converts a number to an array of digits + +# PASS test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.test.js + +ok 905 — initializeArrayWithRangeRight is a Function + +# PASS test/getType/getType.test.js + +ok 906 — getType is a Function +ok 907 — Returns the native type of a value + +# PASS test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.test.js + +ok 908 — getMeridiemSuffixOfInteger is a Function + +# PASS test/isPrime/isPrime.test.js + +ok 909 — isPrime is a Function +ok 910 — passed number is a prime # PASS test/getColonTimeFromDate/getColonTimeFromDate.test.js -ok 919 — getColonTimeFromDate is a Function +ok 911 — getColonTimeFromDate is a Function + +# PASS test/call/call.test.js + +ok 912 — call is a Function +ok 913 — Calls function on given object + +# PASS test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.test.js + +ok 914 — UUIDGeneratorBrowser is a Function # PASS test/fibonacciCountUntilNum/fibonacciCountUntilNum.test.js -ok 920 — fibonacciCountUntilNum is a Function +ok 915 — fibonacciCountUntilNum is a Function -# PASS test/recordAnimationFrames/recordAnimationFrames.test.js +# PASS test/sdbm/sdbm.test.js -ok 921 — recordAnimationFrames is a Function - -# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js - -ok 922 — fibonacciUntilNum is a Function ->>>>>>> master - -ok 762 — isMap is a Function - -# PASS test\pickBy\pickBy.test.js - -<<<<<<< HEAD -ok 763 — pickBy is a Function -ok 764 — Creates an object composed of the properties the given function returns truthy for. - -# PASS test\unzip\unzip.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]] - -# PASS test\intersectionBy\intersectionBy.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 - -# PASS test\stableSort\stableSort.test.js - -ok 770 — stableSort is a Function -ok 771 — Array is properly sorted - -# PASS test\parseCookie\parseCookie.test.js - -ok 772 — parseCookie is a Function -ok 773 — Parses the cookie - -# PASS test\pipeAsyncFunctions\pipeAsyncFunctions.test.js - -ok 774 — pipeAsyncFunctions is a Function -ok 775 — pipeAsyncFunctions result should be 15 - -# PASS test\bindKey\bindKey.test.js - -ok 776 — bindKey is a Function -ok 777 — Binds function to an object context - -# PASS test\symmetricDifference\symmetricDifference.test.js - -ok 778 — symmetricDifference is a Function -ok 779 — Returns the symmetric difference between two arrays. - -# PASS test\toDecimalMark\toDecimalMark.test.js -======= -# PASS test/isArmstrongNumber/isArmstrongNumber.test.js - -ok 924 — isArmstrongNumber is a Function - -# PASS test/getScrollPosition/getScrollPosition.test.js - -ok 925 — getScrollPosition is a Function +ok 916 — sdbm is a Function +ok 917 — Hashes the input string into a whole number. # PASS test/elementIsVisibleInViewport/elementIsVisibleInViewport.test.js -ok 926 — elementIsVisibleInViewport is a Function +ok 918 — elementIsVisibleInViewport is a Function -# PASS test/onUserInputChange/onUserInputChange.test.js +# PASS test/sum/sum.test.js -ok 927 — onUserInputChange is a Function +ok 919 — sum is a Function +ok 920 — Returns the sum of two or more numbers/arrays. + +# PASS test/debounce/debounce.test.js + +ok 921 — debounce is a Function +ok 922 — Works as expected + +# PASS test/btoa/btoa.test.js + +ok 923 — btoa is a Function +ok 924 — btoa("foobar") equals "Zm9vYmFy" + +# PASS test/initializeNDArray/initializeNDArray.test.js + +ok 925 — initializeNDArray is a Function + +# PASS test/recordAnimationFrames/recordAnimationFrames.test.js + +ok 926 — recordAnimationFrames is a Function + +# PASS test/isBrowserTabFocused/isBrowserTabFocused.test.js + +ok 927 — isBrowserTabFocused is a Function # PASS test/detectDeviceType/detectDeviceType.test.js ok 928 — detectDeviceType is a Function -# PASS test/levenshteinDistance/levenshteinDistance.test.js +# PASS test/isArmstrongNumber/isArmstrongNumber.test.js -ok 929 — levenshteinDistance is a Function +ok 929 — isArmstrongNumber is a Function -# PASS test/speechSynthesis/speechSynthesis.test.js +# PASS test/fibonacciUntilNum/fibonacciUntilNum.test.js -ok 930 — speechSynthesis is a Function +ok 930 — fibonacciUntilNum is a Function -# PASS test/initializeNDArray/initializeNDArray.test.js +# PASS test/observeMutations/observeMutations.test.js -ok 931 — initializeNDArray is a Function ->>>>>>> master +ok 931 — observeMutations is a Function -ok 780 — toDecimalMark is a Function -ok 781 — convert a float-point arithmetic to the Decimal mark form +# PASS test/onUserInputChange/onUserInputChange.test.js -# PASS test\httpPost\httpPost.test.js - -<<<<<<< HEAD -ok 782 — httpPost is a Function - -# PASS test\primes\primes.test.js - -ok 783 — primes is a Function -ok 784 — Generates primes up to a given number, using the Sieve of Eratosthenes. - -# PASS test\removeVowels\removeVowels.test.js - -ok 785 — removeVowels is a Function - -# PASS test\unflattenObject\unflattenObject.test.js - -ok 786 — unflattenObject is a Function -ok 787 — Unflattens an object with the paths for keys - -# PASS test\hexToRGB\hexToRGB.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 - -# PASS test\findKey\findKey.test.js -======= -# PASS test/nodeListToArray/nodeListToArray.test.js - -ok 933 — nodeListToArray is a Function - -# PASS test/arrayToHtmlList/arrayToHtmlList.test.js - -ok 934 — arrayToHtmlList is a Function - -# PASS test/httpsRedirect/httpsRedirect.test.js - -ok 935 — httpsRedirect is a Function - -# PASS test/createEventHub/createEventHub.test.js - -ok 936 — createEventHub is a Function - -# PASS test/mostPerformant/mostPerformant.test.js - -ok 937 — mostPerformant is a Function ->>>>>>> master - -ok 792 — findKey is a Function -ok 793 — Returns the appropriate key - -# PASS test\UUIDGeneratorBrowser\UUIDGeneratorBrowser.test.js - -<<<<<<< HEAD -ok 794 — UUIDGeneratorBrowser is a Function - -# PASS test\palindrome\palindrome.test.js - -ok 795 — palindrome is a Function -ok 796 — Given string is a palindrome -ok 797 — Given string is not a palindrome - -# PASS test\isPrimitive\isPrimitive.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 - -# PASS test\getScrollPosition\getScrollPosition.test.js - -ok 810 — getScrollPosition is a Function - -# PASS test\dropRight\dropRight.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 - -# PASS test\getStyle\getStyle.test.js - -ok 815 — getStyle is a Function - -# PASS test\converge\converge.test.js - -ok 816 — converge is a Function -ok 817 — Produces the average of the array -ok 818 — Produces the strange concatenation - -# PASS test\take\take.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. - -# PASS test\sleep\sleep.test.js - -ok 822 — sleep is a Function -ok 823 — Works as expected - -# PASS test\escapeRegExp\escapeRegExp.test.js - -ok 824 — escapeRegExp is a Function -ok 825 — Escapes a string to use in a regular expression - -# PASS test\bind\bind.test.js - -ok 826 — bind is a Function -ok 827 — Binds to an object context - -# PASS test\capitalizeEveryWord\capitalizeEveryWord.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 - -# PASS test\cleanObj\cleanObj.test.js - -ok 832 — cleanObj is a Function -ok 833 — Removes any properties except the ones specified from a JSON object - -# PASS test\symmetricDifferenceWith\symmetricDifferenceWith.test.js - -ok 834 — symmetricDifferenceWith is a Function -ok 835 — Returns the symmetric difference between two arrays, using a provided function as a comparator - -# PASS test\arrayToHtmlList\arrayToHtmlList.test.js - -ok 836 — arrayToHtmlList is a Function - -# PASS test\standardDeviation\standardDeviation.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 - -# PASS test\cloneRegExp\cloneRegExp.test.js - -ok 840 — cloneRegExp is a Function -ok 841 — Clones regular expressions properly - -# PASS test\binarySearch\binarySearch.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 - -# PASS test\capitalize\capitalize.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 - -# PASS test\shallowClone\shallowClone.test.js - -ok 852 — shallowClone is a Function -ok 853 — Shallow cloning works -ok 854 — Does not clone deeply - -# PASS test\partialRight\partialRight.test.js - -ok 855 — partialRight is a Function -ok 856 — Appends arguments - -# PASS test\createElement\createElement.test.js - -ok 857 — createElement is a Function - -# PASS test\escapeHTML\escapeHTML.test.js - -ok 858 — escapeHTML is a Function -ok 859 — Escapes a string for use in HTML - -# PASS test\solveRPN\solveRPN.test.js - -ok 860 — solveRPN is a Function - -# PASS test\truncateString\truncateString.test.js - -ok 861 — truncateString is a Function -ok 862 — Truncates a "boomerang" up to a specified length. - -# PASS test\prefix\prefix.test.js - -ok 863 — prefix is a Function - -# PASS test\intersection\intersection.test.js -======= -# PASS test/copyToClipboard/copyToClipboard.test.js - -ok 939 — copyToClipboard is a Function +ok 932 — onUserInputChange is a Function # PASS test/elementContains/elementContains.test.js -ok 940 — elementContains is a Function +ok 933 — elementContains is a Function -# PASS test/removeVowels/removeVowels.test.js +# PASS test/getScrollPosition/getScrollPosition.test.js -ok 941 — removeVowels is a Function +ok 934 — getScrollPosition is a Function + +# PASS test/nodeListToArray/nodeListToArray.test.js + +ok 935 — nodeListToArray is a Function + +# PASS test/levenshteinDistance/levenshteinDistance.test.js + +ok 936 — levenshteinDistance is a Function + +# PASS test/speechSynthesis/speechSynthesis.test.js + +ok 937 — speechSynthesis is a Function + +# PASS test/arrayToHtmlList/arrayToHtmlList.test.js + +ok 938 — arrayToHtmlList is a Function + +# PASS test/isArrayBuffer/isArrayBuffer.test.js + +ok 939 — isArrayBuffer is a Function + +# PASS test/copyToClipboard/copyToClipboard.test.js + +ok 940 — copyToClipboard is a Function + +# PASS test/mostPerformant/mostPerformant.test.js + +ok 941 — mostPerformant is a Function + +# PASS test/createEventHub/createEventHub.test.js + +ok 942 — createEventHub is a Function # PASS test/createElement/createElement.test.js -ok 942 — createElement is a Function +ok 943 — createElement is a Function -# PASS test/readFileLines/readFileLines.test.js +# PASS test/httpsRedirect/httpsRedirect.test.js -ok 943 — readFileLines is a Function - -# PASS test/triggerEvent/triggerEvent.test.js - -ok 944 — triggerEvent is a Function +ok 944 — httpsRedirect is a Function # PASS test/smoothScroll/smoothScroll.test.js ok 945 — smoothScroll is a Function -# PASS test/isTypedArray/isTypedArray.test.js - -ok 946 — isTypedArray is a Function - -# PASS test/toggleClass/toggleClass.test.js - -ok 947 — toggleClass is a Function - -# PASS test/insertBefore/insertBefore.test.js - -ok 948 — insertBefore is a Function - -# PASS test/countVowels/countVowels.test.js - -ok 949 — countVowels is a Function - # PASS test/bottomVisible/bottomVisible.test.js -ok 950 — bottomVisible is a Function - -# PASS test/httpDelete/httpDelete.test.js - -ok 951 — httpDelete is a Function - -# PASS test/JSONToFile/JSONToFile.test.js - -ok 952 — JSONToFile is a Function +ok 946 — bottomVisible is a Function # PASS test/howManyTimes/howManyTimes.test.js -ok 953 — howManyTimes is a Function +ok 947 — howManyTimes is a Function -# PASS test/timeTaken/timeTaken.test.js +# PASS test/triggerEvent/triggerEvent.test.js -ok 954 — timeTaken is a Function +ok 948 — triggerEvent is a Function -# PASS test/insertAfter/insertAfter.test.js +# PASS test/isTypedArray/isTypedArray.test.js -ok 955 — insertAfter is a Function +ok 949 — isTypedArray is a Function -# PASS test/JSONToDate/JSONToDate.test.js +# PASS test/insertBefore/insertBefore.test.js -ok 956 — JSONToDate is a Function +ok 950 — insertBefore is a Function -# PASS test/isWeakMap/isWeakMap.test.js +# PASS test/readFileLines/readFileLines.test.js -ok 957 — isWeakMap is a Function +ok 951 — readFileLines is a Function -# PASS test/isWeakSet/isWeakSet.test.js +# PASS test/countVowels/countVowels.test.js -ok 958 — isWeakSet is a Function +ok 952 — countVowels is a Function -# PASS test/isBrowser/isBrowser.test.js +# PASS test/removeVowels/removeVowels.test.js -ok 959 — isBrowser is a Function - -# PASS test/isSimilar/isSimilar.test.js - -ok 960 — isSimilar is a Function - -# PASS test/setStyle/setStyle.test.js - -ok 961 — setStyle is a Function +ok 953 — removeVowels is a Function # PASS test/hashBrowser/hashBrowser.test.js -ok 962 — hashBrowser is a Function +ok 954 — hashBrowser is a Function + +# PASS test/toggleClass/toggleClass.test.js + +ok 955 — toggleClass is a Function # PASS test/scrollToTop/scrollToTop.test.js -ok 963 — scrollToTop is a Function +ok 956 — scrollToTop is a Function + +# PASS test/JSONToFile/JSONToFile.test.js + +ok 957 — JSONToFile is a Function # PASS test/currentURL/currentURL.test.js -ok 964 — currentURL is a Function ->>>>>>> master +ok 958 — currentURL is a Function -ok 864 — intersection is a Function -ok 865 — Returns a list of elements that exist in both arrays +# PASS test/JSONToDate/JSONToDate.test.js -# PASS test\toOrdinalSuffix\toOrdinalSuffix.test.js +ok 959 — JSONToDate is a Function -<<<<<<< HEAD -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 +# PASS test/isWeakMap/isWeakMap.test.js -# PASS test\zipWith\zipWith.test.js +ok 960 — isWeakMap is a Function -ok 871 — zipWith is a Function +# PASS test/insertAfter/insertAfter.test.js -# PASS test\none\none.test.js +ok 961 — insertAfter is a Function -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 +# PASS test/httpDelete/httpDelete.test.js -# PASS test\insertAfter\insertAfter.test.js +ok 962 — httpDelete is a Function -ok 877 — insertAfter is a Function +# PASS test/timeTaken/timeTaken.test.js -# PASS test\yesNo\yesNo.test.js +ok 963 — timeTaken is a Function -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 +# PASS test/isBrowser/isBrowser.test.js -# PASS test\deepFlatten\deepFlatten.test.js +ok 964 — isBrowser is a Function -ok 891 — deepFlatten is a Function -ok 892 — Deep flattens an array +# PASS test/hasClass/hasClass.test.js -# PASS test\matchesWith\matchesWith.test.js +ok 965 — hasClass is a Function -ok 893 — matchesWith is a Function -ok 894 — Returns true for two objects with similar values, based on the provided function +# PASS test/isSimilar/isSimilar.test.js -# PASS test\URLJoin\URLJoin.test.js +ok 966 — isSimilar is a Function -ok 895 — URLJoin is a Function -ok 896 — Returns proper URL -ok 897 — Returns proper URL +# PASS test/isWeakSet/isWeakSet.test.js -# PASS test\get\get.test.js +ok 967 — isWeakSet is a Function -ok 898 — get is a Function -ok 899 — Retrieve a property indicated by the selector from an object. +# PASS test/setStyle/setStyle.test.js -# PASS test\fibonacci\fibonacci.test.js - -ok 900 — fibonacci is a Function -ok 901 — Generates an array, containing the Fibonacci sequence - -# PASS test\unfold\unfold.test.js - -ok 902 — unfold is a Function -ok 903 — Works with a given function, producing an array - -# PASS test\sdbm\sdbm.test.js - -ok 904 — sdbm is a Function -ok 905 — Hashes the input string into a whole number. - -# PASS test\initialize2DArray\initialize2DArray.test.js - -ok 906 — initialize2DArray is a Function -ok 907 — Initializes a 2D array of given width and height and value - -# PASS test\initial\initial.test.js -======= -# PASS test/runAsync/runAsync.test.js - -ok 966 — runAsync is a Function - -# PASS test/getStyle/getStyle.test.js - -ok 967 — getStyle is a Function +ok 968 — setStyle is a Function # PASS test/redirect/redirect.test.js -ok 968 — redirect is a Function - -# PASS test/isRegExp/isRegExp.test.js - -ok 969 — isRegExp is a Function - -# PASS test/hasFlags/hasFlags.test.js - -ok 970 — hasFlags is a Function - -# PASS test/counter/counter.test.js - -ok 971 — counter is a Function - -# PASS test/isMap/isMap.test.js - -ok 972 — isMap is a Function - -# PASS test/isSet/isSet.test.js - -ok 973 — isSet is a Function - -# PASS test/prefix/prefix.test.js - -ok 974 — prefix is a Function +ok 969 — redirect is a Function # PASS test/colorize/colorize.test.js -ok 975 — colorize is a Function +ok 970 — colorize is a Function -# PASS test/zipWith/zipWith.test.js +# PASS test/isRegExp/isRegExp.test.js -ok 976 — zipWith is a Function +ok 971 — isRegExp is a Function -# PASS test/toHash/toHash.test.js +# PASS test/getStyle/getStyle.test.js -ok 977 — toHash is a Function ->>>>>>> master - -ok 908 — initial is a Function -ok 909 — Returns all the elements of an array except the last one - -<<<<<<< HEAD -# PASS test\functionName\functionName.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 - -# PASS test\sortedLastIndex\sortedLastIndex.test.js - -ok 914 — sortedLastIndex is a Function -ok 915 — Returns the highest index to insert the element without messing up the list order - -# PASS test\invertKeyValues\invertKeyValues.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' ] } - -# PASS test\call\call.test.js - -ok 919 — call is a Function -ok 920 — Calls function on given object - -# PASS test\factors\factors.test.js - -ok 921 — factors is a Function - -# PASS test\isSymbol\isSymbol.test.js - -ok 922 — isSymbol is a Function -ok 923 — Checks if the given argument is a symbol - -# PASS test\minBy\minBy.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 - -# PASS test\isPromiseLike\isPromiseLike.test.js -======= -ok 978 — httpPost is a Function - -# PASS test/sumBy/sumBy.test.js - -ok 979 — sumBy is a Function - -# PASS test/httpPut/httpPut.test.js - -ok 980 — httpPut is a Function +ok 972 — getStyle is a Function # PASS test/throttle/throttle.test.js -ok 981 — throttle is a Function +ok 973 — throttle is a Function -# PASS test/nest/nest.test.js +# PASS test/runAsync/runAsync.test.js -ok 982 — nest is a Function +ok 974 — runAsync is a Function + +# PASS test/prefix/prefix.test.js + +ok 975 — prefix is a Function + +# PASS test/hasFlags/hasFlags.test.js + +ok 976 — hasFlags is a Function + +# PASS test/zipWith/zipWith.test.js + +ok 977 — zipWith is a Function + +# PASS test/httpPost/httpPost.test.js + +ok 978 — httpPost is a Function + +# PASS test/counter/counter.test.js + +ok 979 — counter is a Function # PASS test/solveRPN/solveRPN.test.js -ok 983 — solveRPN is a Function +ok 980 — solveRPN is a Function -# PASS test/defer/defer.test.js +# PASS test/httpGet/httpGet.test.js -ok 984 — defer is a Function +ok 981 — httpGet is a Function + +# PASS test/httpPut/httpPut.test.js + +ok 982 — httpPut is a Function + +# PASS test/isSet/isSet.test.js + +ok 983 — isSet is a Function # PASS test/factors/factors.test.js -ok 985 — factors is a Function ->>>>>>> master +ok 984 — factors is a Function -ok 927 — isPromiseLike is a Function -ok 928 — Returns true for a promise-like object -ok 929 — Returns false for an empty object +# PASS test/toHash/toHash.test.js -<<<<<<< HEAD -# PASS test\overArgs\overArgs.test.js +ok 985 — toHash is a Function -ok 930 — overArgs is a Function -ok 931 — Invokes the provided function with its arguments transformed +# PASS test/once/once.test.js -# PASS test\averageBy\averageBy.test.js -======= -ok 986 — hide is a Function +ok 986 — once is a Function # PASS test/off/off.test.js ok 987 — off is a Function -# PASS test/httpGet/httpGet.test.js +# PASS test/hz/hz.test.js -ok 988 — httpGet is a Function ->>>>>>> master +ok 988 — hz is a Function -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 +# PASS test/sumBy/sumBy.test.js -# PASS test\runPromisesInSeries\runPromisesInSeries.test.js +ok 989 — sumBy is a Function -<<<<<<< HEAD -ok 935 — runPromisesInSeries is a Function -ok 936 — Runs promises in series +# PASS test/isMap/isMap.test.js + +ok 990 — isMap is a Function + +# PASS test/defer/defer.test.js + +ok 991 — defer is a Function -# PASS test\once\once.test.js -======= # PASS test/on/on.test.js -ok 990 — on is a Function ->>>>>>> master +ok 992 — on is a Function -ok 937 — once is a Function +# PASS test/hide/hide.test.js -# PASS test\smoothScroll\smoothScroll.test.js +ok 993 — hide is a Function -<<<<<<< HEAD -ok 938 — smoothScroll is a Function +# PASS test/nest/nest.test.js -# PASS test\isString\isString.test.js -======= -# PASS test/once/once.test.js +ok 994 — nest is a Function -ok 992 — once is a Function ->>>>>>> master +# PASS test/show/show.test.js -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 - -<<<<<<< HEAD -# 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 +ok 995 — show is a Function 1..995 # Test Suites: 100% ██████████, 336 passed, 336 total # Tests: 100% ██████████, 995 passed, 995 total -# Time: 8.074s, estimated 6s -======= -# Test Suites: 100% ██████████, 335 passed, 335 total -# Tests: 100% ██████████, 992 passed, 992 total -# Time: 49.506s ->>>>>>> master +# Time: 50.262s # Ran all test suites.
