From f0db074807c7dfdff1205ffda5e05fe6b7a0c026 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 2 Aug 2018 13:49:33 +0300 Subject: [PATCH] Codacy style changes for test files --- scripts/tdd.js | 8 +- test/CSVToArray/CSVToArray.js | 3 +- test/CSVToJSON/CSVToJSON.js | 3 +- test/JSONToDate/JSONToDate.js | 3 +- test/JSONToFile/JSONToFile.js | 3 +- test/JSONtoCSV/JSONtoCSV.js | 3 +- test/RGBToHex/RGBToHex.js | 3 +- test/URLJoin/URLJoin.js | 3 +- .../UUIDGeneratorBrowser.js | 3 +- test/UUIDGeneratorNode/UUIDGeneratorNode.js | 3 +- test/all/all.js | 3 +- test/any/any.js | 3 +- test/approximatelyEqual/approximatelyEqual.js | 3 +- test/arrayToCSV/arrayToCSV.js | 3 +- test/arrayToHtmlList/arrayToHtmlList.js | 3 +- test/ary/ary.js | 3 +- test/atob/atob.js | 3 +- test/attempt/attempt.js | 3 +- test/average/average.js | 3 +- test/averageBy/averageBy.js | 3 +- test/bifurcate/bifurcate.js | 3 +- test/bifurcateBy/bifurcateBy.js | 3 +- test/binarySearch/binarySearch.js | 3 +- test/bind/bind.js | 3 +- test/bindAll/bindAll.js | 3 +- test/bindKey/bindKey.js | 3 +- .../binomialCoefficient.js | 3 +- test/bottomVisible/bottomVisible.js | 3 +- test/btoa/btoa.js | 3 +- test/byteSize/byteSize.js | 3 +- test/call/call.js | 3 +- test/capitalize/capitalize.js | 3 +- .../capitalizeEveryWord.js | 3 +- test/castArray/castArray.js | 3 +- test/chainAsync/chainAsync.js | 3 +- test/chunk/chunk.js | 3 +- test/clampNumber/clampNumber.js | 3 +- test/cleanObj/cleanObj.js | 3 +- test/cloneRegExp/cloneRegExp.js | 3 +- test/coalesce/coalesce.js | 3 +- test/coalesceFactory/coalesceFactory.js | 3 +- test/collatz/collatz.js | 3 +- test/collectInto/collectInto.js | 3 +- test/colorize/colorize.js | 3 +- test/compact/compact.js | 3 +- test/compose/compose.js | 3 +- test/composeRight/composeRight.js | 3 +- test/converge/converge.js | 3 +- test/copyToClipboard/copyToClipboard.js | 3 +- test/countBy/countBy.js | 3 +- test/countOccurrences/countOccurrences.js | 3 +- test/countVowels/countVowels.js | 3 +- test/counter/counter.js | 3 +- test/createElement/createElement.js | 3 +- test/createEventHub/createEventHub.js | 3 +- test/currentURL/currentURL.js | 3 +- test/curry/curry.js | 3 +- test/debounce/debounce.js | 3 +- test/decapitalize/decapitalize.js | 3 +- test/deepClone/deepClone.js | 3 +- test/deepFlatten/deepFlatten.js | 3 +- test/defaults/defaults.js | 3 +- test/defer/defer.js | 3 +- test/degreesToRads/degreesToRads.js | 3 +- test/delay/delay.js | 3 +- test/detectDeviceType/detectDeviceType.js | 3 +- test/difference/difference.js | 3 +- test/differenceBy/differenceBy.js | 3 +- test/differenceWith/differenceWith.js | 3 +- test/dig/dig.js | 3 +- test/digitize/digitize.js | 3 +- test/distance/distance.js | 3 +- test/drop/drop.js | 3 +- test/dropRight/dropRight.js | 3 +- test/dropRightWhile/dropRightWhile.js | 3 +- test/dropWhile/dropWhile.js | 3 +- test/elementContains/elementContains.js | 3 +- .../elementIsVisibleInViewport.js | 3 +- test/elo/elo.js | 3 +- test/equals/equals.js | 3 +- test/escapeHTML/escapeHTML.js | 3 +- test/escapeRegExp/escapeRegExp.js | 3 +- test/everyNth/everyNth.js | 3 +- test/extendHex/extendHex.js | 3 +- test/factorial/factorial.js | 3 +- test/factors/factors.js | 3 +- test/fibonacci/fibonacci.js | 3 +- .../fibonacciCountUntilNum.js | 3 +- test/fibonacciUntilNum/fibonacciUntilNum.js | 3 +- test/filterNonUnique/filterNonUnique.js | 3 +- test/filterNonUniqueBy/filterNonUniqueBy.js | 3 +- test/findKey/findKey.js | 3 +- test/findLast/findLast.js | 3 +- test/findLastIndex/findLastIndex.js | 3 +- test/findLastKey/findLastKey.js | 3 +- test/flatten/flatten.js | 3 +- test/flattenObject/flattenObject.js | 3 +- test/flip/flip.js | 3 +- test/forEachRight/forEachRight.js | 3 +- test/forOwn/forOwn.js | 3 +- test/forOwnRight/forOwnRight.js | 3 +- test/formatDuration/formatDuration.js | 3 +- test/fromCamelCase/fromCamelCase.js | 3 +- test/functionName/functionName.js | 3 +- test/functions/functions.js | 3 +- test/gcd/gcd.js | 3 +- .../geometricProgression.js | 3 +- test/get/get.js | 3 +- .../getColonTimeFromDate.js | 3 +- .../getDaysDiffBetweenDates.js | 3 +- .../getMeridiemSuffixOfInteger.js | 3 +- test/getScrollPosition/getScrollPosition.js | 3 +- test/getStyle/getStyle.js | 3 +- test/getType/getType.js | 3 +- test/getURLParameters/getURLParameters.js | 3 +- test/groupBy/groupBy.js | 3 +- test/hammingDistance/hammingDistance.js | 3 +- test/hasClass/hasClass.js | 3 +- test/hasFlags/hasFlags.js | 3 +- test/hashBrowser/hashBrowser.js | 3 +- test/hashNode/hashNode.js | 3 +- test/head/head.js | 3 +- test/hexToRGB/hexToRGB.js | 3 +- test/hide/hide.js | 3 +- test/howManyTimes/howManyTimes.js | 3 +- test/httpDelete/httpDelete.js | 3 +- test/httpGet/httpGet.js | 3 +- test/httpPost/httpPost.js | 3 +- test/httpPut/httpPut.js | 3 +- test/httpsRedirect/httpsRedirect.js | 3 +- test/hz/hz.js | 3 +- test/inRange/inRange.js | 3 +- test/indexOfAll/indexOfAll.js | 3 +- test/initial/initial.js | 3 +- test/initialize2DArray/initialize2DArray.js | 3 +- .../initializeArrayWithRange.js | 3 +- .../initializeArrayWithRangeRight.js | 3 +- .../initializeArrayWithValues.js | 3 +- test/initializeNDArray/initializeNDArray.js | 3 +- test/insertAfter/insertAfter.js | 3 +- test/insertBefore/insertBefore.js | 3 +- test/intersection/intersection.js | 3 +- test/intersectionBy/intersectionBy.js | 3 +- test/intersectionWith/intersectionWith.js | 3 +- test/invertKeyValues/invertKeyValues.js | 3 +- test/is/is.js | 3 +- test/isAbsoluteURL/isAbsoluteURL.js | 3 +- test/isAnagram/isAnagram.js | 3 +- test/isArmstrongNumber/isArmstrongNumber.js | 3 +- test/isArrayLike/isArrayLike.js | 3 +- test/isBoolean/isBoolean.js | 3 +- test/isBrowser/isBrowser.js | 3 +- .../isBrowserTabFocused.js | 3 +- test/isDivisible/isDivisible.js | 3 +- test/isEmpty/isEmpty.js | 3 +- test/isEven/isEven.js | 3 +- test/isFunction/isFunction.js | 3 +- test/isLowerCase/isLowerCase.js | 3 +- test/isNil/isNil.js | 3 +- test/isNull/isNull.js | 3 +- test/isNumber/isNumber.js | 3 +- test/isObject/isObject.js | 3 +- test/isObjectLike/isObjectLike.js | 3 +- test/isPlainObject/isPlainObject.js | 3 +- test/isPrime/isPrime.js | 3 +- test/isPrimitive/isPrimitive.js | 3 +- test/isPromiseLike/isPromiseLike.js | 3 +- test/isSimilar/isSimilar.js | 3 +- test/isSorted/isSorted.js | 3 +- test/isString/isString.js | 3 +- test/isSymbol/isSymbol.js | 3 +- test/isTravisCI/isTravisCI.js | 3 +- test/isUndefined/isUndefined.js | 3 +- test/isUpperCase/isUpperCase.js | 3 +- test/isValidJSON/isValidJSON.js | 3 +- test/join/join.js | 3 +- test/last/last.js | 3 +- test/lcm/lcm.js | 3 +- .../levenshteinDistance.js | 3 +- test/longestItem/longestItem.js | 3 +- test/lowercaseKeys/lowercaseKeys.js | 3 +- test/luhnCheck/luhnCheck.js | 3 +- test/mapKeys/mapKeys.js | 3 +- test/mapObject/mapObject.js | 3 +- test/mapString/mapString.js | 3 +- test/mapValues/mapValues.js | 3 +- test/mask/mask.js | 3 +- test/matches/matches.js | 3 +- test/matchesWith/matchesWith.js | 3 +- test/maxBy/maxBy.js | 3 +- test/maxN/maxN.js | 3 +- test/median/median.js | 3 +- test/memoize/memoize.js | 3 +- test/merge/merge.js | 3 +- test/minBy/minBy.js | 3 +- test/minN/minN.js | 3 +- test/mostPerformant/mostPerformant.js | 3 +- test/negate/negate.js | 3 +- test/nest/nest.js | 3 +- test/nodeListToArray/nodeListToArray.js | 3 +- test/none/none.js | 3 +- test/nthArg/nthArg.js | 3 +- test/nthElement/nthElement.js | 3 +- test/objectFromPairs/objectFromPairs.js | 3 +- test/objectToPairs/objectToPairs.js | 3 +- test/observeMutations/observeMutations.js | 3 +- test/off/off.js | 3 +- test/offset/offset.js | 3 +- test/omit/omit.js | 3 +- test/omitBy/omitBy.js | 3 +- test/on/on.js | 3 +- test/onUserInputChange/onUserInputChange.js | 3 +- test/once/once.js | 3 +- test/orderBy/orderBy.js | 3 +- test/over/over.js | 3 +- test/overArgs/overArgs.js | 3 +- test/pad/pad.js | 3 +- test/palindrome/palindrome.js | 3 +- test/parseCookie/parseCookie.js | 3 +- test/partial/partial.js | 3 +- test/partialRight/partialRight.js | 3 +- test/partition/partition.js | 3 +- test/percentile/percentile.js | 3 +- test/permutations/permutations.js | 3 +- test/pick/pick.js | 3 +- test/pickBy/pickBy.js | 3 +- test/pipeAsyncFunctions/pipeAsyncFunctions.js | 3 +- test/pipeFunctions/pipeFunctions.js | 3 +- test/pluralize/pluralize.js | 3 +- test/powerset/powerset.js | 3 +- test/prefix/prefix.js | 3 +- test/prettyBytes/prettyBytes.js | 3 +- test/primes/primes.js | 3 +- test/promisify/promisify.js | 3 +- test/pull/pull.js | 3 +- test/pullAtIndex/pullAtIndex.js | 3 +- test/pullAtValue/pullAtValue.js | 3 +- test/pullBy/pullBy.js | 3 +- test/quickSort/quickSort.js | 3 +- test/radsToDegrees/radsToDegrees.js | 3 +- test/randomHexColorCode/randomHexColorCode.js | 3 +- .../randomIntArrayInRange.js | 3 +- .../randomIntegerInRange.js | 3 +- .../randomNumberInRange.js | 3 +- test/readFileLines/readFileLines.js | 3 +- test/rearg/rearg.js | 3 +- .../recordAnimationFrames.js | 3 +- test/redirect/redirect.js | 3 +- test/reduceSuccessive/reduceSuccessive.js | 3 +- test/reduceWhich/reduceWhich.js | 3 +- test/reducedFilter/reducedFilter.js | 3 +- test/reject/reject.js | 3 +- test/remove/remove.js | 3 +- test/removeNonASCII/removeNonASCII.js | 3 +- test/removeVowels/removeVowels.js | 3 +- test/renameKeys/renameKeys.js | 3 +- test/reverseString/reverseString.js | 3 +- test/round/round.js | 3 +- test/runAsync/runAsync.js | 3 +- .../runPromisesInSeries.js | 3 +- test/sample/sample.js | 3 +- test/sampleSize/sampleSize.js | 3 +- test/scrollToTop/scrollToTop.js | 3 +- test/sdbm/sdbm.js | 3 +- test/serializeCookie/serializeCookie.js | 3 +- test/setStyle/setStyle.js | 3 +- test/shallowClone/shallowClone.js | 3 +- test/show/show.js | 3 +- test/shuffle/shuffle.js | 3 +- test/similarity/similarity.js | 3 +- test/size/size.js | 3 +- test/sleep/sleep.js | 3 +- test/smoothScroll/smoothScroll.js | 3 +- test/solveRPN/solveRPN.js | 3 +- .../sortCharactersInString.js | 3 +- test/sortedIndex/sortedIndex.js | 3 +- test/sortedIndexBy/sortedIndexBy.js | 3 +- test/sortedLastIndex/sortedLastIndex.js | 3 +- test/sortedLastIndexBy/sortedLastIndexBy.js | 3 +- test/speechSynthesis/speechSynthesis.js | 3 +- test/splitLines/splitLines.js | 3 +- test/spreadOver/spreadOver.js | 3 +- test/stableSort/stableSort.js | 3 +- test/standardDeviation/standardDeviation.js | 3 +- test/stringPermutations/stringPermutations.js | 3 +- test/stripHTMLTags/stripHTMLTags.js | 3 +- test/sum/sum.js | 3 +- test/sumBy/sumBy.js | 3 +- test/sumPower/sumPower.js | 3 +- .../symmetricDifference.js | 3 +- .../symmetricDifferenceBy.js | 3 +- .../symmetricDifferenceWith.js | 3 +- test/tail/tail.js | 3 +- test/take/take.js | 3 +- test/takeRight/takeRight.js | 3 +- test/takeRightWhile/takeRightWhile.js | 3 +- test/takeWhile/takeWhile.js | 3 +- test/testlog | 3886 ++++++++--------- test/throttle/throttle.js | 3 +- test/timeTaken/timeTaken.js | 3 +- test/times/times.js | 3 +- test/toCamelCase/toCamelCase.js | 3 +- test/toCurrency/toCurrency.js | 3 +- test/toDecimalMark/toDecimalMark.js | 3 +- test/toHash/toHash.js | 3 +- test/toKebabCase/toKebabCase.js | 3 +- test/toOrdinalSuffix/toOrdinalSuffix.js | 3 +- test/toSafeInteger/toSafeInteger.js | 3 +- test/toSnakeCase/toSnakeCase.js | 3 +- test/toggleClass/toggleClass.js | 3 +- test/tomorrow/tomorrow.js | 3 +- test/transform/transform.js | 3 +- test/triggerEvent/triggerEvent.js | 3 +- test/truncateString/truncateString.js | 3 +- .../truthCheckCollection.js | 3 +- test/unary/unary.js | 3 +- test/uncurry/uncurry.js | 3 +- test/unescapeHTML/unescapeHTML.js | 3 +- test/unflattenObject/unflattenObject.js | 3 +- test/unfold/unfold.js | 3 +- test/union/union.js | 3 +- test/unionBy/unionBy.js | 3 +- test/unionWith/unionWith.js | 3 +- test/uniqueElements/uniqueElements.js | 3 +- test/uniqueElementsBy/uniqueElementsBy.js | 3 +- .../uniqueElementsByRight.js | 3 +- test/untildify/untildify.js | 3 +- test/unzip/unzip.js | 3 +- test/unzipWith/unzipWith.js | 3 +- test/validateNumber/validateNumber.js | 3 +- test/when/when.js | 3 +- test/without/without.js | 3 +- test/words/words.js | 3 +- test/xProd/xProd.js | 3 +- test/yesNo/yesNo.js | 3 +- test/zip/zip.js | 3 +- test/zipObject/zipObject.js | 3 +- test/zipWith/zipWith.js | 3 +- 338 files changed, 2283 insertions(+), 2619 deletions(-) diff --git a/scripts/tdd.js b/scripts/tdd.js index f58551118..247aa15ec 100644 --- a/scripts/tdd.js +++ b/scripts/tdd.js @@ -52,15 +52,15 @@ snippetFiles const fileFunction = fileCode .split('\n') .map(line => line) - .filter((_, i) => blockMarkers[0] < i && i < blockMarkers[1]).concat(''); + .filter((_, i) => blockMarkers[0] < i && i < blockMarkers[1]); // Grab snippet example based on code markers const fileExample = fileCode .split('\n') .map(line => line) - .filter((_, i) => blockMarkers[2] < i && i < blockMarkers[3]).concat(''); + .filter((_, i) => blockMarkers[2] < i && i < blockMarkers[3]); // Export template for snippetName.js - const exportFile = `${fileFunction.join('\n')}\nmodule.exports = ${fileName};`.trim(); + const exportFile = `${fileFunction.join('\n')}\nmodule.exports = ${fileName};\n`; // Export template for snippetName.test.js which generates a example test & other information const exportTest = [ @@ -68,7 +68,7 @@ snippetFiles `const ${fileName} = require('./${fileName}.js');`, `\ntest('${fileName} is a Function', () => {`, ` expect(${fileName}).toBeInstanceOf(Function);`, - `});` + `});\n` ].join('\n'); // Write/Update exportFile which is snippetName.js in respective dir diff --git a/test/CSVToArray/CSVToArray.js b/test/CSVToArray/CSVToArray.js index 6be3fcbf9..da9287894 100644 --- a/test/CSVToArray/CSVToArray.js +++ b/test/CSVToArray/CSVToArray.js @@ -3,5 +3,4 @@ const CSVToArray = (data, delimiter = ',', omitFirstRow = false) => .slice(omitFirstRow ? data.indexOf('\n') + 1 : 0) .split('\n') .map(v => v.split(delimiter)); - -module.exports = CSVToArray; \ No newline at end of file +module.exports = CSVToArray; diff --git a/test/CSVToJSON/CSVToJSON.js b/test/CSVToJSON/CSVToJSON.js index 4a0cc4c3f..d9504142c 100644 --- a/test/CSVToJSON/CSVToJSON.js +++ b/test/CSVToJSON/CSVToJSON.js @@ -8,5 +8,4 @@ const CSVToJSON = (data, delimiter = ',') => { return titles.reduce((obj, title, index) => ((obj[title] = values[index]), obj), {}); }); }; - -module.exports = CSVToJSON; \ No newline at end of file +module.exports = CSVToJSON; diff --git a/test/JSONToDate/JSONToDate.js b/test/JSONToDate/JSONToDate.js index 5e105552c..3111603c9 100644 --- a/test/JSONToDate/JSONToDate.js +++ b/test/JSONToDate/JSONToDate.js @@ -2,5 +2,4 @@ const JSONToDate = arr => { const dt = new Date(parseInt(arr.toString().substr(6))); return `${dt.getDate()}/${dt.getMonth() + 1}/${dt.getFullYear()}`; }; - -module.exports = JSONToDate; \ No newline at end of file +module.exports = JSONToDate; diff --git a/test/JSONToFile/JSONToFile.js b/test/JSONToFile/JSONToFile.js index 845f6a68e..1111c55b2 100644 --- a/test/JSONToFile/JSONToFile.js +++ b/test/JSONToFile/JSONToFile.js @@ -1,5 +1,4 @@ const fs = require('fs'); const JSONToFile = (obj, filename) => fs.writeFile(`${filename}.json`, JSON.stringify(obj, null, 2)); - -module.exports = JSONToFile; \ No newline at end of file +module.exports = JSONToFile; diff --git a/test/JSONtoCSV/JSONtoCSV.js b/test/JSONtoCSV/JSONtoCSV.js index b21309541..81cf14b43 100644 --- a/test/JSONtoCSV/JSONtoCSV.js +++ b/test/JSONtoCSV/JSONtoCSV.js @@ -8,5 +8,4 @@ const JSONtoCSV = (arr, columns, delimiter = ',') => ) ) ].join('\n'); - -module.exports = JSONtoCSV; \ No newline at end of file +module.exports = JSONtoCSV; diff --git a/test/RGBToHex/RGBToHex.js b/test/RGBToHex/RGBToHex.js index ef8c66397..9f829a0f9 100644 --- a/test/RGBToHex/RGBToHex.js +++ b/test/RGBToHex/RGBToHex.js @@ -1,3 +1,2 @@ const RGBToHex = (r, g, b) => ((r << 16) + (g << 8) + b).toString(16).padStart(6, '0'); - -module.exports = RGBToHex; \ No newline at end of file +module.exports = RGBToHex; diff --git a/test/URLJoin/URLJoin.js b/test/URLJoin/URLJoin.js index 09acf40aa..52490a893 100644 --- a/test/URLJoin/URLJoin.js +++ b/test/URLJoin/URLJoin.js @@ -7,5 +7,4 @@ const URLJoin = (...args) => .replace(/\/(\?|&|#[^!])/g, '$1') .replace(/\?/g, '&') .replace('&', '?'); - -module.exports = URLJoin; \ No newline at end of file +module.exports = URLJoin; diff --git a/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js b/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js index 36c17350c..000ec1279 100644 --- a/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js +++ b/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js @@ -2,5 +2,4 @@ const UUIDGeneratorBrowser = () => ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c => (c ^ (crypto.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16) ); - -module.exports = UUIDGeneratorBrowser; \ No newline at end of file +module.exports = UUIDGeneratorBrowser; diff --git a/test/UUIDGeneratorNode/UUIDGeneratorNode.js b/test/UUIDGeneratorNode/UUIDGeneratorNode.js index 7ae5509e2..6e314792e 100644 --- a/test/UUIDGeneratorNode/UUIDGeneratorNode.js +++ b/test/UUIDGeneratorNode/UUIDGeneratorNode.js @@ -3,5 +3,4 @@ const UUIDGeneratorNode = () => ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c => (c ^ (crypto.randomBytes(1)[0] & (15 >> (c / 4)))).toString(16) ); - -module.exports = UUIDGeneratorNode; \ No newline at end of file +module.exports = UUIDGeneratorNode; diff --git a/test/all/all.js b/test/all/all.js index 1853a403d..d07bb7f7a 100644 --- a/test/all/all.js +++ b/test/all/all.js @@ -1,3 +1,2 @@ const all = (arr, fn = Boolean) => arr.every(fn); - -module.exports = all; \ No newline at end of file +module.exports = all; diff --git a/test/any/any.js b/test/any/any.js index 199487eb0..87a89d9e4 100644 --- a/test/any/any.js +++ b/test/any/any.js @@ -1,3 +1,2 @@ const any = (arr, fn = Boolean) => arr.some(fn); - -module.exports = any; \ No newline at end of file +module.exports = any; diff --git a/test/approximatelyEqual/approximatelyEqual.js b/test/approximatelyEqual/approximatelyEqual.js index e52f6fb13..d519097ed 100644 --- a/test/approximatelyEqual/approximatelyEqual.js +++ b/test/approximatelyEqual/approximatelyEqual.js @@ -1,3 +1,2 @@ const approximatelyEqual = (v1, v2, epsilon = 0.001) => Math.abs(v1 - v2) < epsilon; - -module.exports = approximatelyEqual; \ No newline at end of file +module.exports = approximatelyEqual; diff --git a/test/arrayToCSV/arrayToCSV.js b/test/arrayToCSV/arrayToCSV.js index 60404acad..561628034 100644 --- a/test/arrayToCSV/arrayToCSV.js +++ b/test/arrayToCSV/arrayToCSV.js @@ -1,4 +1,3 @@ const arrayToCSV = (arr, delimiter = ',') => arr.map(v => v.map(x => `"${x}"`).join(delimiter)).join('\n'); - -module.exports = arrayToCSV; \ No newline at end of file +module.exports = arrayToCSV; diff --git a/test/arrayToHtmlList/arrayToHtmlList.js b/test/arrayToHtmlList/arrayToHtmlList.js index a9c054d9f..e669b1c81 100644 --- a/test/arrayToHtmlList/arrayToHtmlList.js +++ b/test/arrayToHtmlList/arrayToHtmlList.js @@ -3,5 +3,4 @@ const arrayToHtmlList = (arr, listID) => (el = document.querySelector('#' + listID)), (el.innerHTML += arr.map(item => `
  • ${item}
  • `).join('')) ))(); - -module.exports = arrayToHtmlList; \ No newline at end of file +module.exports = arrayToHtmlList; diff --git a/test/ary/ary.js b/test/ary/ary.js index 8a0c2feb7..cde6753cd 100644 --- a/test/ary/ary.js +++ b/test/ary/ary.js @@ -1,3 +1,2 @@ const ary = (fn, n) => (...args) => fn(...args.slice(0, n)); - -module.exports = ary; \ No newline at end of file +module.exports = ary; diff --git a/test/atob/atob.js b/test/atob/atob.js index dad9e8dd7..151c9ef18 100644 --- a/test/atob/atob.js +++ b/test/atob/atob.js @@ -1,3 +1,2 @@ const atob = str => new Buffer(str, 'base64').toString('binary'); - -module.exports = atob; \ No newline at end of file +module.exports = atob; diff --git a/test/attempt/attempt.js b/test/attempt/attempt.js index ab9a0571c..e7ffd905f 100644 --- a/test/attempt/attempt.js +++ b/test/attempt/attempt.js @@ -5,5 +5,4 @@ const attempt = (fn, ...args) => { return e instanceof Error ? e : new Error(e); } }; - -module.exports = attempt; \ No newline at end of file +module.exports = attempt; diff --git a/test/average/average.js b/test/average/average.js index 6e59a3905..dfbc90d3c 100644 --- a/test/average/average.js +++ b/test/average/average.js @@ -1,3 +1,2 @@ const average = (...nums) => [...nums].reduce((acc, val) => acc + val, 0) / nums.length; - -module.exports = average; \ No newline at end of file +module.exports = average; diff --git a/test/averageBy/averageBy.js b/test/averageBy/averageBy.js index 467eb315f..dc9f07bc7 100644 --- a/test/averageBy/averageBy.js +++ b/test/averageBy/averageBy.js @@ -1,5 +1,4 @@ const averageBy = (arr, fn) => arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val) => acc + val, 0) / arr.length; - -module.exports = averageBy; \ No newline at end of file +module.exports = averageBy; diff --git a/test/bifurcate/bifurcate.js b/test/bifurcate/bifurcate.js index d60896409..ca677ab8c 100644 --- a/test/bifurcate/bifurcate.js +++ b/test/bifurcate/bifurcate.js @@ -1,4 +1,3 @@ const bifurcate = (arr, filter) => arr.reduce((acc, val, i) => (acc[filter[i] ? 0 : 1].push(val), acc), [[], []]); - -module.exports = bifurcate; \ No newline at end of file +module.exports = bifurcate; diff --git a/test/bifurcateBy/bifurcateBy.js b/test/bifurcateBy/bifurcateBy.js index f2f1a2298..0bb0abff5 100644 --- a/test/bifurcateBy/bifurcateBy.js +++ b/test/bifurcateBy/bifurcateBy.js @@ -1,4 +1,3 @@ const bifurcateBy = (arr, fn) => arr.reduce((acc, val, i) => (acc[fn(val, i) ? 0 : 1].push(val), acc), [[], []]); - -module.exports = bifurcateBy; \ No newline at end of file +module.exports = bifurcateBy; diff --git a/test/binarySearch/binarySearch.js b/test/binarySearch/binarySearch.js index 6c7551010..9dc64a9a2 100644 --- a/test/binarySearch/binarySearch.js +++ b/test/binarySearch/binarySearch.js @@ -5,5 +5,4 @@ const binarySearch = (arr, val, start = 0, end = arr.length - 1) => { if (arr[mid] < val) return binarySearch(arr, val, mid + 1, end); return mid; }; - -module.exports = binarySearch; \ No newline at end of file +module.exports = binarySearch; diff --git a/test/bind/bind.js b/test/bind/bind.js index 8e53e7051..e7252bd64 100644 --- a/test/bind/bind.js +++ b/test/bind/bind.js @@ -2,5 +2,4 @@ const bind = (fn, context, ...args) => function() { return fn.apply(context, args.concat(...arguments)); }; - -module.exports = bind; \ No newline at end of file +module.exports = bind; diff --git a/test/bindAll/bindAll.js b/test/bindAll/bindAll.js index 2bc623aa0..c96fd973c 100644 --- a/test/bindAll/bindAll.js +++ b/test/bindAll/bindAll.js @@ -7,5 +7,4 @@ const bindAll = (obj, ...fns) => }) ) ); - -module.exports = bindAll; \ No newline at end of file +module.exports = bindAll; diff --git a/test/bindKey/bindKey.js b/test/bindKey/bindKey.js index 5a573fb54..9d43be087 100644 --- a/test/bindKey/bindKey.js +++ b/test/bindKey/bindKey.js @@ -2,5 +2,4 @@ const bindKey = (context, fn, ...args) => function() { return context[fn].apply(context, args.concat(...arguments)); }; - -module.exports = bindKey; \ No newline at end of file +module.exports = bindKey; diff --git a/test/binomialCoefficient/binomialCoefficient.js b/test/binomialCoefficient/binomialCoefficient.js index 95f1fdbd8..cab25b72e 100644 --- a/test/binomialCoefficient/binomialCoefficient.js +++ b/test/binomialCoefficient/binomialCoefficient.js @@ -8,5 +8,4 @@ const binomialCoefficient = (n, k) => { for (let j = 2; j <= k; j++) res *= (n - j + 1) / j; return Math.round(res); }; - -module.exports = binomialCoefficient; \ No newline at end of file +module.exports = binomialCoefficient; diff --git a/test/bottomVisible/bottomVisible.js b/test/bottomVisible/bottomVisible.js index 576eddd4e..3dc6e2fae 100644 --- a/test/bottomVisible/bottomVisible.js +++ b/test/bottomVisible/bottomVisible.js @@ -1,5 +1,4 @@ const bottomVisible = () => document.documentElement.clientHeight + window.scrollY >= (document.documentElement.scrollHeight || document.documentElement.clientHeight); - -module.exports = bottomVisible; \ No newline at end of file +module.exports = bottomVisible; diff --git a/test/btoa/btoa.js b/test/btoa/btoa.js index eb2a97a95..9ff0e6caf 100644 --- a/test/btoa/btoa.js +++ b/test/btoa/btoa.js @@ -1,3 +1,2 @@ const btoa = str => new Buffer(str, 'binary').toString('base64'); - -module.exports = btoa; \ No newline at end of file +module.exports = btoa; diff --git a/test/byteSize/byteSize.js b/test/byteSize/byteSize.js index 26ae2758a..485e03833 100644 --- a/test/byteSize/byteSize.js +++ b/test/byteSize/byteSize.js @@ -1,3 +1,2 @@ const byteSize = str => new Blob([str]).size; - -module.exports = byteSize; \ No newline at end of file +module.exports = byteSize; diff --git a/test/call/call.js b/test/call/call.js index d633114e5..1a92c2273 100644 --- a/test/call/call.js +++ b/test/call/call.js @@ -1,3 +1,2 @@ const call = (key, ...args) => context => context[key](...args); - -module.exports = call; \ No newline at end of file +module.exports = call; diff --git a/test/capitalize/capitalize.js b/test/capitalize/capitalize.js index 2626ccf09..e773adfb7 100644 --- a/test/capitalize/capitalize.js +++ b/test/capitalize/capitalize.js @@ -1,4 +1,3 @@ const capitalize = ([first, ...rest], lowerRest = false) => first.toUpperCase() + (lowerRest ? rest.join('').toLowerCase() : rest.join('')); - -module.exports = capitalize; \ No newline at end of file +module.exports = capitalize; diff --git a/test/capitalizeEveryWord/capitalizeEveryWord.js b/test/capitalizeEveryWord/capitalizeEveryWord.js index 4136337fa..1f8cfa1cb 100644 --- a/test/capitalizeEveryWord/capitalizeEveryWord.js +++ b/test/capitalizeEveryWord/capitalizeEveryWord.js @@ -1,3 +1,2 @@ const capitalizeEveryWord = str => str.replace(/\b[a-z]/g, char => char.toUpperCase()); - -module.exports = capitalizeEveryWord; \ No newline at end of file +module.exports = capitalizeEveryWord; diff --git a/test/castArray/castArray.js b/test/castArray/castArray.js index 1e99084c7..13cc5f469 100644 --- a/test/castArray/castArray.js +++ b/test/castArray/castArray.js @@ -1,3 +1,2 @@ const castArray = val => (Array.isArray(val) ? val : [val]); - -module.exports = castArray; \ No newline at end of file +module.exports = castArray; diff --git a/test/chainAsync/chainAsync.js b/test/chainAsync/chainAsync.js index c0f95b08d..447f56893 100644 --- a/test/chainAsync/chainAsync.js +++ b/test/chainAsync/chainAsync.js @@ -3,5 +3,4 @@ const chainAsync = fns => { const next = () => fns[curr++](next); next(); }; - -module.exports = chainAsync; \ No newline at end of file +module.exports = chainAsync; diff --git a/test/chunk/chunk.js b/test/chunk/chunk.js index d110d6306..20cc304aa 100644 --- a/test/chunk/chunk.js +++ b/test/chunk/chunk.js @@ -2,5 +2,4 @@ const chunk = (arr, size) => Array.from({ length: Math.ceil(arr.length / size) }, (v, i) => arr.slice(i * size, i * size + size) ); - -module.exports = chunk; \ No newline at end of file +module.exports = chunk; diff --git a/test/clampNumber/clampNumber.js b/test/clampNumber/clampNumber.js index c1e5220cc..b448e319a 100644 --- a/test/clampNumber/clampNumber.js +++ b/test/clampNumber/clampNumber.js @@ -1,3 +1,2 @@ const clampNumber = (num, a, b) => Math.max(Math.min(num, Math.max(a, b)), Math.min(a, b)); - -module.exports = clampNumber; \ No newline at end of file +module.exports = clampNumber; diff --git a/test/cleanObj/cleanObj.js b/test/cleanObj/cleanObj.js index e41c5dad0..5ab9f69e3 100644 --- a/test/cleanObj/cleanObj.js +++ b/test/cleanObj/cleanObj.js @@ -8,5 +8,4 @@ const cleanObj = (obj, keysToKeep = [], childIndicator) => { }); return obj; }; - -module.exports = cleanObj; \ No newline at end of file +module.exports = cleanObj; diff --git a/test/cloneRegExp/cloneRegExp.js b/test/cloneRegExp/cloneRegExp.js index 9caac6a2f..e78c57bbe 100644 --- a/test/cloneRegExp/cloneRegExp.js +++ b/test/cloneRegExp/cloneRegExp.js @@ -1,3 +1,2 @@ const cloneRegExp = regExp => new RegExp(regExp.source, regExp.flags); - -module.exports = cloneRegExp; \ No newline at end of file +module.exports = cloneRegExp; diff --git a/test/coalesce/coalesce.js b/test/coalesce/coalesce.js index f735939d9..8b94084f2 100644 --- a/test/coalesce/coalesce.js +++ b/test/coalesce/coalesce.js @@ -1,3 +1,2 @@ const coalesce = (...args) => args.find(_ => ![undefined, null].includes(_)); - -module.exports = coalesce; \ No newline at end of file +module.exports = coalesce; diff --git a/test/coalesceFactory/coalesceFactory.js b/test/coalesceFactory/coalesceFactory.js index aa1eecac2..66fd5148e 100644 --- a/test/coalesceFactory/coalesceFactory.js +++ b/test/coalesceFactory/coalesceFactory.js @@ -1,3 +1,2 @@ const coalesceFactory = valid => (...args) => args.find(valid); - -module.exports = coalesceFactory; \ No newline at end of file +module.exports = coalesceFactory; diff --git a/test/collatz/collatz.js b/test/collatz/collatz.js index f996a91e3..fb2c8205e 100644 --- a/test/collatz/collatz.js +++ b/test/collatz/collatz.js @@ -1,3 +1,2 @@ const collatz = n => (n % 2 === 0 ? n / 2 : 3 * n + 1); - -module.exports = collatz; \ No newline at end of file +module.exports = collatz; diff --git a/test/collectInto/collectInto.js b/test/collectInto/collectInto.js index 745ed9671..e891c6938 100644 --- a/test/collectInto/collectInto.js +++ b/test/collectInto/collectInto.js @@ -1,3 +1,2 @@ const collectInto = fn => (...args) => fn(args); - -module.exports = collectInto; \ No newline at end of file +module.exports = collectInto; diff --git a/test/colorize/colorize.js b/test/colorize/colorize.js index 3e83f7069..032e6ab87 100644 --- a/test/colorize/colorize.js +++ b/test/colorize/colorize.js @@ -16,5 +16,4 @@ const colorize = (...args) => ({ bgCyan: `\x1b[46m${args.join(' ')}\x1b[0m`, bgWhite: `\x1b[47m${args.join(' ')}\x1b[0m` }); - -module.exports = colorize; \ No newline at end of file +module.exports = colorize; diff --git a/test/compact/compact.js b/test/compact/compact.js index d21ec2f35..636f804f2 100644 --- a/test/compact/compact.js +++ b/test/compact/compact.js @@ -1,3 +1,2 @@ const compact = arr => arr.filter(Boolean); - -module.exports = compact; \ No newline at end of file +module.exports = compact; diff --git a/test/compose/compose.js b/test/compose/compose.js index c9d6ccdf6..2d62bdd23 100644 --- a/test/compose/compose.js +++ b/test/compose/compose.js @@ -1,3 +1,2 @@ const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args))); - -module.exports = compose; \ No newline at end of file +module.exports = compose; diff --git a/test/composeRight/composeRight.js b/test/composeRight/composeRight.js index 4f6a42124..a0ac57749 100644 --- a/test/composeRight/composeRight.js +++ b/test/composeRight/composeRight.js @@ -1,3 +1,2 @@ const composeRight = (...fns) => fns.reduce((f, g) => (...args) => g(f(...args))); - -module.exports = composeRight; \ No newline at end of file +module.exports = composeRight; diff --git a/test/converge/converge.js b/test/converge/converge.js index bd43cbac1..8dd708846 100644 --- a/test/converge/converge.js +++ b/test/converge/converge.js @@ -1,3 +1,2 @@ const converge = (converger, fns) => (...args) => converger(...fns.map(fn => fn.apply(null, args))); - -module.exports = converge; \ No newline at end of file +module.exports = converge; diff --git a/test/copyToClipboard/copyToClipboard.js b/test/copyToClipboard/copyToClipboard.js index 5b9c710be..d1117d729 100644 --- a/test/copyToClipboard/copyToClipboard.js +++ b/test/copyToClipboard/copyToClipboard.js @@ -15,5 +15,4 @@ const copyToClipboard = str => { document.getSelection().addRange(selected); } }; - -module.exports = copyToClipboard; \ No newline at end of file +module.exports = copyToClipboard; diff --git a/test/countBy/countBy.js b/test/countBy/countBy.js index 7a8b3c9cc..e6b0cadf6 100644 --- a/test/countBy/countBy.js +++ b/test/countBy/countBy.js @@ -3,5 +3,4 @@ const countBy = (arr, fn) => acc[val] = (acc[val] || 0) + 1; return acc; }, {}); - -module.exports = countBy; \ No newline at end of file +module.exports = countBy; diff --git a/test/countOccurrences/countOccurrences.js b/test/countOccurrences/countOccurrences.js index 63e7feaf7..2de3440fd 100644 --- a/test/countOccurrences/countOccurrences.js +++ b/test/countOccurrences/countOccurrences.js @@ -1,3 +1,2 @@ const countOccurrences = (arr, val) => arr.reduce((a, v) => (v === val ? a + 1 : a), 0); - -module.exports = countOccurrences; \ No newline at end of file +module.exports = countOccurrences; diff --git a/test/countVowels/countVowels.js b/test/countVowels/countVowels.js index d8f6ee57e..29c954056 100644 --- a/test/countVowels/countVowels.js +++ b/test/countVowels/countVowels.js @@ -1,3 +1,2 @@ const countVowels = str => (str.match(/[aeiou]/gi) || []).length; - -module.exports = countVowels; \ No newline at end of file +module.exports = countVowels; diff --git a/test/counter/counter.js b/test/counter/counter.js index fef9b1ce4..514551a0e 100644 --- a/test/counter/counter.js +++ b/test/counter/counter.js @@ -9,5 +9,4 @@ const counter = (selector, start, end, step = 1, duration = 2000) => { }, Math.abs(Math.floor(duration / (end - start)))); return timer; }; - -module.exports = counter; \ No newline at end of file +module.exports = counter; diff --git a/test/createElement/createElement.js b/test/createElement/createElement.js index 22d92d428..533dd8012 100644 --- a/test/createElement/createElement.js +++ b/test/createElement/createElement.js @@ -3,5 +3,4 @@ const createElement = str => { el.innerHTML = str; return el.firstElementChild; }; - -module.exports = createElement; \ No newline at end of file +module.exports = createElement; diff --git a/test/createEventHub/createEventHub.js b/test/createEventHub/createEventHub.js index 390d28e53..a1ebc9a19 100644 --- a/test/createEventHub/createEventHub.js +++ b/test/createEventHub/createEventHub.js @@ -12,5 +12,4 @@ const createEventHub = () => ({ if (i > -1) this.hub[event].splice(i, 1); } }); - -module.exports = createEventHub; \ No newline at end of file +module.exports = createEventHub; diff --git a/test/currentURL/currentURL.js b/test/currentURL/currentURL.js index ae92dbf67..a703769dd 100644 --- a/test/currentURL/currentURL.js +++ b/test/currentURL/currentURL.js @@ -1,3 +1,2 @@ const currentURL = () => window.location.href; - -module.exports = currentURL; \ No newline at end of file +module.exports = currentURL; diff --git a/test/curry/curry.js b/test/curry/curry.js index a2211d9a7..f6a788d90 100644 --- a/test/curry/curry.js +++ b/test/curry/curry.js @@ -1,4 +1,3 @@ const curry = (fn, arity = fn.length, ...args) => arity <= args.length ? fn(...args) : curry.bind(null, fn, arity, ...args); - -module.exports = curry; \ No newline at end of file +module.exports = curry; diff --git a/test/debounce/debounce.js b/test/debounce/debounce.js index e71edd9cc..313428d57 100644 --- a/test/debounce/debounce.js +++ b/test/debounce/debounce.js @@ -5,5 +5,4 @@ const debounce = (fn, ms = 0) => { timeoutId = setTimeout(() => fn.apply(this, args), ms); }; }; - -module.exports = debounce; \ No newline at end of file +module.exports = debounce; diff --git a/test/decapitalize/decapitalize.js b/test/decapitalize/decapitalize.js index 965d9bc16..987929c01 100644 --- a/test/decapitalize/decapitalize.js +++ b/test/decapitalize/decapitalize.js @@ -1,4 +1,3 @@ const decapitalize = ([first, ...rest], upperRest = false) => first.toLowerCase() + (upperRest ? rest.join('').toUpperCase() : rest.join('')); - -module.exports = decapitalize; \ No newline at end of file +module.exports = decapitalize; diff --git a/test/deepClone/deepClone.js b/test/deepClone/deepClone.js index ba574b7e7..538f37d3d 100644 --- a/test/deepClone/deepClone.js +++ b/test/deepClone/deepClone.js @@ -5,5 +5,4 @@ const deepClone = obj => { ); return Array.isArray(obj) ? (clone.length = obj.length) && Array.from(clone) : clone; }; - -module.exports = deepClone; \ No newline at end of file +module.exports = deepClone; diff --git a/test/deepFlatten/deepFlatten.js b/test/deepFlatten/deepFlatten.js index d550011a0..6d344be80 100644 --- a/test/deepFlatten/deepFlatten.js +++ b/test/deepFlatten/deepFlatten.js @@ -1,3 +1,2 @@ const deepFlatten = arr => [].concat(...arr.map(v => (Array.isArray(v) ? deepFlatten(v) : v))); - -module.exports = deepFlatten; \ No newline at end of file +module.exports = deepFlatten; diff --git a/test/defaults/defaults.js b/test/defaults/defaults.js index 776affaa5..e369fff7c 100644 --- a/test/defaults/defaults.js +++ b/test/defaults/defaults.js @@ -1,3 +1,2 @@ const defaults = (obj, ...defs) => Object.assign({}, obj, ...defs.reverse(), obj); - -module.exports = defaults; \ No newline at end of file +module.exports = defaults; diff --git a/test/defer/defer.js b/test/defer/defer.js index 011551c98..f8e069b65 100644 --- a/test/defer/defer.js +++ b/test/defer/defer.js @@ -1,3 +1,2 @@ const defer = (fn, ...args) => setTimeout(fn, 1, ...args); - -module.exports = defer; \ No newline at end of file +module.exports = defer; diff --git a/test/degreesToRads/degreesToRads.js b/test/degreesToRads/degreesToRads.js index 68783ebff..ffc04f7fd 100644 --- a/test/degreesToRads/degreesToRads.js +++ b/test/degreesToRads/degreesToRads.js @@ -1,3 +1,2 @@ const degreesToRads = deg => (deg * Math.PI) / 180.0; - -module.exports = degreesToRads; \ No newline at end of file +module.exports = degreesToRads; diff --git a/test/delay/delay.js b/test/delay/delay.js index 7059c0142..a05563960 100644 --- a/test/delay/delay.js +++ b/test/delay/delay.js @@ -1,3 +1,2 @@ const delay = (fn, wait, ...args) => setTimeout(fn, wait, ...args); - -module.exports = delay; \ No newline at end of file +module.exports = delay; diff --git a/test/detectDeviceType/detectDeviceType.js b/test/detectDeviceType/detectDeviceType.js index 7efe9f1a0..2cb23d550 100644 --- a/test/detectDeviceType/detectDeviceType.js +++ b/test/detectDeviceType/detectDeviceType.js @@ -2,5 +2,4 @@ const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? 'Mobile' : 'Desktop'; - -module.exports = detectDeviceType; \ No newline at end of file +module.exports = detectDeviceType; diff --git a/test/difference/difference.js b/test/difference/difference.js index de0175a5e..186ee847d 100644 --- a/test/difference/difference.js +++ b/test/difference/difference.js @@ -2,5 +2,4 @@ const difference = (a, b) => { const s = new Set(b); return a.filter(x => !s.has(x)); }; - -module.exports = difference; \ No newline at end of file +module.exports = difference; diff --git a/test/differenceBy/differenceBy.js b/test/differenceBy/differenceBy.js index 1d9f14b4b..e777d310c 100644 --- a/test/differenceBy/differenceBy.js +++ b/test/differenceBy/differenceBy.js @@ -2,5 +2,4 @@ const differenceBy = (a, b, fn) => { const s = new Set(b.map(v => fn(v))); return a.filter(x => !s.has(fn(x))); }; - -module.exports = differenceBy; \ No newline at end of file +module.exports = differenceBy; diff --git a/test/differenceWith/differenceWith.js b/test/differenceWith/differenceWith.js index 116c4abe0..bb4c127a0 100644 --- a/test/differenceWith/differenceWith.js +++ b/test/differenceWith/differenceWith.js @@ -1,3 +1,2 @@ const differenceWith = (arr, val, comp) => arr.filter(a => val.findIndex(b => comp(a, b)) === -1); - -module.exports = differenceWith; \ No newline at end of file +module.exports = differenceWith; diff --git a/test/dig/dig.js b/test/dig/dig.js index c6ac9caf0..90233fa3a 100644 --- a/test/dig/dig.js +++ b/test/dig/dig.js @@ -5,5 +5,4 @@ const dig = (obj, target) => if (acc !== undefined) return acc; if (typeof val === 'object') return dig(val, target); }, undefined); - -module.exports = dig; \ No newline at end of file +module.exports = dig; diff --git a/test/digitize/digitize.js b/test/digitize/digitize.js index f1692d10d..6b85884be 100644 --- a/test/digitize/digitize.js +++ b/test/digitize/digitize.js @@ -1,3 +1,2 @@ const digitize = n => [...`${n}`].map(i => parseInt(i)); - -module.exports = digitize; \ No newline at end of file +module.exports = digitize; diff --git a/test/distance/distance.js b/test/distance/distance.js index 15be81296..2c5735858 100644 --- a/test/distance/distance.js +++ b/test/distance/distance.js @@ -1,3 +1,2 @@ const distance = (x0, y0, x1, y1) => Math.hypot(x1 - x0, y1 - y0); - -module.exports = distance; \ No newline at end of file +module.exports = distance; diff --git a/test/drop/drop.js b/test/drop/drop.js index a102c19dc..bc2c9b76b 100644 --- a/test/drop/drop.js +++ b/test/drop/drop.js @@ -1,3 +1,2 @@ const drop = (arr, n = 1) => arr.slice(n); - -module.exports = drop; \ No newline at end of file +module.exports = drop; diff --git a/test/dropRight/dropRight.js b/test/dropRight/dropRight.js index ec9690c54..635c86880 100644 --- a/test/dropRight/dropRight.js +++ b/test/dropRight/dropRight.js @@ -1,3 +1,2 @@ const dropRight = (arr, n = 1) => arr.slice(0, -n); - -module.exports = dropRight; \ No newline at end of file +module.exports = dropRight; diff --git a/test/dropRightWhile/dropRightWhile.js b/test/dropRightWhile/dropRightWhile.js index a1a479346..35a373c08 100644 --- a/test/dropRightWhile/dropRightWhile.js +++ b/test/dropRightWhile/dropRightWhile.js @@ -2,5 +2,4 @@ const dropRightWhile = (arr, func) => { while (arr.length > 0 && !func(arr[arr.length - 1])) arr = arr.slice(0, -1); return arr; }; - -module.exports = dropRightWhile; \ No newline at end of file +module.exports = dropRightWhile; diff --git a/test/dropWhile/dropWhile.js b/test/dropWhile/dropWhile.js index d22d90bee..bcb01ebc0 100644 --- a/test/dropWhile/dropWhile.js +++ b/test/dropWhile/dropWhile.js @@ -2,5 +2,4 @@ const dropWhile = (arr, func) => { while (arr.length > 0 && !func(arr[0])) arr = arr.slice(1); return arr; }; - -module.exports = dropWhile; \ No newline at end of file +module.exports = dropWhile; diff --git a/test/elementContains/elementContains.js b/test/elementContains/elementContains.js index 414d0ab9f..d80f015fa 100644 --- a/test/elementContains/elementContains.js +++ b/test/elementContains/elementContains.js @@ -1,3 +1,2 @@ const elementContains = (parent, child) => parent !== child && parent.contains(child); - -module.exports = elementContains; \ No newline at end of file +module.exports = elementContains; diff --git a/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js b/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js index 8aab78db0..f695904eb 100644 --- a/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js +++ b/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js @@ -6,5 +6,4 @@ const elementIsVisibleInViewport = (el, partiallyVisible = false) => { ((left > 0 && left < innerWidth) || (right > 0 && right < innerWidth)) : top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth; }; - -module.exports = elementIsVisibleInViewport; \ No newline at end of file +module.exports = elementIsVisibleInViewport; diff --git a/test/elo/elo.js b/test/elo/elo.js index 17c765a99..28f571510 100644 --- a/test/elo/elo.js +++ b/test/elo/elo.js @@ -15,5 +15,4 @@ const elo = ([...ratings], kFactor = 32, selfRating) => { } return ratings; }; - -module.exports = elo; \ No newline at end of file +module.exports = elo; diff --git a/test/equals/equals.js b/test/equals/equals.js index 6ab03913f..1d3665f5d 100644 --- a/test/equals/equals.js +++ b/test/equals/equals.js @@ -8,5 +8,4 @@ const equals = (a, b) => { if (keys.length !== Object.keys(b).length) return false; return keys.every(k => equals(a[k], b[k])); }; - -module.exports = equals; \ No newline at end of file +module.exports = equals; diff --git a/test/escapeHTML/escapeHTML.js b/test/escapeHTML/escapeHTML.js index 0bb40ad36..d8c219fbc 100644 --- a/test/escapeHTML/escapeHTML.js +++ b/test/escapeHTML/escapeHTML.js @@ -10,5 +10,4 @@ const escapeHTML = str => '"': '"' }[tag] || tag) ); - -module.exports = escapeHTML; \ No newline at end of file +module.exports = escapeHTML; diff --git a/test/escapeRegExp/escapeRegExp.js b/test/escapeRegExp/escapeRegExp.js index 8f85d2981..2519cfe13 100644 --- a/test/escapeRegExp/escapeRegExp.js +++ b/test/escapeRegExp/escapeRegExp.js @@ -1,3 +1,2 @@ const escapeRegExp = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); - -module.exports = escapeRegExp; \ No newline at end of file +module.exports = escapeRegExp; diff --git a/test/everyNth/everyNth.js b/test/everyNth/everyNth.js index 368bfa39c..4ef94c46c 100644 --- a/test/everyNth/everyNth.js +++ b/test/everyNth/everyNth.js @@ -1,3 +1,2 @@ const everyNth = (arr, nth) => arr.filter((e, i) => i % nth === nth - 1); - -module.exports = everyNth; \ No newline at end of file +module.exports = everyNth; diff --git a/test/extendHex/extendHex.js b/test/extendHex/extendHex.js index 00c18db9c..36ea367a2 100644 --- a/test/extendHex/extendHex.js +++ b/test/extendHex/extendHex.js @@ -5,5 +5,4 @@ const extendHex = shortHex => .split('') .map(x => x + x) .join(''); - -module.exports = extendHex; \ No newline at end of file +module.exports = extendHex; diff --git a/test/factorial/factorial.js b/test/factorial/factorial.js index 7a39ba257..18e1c719f 100644 --- a/test/factorial/factorial.js +++ b/test/factorial/factorial.js @@ -6,5 +6,4 @@ const factorial = n => : n <= 1 ? 1 : n * factorial(n - 1); - -module.exports = factorial; \ No newline at end of file +module.exports = factorial; diff --git a/test/factors/factors.js b/test/factors/factors.js index 843364b89..80e9e4b9b 100644 --- a/test/factors/factors.js +++ b/test/factors/factors.js @@ -17,5 +17,4 @@ const factors = (num, primes = false) => { }, []); return primes ? array.filter(isPrime) : array; }; - -module.exports = factors; \ No newline at end of file +module.exports = factors; diff --git a/test/fibonacci/fibonacci.js b/test/fibonacci/fibonacci.js index ea9066a56..3fa87a6e1 100644 --- a/test/fibonacci/fibonacci.js +++ b/test/fibonacci/fibonacci.js @@ -3,5 +3,4 @@ const fibonacci = n => (acc, val, i) => acc.concat(i > 1 ? acc[i - 1] + acc[i - 2] : i), [] ); - -module.exports = fibonacci; \ No newline at end of file +module.exports = fibonacci; diff --git a/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js b/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js index aa6c48cfe..aacbc269b 100644 --- a/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js +++ b/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js @@ -1,4 +1,3 @@ const fibonacciCountUntilNum = num => Math.ceil(Math.log(num * Math.sqrt(5) + 1 / 2) / Math.log((Math.sqrt(5) + 1) / 2)); - -module.exports = fibonacciCountUntilNum; \ No newline at end of file +module.exports = fibonacciCountUntilNum; diff --git a/test/fibonacciUntilNum/fibonacciUntilNum.js b/test/fibonacciUntilNum/fibonacciUntilNum.js index 953b6bd85..e4c109fb1 100644 --- a/test/fibonacciUntilNum/fibonacciUntilNum.js +++ b/test/fibonacciUntilNum/fibonacciUntilNum.js @@ -5,5 +5,4 @@ const fibonacciUntilNum = num => { [] ); }; - -module.exports = fibonacciUntilNum; \ No newline at end of file +module.exports = fibonacciUntilNum; diff --git a/test/filterNonUnique/filterNonUnique.js b/test/filterNonUnique/filterNonUnique.js index d49346c96..84ca7a4e8 100644 --- a/test/filterNonUnique/filterNonUnique.js +++ b/test/filterNonUnique/filterNonUnique.js @@ -1,3 +1,2 @@ const filterNonUnique = arr => arr.filter(i => arr.indexOf(i) === arr.lastIndexOf(i)); - -module.exports = filterNonUnique; \ No newline at end of file +module.exports = filterNonUnique; diff --git a/test/filterNonUniqueBy/filterNonUniqueBy.js b/test/filterNonUniqueBy/filterNonUniqueBy.js index 2787ec47f..274c1ce8a 100644 --- a/test/filterNonUniqueBy/filterNonUniqueBy.js +++ b/test/filterNonUniqueBy/filterNonUniqueBy.js @@ -1,4 +1,3 @@ const filterNonUniqueBy = (arr, fn) => arr.filter((v, i) => arr.every((x, j) => (i === j) === fn(v, x, i, j))); - -module.exports = filterNonUniqueBy; \ No newline at end of file +module.exports = filterNonUniqueBy; diff --git a/test/findKey/findKey.js b/test/findKey/findKey.js index 8c095e3a4..4f77774ce 100644 --- a/test/findKey/findKey.js +++ b/test/findKey/findKey.js @@ -1,3 +1,2 @@ const findKey = (obj, fn) => Object.keys(obj).find(key => fn(obj[key], key, obj)); - -module.exports = findKey; \ No newline at end of file +module.exports = findKey; diff --git a/test/findLast/findLast.js b/test/findLast/findLast.js index 91f8d9abb..da604a9bf 100644 --- a/test/findLast/findLast.js +++ b/test/findLast/findLast.js @@ -1,3 +1,2 @@ const findLast = (arr, fn) => arr.filter(fn).pop(); - -module.exports = findLast; \ No newline at end of file +module.exports = findLast; diff --git a/test/findLastIndex/findLastIndex.js b/test/findLastIndex/findLastIndex.js index e1bf7273e..d99adccbb 100644 --- a/test/findLastIndex/findLastIndex.js +++ b/test/findLastIndex/findLastIndex.js @@ -3,5 +3,4 @@ const findLastIndex = (arr, fn) => .map((val, i) => [i, val]) .filter(([i, val]) => fn(val, i, arr)) .pop()[0]; - -module.exports = findLastIndex; \ No newline at end of file +module.exports = findLastIndex; diff --git a/test/findLastKey/findLastKey.js b/test/findLastKey/findLastKey.js index 9a3bc81f8..f27471663 100644 --- a/test/findLastKey/findLastKey.js +++ b/test/findLastKey/findLastKey.js @@ -2,5 +2,4 @@ const findLastKey = (obj, fn) => Object.keys(obj) .reverse() .find(key => fn(obj[key], key, obj)); - -module.exports = findLastKey; \ No newline at end of file +module.exports = findLastKey; diff --git a/test/flatten/flatten.js b/test/flatten/flatten.js index 47150897b..83cebd731 100644 --- a/test/flatten/flatten.js +++ b/test/flatten/flatten.js @@ -1,4 +1,3 @@ const flatten = (arr, depth = 1) => arr.reduce((a, v) => a.concat(depth > 1 && Array.isArray(v) ? flatten(v, depth - 1) : v), []); - -module.exports = flatten; \ No newline at end of file +module.exports = flatten; diff --git a/test/flattenObject/flattenObject.js b/test/flattenObject/flattenObject.js index 27907d958..bd796c5e1 100644 --- a/test/flattenObject/flattenObject.js +++ b/test/flattenObject/flattenObject.js @@ -5,5 +5,4 @@ const flattenObject = (obj, prefix = '') => else acc[pre + k] = obj[k]; return acc; }, {}); - -module.exports = flattenObject; \ No newline at end of file +module.exports = flattenObject; diff --git a/test/flip/flip.js b/test/flip/flip.js index e117cbeca..68cd33bb2 100644 --- a/test/flip/flip.js +++ b/test/flip/flip.js @@ -1,3 +1,2 @@ const flip = fn => (first, ...rest) => fn(...rest, first); - -module.exports = flip; \ No newline at end of file +module.exports = flip; diff --git a/test/forEachRight/forEachRight.js b/test/forEachRight/forEachRight.js index 9ce2082d4..b2143e743 100644 --- a/test/forEachRight/forEachRight.js +++ b/test/forEachRight/forEachRight.js @@ -3,5 +3,4 @@ const forEachRight = (arr, callback) => .slice(0) .reverse() .forEach(callback); - -module.exports = forEachRight; \ No newline at end of file +module.exports = forEachRight; diff --git a/test/forOwn/forOwn.js b/test/forOwn/forOwn.js index d0c5454b7..f6ddfd0c3 100644 --- a/test/forOwn/forOwn.js +++ b/test/forOwn/forOwn.js @@ -1,3 +1,2 @@ const forOwn = (obj, fn) => Object.keys(obj).forEach(key => fn(obj[key], key, obj)); - -module.exports = forOwn; \ No newline at end of file +module.exports = forOwn; diff --git a/test/forOwnRight/forOwnRight.js b/test/forOwnRight/forOwnRight.js index bf4aa3177..643cad803 100644 --- a/test/forOwnRight/forOwnRight.js +++ b/test/forOwnRight/forOwnRight.js @@ -2,5 +2,4 @@ const forOwnRight = (obj, fn) => Object.keys(obj) .reverse() .forEach(key => fn(obj[key], key, obj)); - -module.exports = forOwnRight; \ No newline at end of file +module.exports = forOwnRight; diff --git a/test/formatDuration/formatDuration.js b/test/formatDuration/formatDuration.js index df83de8b5..0da56ed15 100644 --- a/test/formatDuration/formatDuration.js +++ b/test/formatDuration/formatDuration.js @@ -12,5 +12,4 @@ const formatDuration = ms => { .map(val => val[1] + ' ' + (val[1] !== 1 ? val[0] + 's' : val[0])) .join(', '); }; - -module.exports = formatDuration; \ No newline at end of file +module.exports = formatDuration; diff --git a/test/fromCamelCase/fromCamelCase.js b/test/fromCamelCase/fromCamelCase.js index d149f154f..49b0c7fee 100644 --- a/test/fromCamelCase/fromCamelCase.js +++ b/test/fromCamelCase/fromCamelCase.js @@ -3,5 +3,4 @@ const fromCamelCase = (str, separator = '_') => .replace(/([a-z\d])([A-Z])/g, '$1' + separator + '$2') .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + separator + '$2') .toLowerCase(); - -module.exports = fromCamelCase; \ No newline at end of file +module.exports = fromCamelCase; diff --git a/test/functionName/functionName.js b/test/functionName/functionName.js index ffcd77822..3fb41366f 100644 --- a/test/functionName/functionName.js +++ b/test/functionName/functionName.js @@ -1,3 +1,2 @@ const functionName = fn => (console.debug(fn.name), fn); - -module.exports = functionName; \ No newline at end of file +module.exports = functionName; diff --git a/test/functions/functions.js b/test/functions/functions.js index 3b8e223d9..e01d43b3d 100644 --- a/test/functions/functions.js +++ b/test/functions/functions.js @@ -3,5 +3,4 @@ const functions = (obj, inherited = false) => ? [...Object.keys(obj), ...Object.keys(Object.getPrototypeOf(obj))] : Object.keys(obj) ).filter(key => typeof obj[key] === 'function'); - -module.exports = functions; \ No newline at end of file +module.exports = functions; diff --git a/test/gcd/gcd.js b/test/gcd/gcd.js index 11846784f..06e88caa6 100644 --- a/test/gcd/gcd.js +++ b/test/gcd/gcd.js @@ -2,5 +2,4 @@ const gcd = (...arr) => { const _gcd = (x, y) => (!y ? x : gcd(y, x % y)); return [...arr].reduce((a, b) => _gcd(a, b)); }; - -module.exports = gcd; \ No newline at end of file +module.exports = gcd; diff --git a/test/geometricProgression/geometricProgression.js b/test/geometricProgression/geometricProgression.js index 8471af861..fea8c663d 100644 --- a/test/geometricProgression/geometricProgression.js +++ b/test/geometricProgression/geometricProgression.js @@ -2,5 +2,4 @@ const geometricProgression = (end, start = 1, step = 2) => Array.from({ length: Math.floor(Math.log(end / start) / Math.log(step)) + 1 }).map( (v, i) => start * step ** i ); - -module.exports = geometricProgression; \ No newline at end of file +module.exports = geometricProgression; diff --git a/test/get/get.js b/test/get/get.js index 143fd1b20..695c625b4 100644 --- a/test/get/get.js +++ b/test/get/get.js @@ -6,5 +6,4 @@ const get = (from, ...selectors) => .filter(t => t !== '') .reduce((prev, cur) => prev && prev[cur], from) ); - -module.exports = get; \ No newline at end of file +module.exports = get; diff --git a/test/getColonTimeFromDate/getColonTimeFromDate.js b/test/getColonTimeFromDate/getColonTimeFromDate.js index 5ad2a602c..352804b05 100644 --- a/test/getColonTimeFromDate/getColonTimeFromDate.js +++ b/test/getColonTimeFromDate/getColonTimeFromDate.js @@ -1,3 +1,2 @@ const getColonTimeFromDate = date => date.toTimeString().slice(0, 8); - -module.exports = getColonTimeFromDate; \ No newline at end of file +module.exports = getColonTimeFromDate; diff --git a/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js b/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js index 8525c703c..ebfa776a3 100644 --- a/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js +++ b/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js @@ -1,4 +1,3 @@ const getDaysDiffBetweenDates = (dateInitial, dateFinal) => (dateFinal - dateInitial) / (1000 * 3600 * 24); - -module.exports = getDaysDiffBetweenDates; \ No newline at end of file +module.exports = getDaysDiffBetweenDates; diff --git a/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js b/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js index 4ad5d9eeb..6e91ea80c 100644 --- a/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js +++ b/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js @@ -6,5 +6,4 @@ const getMeridiemSuffixOfInteger = num => : num < 12 ? (num % 12) + 'am' : (num % 12) + 'pm'; - -module.exports = getMeridiemSuffixOfInteger; \ No newline at end of file +module.exports = getMeridiemSuffixOfInteger; diff --git a/test/getScrollPosition/getScrollPosition.js b/test/getScrollPosition/getScrollPosition.js index c8f22a175..aa3845525 100644 --- a/test/getScrollPosition/getScrollPosition.js +++ b/test/getScrollPosition/getScrollPosition.js @@ -2,5 +2,4 @@ const getScrollPosition = (el = window) => ({ x: el.pageXOffset !== undefined ? el.pageXOffset : el.scrollLeft, y: el.pageYOffset !== undefined ? el.pageYOffset : el.scrollTop }); - -module.exports = getScrollPosition; \ No newline at end of file +module.exports = getScrollPosition; diff --git a/test/getStyle/getStyle.js b/test/getStyle/getStyle.js index 92953b2e8..b276a13b0 100644 --- a/test/getStyle/getStyle.js +++ b/test/getStyle/getStyle.js @@ -1,3 +1,2 @@ const getStyle = (el, ruleName) => getComputedStyle(el)[ruleName]; - -module.exports = getStyle; \ No newline at end of file +module.exports = getStyle; diff --git a/test/getType/getType.js b/test/getType/getType.js index b2c8b44ba..6b3bd5f10 100644 --- a/test/getType/getType.js +++ b/test/getType/getType.js @@ -1,4 +1,3 @@ const getType = v => v === undefined ? 'undefined' : v === null ? 'null' : v.constructor.name.toLowerCase(); - -module.exports = getType; \ No newline at end of file +module.exports = getType; diff --git a/test/getURLParameters/getURLParameters.js b/test/getURLParameters/getURLParameters.js index 6f808fcfc..288c65d3b 100644 --- a/test/getURLParameters/getURLParameters.js +++ b/test/getURLParameters/getURLParameters.js @@ -3,5 +3,4 @@ const getURLParameters = url => (a, v) => ((a[v.slice(0, v.indexOf('='))] = v.slice(v.indexOf('=') + 1)), a), {} ); - -module.exports = getURLParameters; \ No newline at end of file +module.exports = getURLParameters; diff --git a/test/groupBy/groupBy.js b/test/groupBy/groupBy.js index c92262912..8f4c9b95e 100644 --- a/test/groupBy/groupBy.js +++ b/test/groupBy/groupBy.js @@ -3,5 +3,4 @@ const groupBy = (arr, fn) => acc[val] = (acc[val] || []).concat(arr[i]); return acc; }, {}); - -module.exports = groupBy; \ No newline at end of file +module.exports = groupBy; diff --git a/test/hammingDistance/hammingDistance.js b/test/hammingDistance/hammingDistance.js index 049b2114b..429b458c3 100644 --- a/test/hammingDistance/hammingDistance.js +++ b/test/hammingDistance/hammingDistance.js @@ -1,3 +1,2 @@ const hammingDistance = (num1, num2) => ((num1 ^ num2).toString(2).match(/1/g) || '').length; - -module.exports = hammingDistance; \ No newline at end of file +module.exports = hammingDistance; diff --git a/test/hasClass/hasClass.js b/test/hasClass/hasClass.js index 9acc2ca3c..f6c66e6e3 100644 --- a/test/hasClass/hasClass.js +++ b/test/hasClass/hasClass.js @@ -1,3 +1,2 @@ const hasClass = (el, className) => el.classList.contains(className); - -module.exports = hasClass; \ No newline at end of file +module.exports = hasClass; diff --git a/test/hasFlags/hasFlags.js b/test/hasFlags/hasFlags.js index 799fddafe..fe3fbb363 100644 --- a/test/hasFlags/hasFlags.js +++ b/test/hasFlags/hasFlags.js @@ -1,4 +1,3 @@ const hasFlags = (...flags) => flags.every(flag => process.argv.includes(/^-{1,2}/.test(flag) ? flag : '--' + flag)); - -module.exports = hasFlags; \ No newline at end of file +module.exports = hasFlags; diff --git a/test/hashBrowser/hashBrowser.js b/test/hashBrowser/hashBrowser.js index 88f4c06b0..03b91f14d 100644 --- a/test/hashBrowser/hashBrowser.js +++ b/test/hashBrowser/hashBrowser.js @@ -6,5 +6,4 @@ const hashBrowser = val => hexes.push(('00000000' + view.getUint32(i).toString(16)).slice(-8)); return hexes.join(''); }); - -module.exports = hashBrowser; \ No newline at end of file +module.exports = hashBrowser; diff --git a/test/hashNode/hashNode.js b/test/hashNode/hashNode.js index 376cc231d..49aa3371d 100644 --- a/test/hashNode/hashNode.js +++ b/test/hashNode/hashNode.js @@ -12,5 +12,4 @@ const hashNode = val => 0 ) ); - -module.exports = hashNode; \ No newline at end of file +module.exports = hashNode; diff --git a/test/head/head.js b/test/head/head.js index 9c4d84818..6f7144f5b 100644 --- a/test/head/head.js +++ b/test/head/head.js @@ -1,3 +1,2 @@ const head = arr => arr[0]; - -module.exports = head; \ No newline at end of file +module.exports = head; diff --git a/test/hexToRGB/hexToRGB.js b/test/hexToRGB/hexToRGB.js index de730196f..3cce4385b 100644 --- a/test/hexToRGB/hexToRGB.js +++ b/test/hexToRGB/hexToRGB.js @@ -17,5 +17,4 @@ const hexToRGB = hex => { ')' ); }; - -module.exports = hexToRGB; \ No newline at end of file +module.exports = hexToRGB; diff --git a/test/hide/hide.js b/test/hide/hide.js index cdf41890d..0d4044db0 100644 --- a/test/hide/hide.js +++ b/test/hide/hide.js @@ -1,3 +1,2 @@ const hide = (...el) => [...el].forEach(e => (e.style.display = 'none')); - -module.exports = hide; \ No newline at end of file +module.exports = hide; diff --git a/test/howManyTimes/howManyTimes.js b/test/howManyTimes/howManyTimes.js index c6d142783..029dff672 100644 --- a/test/howManyTimes/howManyTimes.js +++ b/test/howManyTimes/howManyTimes.js @@ -8,5 +8,4 @@ const howManyTimes = (num, divisor) => { } return i; }; - -module.exports = howManyTimes; \ No newline at end of file +module.exports = howManyTimes; diff --git a/test/httpDelete/httpDelete.js b/test/httpDelete/httpDelete.js index fc04b1c08..2a2d55a28 100644 --- a/test/httpDelete/httpDelete.js +++ b/test/httpDelete/httpDelete.js @@ -5,5 +5,4 @@ const httpDelete = (url, callback, err = console.error) => { request.onerror = () => err(request); request.send(); }; - -module.exports = httpDelete; \ No newline at end of file +module.exports = httpDelete; diff --git a/test/httpGet/httpGet.js b/test/httpGet/httpGet.js index 1bc5dd5fd..73f537e73 100644 --- a/test/httpGet/httpGet.js +++ b/test/httpGet/httpGet.js @@ -5,5 +5,4 @@ const httpGet = (url, callback, err = console.error) => { request.onerror = () => err(request); request.send(); }; - -module.exports = httpGet; \ No newline at end of file +module.exports = httpGet; diff --git a/test/httpPost/httpPost.js b/test/httpPost/httpPost.js index 60d487663..f1380dd1b 100644 --- a/test/httpPost/httpPost.js +++ b/test/httpPost/httpPost.js @@ -6,5 +6,4 @@ const httpPost = (url, data, callback, err = console.error) => { request.onerror = () => err(request); request.send(data); }; - -module.exports = httpPost; \ No newline at end of file +module.exports = httpPost; diff --git a/test/httpPut/httpPut.js b/test/httpPut/httpPut.js index 1e387f111..9c34ca2d0 100644 --- a/test/httpPut/httpPut.js +++ b/test/httpPut/httpPut.js @@ -6,5 +6,4 @@ const httpPut = (url, data, callback, err = console.error) => { request.onerror = () => err(request); request.send(data); }; - -module.exports = httpPut; \ No newline at end of file +module.exports = httpPut; diff --git a/test/httpsRedirect/httpsRedirect.js b/test/httpsRedirect/httpsRedirect.js index 19cb14201..ef477f282 100644 --- a/test/httpsRedirect/httpsRedirect.js +++ b/test/httpsRedirect/httpsRedirect.js @@ -1,5 +1,4 @@ const httpsRedirect = () => { if (location.protocol !== 'https:') location.replace('https://' + location.href.split('//')[1]); }; - -module.exports = httpsRedirect; \ No newline at end of file +module.exports = httpsRedirect; diff --git a/test/hz/hz.js b/test/hz/hz.js index a20281838..7172074bb 100644 --- a/test/hz/hz.js +++ b/test/hz/hz.js @@ -3,5 +3,4 @@ const hz = (fn, iterations = 100) => { for (let i = 0; i < iterations; i++) fn(); return (1000 * iterations) / (performance.now() - before); }; - -module.exports = hz; \ No newline at end of file +module.exports = hz; diff --git a/test/inRange/inRange.js b/test/inRange/inRange.js index 110ecc506..9377a53ca 100644 --- a/test/inRange/inRange.js +++ b/test/inRange/inRange.js @@ -2,5 +2,4 @@ const inRange = (n, start, end = null) => { if (end && start > end) end = [start, (start = end)][0]; return end == null ? n >= 0 && n < start : n >= start && n < end; }; - -module.exports = inRange; \ No newline at end of file +module.exports = inRange; diff --git a/test/indexOfAll/indexOfAll.js b/test/indexOfAll/indexOfAll.js index 066ee63ff..3ac5091b0 100644 --- a/test/indexOfAll/indexOfAll.js +++ b/test/indexOfAll/indexOfAll.js @@ -3,5 +3,4 @@ const indexOfAll = (arr, val) => { arr.forEach((el, i) => el === val && indices.push(i)); return indices; }; - -module.exports = indexOfAll; \ No newline at end of file +module.exports = indexOfAll; diff --git a/test/initial/initial.js b/test/initial/initial.js index 496242956..e3fa5e368 100644 --- a/test/initial/initial.js +++ b/test/initial/initial.js @@ -1,3 +1,2 @@ const initial = arr => arr.slice(0, -1); - -module.exports = initial; \ No newline at end of file +module.exports = initial; diff --git a/test/initialize2DArray/initialize2DArray.js b/test/initialize2DArray/initialize2DArray.js index 21984210f..362362f11 100644 --- a/test/initialize2DArray/initialize2DArray.js +++ b/test/initialize2DArray/initialize2DArray.js @@ -1,4 +1,3 @@ const initialize2DArray = (w, h, val = null) => Array.from({ length: h }).map(() => Array.from({ length: w }).fill(val)); - -module.exports = initialize2DArray; \ No newline at end of file +module.exports = initialize2DArray; diff --git a/test/initializeArrayWithRange/initializeArrayWithRange.js b/test/initializeArrayWithRange/initializeArrayWithRange.js index fd487fc61..911f6d198 100644 --- a/test/initializeArrayWithRange/initializeArrayWithRange.js +++ b/test/initializeArrayWithRange/initializeArrayWithRange.js @@ -1,4 +1,3 @@ const initializeArrayWithRange = (end, start = 0, step = 1) => Array.from({ length: Math.ceil((end + 1 - start) / step) }).map((v, i) => i * step + start); - -module.exports = initializeArrayWithRange; \ No newline at end of file +module.exports = initializeArrayWithRange; diff --git a/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js b/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js index 172ca1589..f6a839c7f 100644 --- a/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js +++ b/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js @@ -2,5 +2,4 @@ const initializeArrayWithRangeRight = (end, start = 0, step = 1) => Array.from({ length: Math.ceil((end + 1 - start) / step) }).map( (v, i, arr) => (arr.length - i - 1) * step + start ); - -module.exports = initializeArrayWithRangeRight; \ No newline at end of file +module.exports = initializeArrayWithRangeRight; diff --git a/test/initializeArrayWithValues/initializeArrayWithValues.js b/test/initializeArrayWithValues/initializeArrayWithValues.js index a2a3c93cf..6f4ec947e 100644 --- a/test/initializeArrayWithValues/initializeArrayWithValues.js +++ b/test/initializeArrayWithValues/initializeArrayWithValues.js @@ -1,3 +1,2 @@ const initializeArrayWithValues = (n, val = 0) => Array(n).fill(val); - -module.exports = initializeArrayWithValues; \ No newline at end of file +module.exports = initializeArrayWithValues; diff --git a/test/initializeNDArray/initializeNDArray.js b/test/initializeNDArray/initializeNDArray.js index ee73ed5b1..44bcfe3a8 100644 --- a/test/initializeNDArray/initializeNDArray.js +++ b/test/initializeNDArray/initializeNDArray.js @@ -2,5 +2,4 @@ const initializeNDArray = (val, ...args) => args.length === 0 ? val : Array.from({ length: args[0] }).map(() => initializeNDArray(val, ...args.slice(1))); - -module.exports = initializeNDArray; \ No newline at end of file +module.exports = initializeNDArray; diff --git a/test/insertAfter/insertAfter.js b/test/insertAfter/insertAfter.js index 89a213d7d..69de4395b 100644 --- a/test/insertAfter/insertAfter.js +++ b/test/insertAfter/insertAfter.js @@ -1,3 +1,2 @@ const insertAfter = (el, htmlString) => el.insertAdjacentHTML('afterend', htmlString); - -module.exports = insertAfter; \ No newline at end of file +module.exports = insertAfter; diff --git a/test/insertBefore/insertBefore.js b/test/insertBefore/insertBefore.js index 7e19429f0..8e29af968 100644 --- a/test/insertBefore/insertBefore.js +++ b/test/insertBefore/insertBefore.js @@ -1,3 +1,2 @@ const insertBefore = (el, htmlString) => el.insertAdjacentHTML('beforebegin', htmlString); - -module.exports = insertBefore; \ No newline at end of file +module.exports = insertBefore; diff --git a/test/intersection/intersection.js b/test/intersection/intersection.js index 435c9d9af..521059129 100644 --- a/test/intersection/intersection.js +++ b/test/intersection/intersection.js @@ -2,5 +2,4 @@ const intersection = (a, b) => { const s = new Set(b); return a.filter(x => s.has(x)); }; - -module.exports = intersection; \ No newline at end of file +module.exports = intersection; diff --git a/test/intersectionBy/intersectionBy.js b/test/intersectionBy/intersectionBy.js index ce3ef63cb..0d598f30b 100644 --- a/test/intersectionBy/intersectionBy.js +++ b/test/intersectionBy/intersectionBy.js @@ -2,5 +2,4 @@ const intersectionBy = (a, b, fn) => { const s = new Set(b.map(x => fn(x))); return a.filter(x => s.has(fn(x))); }; - -module.exports = intersectionBy; \ No newline at end of file +module.exports = intersectionBy; diff --git a/test/intersectionWith/intersectionWith.js b/test/intersectionWith/intersectionWith.js index d4ffb23ea..9b194c6e0 100644 --- a/test/intersectionWith/intersectionWith.js +++ b/test/intersectionWith/intersectionWith.js @@ -1,3 +1,2 @@ const intersectionWith = (a, b, comp) => a.filter(x => b.findIndex(y => comp(x, y)) !== -1); - -module.exports = intersectionWith; \ No newline at end of file +module.exports = intersectionWith; diff --git a/test/invertKeyValues/invertKeyValues.js b/test/invertKeyValues/invertKeyValues.js index d9a01763e..5c6546dbe 100644 --- a/test/invertKeyValues/invertKeyValues.js +++ b/test/invertKeyValues/invertKeyValues.js @@ -5,5 +5,4 @@ const invertKeyValues = (obj, fn) => acc[val].push(key); return acc; }, {}); - -module.exports = invertKeyValues; \ No newline at end of file +module.exports = invertKeyValues; diff --git a/test/is/is.js b/test/is/is.js index e12ae4af2..ee5b7f6ba 100644 --- a/test/is/is.js +++ b/test/is/is.js @@ -1,3 +1,2 @@ const is = (type, val) => ![, null].includes(val) && val.constructor === type; - -module.exports = is; \ No newline at end of file +module.exports = is; diff --git a/test/isAbsoluteURL/isAbsoluteURL.js b/test/isAbsoluteURL/isAbsoluteURL.js index f94177f73..8d5950d20 100644 --- a/test/isAbsoluteURL/isAbsoluteURL.js +++ b/test/isAbsoluteURL/isAbsoluteURL.js @@ -1,3 +1,2 @@ const isAbsoluteURL = str => /^[a-z][a-z0-9+.-]*:/.test(str); - -module.exports = isAbsoluteURL; \ No newline at end of file +module.exports = isAbsoluteURL; diff --git a/test/isAnagram/isAnagram.js b/test/isAnagram/isAnagram.js index 2ce3db13f..72931b190 100644 --- a/test/isAnagram/isAnagram.js +++ b/test/isAnagram/isAnagram.js @@ -8,5 +8,4 @@ const isAnagram = (str1, str2) => { .join(''); return normalize(str1) === normalize(str2); }; - -module.exports = isAnagram; \ No newline at end of file +module.exports = isAnagram; diff --git a/test/isArmstrongNumber/isArmstrongNumber.js b/test/isArmstrongNumber/isArmstrongNumber.js index ed8e407b3..b4933a796 100644 --- a/test/isArmstrongNumber/isArmstrongNumber.js +++ b/test/isArmstrongNumber/isArmstrongNumber.js @@ -2,5 +2,4 @@ const isArmstrongNumber = digits => (arr => arr.reduce((a, d) => a + parseInt(d) ** arr.length, 0) == digits)( (digits + '').split('') ); - -module.exports = isArmstrongNumber; \ No newline at end of file +module.exports = isArmstrongNumber; diff --git a/test/isArrayLike/isArrayLike.js b/test/isArrayLike/isArrayLike.js index 31fb84d67..c603d5bc5 100644 --- a/test/isArrayLike/isArrayLike.js +++ b/test/isArrayLike/isArrayLike.js @@ -5,5 +5,4 @@ const isArrayLike = val => { return false; } }; - -module.exports = isArrayLike; \ No newline at end of file +module.exports = isArrayLike; diff --git a/test/isBoolean/isBoolean.js b/test/isBoolean/isBoolean.js index 6daf49c14..52698bff3 100644 --- a/test/isBoolean/isBoolean.js +++ b/test/isBoolean/isBoolean.js @@ -1,3 +1,2 @@ const isBoolean = val => typeof val === 'boolean'; - -module.exports = isBoolean; \ No newline at end of file +module.exports = isBoolean; diff --git a/test/isBrowser/isBrowser.js b/test/isBrowser/isBrowser.js index 9391a408b..26d288f10 100644 --- a/test/isBrowser/isBrowser.js +++ b/test/isBrowser/isBrowser.js @@ -1,3 +1,2 @@ const isBrowser = () => ![typeof window, typeof document].includes('undefined'); - -module.exports = isBrowser; \ No newline at end of file +module.exports = isBrowser; diff --git a/test/isBrowserTabFocused/isBrowserTabFocused.js b/test/isBrowserTabFocused/isBrowserTabFocused.js index b53e496c2..f70930c29 100644 --- a/test/isBrowserTabFocused/isBrowserTabFocused.js +++ b/test/isBrowserTabFocused/isBrowserTabFocused.js @@ -1,3 +1,2 @@ const isBrowserTabFocused = () => !document.hidden; - -module.exports = isBrowserTabFocused; \ No newline at end of file +module.exports = isBrowserTabFocused; diff --git a/test/isDivisible/isDivisible.js b/test/isDivisible/isDivisible.js index 4331afdec..de112a3cc 100644 --- a/test/isDivisible/isDivisible.js +++ b/test/isDivisible/isDivisible.js @@ -1,3 +1,2 @@ const isDivisible = (dividend, divisor) => dividend % divisor === 0; - -module.exports = isDivisible; \ No newline at end of file +module.exports = isDivisible; diff --git a/test/isEmpty/isEmpty.js b/test/isEmpty/isEmpty.js index 13433e27c..20738e4f2 100644 --- a/test/isEmpty/isEmpty.js +++ b/test/isEmpty/isEmpty.js @@ -1,3 +1,2 @@ const isEmpty = val => val == null || !(Object.keys(val) || val).length; - -module.exports = isEmpty; \ No newline at end of file +module.exports = isEmpty; diff --git a/test/isEven/isEven.js b/test/isEven/isEven.js index 4fe78f75c..d5eda889b 100644 --- a/test/isEven/isEven.js +++ b/test/isEven/isEven.js @@ -1,3 +1,2 @@ const isEven = num => num % 2 === 0; - -module.exports = isEven; \ No newline at end of file +module.exports = isEven; diff --git a/test/isFunction/isFunction.js b/test/isFunction/isFunction.js index 8c544c6cc..29123f19f 100644 --- a/test/isFunction/isFunction.js +++ b/test/isFunction/isFunction.js @@ -1,3 +1,2 @@ const isFunction = val => typeof val === 'function'; - -module.exports = isFunction; \ No newline at end of file +module.exports = isFunction; diff --git a/test/isLowerCase/isLowerCase.js b/test/isLowerCase/isLowerCase.js index fac611cee..a5184a193 100644 --- a/test/isLowerCase/isLowerCase.js +++ b/test/isLowerCase/isLowerCase.js @@ -1,3 +1,2 @@ const isLowerCase = str => str === str.toLowerCase(); - -module.exports = isLowerCase; \ No newline at end of file +module.exports = isLowerCase; diff --git a/test/isNil/isNil.js b/test/isNil/isNil.js index 14c17be1c..6ed72a7be 100644 --- a/test/isNil/isNil.js +++ b/test/isNil/isNil.js @@ -1,3 +1,2 @@ const isNil = val => val === undefined || val === null; - -module.exports = isNil; \ No newline at end of file +module.exports = isNil; diff --git a/test/isNull/isNull.js b/test/isNull/isNull.js index b70207e95..5cfec0ee2 100644 --- a/test/isNull/isNull.js +++ b/test/isNull/isNull.js @@ -1,3 +1,2 @@ const isNull = val => val === null; - -module.exports = isNull; \ No newline at end of file +module.exports = isNull; diff --git a/test/isNumber/isNumber.js b/test/isNumber/isNumber.js index 6b1baee38..cd76e2128 100644 --- a/test/isNumber/isNumber.js +++ b/test/isNumber/isNumber.js @@ -1,3 +1,2 @@ const isNumber = val => typeof val === 'number'; - -module.exports = isNumber; \ No newline at end of file +module.exports = isNumber; diff --git a/test/isObject/isObject.js b/test/isObject/isObject.js index 82d25ed30..1eb389d52 100644 --- a/test/isObject/isObject.js +++ b/test/isObject/isObject.js @@ -1,3 +1,2 @@ const isObject = obj => obj === Object(obj); - -module.exports = isObject; \ No newline at end of file +module.exports = isObject; diff --git a/test/isObjectLike/isObjectLike.js b/test/isObjectLike/isObjectLike.js index a8283a13a..4bdf057d1 100644 --- a/test/isObjectLike/isObjectLike.js +++ b/test/isObjectLike/isObjectLike.js @@ -1,3 +1,2 @@ const isObjectLike = val => val !== null && typeof val === 'object'; - -module.exports = isObjectLike; \ No newline at end of file +module.exports = isObjectLike; diff --git a/test/isPlainObject/isPlainObject.js b/test/isPlainObject/isPlainObject.js index 155f153a2..593560238 100644 --- a/test/isPlainObject/isPlainObject.js +++ b/test/isPlainObject/isPlainObject.js @@ -1,3 +1,2 @@ const isPlainObject = val => !!val && typeof val === 'object' && val.constructor === Object; - -module.exports = isPlainObject; \ No newline at end of file +module.exports = isPlainObject; diff --git a/test/isPrime/isPrime.js b/test/isPrime/isPrime.js index 5168b854a..9613c2f63 100644 --- a/test/isPrime/isPrime.js +++ b/test/isPrime/isPrime.js @@ -3,5 +3,4 @@ const isPrime = num => { for (var i = 2; i <= boundary; i++) if (num % i === 0) return false; return num >= 2; }; - -module.exports = isPrime; \ No newline at end of file +module.exports = isPrime; diff --git a/test/isPrimitive/isPrimitive.js b/test/isPrimitive/isPrimitive.js index 5bc6a3b5b..89d7cc577 100644 --- a/test/isPrimitive/isPrimitive.js +++ b/test/isPrimitive/isPrimitive.js @@ -1,3 +1,2 @@ const isPrimitive = val => !['object', 'function'].includes(typeof val) || val === null; - -module.exports = isPrimitive; \ No newline at end of file +module.exports = isPrimitive; diff --git a/test/isPromiseLike/isPromiseLike.js b/test/isPromiseLike/isPromiseLike.js index 2cefdc2b9..b26b21400 100644 --- a/test/isPromiseLike/isPromiseLike.js +++ b/test/isPromiseLike/isPromiseLike.js @@ -2,5 +2,4 @@ const isPromiseLike = obj => obj !== null && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; - -module.exports = isPromiseLike; \ No newline at end of file +module.exports = isPromiseLike; diff --git a/test/isSimilar/isSimilar.js b/test/isSimilar/isSimilar.js index 970c007ea..b8f7f2f69 100644 --- a/test/isSimilar/isSimilar.js +++ b/test/isSimilar/isSimilar.js @@ -2,5 +2,4 @@ const isSimilar = (pattern, str) => [...str].reduce( (matchIndex, char) => char.toLowerCase() === (pattern[matchIndex] || '').toLowerCase() ? matchIndex + 1 : matchIndex, 0 ) === pattern.length ? true : false; - -module.exports = isSimilar; \ No newline at end of file +module.exports = isSimilar; diff --git a/test/isSorted/isSorted.js b/test/isSorted/isSorted.js index 7a494c47f..8250ab454 100644 --- a/test/isSorted/isSorted.js +++ b/test/isSorted/isSorted.js @@ -6,5 +6,4 @@ const isSorted = arr => { else if ((val - arr[i + 1]) * direction > 0) return 0; } }; - -module.exports = isSorted; \ No newline at end of file +module.exports = isSorted; diff --git a/test/isString/isString.js b/test/isString/isString.js index 0a702f734..6f644887f 100644 --- a/test/isString/isString.js +++ b/test/isString/isString.js @@ -1,3 +1,2 @@ const isString = val => typeof val === 'string'; - -module.exports = isString; \ No newline at end of file +module.exports = isString; diff --git a/test/isSymbol/isSymbol.js b/test/isSymbol/isSymbol.js index 2a2e24bcc..8a3ebf2dc 100644 --- a/test/isSymbol/isSymbol.js +++ b/test/isSymbol/isSymbol.js @@ -1,3 +1,2 @@ const isSymbol = val => typeof val === 'symbol'; - -module.exports = isSymbol; \ No newline at end of file +module.exports = isSymbol; diff --git a/test/isTravisCI/isTravisCI.js b/test/isTravisCI/isTravisCI.js index d02ad95c2..9f4a22de5 100644 --- a/test/isTravisCI/isTravisCI.js +++ b/test/isTravisCI/isTravisCI.js @@ -1,3 +1,2 @@ const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env; - -module.exports = isTravisCI; \ No newline at end of file +module.exports = isTravisCI; diff --git a/test/isUndefined/isUndefined.js b/test/isUndefined/isUndefined.js index d78f9a606..e0d3d5cee 100644 --- a/test/isUndefined/isUndefined.js +++ b/test/isUndefined/isUndefined.js @@ -1,3 +1,2 @@ const isUndefined = val => val === undefined; - -module.exports = isUndefined; \ No newline at end of file +module.exports = isUndefined; diff --git a/test/isUpperCase/isUpperCase.js b/test/isUpperCase/isUpperCase.js index a330aa9bc..b235dc8d1 100644 --- a/test/isUpperCase/isUpperCase.js +++ b/test/isUpperCase/isUpperCase.js @@ -1,3 +1,2 @@ const isUpperCase = str => str === str.toUpperCase(); - -module.exports = isUpperCase; \ No newline at end of file +module.exports = isUpperCase; diff --git a/test/isValidJSON/isValidJSON.js b/test/isValidJSON/isValidJSON.js index d79b3e024..eeeb340e9 100644 --- a/test/isValidJSON/isValidJSON.js +++ b/test/isValidJSON/isValidJSON.js @@ -6,5 +6,4 @@ const isValidJSON = obj => { return false; } }; - -module.exports = isValidJSON; \ No newline at end of file +module.exports = isValidJSON; diff --git a/test/join/join.js b/test/join/join.js index f8dd66a34..15d0dd96e 100644 --- a/test/join/join.js +++ b/test/join/join.js @@ -8,5 +8,4 @@ const join = (arr, separator = ',', end = separator) => : acc + val + separator, '' ); - -module.exports = join; \ No newline at end of file +module.exports = join; diff --git a/test/last/last.js b/test/last/last.js index f4807c08d..1e1d8a756 100644 --- a/test/last/last.js +++ b/test/last/last.js @@ -1,3 +1,2 @@ const last = arr => arr[arr.length - 1]; - -module.exports = last; \ No newline at end of file +module.exports = last; diff --git a/test/lcm/lcm.js b/test/lcm/lcm.js index a8e10a0ad..a4d8b1032 100644 --- a/test/lcm/lcm.js +++ b/test/lcm/lcm.js @@ -3,5 +3,4 @@ const lcm = (...arr) => { const _lcm = (x, y) => (x * y) / gcd(x, y); return [...arr].reduce((a, b) => _lcm(a, b)); }; - -module.exports = lcm; \ No newline at end of file +module.exports = lcm; diff --git a/test/levenshteinDistance/levenshteinDistance.js b/test/levenshteinDistance/levenshteinDistance.js index 5c5d0820e..a01055db7 100644 --- a/test/levenshteinDistance/levenshteinDistance.js +++ b/test/levenshteinDistance/levenshteinDistance.js @@ -15,5 +15,4 @@ const levenshteinDistance = (string1, string2) => { } return matrix[string2.length][string1.length]; }; - -module.exports = levenshteinDistance; \ No newline at end of file +module.exports = levenshteinDistance; diff --git a/test/longestItem/longestItem.js b/test/longestItem/longestItem.js index e136702ad..d5f7c2528 100644 --- a/test/longestItem/longestItem.js +++ b/test/longestItem/longestItem.js @@ -1,3 +1,2 @@ const longestItem = (...vals) => [...vals].sort((a, b) => b.length - a.length)[0]; - -module.exports = longestItem; \ No newline at end of file +module.exports = longestItem; diff --git a/test/lowercaseKeys/lowercaseKeys.js b/test/lowercaseKeys/lowercaseKeys.js index e8c2d05ff..235a0d5d8 100644 --- a/test/lowercaseKeys/lowercaseKeys.js +++ b/test/lowercaseKeys/lowercaseKeys.js @@ -3,5 +3,4 @@ const lowercaseKeys = obj => acc[key.toLowerCase()] = obj[key]; return acc; }, {}); - -module.exports = lowercaseKeys; \ No newline at end of file +module.exports = lowercaseKeys; diff --git a/test/luhnCheck/luhnCheck.js b/test/luhnCheck/luhnCheck.js index f5474aace..d666a021a 100644 --- a/test/luhnCheck/luhnCheck.js +++ b/test/luhnCheck/luhnCheck.js @@ -8,5 +8,4 @@ const luhnCheck = num => { sum += lastDigit; return sum % 10 === 0; }; - -module.exports = luhnCheck; \ No newline at end of file +module.exports = luhnCheck; diff --git a/test/mapKeys/mapKeys.js b/test/mapKeys/mapKeys.js index ff13a2f9d..fcafd2ff4 100644 --- a/test/mapKeys/mapKeys.js +++ b/test/mapKeys/mapKeys.js @@ -3,5 +3,4 @@ const mapKeys = (obj, fn) => acc[fn(obj[k], k, obj)] = obj[k]; return acc; }, {}); - -module.exports = mapKeys; \ No newline at end of file +module.exports = mapKeys; diff --git a/test/mapObject/mapObject.js b/test/mapObject/mapObject.js index 20f118b52..84710c299 100644 --- a/test/mapObject/mapObject.js +++ b/test/mapObject/mapObject.js @@ -2,5 +2,4 @@ const mapObject = (arr, fn) => (a => ( (a = [arr, arr.map(fn)]), a[0].reduce((acc, val, ind) => ((acc[val] = a[1][ind]), acc), {}) ))(); - -module.exports = mapObject; \ No newline at end of file +module.exports = mapObject; diff --git a/test/mapString/mapString.js b/test/mapString/mapString.js index f58dea787..b186c81ff 100644 --- a/test/mapString/mapString.js +++ b/test/mapString/mapString.js @@ -3,5 +3,4 @@ const mapString = (str, fn) => .split('') .map((c, i) => fn(c, i, str)) .join(''); - -module.exports = mapString; \ No newline at end of file +module.exports = mapString; diff --git a/test/mapValues/mapValues.js b/test/mapValues/mapValues.js index 616422dfd..b278d0d15 100644 --- a/test/mapValues/mapValues.js +++ b/test/mapValues/mapValues.js @@ -3,5 +3,4 @@ const mapValues = (obj, fn) => acc[k] = fn(obj[k], k, obj); return acc; }, {}); - -module.exports = mapValues; \ No newline at end of file +module.exports = mapValues; diff --git a/test/mask/mask.js b/test/mask/mask.js index 87c2522f1..8f3b55140 100644 --- a/test/mask/mask.js +++ b/test/mask/mask.js @@ -1,4 +1,3 @@ const mask = (cc, num = 4, mask = '*') => ('' + cc).slice(0, -num).replace(/./g, mask) + ('' + cc).slice(-num); - -module.exports = mask; \ No newline at end of file +module.exports = mask; diff --git a/test/matches/matches.js b/test/matches/matches.js index c36b71e60..cc354fb57 100644 --- a/test/matches/matches.js +++ b/test/matches/matches.js @@ -1,4 +1,3 @@ const matches = (obj, source) => Object.keys(source).every(key => obj.hasOwnProperty(key) && obj[key] === source[key]); - -module.exports = matches; \ No newline at end of file +module.exports = matches; diff --git a/test/matchesWith/matchesWith.js b/test/matchesWith/matchesWith.js index b81d0ef6f..9f3b5ee34 100644 --- a/test/matchesWith/matchesWith.js +++ b/test/matchesWith/matchesWith.js @@ -5,5 +5,4 @@ const matchesWith = (obj, source, fn) => ? fn(obj[key], source[key], key, obj, source) : obj[key] == source[key] ); - -module.exports = matchesWith; \ No newline at end of file +module.exports = matchesWith; diff --git a/test/maxBy/maxBy.js b/test/maxBy/maxBy.js index 1915c5dbf..f549f0e80 100644 --- a/test/maxBy/maxBy.js +++ b/test/maxBy/maxBy.js @@ -1,3 +1,2 @@ const maxBy = (arr, fn) => Math.max(...arr.map(typeof fn === 'function' ? fn : val => val[fn])); - -module.exports = maxBy; \ No newline at end of file +module.exports = maxBy; diff --git a/test/maxN/maxN.js b/test/maxN/maxN.js index de2ad853f..7663fb20e 100644 --- a/test/maxN/maxN.js +++ b/test/maxN/maxN.js @@ -1,3 +1,2 @@ const maxN = (arr, n = 1) => [...arr].sort((a, b) => b - a).slice(0, n); - -module.exports = maxN; \ No newline at end of file +module.exports = maxN; diff --git a/test/median/median.js b/test/median/median.js index c0078ae4b..6c48900c3 100644 --- a/test/median/median.js +++ b/test/median/median.js @@ -3,5 +3,4 @@ const median = arr => { nums = [...arr].sort((a, b) => a - b); return arr.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2; }; - -module.exports = median; \ No newline at end of file +module.exports = median; diff --git a/test/memoize/memoize.js b/test/memoize/memoize.js index 543cec041..53cb2d5eb 100644 --- a/test/memoize/memoize.js +++ b/test/memoize/memoize.js @@ -6,5 +6,4 @@ const memoize = fn => { cached.cache = cache; return cached; }; - -module.exports = memoize; \ No newline at end of file +module.exports = memoize; diff --git a/test/merge/merge.js b/test/merge/merge.js index e6f927eee..91d1355c6 100644 --- a/test/merge/merge.js +++ b/test/merge/merge.js @@ -7,5 +7,4 @@ const merge = (...objs) => }, {}), {} ); - -module.exports = merge; \ No newline at end of file +module.exports = merge; diff --git a/test/minBy/minBy.js b/test/minBy/minBy.js index 64eaa38d8..7318d7901 100644 --- a/test/minBy/minBy.js +++ b/test/minBy/minBy.js @@ -1,3 +1,2 @@ const minBy = (arr, fn) => Math.min(...arr.map(typeof fn === 'function' ? fn : val => val[fn])); - -module.exports = minBy; \ No newline at end of file +module.exports = minBy; diff --git a/test/minN/minN.js b/test/minN/minN.js index c3886e50d..fd0f0e95a 100644 --- a/test/minN/minN.js +++ b/test/minN/minN.js @@ -1,3 +1,2 @@ const minN = (arr, n = 1) => [...arr].sort((a, b) => a - b).slice(0, n); - -module.exports = minN; \ No newline at end of file +module.exports = minN; diff --git a/test/mostPerformant/mostPerformant.js b/test/mostPerformant/mostPerformant.js index 28dc1e960..ffeb69cba 100644 --- a/test/mostPerformant/mostPerformant.js +++ b/test/mostPerformant/mostPerformant.js @@ -6,5 +6,4 @@ const mostPerformant = (fns, iterations = 10000) => { }); return times.indexOf(Math.min(...times)); }; - -module.exports = mostPerformant; \ No newline at end of file +module.exports = mostPerformant; diff --git a/test/negate/negate.js b/test/negate/negate.js index f9a1aee04..cf8436528 100644 --- a/test/negate/negate.js +++ b/test/negate/negate.js @@ -1,3 +1,2 @@ const negate = func => (...args) => !func(...args); - -module.exports = negate; \ No newline at end of file +module.exports = negate; diff --git a/test/nest/nest.js b/test/nest/nest.js index 63f922f41..4585b8bda 100644 --- a/test/nest/nest.js +++ b/test/nest/nest.js @@ -2,5 +2,4 @@ const nest = (items, id = null, link = 'parent_id') => items .filter(item => item[link] === id) .map(item => ({ ...item, children: nest(items, item.id) })); - -module.exports = nest; \ No newline at end of file +module.exports = nest; diff --git a/test/nodeListToArray/nodeListToArray.js b/test/nodeListToArray/nodeListToArray.js index af21b53d1..0b834e1ae 100644 --- a/test/nodeListToArray/nodeListToArray.js +++ b/test/nodeListToArray/nodeListToArray.js @@ -1,3 +1,2 @@ const nodeListToArray = nodeList => Array.prototype.slice.call(nodeList); - -module.exports = nodeListToArray; \ No newline at end of file +module.exports = nodeListToArray; diff --git a/test/none/none.js b/test/none/none.js index cb19a4628..a36445848 100644 --- a/test/none/none.js +++ b/test/none/none.js @@ -1,3 +1,2 @@ const none = (arr, fn = Boolean) => !arr.some(fn); - -module.exports = none; \ No newline at end of file +module.exports = none; diff --git a/test/nthArg/nthArg.js b/test/nthArg/nthArg.js index c9b33e2da..cf2497e04 100644 --- a/test/nthArg/nthArg.js +++ b/test/nthArg/nthArg.js @@ -1,3 +1,2 @@ const nthArg = n => (...args) => args.slice(n)[0]; - -module.exports = nthArg; \ No newline at end of file +module.exports = nthArg; diff --git a/test/nthElement/nthElement.js b/test/nthElement/nthElement.js index ff5f0047f..210321c42 100644 --- a/test/nthElement/nthElement.js +++ b/test/nthElement/nthElement.js @@ -1,3 +1,2 @@ const nthElement = (arr, n = 0) => (n > 0 ? arr.slice(n, n + 1) : arr.slice(n))[0]; - -module.exports = nthElement; \ No newline at end of file +module.exports = nthElement; diff --git a/test/objectFromPairs/objectFromPairs.js b/test/objectFromPairs/objectFromPairs.js index 2429d7e26..2813c5e1d 100644 --- a/test/objectFromPairs/objectFromPairs.js +++ b/test/objectFromPairs/objectFromPairs.js @@ -1,3 +1,2 @@ const objectFromPairs = arr => arr.reduce((a, v) => ((a[v[0]] = v[1]), a), {}); - -module.exports = objectFromPairs; \ No newline at end of file +module.exports = objectFromPairs; diff --git a/test/objectToPairs/objectToPairs.js b/test/objectToPairs/objectToPairs.js index 3fa1d038c..e17645c30 100644 --- a/test/objectToPairs/objectToPairs.js +++ b/test/objectToPairs/objectToPairs.js @@ -1,3 +1,2 @@ const objectToPairs = obj => Object.keys(obj).map(k => [k, obj[k]]); - -module.exports = objectToPairs; \ No newline at end of file +module.exports = objectToPairs; diff --git a/test/observeMutations/observeMutations.js b/test/observeMutations/observeMutations.js index 2fe5f658a..fd2a7f31a 100644 --- a/test/observeMutations/observeMutations.js +++ b/test/observeMutations/observeMutations.js @@ -16,5 +16,4 @@ const observeMutations = (element, callback, options) => { ); return observer; }; - -module.exports = observeMutations; \ No newline at end of file +module.exports = observeMutations; diff --git a/test/off/off.js b/test/off/off.js index dfd5f8915..fa1ae6ec3 100644 --- a/test/off/off.js +++ b/test/off/off.js @@ -1,3 +1,2 @@ const off = (el, evt, fn, opts = false) => el.removeEventListener(evt, fn, opts); - -module.exports = off; \ No newline at end of file +module.exports = off; diff --git a/test/offset/offset.js b/test/offset/offset.js index 48c574b2d..c20b1fe4c 100644 --- a/test/offset/offset.js +++ b/test/offset/offset.js @@ -1,3 +1,2 @@ const offset = (arr, offset) => [...arr.slice(offset), ...arr.slice(0, offset)]; - -module.exports = offset; \ No newline at end of file +module.exports = offset; diff --git a/test/omit/omit.js b/test/omit/omit.js index 98aa3b58d..e443a6ef3 100644 --- a/test/omit/omit.js +++ b/test/omit/omit.js @@ -2,5 +2,4 @@ const omit = (obj, arr) => Object.keys(obj) .filter(k => !arr.includes(k)) .reduce((acc, key) => ((acc[key] = obj[key]), acc), {}); - -module.exports = omit; \ No newline at end of file +module.exports = omit; diff --git a/test/omitBy/omitBy.js b/test/omitBy/omitBy.js index 66a1a5138..297c51593 100644 --- a/test/omitBy/omitBy.js +++ b/test/omitBy/omitBy.js @@ -2,5 +2,4 @@ const omitBy = (obj, fn) => Object.keys(obj) .filter(k => !fn(obj[k], k)) .reduce((acc, key) => ((acc[key] = obj[key]), acc), {}); - -module.exports = omitBy; \ No newline at end of file +module.exports = omitBy; diff --git a/test/on/on.js b/test/on/on.js index e6a70168f..5797671c9 100644 --- a/test/on/on.js +++ b/test/on/on.js @@ -3,5 +3,4 @@ const on = (el, evt, fn, opts = {}) => { el.addEventListener(evt, opts.target ? delegatorFn : fn, opts.options || false); if (opts.target) return delegatorFn; }; - -module.exports = on; \ No newline at end of file +module.exports = on; diff --git a/test/onUserInputChange/onUserInputChange.js b/test/onUserInputChange/onUserInputChange.js index 59e3a4e1e..2e18d25f2 100644 --- a/test/onUserInputChange/onUserInputChange.js +++ b/test/onUserInputChange/onUserInputChange.js @@ -12,5 +12,4 @@ const onUserInputChange = callback => { (type = 'touch'), callback(type), document.addEventListener('mousemove', mousemoveHandler); }); }; - -module.exports = onUserInputChange; \ No newline at end of file +module.exports = onUserInputChange; diff --git a/test/once/once.js b/test/once/once.js index 7ae653feb..3854d57c1 100644 --- a/test/once/once.js +++ b/test/once/once.js @@ -6,5 +6,4 @@ const once = fn => { return fn.apply(this, args); }; }; - -module.exports = once; \ No newline at end of file +module.exports = once; diff --git a/test/orderBy/orderBy.js b/test/orderBy/orderBy.js index cd4cddc1a..a950b7af9 100644 --- a/test/orderBy/orderBy.js +++ b/test/orderBy/orderBy.js @@ -8,5 +8,4 @@ const orderBy = (arr, props, orders) => return acc; }, 0) ); - -module.exports = orderBy; \ No newline at end of file +module.exports = orderBy; diff --git a/test/over/over.js b/test/over/over.js index 4a8c6dde7..304afe4cd 100644 --- a/test/over/over.js +++ b/test/over/over.js @@ -1,3 +1,2 @@ const over = (...fns) => (...args) => fns.map(fn => fn.apply(null, args)); - -module.exports = over; \ No newline at end of file +module.exports = over; diff --git a/test/overArgs/overArgs.js b/test/overArgs/overArgs.js index 971399de4..8f832de7a 100644 --- a/test/overArgs/overArgs.js +++ b/test/overArgs/overArgs.js @@ -1,3 +1,2 @@ const overArgs = (fn, transforms) => (...args) => fn(...args.map((val, i) => transforms[i](val))); - -module.exports = overArgs; \ No newline at end of file +module.exports = overArgs; diff --git a/test/pad/pad.js b/test/pad/pad.js index ae3fdaffb..70aac13ed 100644 --- a/test/pad/pad.js +++ b/test/pad/pad.js @@ -1,4 +1,3 @@ const pad = (str, length, char = ' ') => str.padStart((str.length + length) / 2, char).padEnd(length, char); - -module.exports = pad; \ No newline at end of file +module.exports = pad; diff --git a/test/palindrome/palindrome.js b/test/palindrome/palindrome.js index 8b822cd4a..479292b4c 100644 --- a/test/palindrome/palindrome.js +++ b/test/palindrome/palindrome.js @@ -2,5 +2,4 @@ const palindrome = str => { const s = str.toLowerCase().replace(/[\W_]/g, ''); return s === [...s].reverse().join(''); }; - -module.exports = palindrome; \ No newline at end of file +module.exports = palindrome; diff --git a/test/parseCookie/parseCookie.js b/test/parseCookie/parseCookie.js index dc72ed972..6e9cc957a 100644 --- a/test/parseCookie/parseCookie.js +++ b/test/parseCookie/parseCookie.js @@ -6,5 +6,4 @@ const parseCookie = str => acc[decodeURIComponent(v[0].trim())] = decodeURIComponent(v[1].trim()); return acc; }, {}); - -module.exports = parseCookie; \ No newline at end of file +module.exports = parseCookie; diff --git a/test/partial/partial.js b/test/partial/partial.js index 3fb22387e..9b18c7a61 100644 --- a/test/partial/partial.js +++ b/test/partial/partial.js @@ -1,3 +1,2 @@ const partial = (fn, ...partials) => (...args) => fn(...partials, ...args); - -module.exports = partial; \ No newline at end of file +module.exports = partial; diff --git a/test/partialRight/partialRight.js b/test/partialRight/partialRight.js index d38ee8079..e8e956e72 100644 --- a/test/partialRight/partialRight.js +++ b/test/partialRight/partialRight.js @@ -1,3 +1,2 @@ const partialRight = (fn, ...partials) => (...args) => fn(...args, ...partials); - -module.exports = partialRight; \ No newline at end of file +module.exports = partialRight; diff --git a/test/partition/partition.js b/test/partition/partition.js index 97b24f4fb..754a9104c 100644 --- a/test/partition/partition.js +++ b/test/partition/partition.js @@ -6,5 +6,4 @@ const partition = (arr, fn) => }, [[], []] ); - -module.exports = partition; \ No newline at end of file +module.exports = partition; diff --git a/test/percentile/percentile.js b/test/percentile/percentile.js index 67a0de491..07669d78b 100644 --- a/test/percentile/percentile.js +++ b/test/percentile/percentile.js @@ -1,4 +1,3 @@ const percentile = (arr, val) => (100 * arr.reduce((acc, v) => acc + (v < val ? 1 : 0) + (v === val ? 0.5 : 0), 0)) / arr.length; - -module.exports = percentile; \ No newline at end of file +module.exports = percentile; diff --git a/test/permutations/permutations.js b/test/permutations/permutations.js index 3dd23f14d..69a31471c 100644 --- a/test/permutations/permutations.js +++ b/test/permutations/permutations.js @@ -8,5 +8,4 @@ const permutations = arr => { [] ); }; - -module.exports = permutations; \ No newline at end of file +module.exports = permutations; diff --git a/test/pick/pick.js b/test/pick/pick.js index 186bfade4..5b7b72ca6 100644 --- a/test/pick/pick.js +++ b/test/pick/pick.js @@ -1,4 +1,3 @@ const pick = (obj, arr) => arr.reduce((acc, curr) => (curr in obj && (acc[curr] = obj[curr]), acc), {}); - -module.exports = pick; \ No newline at end of file +module.exports = pick; diff --git a/test/pickBy/pickBy.js b/test/pickBy/pickBy.js index c5b7009d2..eca8e0f11 100644 --- a/test/pickBy/pickBy.js +++ b/test/pickBy/pickBy.js @@ -2,5 +2,4 @@ const pickBy = (obj, fn) => Object.keys(obj) .filter(k => fn(obj[k], k)) .reduce((acc, key) => ((acc[key] = obj[key]), acc), {}); - -module.exports = pickBy; \ No newline at end of file +module.exports = pickBy; diff --git a/test/pipeAsyncFunctions/pipeAsyncFunctions.js b/test/pipeAsyncFunctions/pipeAsyncFunctions.js index 4cd443aab..501fda5bd 100644 --- a/test/pipeAsyncFunctions/pipeAsyncFunctions.js +++ b/test/pipeAsyncFunctions/pipeAsyncFunctions.js @@ -1,3 +1,2 @@ const pipeAsyncFunctions = (...fns) => arg => fns.reduce((p, f) => p.then(f), Promise.resolve(arg)); - -module.exports = pipeAsyncFunctions; \ No newline at end of file +module.exports = pipeAsyncFunctions; diff --git a/test/pipeFunctions/pipeFunctions.js b/test/pipeFunctions/pipeFunctions.js index 036617ed2..f6703cf5d 100644 --- a/test/pipeFunctions/pipeFunctions.js +++ b/test/pipeFunctions/pipeFunctions.js @@ -1,3 +1,2 @@ const pipeFunctions = (...fns) => fns.reduce((f, g) => (...args) => g(f(...args))); - -module.exports = pipeFunctions; \ No newline at end of file +module.exports = pipeFunctions; diff --git a/test/pluralize/pluralize.js b/test/pluralize/pluralize.js index 64f42583d..a7e5d9fdd 100644 --- a/test/pluralize/pluralize.js +++ b/test/pluralize/pluralize.js @@ -4,5 +4,4 @@ const pluralize = (val, word, plural = word + 's') => { if (typeof val === 'object') return (num, word) => _pluralize(num, word, val[word]); return _pluralize(val, word, plural); }; - -module.exports = pluralize; \ No newline at end of file +module.exports = pluralize; diff --git a/test/powerset/powerset.js b/test/powerset/powerset.js index bd230c83a..e9a2f5099 100644 --- a/test/powerset/powerset.js +++ b/test/powerset/powerset.js @@ -1,3 +1,2 @@ const powerset = arr => arr.reduce((a, v) => a.concat(a.map(r => [v].concat(r))), [[]]); - -module.exports = powerset; \ No newline at end of file +module.exports = powerset; diff --git a/test/prefix/prefix.js b/test/prefix/prefix.js index 512555e4a..ddcd28958 100644 --- a/test/prefix/prefix.js +++ b/test/prefix/prefix.js @@ -6,5 +6,4 @@ const prefix = prop => { ); return i !== -1 ? (i === 0 ? prop : prefixes[i] + capitalizedProp) : null; }; - -module.exports = prefix; \ No newline at end of file +module.exports = prefix; diff --git a/test/prettyBytes/prettyBytes.js b/test/prettyBytes/prettyBytes.js index 66d9e9a77..1616f4f58 100644 --- a/test/prettyBytes/prettyBytes.js +++ b/test/prettyBytes/prettyBytes.js @@ -5,5 +5,4 @@ const prettyBytes = (num, precision = 3, addSpace = true) => { const n = Number(((num < 0 ? -num : num) / 1000 ** exponent).toPrecision(precision)); return (num < 0 ? '-' : '') + n + (addSpace ? ' ' : '') + UNITS[exponent]; }; - -module.exports = prettyBytes; \ No newline at end of file +module.exports = prettyBytes; diff --git a/test/primes/primes.js b/test/primes/primes.js index 1b8e9fdc5..710c52db2 100644 --- a/test/primes/primes.js +++ b/test/primes/primes.js @@ -5,5 +5,4 @@ const primes = num => { numsTillSqroot.forEach(x => (arr = arr.filter(y => y % x !== 0 || y === x))); return arr; }; - -module.exports = primes; \ No newline at end of file +module.exports = primes; diff --git a/test/promisify/promisify.js b/test/promisify/promisify.js index 0a5084ddc..829aa5cda 100644 --- a/test/promisify/promisify.js +++ b/test/promisify/promisify.js @@ -2,5 +2,4 @@ const promisify = func => (...args) => new Promise((resolve, reject) => func(...args, (err, result) => (err ? reject(err) : resolve(result))) ); - -module.exports = promisify; \ No newline at end of file +module.exports = promisify; diff --git a/test/pull/pull.js b/test/pull/pull.js index fc90e79b3..919af8ae8 100644 --- a/test/pull/pull.js +++ b/test/pull/pull.js @@ -4,5 +4,4 @@ const pull = (arr, ...args) => { arr.length = 0; pulled.forEach(v => arr.push(v)); }; - -module.exports = pull; \ No newline at end of file +module.exports = pull; diff --git a/test/pullAtIndex/pullAtIndex.js b/test/pullAtIndex/pullAtIndex.js index 89d497e4d..fa28f372b 100644 --- a/test/pullAtIndex/pullAtIndex.js +++ b/test/pullAtIndex/pullAtIndex.js @@ -7,5 +7,4 @@ const pullAtIndex = (arr, pullArr) => { pulled.forEach(v => arr.push(v)); return removed; }; - -module.exports = pullAtIndex; \ No newline at end of file +module.exports = pullAtIndex; diff --git a/test/pullAtValue/pullAtValue.js b/test/pullAtValue/pullAtValue.js index 70cd17f6f..85599fd43 100644 --- a/test/pullAtValue/pullAtValue.js +++ b/test/pullAtValue/pullAtValue.js @@ -6,5 +6,4 @@ const pullAtValue = (arr, pullArr) => { mutateTo.forEach(v => arr.push(v)); return removed; }; - -module.exports = pullAtValue; \ No newline at end of file +module.exports = pullAtValue; diff --git a/test/pullBy/pullBy.js b/test/pullBy/pullBy.js index 2cbfe212f..fb254dbc2 100644 --- a/test/pullBy/pullBy.js +++ b/test/pullBy/pullBy.js @@ -7,5 +7,4 @@ const pullBy = (arr, ...args) => { arr.length = 0; pulled.forEach(v => arr.push(v)); }; - -module.exports = pullBy; \ No newline at end of file +module.exports = pullBy; diff --git a/test/quickSort/quickSort.js b/test/quickSort/quickSort.js index 5b3331580..692604be0 100644 --- a/test/quickSort/quickSort.js +++ b/test/quickSort/quickSort.js @@ -6,5 +6,4 @@ const quickSort = ([n, ...nums], desc) => n, ...quickSort(nums.filter(v => (!desc ? v > n : v <= n)), desc) ]; - -module.exports = quickSort; \ No newline at end of file +module.exports = quickSort; diff --git a/test/radsToDegrees/radsToDegrees.js b/test/radsToDegrees/radsToDegrees.js index bee1c99e6..fde727a2f 100644 --- a/test/radsToDegrees/radsToDegrees.js +++ b/test/radsToDegrees/radsToDegrees.js @@ -1,3 +1,2 @@ const radsToDegrees = rad => (rad * 180.0) / Math.PI; - -module.exports = radsToDegrees; \ No newline at end of file +module.exports = radsToDegrees; diff --git a/test/randomHexColorCode/randomHexColorCode.js b/test/randomHexColorCode/randomHexColorCode.js index 93e98f2f5..0b692db35 100644 --- a/test/randomHexColorCode/randomHexColorCode.js +++ b/test/randomHexColorCode/randomHexColorCode.js @@ -2,5 +2,4 @@ const randomHexColorCode = () => { let n = (Math.random() * 0xfffff * 1000000).toString(16); return '#' + n.slice(0, 6); }; - -module.exports = randomHexColorCode; \ No newline at end of file +module.exports = randomHexColorCode; diff --git a/test/randomIntArrayInRange/randomIntArrayInRange.js b/test/randomIntArrayInRange/randomIntArrayInRange.js index c27cbda15..f4e3a0dc6 100644 --- a/test/randomIntArrayInRange/randomIntArrayInRange.js +++ b/test/randomIntArrayInRange/randomIntArrayInRange.js @@ -1,4 +1,3 @@ const randomIntArrayInRange = (min, max, n = 1) => Array.from({ length: n }, () => Math.floor(Math.random() * (max - min + 1)) + min); - -module.exports = randomIntArrayInRange; \ No newline at end of file +module.exports = randomIntArrayInRange; diff --git a/test/randomIntegerInRange/randomIntegerInRange.js b/test/randomIntegerInRange/randomIntegerInRange.js index 3e664fb54..8489482e8 100644 --- a/test/randomIntegerInRange/randomIntegerInRange.js +++ b/test/randomIntegerInRange/randomIntegerInRange.js @@ -1,3 +1,2 @@ const randomIntegerInRange = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min; - -module.exports = randomIntegerInRange; \ No newline at end of file +module.exports = randomIntegerInRange; diff --git a/test/randomNumberInRange/randomNumberInRange.js b/test/randomNumberInRange/randomNumberInRange.js index 46ded402b..603adcbcb 100644 --- a/test/randomNumberInRange/randomNumberInRange.js +++ b/test/randomNumberInRange/randomNumberInRange.js @@ -1,3 +1,2 @@ const randomNumberInRange = (min, max) => Math.random() * (max - min) + min; - -module.exports = randomNumberInRange; \ No newline at end of file +module.exports = randomNumberInRange; diff --git a/test/readFileLines/readFileLines.js b/test/readFileLines/readFileLines.js index c4bca6989..5b041d603 100644 --- a/test/readFileLines/readFileLines.js +++ b/test/readFileLines/readFileLines.js @@ -4,5 +4,4 @@ const readFileLines = filename => .readFileSync(filename) .toString('UTF8') .split('\n'); - -module.exports = readFileLines; \ No newline at end of file +module.exports = readFileLines; diff --git a/test/rearg/rearg.js b/test/rearg/rearg.js index 2da6892d4..80281fc2e 100644 --- a/test/rearg/rearg.js +++ b/test/rearg/rearg.js @@ -5,5 +5,4 @@ const rearg = (fn, indexes) => (...args) => Array.from({ length: indexes.length }) ) ); - -module.exports = rearg; \ No newline at end of file +module.exports = rearg; diff --git a/test/recordAnimationFrames/recordAnimationFrames.js b/test/recordAnimationFrames/recordAnimationFrames.js index 54e536a23..753175588 100644 --- a/test/recordAnimationFrames/recordAnimationFrames.js +++ b/test/recordAnimationFrames/recordAnimationFrames.js @@ -18,5 +18,4 @@ const recordAnimationFrames = (callback, autoStart = true) => { if (autoStart) start(); return { start, stop }; }; - -module.exports = recordAnimationFrames; \ No newline at end of file +module.exports = recordAnimationFrames; diff --git a/test/redirect/redirect.js b/test/redirect/redirect.js index 7d925a18a..c0dc849eb 100644 --- a/test/redirect/redirect.js +++ b/test/redirect/redirect.js @@ -1,4 +1,3 @@ const redirect = (url, asLink = true) => asLink ? (window.location.href = url) : window.location.replace(url); - -module.exports = redirect; \ No newline at end of file +module.exports = redirect; diff --git a/test/reduceSuccessive/reduceSuccessive.js b/test/reduceSuccessive/reduceSuccessive.js index a383aeb81..73579bb6f 100644 --- a/test/reduceSuccessive/reduceSuccessive.js +++ b/test/reduceSuccessive/reduceSuccessive.js @@ -1,4 +1,3 @@ const reduceSuccessive = (arr, fn, acc) => arr.reduce((res, val, i, arr) => (res.push(fn(res.slice(-1)[0], val, i, arr)), res), [acc]); - -module.exports = reduceSuccessive; \ No newline at end of file +module.exports = reduceSuccessive; diff --git a/test/reduceWhich/reduceWhich.js b/test/reduceWhich/reduceWhich.js index c5b2fee24..b74349439 100644 --- a/test/reduceWhich/reduceWhich.js +++ b/test/reduceWhich/reduceWhich.js @@ -1,4 +1,3 @@ const reduceWhich = (arr, comparator = (a, b) => a - b) => arr.reduce((a, b) => (comparator(a, b) >= 0 ? b : a)); - -module.exports = reduceWhich; \ No newline at end of file +module.exports = reduceWhich; diff --git a/test/reducedFilter/reducedFilter.js b/test/reducedFilter/reducedFilter.js index 46a37b59d..c9ef05049 100644 --- a/test/reducedFilter/reducedFilter.js +++ b/test/reducedFilter/reducedFilter.js @@ -5,5 +5,4 @@ const reducedFilter = (data, keys, fn) => return acc; }, {}) ); - -module.exports = reducedFilter; \ No newline at end of file +module.exports = reducedFilter; diff --git a/test/reject/reject.js b/test/reject/reject.js index fe77ad6c4..4f095ce0a 100644 --- a/test/reject/reject.js +++ b/test/reject/reject.js @@ -1,3 +1,2 @@ const reject = (pred, array) => array.filter((...args) => !pred(...args)); - -module.exports = reject; \ No newline at end of file +module.exports = reject; diff --git a/test/remove/remove.js b/test/remove/remove.js index cf07fe88a..e1dda8ccb 100644 --- a/test/remove/remove.js +++ b/test/remove/remove.js @@ -5,5 +5,4 @@ const remove = (arr, func) => return acc.concat(val); }, []) : []; - -module.exports = remove; \ No newline at end of file +module.exports = remove; diff --git a/test/removeNonASCII/removeNonASCII.js b/test/removeNonASCII/removeNonASCII.js index e6d9253d5..1c6220bae 100644 --- a/test/removeNonASCII/removeNonASCII.js +++ b/test/removeNonASCII/removeNonASCII.js @@ -1,3 +1,2 @@ const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, ''); - -module.exports = removeNonASCII; \ No newline at end of file +module.exports = removeNonASCII; diff --git a/test/removeVowels/removeVowels.js b/test/removeVowels/removeVowels.js index 7b62ecda6..1614fa7ce 100644 --- a/test/removeVowels/removeVowels.js +++ b/test/removeVowels/removeVowels.js @@ -1,3 +1,2 @@ const removeVowels = (str, repl = '') => str.replace(/[aeiou]/gi,repl); - -module.exports = removeVowels; \ No newline at end of file +module.exports = removeVowels; diff --git a/test/renameKeys/renameKeys.js b/test/renameKeys/renameKeys.js index e8d8aa096..4a5fe11c8 100644 --- a/test/renameKeys/renameKeys.js +++ b/test/renameKeys/renameKeys.js @@ -6,5 +6,4 @@ const renameKeys = (keysMap, obj) => }), {} ); - -module.exports = renameKeys; \ No newline at end of file +module.exports = renameKeys; diff --git a/test/reverseString/reverseString.js b/test/reverseString/reverseString.js index f33cee663..328f70143 100644 --- a/test/reverseString/reverseString.js +++ b/test/reverseString/reverseString.js @@ -1,3 +1,2 @@ const reverseString = str => [...str].reverse().join(''); - -module.exports = reverseString; \ No newline at end of file +module.exports = reverseString; diff --git a/test/round/round.js b/test/round/round.js index f4c3815a1..2e9fdc4ec 100644 --- a/test/round/round.js +++ b/test/round/round.js @@ -1,3 +1,2 @@ const round = (n, decimals = 0) => Number(`${Math.round(`${n}e${decimals}`)}e-${decimals}`); - -module.exports = round; \ No newline at end of file +module.exports = round; diff --git a/test/runAsync/runAsync.js b/test/runAsync/runAsync.js index 416eb2607..c588b6842 100644 --- a/test/runAsync/runAsync.js +++ b/test/runAsync/runAsync.js @@ -13,5 +13,4 @@ const runAsync = fn => { }; }); }; - -module.exports = runAsync; \ No newline at end of file +module.exports = runAsync; diff --git a/test/runPromisesInSeries/runPromisesInSeries.js b/test/runPromisesInSeries/runPromisesInSeries.js index e50743f65..aacbe2f59 100644 --- a/test/runPromisesInSeries/runPromisesInSeries.js +++ b/test/runPromisesInSeries/runPromisesInSeries.js @@ -1,3 +1,2 @@ const runPromisesInSeries = ps => ps.reduce((p, next) => p.then(next), Promise.resolve()); - -module.exports = runPromisesInSeries; \ No newline at end of file +module.exports = runPromisesInSeries; diff --git a/test/sample/sample.js b/test/sample/sample.js index 68521d9cc..413d94d41 100644 --- a/test/sample/sample.js +++ b/test/sample/sample.js @@ -1,3 +1,2 @@ const sample = arr => arr[Math.floor(Math.random() * arr.length)]; - -module.exports = sample; \ No newline at end of file +module.exports = sample; diff --git a/test/sampleSize/sampleSize.js b/test/sampleSize/sampleSize.js index 9102c1550..90cb4e64d 100644 --- a/test/sampleSize/sampleSize.js +++ b/test/sampleSize/sampleSize.js @@ -6,5 +6,4 @@ const sampleSize = ([...arr], n = 1) => { } return arr.slice(0, n); }; - -module.exports = sampleSize; \ No newline at end of file +module.exports = sampleSize; diff --git a/test/scrollToTop/scrollToTop.js b/test/scrollToTop/scrollToTop.js index 83397206d..337e461b1 100644 --- a/test/scrollToTop/scrollToTop.js +++ b/test/scrollToTop/scrollToTop.js @@ -5,5 +5,4 @@ const scrollToTop = () => { window.scrollTo(0, c - c / 8); } }; - -module.exports = scrollToTop; \ No newline at end of file +module.exports = scrollToTop; diff --git a/test/sdbm/sdbm.js b/test/sdbm/sdbm.js index 34d3848f3..03aae310c 100644 --- a/test/sdbm/sdbm.js +++ b/test/sdbm/sdbm.js @@ -6,5 +6,4 @@ const sdbm = str => { 0 ); }; - -module.exports = sdbm; \ No newline at end of file +module.exports = sdbm; diff --git a/test/serializeCookie/serializeCookie.js b/test/serializeCookie/serializeCookie.js index 222c495af..48155e78f 100644 --- a/test/serializeCookie/serializeCookie.js +++ b/test/serializeCookie/serializeCookie.js @@ -1,3 +1,2 @@ const serializeCookie = (name, val) => `${encodeURIComponent(name)}=${encodeURIComponent(val)}`; - -module.exports = serializeCookie; \ No newline at end of file +module.exports = serializeCookie; diff --git a/test/setStyle/setStyle.js b/test/setStyle/setStyle.js index 4540bdd7b..3a48adac9 100644 --- a/test/setStyle/setStyle.js +++ b/test/setStyle/setStyle.js @@ -1,3 +1,2 @@ const setStyle = (el, ruleName, val) => (el.style[ruleName] = val); - -module.exports = setStyle; \ No newline at end of file +module.exports = setStyle; diff --git a/test/shallowClone/shallowClone.js b/test/shallowClone/shallowClone.js index 42319567b..ecad6c309 100644 --- a/test/shallowClone/shallowClone.js +++ b/test/shallowClone/shallowClone.js @@ -1,3 +1,2 @@ const shallowClone = obj => Object.assign({}, obj); - -module.exports = shallowClone; \ No newline at end of file +module.exports = shallowClone; diff --git a/test/show/show.js b/test/show/show.js index 41e3db299..028f2fc76 100644 --- a/test/show/show.js +++ b/test/show/show.js @@ -1,3 +1,2 @@ const show = (...el) => [...el].forEach(e => (e.style.display = '')); - -module.exports = show; \ No newline at end of file +module.exports = show; diff --git a/test/shuffle/shuffle.js b/test/shuffle/shuffle.js index 9cf8fee90..f03481f7a 100644 --- a/test/shuffle/shuffle.js +++ b/test/shuffle/shuffle.js @@ -6,5 +6,4 @@ const shuffle = ([...arr]) => { } return arr; }; - -module.exports = shuffle; \ No newline at end of file +module.exports = shuffle; diff --git a/test/similarity/similarity.js b/test/similarity/similarity.js index 9d7ac3a8d..1614f82e4 100644 --- a/test/similarity/similarity.js +++ b/test/similarity/similarity.js @@ -1,3 +1,2 @@ const similarity = (arr, values) => arr.filter(v => values.includes(v)); - -module.exports = similarity; \ No newline at end of file +module.exports = similarity; diff --git a/test/size/size.js b/test/size/size.js index c09552595..88073bcb5 100644 --- a/test/size/size.js +++ b/test/size/size.js @@ -6,5 +6,4 @@ const size = val => : typeof val === 'string' ? new Blob([val]).size : 0; - -module.exports = size; \ No newline at end of file +module.exports = size; diff --git a/test/sleep/sleep.js b/test/sleep/sleep.js index 3d27d609f..56f452762 100644 --- a/test/sleep/sleep.js +++ b/test/sleep/sleep.js @@ -1,3 +1,2 @@ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); - -module.exports = sleep; \ No newline at end of file +module.exports = sleep; diff --git a/test/smoothScroll/smoothScroll.js b/test/smoothScroll/smoothScroll.js index ed53db3eb..ef93400af 100644 --- a/test/smoothScroll/smoothScroll.js +++ b/test/smoothScroll/smoothScroll.js @@ -2,5 +2,4 @@ const smoothScroll = element => document.querySelector(element).scrollIntoView({ behavior: 'smooth' }); - -module.exports = smoothScroll; \ No newline at end of file +module.exports = smoothScroll; diff --git a/test/solveRPN/solveRPN.js b/test/solveRPN/solveRPN.js index 79cfac2f2..fec5b3b7e 100644 --- a/test/solveRPN/solveRPN.js +++ b/test/solveRPN/solveRPN.js @@ -26,5 +26,4 @@ const solveRPN = rpn => { if (stack.length === 1) return stack.pop(); else throw `${rpn} is not a proper RPN. Please check it and try again`; }; - -module.exports = solveRPN; \ No newline at end of file +module.exports = solveRPN; diff --git a/test/sortCharactersInString/sortCharactersInString.js b/test/sortCharactersInString/sortCharactersInString.js index 4089fc27d..f92166670 100644 --- a/test/sortCharactersInString/sortCharactersInString.js +++ b/test/sortCharactersInString/sortCharactersInString.js @@ -1,3 +1,2 @@ const sortCharactersInString = str => [...str].sort((a, b) => a.localeCompare(b)).join(''); - -module.exports = sortCharactersInString; \ No newline at end of file +module.exports = sortCharactersInString; diff --git a/test/sortedIndex/sortedIndex.js b/test/sortedIndex/sortedIndex.js index ec0084c8e..82d023c6a 100644 --- a/test/sortedIndex/sortedIndex.js +++ b/test/sortedIndex/sortedIndex.js @@ -3,5 +3,4 @@ const sortedIndex = (arr, n) => { const index = arr.findIndex(el => (isDescending ? n >= el : n <= el)); return index === -1 ? arr.length : index; }; - -module.exports = sortedIndex; \ No newline at end of file +module.exports = sortedIndex; diff --git a/test/sortedIndexBy/sortedIndexBy.js b/test/sortedIndexBy/sortedIndexBy.js index 0968ac2f6..1a284e074 100644 --- a/test/sortedIndexBy/sortedIndexBy.js +++ b/test/sortedIndexBy/sortedIndexBy.js @@ -4,5 +4,4 @@ const sortedIndexBy = (arr, n, fn) => { const index = arr.findIndex(el => (isDescending ? val >= fn(el) : val <= fn(el))); return index === -1 ? arr.length : index; }; - -module.exports = sortedIndexBy; \ No newline at end of file +module.exports = sortedIndexBy; diff --git a/test/sortedLastIndex/sortedLastIndex.js b/test/sortedLastIndex/sortedLastIndex.js index f81b4462e..78cafda2a 100644 --- a/test/sortedLastIndex/sortedLastIndex.js +++ b/test/sortedLastIndex/sortedLastIndex.js @@ -3,5 +3,4 @@ const sortedLastIndex = (arr, n) => { const index = arr.reverse().findIndex(el => (isDescending ? n <= el : n >= el)); return index === -1 ? 0 : arr.length - index; }; - -module.exports = sortedLastIndex; \ No newline at end of file +module.exports = sortedLastIndex; diff --git a/test/sortedLastIndexBy/sortedLastIndexBy.js b/test/sortedLastIndexBy/sortedLastIndexBy.js index 621316ce1..d028f44b5 100644 --- a/test/sortedLastIndexBy/sortedLastIndexBy.js +++ b/test/sortedLastIndexBy/sortedLastIndexBy.js @@ -7,5 +7,4 @@ const sortedLastIndexBy = (arr, n, fn) => { .findIndex(el => (isDescending ? val <= el : val >= el)); return index === -1 ? 0 : arr.length - index; }; - -module.exports = sortedLastIndexBy; \ No newline at end of file +module.exports = sortedLastIndexBy; diff --git a/test/speechSynthesis/speechSynthesis.js b/test/speechSynthesis/speechSynthesis.js index f526ebe49..867f477ba 100644 --- a/test/speechSynthesis/speechSynthesis.js +++ b/test/speechSynthesis/speechSynthesis.js @@ -3,5 +3,4 @@ const speechSynthesis = message => { msg.voice = window.speechSynthesis.getVoices()[0]; window.speechSynthesis.speak(msg); }; - -module.exports = speechSynthesis; \ No newline at end of file +module.exports = speechSynthesis; diff --git a/test/splitLines/splitLines.js b/test/splitLines/splitLines.js index ccd68a942..fc73cabe0 100644 --- a/test/splitLines/splitLines.js +++ b/test/splitLines/splitLines.js @@ -1,3 +1,2 @@ const splitLines = str => str.split(/\r?\n/); - -module.exports = splitLines; \ No newline at end of file +module.exports = splitLines; diff --git a/test/spreadOver/spreadOver.js b/test/spreadOver/spreadOver.js index fd2fc9b0d..e84eb8060 100644 --- a/test/spreadOver/spreadOver.js +++ b/test/spreadOver/spreadOver.js @@ -1,3 +1,2 @@ const spreadOver = fn => argsArr => fn(...argsArr); - -module.exports = spreadOver; \ No newline at end of file +module.exports = spreadOver; diff --git a/test/stableSort/stableSort.js b/test/stableSort/stableSort.js index e1549a63f..dc75cd83d 100644 --- a/test/stableSort/stableSort.js +++ b/test/stableSort/stableSort.js @@ -3,5 +3,4 @@ const stableSort = (arr, compare) => .map((item, index) => ({ item, index })) .sort((a, b) => compare(a.item, b.item) || a.index - b.index) .map(({ item }) => item); - -module.exports = stableSort; \ No newline at end of file +module.exports = stableSort; diff --git a/test/standardDeviation/standardDeviation.js b/test/standardDeviation/standardDeviation.js index 147600352..b698e7826 100644 --- a/test/standardDeviation/standardDeviation.js +++ b/test/standardDeviation/standardDeviation.js @@ -5,5 +5,4 @@ const standardDeviation = (arr, usePopulation = false) => { (arr.length - (usePopulation ? 0 : 1)) ); }; - -module.exports = standardDeviation; \ No newline at end of file +module.exports = standardDeviation; diff --git a/test/stringPermutations/stringPermutations.js b/test/stringPermutations/stringPermutations.js index b8b3b318f..5f5c613b6 100644 --- a/test/stringPermutations/stringPermutations.js +++ b/test/stringPermutations/stringPermutations.js @@ -8,5 +8,4 @@ const stringPermutations = str => { [] ); }; - -module.exports = stringPermutations; \ No newline at end of file +module.exports = stringPermutations; diff --git a/test/stripHTMLTags/stripHTMLTags.js b/test/stripHTMLTags/stripHTMLTags.js index fc2b30989..1106c81f0 100644 --- a/test/stripHTMLTags/stripHTMLTags.js +++ b/test/stripHTMLTags/stripHTMLTags.js @@ -1,3 +1,2 @@ const stripHTMLTags = str => str.replace(/<[^>]*>/g, ''); - -module.exports = stripHTMLTags; \ No newline at end of file +module.exports = stripHTMLTags; diff --git a/test/sum/sum.js b/test/sum/sum.js index aad90f0fa..64a39052e 100644 --- a/test/sum/sum.js +++ b/test/sum/sum.js @@ -1,3 +1,2 @@ const sum = (...arr) => [...arr].reduce((acc, val) => acc + val, 0); - -module.exports = sum; \ No newline at end of file +module.exports = sum; diff --git a/test/sumBy/sumBy.js b/test/sumBy/sumBy.js index 7d0ec9c8d..8d6466d6b 100644 --- a/test/sumBy/sumBy.js +++ b/test/sumBy/sumBy.js @@ -1,4 +1,3 @@ const sumBy = (arr, fn) => arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val) => acc + val, 0); - -module.exports = sumBy; \ No newline at end of file +module.exports = sumBy; diff --git a/test/sumPower/sumPower.js b/test/sumPower/sumPower.js index d341bc8ef..3537e8825 100644 --- a/test/sumPower/sumPower.js +++ b/test/sumPower/sumPower.js @@ -3,5 +3,4 @@ const sumPower = (end, power = 2, start = 1) => .fill(0) .map((x, i) => (i + start) ** power) .reduce((a, b) => a + b, 0); - -module.exports = sumPower; \ No newline at end of file +module.exports = sumPower; diff --git a/test/symmetricDifference/symmetricDifference.js b/test/symmetricDifference/symmetricDifference.js index 8a83c1de0..f84ccc299 100644 --- a/test/symmetricDifference/symmetricDifference.js +++ b/test/symmetricDifference/symmetricDifference.js @@ -3,5 +3,4 @@ const symmetricDifference = (a, b) => { sB = new Set(b); return [...a.filter(x => !sB.has(x)), ...b.filter(x => !sA.has(x))]; }; - -module.exports = symmetricDifference; \ No newline at end of file +module.exports = symmetricDifference; diff --git a/test/symmetricDifferenceBy/symmetricDifferenceBy.js b/test/symmetricDifferenceBy/symmetricDifferenceBy.js index beecb9f6f..e2eef5b34 100644 --- a/test/symmetricDifferenceBy/symmetricDifferenceBy.js +++ b/test/symmetricDifferenceBy/symmetricDifferenceBy.js @@ -3,5 +3,4 @@ const symmetricDifferenceBy = (a, b, fn) => { sB = new Set(b.map(v => fn(v))); return [...a.filter(x => !sB.has(fn(x))), ...b.filter(x => !sA.has(fn(x)))]; }; - -module.exports = symmetricDifferenceBy; \ No newline at end of file +module.exports = symmetricDifferenceBy; diff --git a/test/symmetricDifferenceWith/symmetricDifferenceWith.js b/test/symmetricDifferenceWith/symmetricDifferenceWith.js index 4a4b3d22d..15e99a32f 100644 --- a/test/symmetricDifferenceWith/symmetricDifferenceWith.js +++ b/test/symmetricDifferenceWith/symmetricDifferenceWith.js @@ -2,5 +2,4 @@ const symmetricDifferenceWith = (arr, val, comp) => [ ...arr.filter(a => val.findIndex(b => comp(a, b)) === -1), ...val.filter(a => arr.findIndex(b => comp(a, b)) === -1) ]; - -module.exports = symmetricDifferenceWith; \ No newline at end of file +module.exports = symmetricDifferenceWith; diff --git a/test/tail/tail.js b/test/tail/tail.js index 8c39e7f86..25b3a5fd1 100644 --- a/test/tail/tail.js +++ b/test/tail/tail.js @@ -1,3 +1,2 @@ const tail = arr => (arr.length > 1 ? arr.slice(1) : arr); - -module.exports = tail; \ No newline at end of file +module.exports = tail; diff --git a/test/take/take.js b/test/take/take.js index 4d7d970ea..d6057a021 100644 --- a/test/take/take.js +++ b/test/take/take.js @@ -1,3 +1,2 @@ const take = (arr, n = 1) => arr.slice(0, n); - -module.exports = take; \ No newline at end of file +module.exports = take; diff --git a/test/takeRight/takeRight.js b/test/takeRight/takeRight.js index bb1e28d7c..d847cc73b 100644 --- a/test/takeRight/takeRight.js +++ b/test/takeRight/takeRight.js @@ -1,3 +1,2 @@ const takeRight = (arr, n = 1) => arr.slice(arr.length - n, arr.length); - -module.exports = takeRight; \ No newline at end of file +module.exports = takeRight; diff --git a/test/takeRightWhile/takeRightWhile.js b/test/takeRightWhile/takeRightWhile.js index 62e89d401..67cbe63b1 100644 --- a/test/takeRightWhile/takeRightWhile.js +++ b/test/takeRightWhile/takeRightWhile.js @@ -3,5 +3,4 @@ const takeRightWhile = (arr, func) => { if (func(arr[i])) return arr.reverse().slice(arr.length - i, arr.length); return arr; }; - -module.exports = takeRightWhile; \ No newline at end of file +module.exports = takeRightWhile; diff --git a/test/takeWhile/takeWhile.js b/test/takeWhile/takeWhile.js index ed19bd0e1..2263afeec 100644 --- a/test/takeWhile/takeWhile.js +++ b/test/takeWhile/takeWhile.js @@ -2,5 +2,4 @@ const takeWhile = (arr, func) => { for (const [i, val] of arr.entries()) if (func(val)) return arr.slice(0, i); return arr; }; - -module.exports = takeWhile; \ No newline at end of file +module.exports = takeWhile; diff --git a/test/testlog b/test/testlog index 8b0e685f8..7c366dbc0 100644 --- a/test/testlog +++ b/test/testlog @@ -45,210 +45,294 @@ ok 31 — uniqueElements(true) throws an error ok 32 — uniqueElements(false) throws an error ok 33 — uniqueElements([true, 0, 1, false, false, undefined, null]) takes less than 2s to run -# PASS test\toCamelCase\toCamelCase.test.js +# PASS test\speechSynthesis\speechSynthesis.test.js -ok 34 — toCamelCase is a Function -ok 35 — toCamelCase('some_database_field_name') returns someDatabaseFieldName -ok 36 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized -ok 37 — toCamelCase('some-javascript-property') return someJavascriptProperty -ok 38 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens -ok 39 — toCamelCase() throws a error -ok 40 — toCamelCase([]) throws a error -ok 41 — toCamelCase({}) throws a error -ok 42 — toCamelCase(123) throws a error -ok 43 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run +ok 34 — speechSynthesis is a Function -# PASS test\is\is.test.js +# PASS test\takeWhile\takeWhile.test.js -ok 44 — is is a Function -ok 45 — Works for arrays with data -ok 46 — Works for empty arrays -ok 47 — Works for arrays, not objects -ok 48 — Works for objects -ok 49 — Works for maps -ok 50 — Works for regular expressions -ok 51 — Works for sets -ok 52 — Works for weak maps -ok 53 — Works for weak sets -ok 54 — Works for strings - returns true for primitive -ok 55 — Works for strings - returns true when using constructor -ok 56 — Works for numbers - returns true for primitive -ok 57 — Works for numbers - returns true when using constructor -ok 58 — Works for booleans - returns true for primitive -ok 59 — Works for booleans - returns true when using constructor -ok 60 — Works for functions +ok 35 — takeWhile is a Function +ok 36 — Removes elements until the function returns true -# PASS test\average\average.test.js +# PASS test\objectFromPairs\objectFromPairs.test.js -ok 61 — average is a Function -ok 62 — average(true) returns 0 -ok 63 — average(false) returns 1 -ok 64 — average(9, 1) returns 5 -ok 65 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 -ok 66 — average(1, 2, 3) returns 2 -ok 67 — average(null) returns 0 -ok 68 — average(1, 2, 3) returns NaN -ok 69 — average(String) returns NaN -ok 70 — average({ a: 123}) returns NaN -ok 71 — average([undefined, 0, string]) returns NaN -ok 72 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run +ok 37 — objectFromPairs is a Function +ok 38 — Creates an object from the given key-value pairs. -# PASS test\validateNumber\validateNumber.test.js +# PASS test\isPlainObject\isPlainObject.test.js -ok 73 — validateNumber is a Function -ok 74 — validateNumber(9) returns true -ok 75 — validateNumber(234asd.slice(0, 2)) returns true -ok 76 — validateNumber(1232) returns true -ok 77 — validateNumber(1232 + 13423) returns true -ok 78 — validateNumber(1232 * 2342 * 123) returns true -ok 79 — validateNumber(1232.23423536) returns true -ok 80 — validateNumber(234asd) returns false -ok 81 — validateNumber(e234d) returns false -ok 82 — validateNumber(false) returns false -ok 83 — validateNumber(true) returns false -ok 84 — validateNumber(null) returns false -ok 85 — validateNumber(123 * asd) returns false +ok 39 — isPlainObject is a Function +ok 40 — Returns true for a plain object +ok 41 — Returns false for a Map (example of non-plain object) -# PASS test\toSafeInteger\toSafeInteger.test.js +# PASS test\uniqueElementsByRight\uniqueElementsByRight.test.js -ok 86 — toSafeInteger is a Function -ok 87 — Number(toSafeInteger(3.2)) is a number -ok 88 — Converts a value to a safe integer -ok 89 — toSafeInteger('4.2') returns 4 -ok 90 — toSafeInteger(4.6) returns 5 -ok 91 — toSafeInteger([]) returns 0 -ok 92 — isNaN(toSafeInteger([1.5, 3124])) is true -ok 93 — isNaN(toSafeInteger('string')) is true -ok 94 — isNaN(toSafeInteger({})) is true -ok 95 — isNaN(toSafeInteger()) is true -ok 96 — toSafeInteger(Infinity) returns 9007199254740991 -ok 97 — toSafeInteger(3.2) takes less than 2s to run +ok 42 — uniqueElementsByRight is a Function +ok 43 — uniqueElementsByRight works for properties +ok 44 — uniqueElementsByRight works for nested properties -# PASS test\union\union.test.js +# PASS test\sortCharactersInString\sortCharactersInString.test.js -ok 98 — union is a Function -ok 99 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] -ok 100 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] -ok 101 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] -ok 102 — union([], []) returns [] -ok 103 — union() throws an error -ok 104 — union(true, 'str') throws an error -ok 105 — union('false', true) throws an error -ok 106 — union((123, {}) throws an error -ok 107 — union([], {}) throws an error -ok 108 — union(undefined, null) throws an error -ok 109 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run +ok 45 — sortCharactersInString is a Function +ok 46 — Alphabetically sorts the characters in a string. -# PASS test\isPrimitive\isPrimitive.test.js +# PASS test\memoize\memoize.test.js -ok 110 — isPrimitive is a Function -ok 111 — isPrimitive(null) is primitive -ok 112 — isPrimitive(undefined) is primitive -ok 113 — isPrimitive(string) is primitive -ok 114 — isPrimitive(true) is primitive -ok 115 — isPrimitive(50) is primitive -ok 116 — isPrimitive('Hello') is primitive -ok 117 — isPrimitive(false) is primitive -ok 118 — isPrimitive(Symbol()) is primitive -ok 119 — isPrimitive([1, 2, 3]) is not primitive -ok 120 — isPrimitive({ a: 123 }) is not primitive -ok 121 — isPrimitive({ a: 123 }) takes less than 2s to run +ok 47 — memoize is a Function +ok 48 — Function works properly +ok 49 — Function works properly +ok 50 — Cache stores values -# PASS test\zipObject\zipObject.test.js +# PASS test\sortedIndex\sortedIndex.test.js -ok 122 — zipObject is a Function -ok 123 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} -ok 124 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} -ok 125 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } -ok 126 — zipObject([a], string) returns { a: s } -ok 127 — zipObject() throws an error -ok 128 — zipObject((['string'], null) throws an error -ok 129 — zipObject(null, [1]) throws an error -ok 130 — zipObject('string') throws an error -ok 131 — zipObject('test', 'string') throws an error +ok 51 — sortedIndex is a Function +ok 52 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. +ok 53 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -# PASS test\round\round.test.js +# PASS test\over\over.test.js -ok 132 — round is a Function -ok 133 — round(1.005, 2) returns 1.01 -ok 134 — round(123.3423345345345345344, 11) returns 123.34233453453 -ok 135 — round(3.342, 11) returns 3.342 -ok 136 — round(1.005) returns 1 -ok 137 — round([1.005, 2]) returns NaN -ok 138 — round(string) returns NaN -ok 139 — round() returns NaN -ok 140 — round(132, 413, 4134) returns NaN -ok 141 — round({a: 132}, 413) returns NaN -ok 142 — round(123.3423345345345345344, 11) takes less than 2s to run - -# PASS test\quickSort\quickSort.test.js - -ok 143 — quickSort is a Function -ok 144 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] -ok 145 — quickSort([-1, 0, -2]) returns [-2, -1, 0] -ok 146 — quickSort() throws an error -ok 147 — quickSort(123) throws an error -ok 148 — quickSort({ 234: string}) throws an error -ok 149 — quickSort(null) throws an error -ok 150 — quickSort(undefined) throws an error -ok 151 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run - -# PASS test\yesNo\yesNo.test.js - -ok 152 — yesNo is a Function -ok 153 — yesNo(Y) returns true -ok 154 — yesNo(yes) returns true -ok 155 — yesNo(foo, true) returns true -ok 156 — yesNo(No) returns false -ok 157 — yesNo() returns false -ok 158 — yesNo(null) returns false -ok 159 — yesNo(undefined) returns false -ok 160 — yesNo([123, null]) returns false -ok 161 — yesNo([Yes, No]) returns false -ok 162 — yesNo({ 2: Yes }) returns false -ok 163 — yesNo([Yes, No], true) returns true -ok 164 — yesNo({ 2: Yes }, true) returns true - -# PASS test\isSorted\isSorted.test.js - -ok 165 — isSorted is a Function -ok 166 — Array is sorted in ascending order -ok 167 — Array is sorted in ascending order -ok 168 — Array is sorted in ascending order -ok 169 — Array is sorted in ascending order -ok 170 — Array is sorted in descending order -ok 171 — Array is sorted in descending order -ok 172 — Array is sorted in descending order -ok 173 — Array is sorted in descending order -ok 174 — Array is empty -ok 175 — Array is not sorted, direction changed in array -ok 176 — Array is not sorted, direction changed in array +ok 54 — over is a Function +ok 55 — Applies given functions over multiple arguments # PASS test\words\words.test.js -ok 177 — words is a Function -ok 178 — words('I love javaScript!!') returns [I, love, javaScript] -ok 179 — words('python, javaScript & coffee') returns [python, javaScript, coffee] -ok 180 — words(I love javaScript!!) returns an array -ok 181 — words() throws an error -ok 182 — words(null) throws an error -ok 183 — words(undefined) throws an error -ok 184 — words({}) throws an error -ok 185 — words([]) throws an error -ok 186 — words(1234) throws an error +ok 56 — words is a Function +ok 57 — words('I love javaScript!!') returns [I, love, javaScript] +ok 58 — words('python, javaScript & coffee') returns [python, javaScript, coffee] +ok 59 — words(I love javaScript!!) returns an array +ok 60 — words() throws an error +ok 61 — words(null) throws an error +ok 62 — words(undefined) throws an error +ok 63 — words({}) throws an error +ok 64 — words([]) throws an error +ok 65 — words(1234) throws an error -# PASS test\without\without.test.js +# PASS test\unzipWith\unzipWith.test.js -ok 187 — without is a Function -ok 188 — without([2, 1, 2, 3], 1, 2) returns [3] -ok 189 — without([]) returns [] -ok 190 — without([3, 1, true, '3', true], '3', true) returns [3, 1] -ok 191 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] -ok 192 — without() throws an error -ok 193 — without(null) throws an error -ok 194 — without(undefined) throws an error -ok 195 — without(123) throws an error -ok 196 — without({}) throws an error +ok 66 — unzipWith is a Function +ok 67 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] + +# PASS test\toCurrency\toCurrency.test.js + +ok 68 — toCurrency is a Function +ok 69 — currency: Euro | currencyLangFormat: Local +ok 70 — currency: US Dollar | currencyLangFormat: English (United States) +ok 71 — currency: Japanese Yen | currencyLangFormat: Local + +# PASS test\pluralize\pluralize.test.js + +ok 72 — pluralize is a Function +ok 73 — Produces the plural of the word +ok 74 — Produces the singular of the word +ok 75 — Produces the plural of the word +ok 76 — Prodices the defined plural of the word +ok 77 — Works with a dictionary + +# PASS test\coalesce\coalesce.test.js + +ok 78 — coalesce is a Function +ok 79 — Returns the first non-null/undefined argument + +# PASS test\converge\converge.test.js + +ok 80 — converge is a Function +ok 81 — Produces the average of the array +ok 82 — Produces the strange concatenation + +# PASS test\coalesceFactory\coalesceFactory.test.js + +ok 83 — coalesceFactory is a Function +ok 84 — Returns a customized coalesce function + +# PASS test\negate\negate.test.js + +ok 85 — negate is a Function +ok 86 — Negates a predicate function + +# PASS test\formatDuration\formatDuration.test.js + +ok 87 — formatDuration is a Function +ok 88 — Returns the human readable format of the given number of milliseconds +ok 89 — Returns the human readable format of the given number of milliseconds + +# PASS test\isSorted\isSorted.test.js + +ok 90 — isSorted is a Function +ok 91 — Array is sorted in ascending order +ok 92 — Array is sorted in ascending order +ok 93 — Array is sorted in ascending order +ok 94 — Array is sorted in ascending order +ok 95 — Array is sorted in descending order +ok 96 — Array is sorted in descending order +ok 97 — Array is sorted in descending order +ok 98 — Array is sorted in descending order +ok 99 — Array is empty +ok 100 — Array is not sorted, direction changed in array +ok 101 — Array is not sorted, direction changed in array + +# PASS test\takeRight\takeRight.test.js + +ok 102 — takeRight is a Function +ok 103 — Returns an array with n elements removed from the end +ok 104 — Returns an array with n elements removed from the end + +# PASS test\flattenObject\flattenObject.test.js + +ok 105 — flattenObject is a Function +ok 106 — Flattens an object with the paths for keys +ok 107 — Works with arrays + +# PASS test\last\last.test.js + +ok 108 — last is a Function +ok 109 — last({ a: 1234}) returns undefined +ok 110 — last([1, 2, 3]) returns 3 +ok 111 — last({ 0: false}) returns undefined +ok 112 — last(String) returns g +ok 113 — last(null) throws an Error +ok 114 — last(undefined) throws an Error +ok 115 — last() throws an Error +ok 116 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test\xProd\xProd.test.js + +ok 117 — xProd is a Function +ok 118 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] + +# PASS test\unary\unary.test.js + +ok 119 — unary is a Function +ok 120 — Discards arguments after the first one + +# PASS test\union\union.test.js + +ok 121 — union is a Function +ok 122 — union([1, 2, 3], [4, 3, 2]) returns [1, 2, 3, 4] +ok 123 — union('str', 'asd') returns [ 's', 't', 'r', 'a', 'd' ] +ok 124 — union([[], {}], [1, 2, 3]) returns [[], {}, 1, 2, 3] +ok 125 — union([], []) returns [] +ok 126 — union() throws an error +ok 127 — union(true, 'str') throws an error +ok 128 — union('false', true) throws an error +ok 129 — union((123, {}) throws an error +ok 130 — union([], {}) throws an error +ok 131 — union(undefined, null) throws an error +ok 132 — union([1, 2, 3], [4, 3, 2]) takes less than 2s to run + +# PASS test\intersectionBy\intersectionBy.test.js + +ok 133 — intersectionBy is a Function +ok 134 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both + +# PASS test\get\get.test.js + +ok 135 — get is a Function +ok 136 — Retrieve a property indicated by the selector from an object. + +# PASS test\shallowClone\shallowClone.test.js + +ok 137 — shallowClone is a Function +ok 138 — Shallow cloning works +ok 139 — Does not clone deeply + +# PASS test\yesNo\yesNo.test.js + +ok 140 — yesNo is a Function +ok 141 — yesNo(Y) returns true +ok 142 — yesNo(yes) returns true +ok 143 — yesNo(foo, true) returns true +ok 144 — yesNo(No) returns false +ok 145 — yesNo() returns false +ok 146 — yesNo(null) returns false +ok 147 — yesNo(undefined) returns false +ok 148 — yesNo([123, null]) returns false +ok 149 — yesNo([Yes, No]) returns false +ok 150 — yesNo({ 2: Yes }) returns false +ok 151 — yesNo([Yes, No], true) returns true +ok 152 — yesNo({ 2: Yes }, true) returns true + +# PASS test\deepFlatten\deepFlatten.test.js + +ok 153 — deepFlatten is a Function +ok 154 — Deep flattens an array + +# PASS test\setStyle\setStyle.test.js + +ok 155 — setStyle is a Function + +# PASS test\toggleClass\toggleClass.test.js + +ok 156 — toggleClass is a Function + +# PASS test\merge\merge.test.js + +ok 157 — merge is a Function +ok 158 — Merges two objects + +# PASS test\ary\ary.test.js + +ok 159 — ary is a Function +ok 160 — Discards arguments with index >=n + +# PASS test\hide\hide.test.js + +ok 161 — hide is a Function + +# PASS test\solveRPN\solveRPN.test.js + +ok 162 — solveRPN is a Function + +# PASS test\zip\zip.test.js + +ok 163 — zip is a Function +ok 164 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] +ok 165 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] +ok 166 — zip([]) returns [] +ok 167 — zip(123) returns [] +ok 168 — zip([a, b], [1, 2], [true, false]) returns an Array +ok 169 — zip([a], [1, 2], [true, false]) returns an Array +ok 170 — zip(null) throws an error +ok 171 — zip(undefined) throws an error + +# PASS test\toCamelCase\toCamelCase.test.js + +ok 172 — toCamelCase is a Function +ok 173 — toCamelCase('some_database_field_name') returns someDatabaseFieldName +ok 174 — toCamelCase('Some label that needs to be camelized') returns someLabelThatNeedsToBeCamelized +ok 175 — toCamelCase('some-javascript-property') return someJavascriptProperty +ok 176 — toCamelCase('some-mixed_string with spaces_underscores-and-hyphens') returns someMixedStringWithSpacesUnderscoresAndHyphens +ok 177 — toCamelCase() throws a error +ok 178 — toCamelCase([]) throws a error +ok 179 — toCamelCase({}) throws a error +ok 180 — toCamelCase(123) throws a error +ok 181 — toCamelCase(some-mixed_string with spaces_underscores-and-hyphens) takes less than 2s to run + +# PASS test\reduceWhich\reduceWhich.test.js + +ok 182 — reduceWhich is a Function +ok 183 — Returns the minimum of an array +ok 184 — Returns the maximum of an array +ok 185 — Returns the object with the minimum specified value in an array + +# PASS test\stringPermutations\stringPermutations.test.js + +ok 186 — stringPermutations is a Function +ok 187 — Generates all stringPermutations of a string +ok 188 — Works for single-letter strings +ok 189 — Works for empty strings + +# PASS test\hz\hz.test.js + +ok 190 — hz is a Function + +# PASS test\equals\equals.test.js + +ok 191 — equals is a Function +ok 192 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } +ok 193 — [1,2,3] is equal to [1,2,3] +ok 194 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } +ok 195 — [1,2,3] is not equal to [1,2,4] +ok 196 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. # PASS test\chunk\chunk.test.js @@ -263,1807 +347,1723 @@ ok 204 — chunk(undefined) throws an error ok 205 — chunk(null) throws an error ok 206 — chunk(This is a string, 2) takes less than 2s to run -# PASS test\zip\zip.test.js +# PASS test\runAsync\runAsync.test.js -ok 207 — zip is a Function -ok 208 — zip([a, b], [1, 2], [true, false]) returns [[a, 1, true], [b, 2, false]] -ok 209 — zip([a], [1, 2], [true, false]) returns [[a, 1, true], [undefined, 2, false]] -ok 210 — zip([]) returns [] -ok 211 — zip(123) returns [] -ok 212 — zip([a, b], [1, 2], [true, false]) returns an Array -ok 213 — zip([a], [1, 2], [true, false]) returns an Array -ok 214 — zip(null) throws an error -ok 215 — zip(undefined) throws an error - -# PASS test\isEmpty\isEmpty.test.js - -ok 216 — isEmpty is a Function -ok 217 — Returns true for empty Map -ok 218 — Returns true for empty Set -ok 219 — Returns true for empty array -ok 220 — Returns true for empty object -ok 221 — Returns true for empty string -ok 222 — Returns false for non-empty array -ok 223 — Returns false for non-empty object -ok 224 — Returns false for non-empty string -ok 225 — Returns true - type is not considered a collection -ok 226 — Returns true - type is not considered a collection - -# PASS test\last\last.test.js - -ok 227 — last is a Function -ok 228 — last({ a: 1234}) returns undefined -ok 229 — last([1, 2, 3]) returns 3 -ok 230 — last({ 0: false}) returns undefined -ok 231 — last(String) returns g -ok 232 — last(null) throws an Error -ok 233 — last(undefined) throws an Error -ok 234 — last() throws an Error -ok 235 — last([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test\head\head.test.js - -ok 236 — head is a Function -ok 237 — head({ a: 1234}) returns undefined -ok 238 — head([1, 2, 3]) returns 1 -ok 239 — head({ 0: false}) returns false -ok 240 — head(String) returns S -ok 241 — head(null) throws an Error -ok 242 — head(undefined) throws an Error -ok 243 — head() throws an Error -ok 244 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run - -# PASS test\uniqueElementsByRight\uniqueElementsByRight.test.js - -ok 245 — uniqueElementsByRight is a Function -ok 246 — uniqueElementsByRight works for properties -ok 247 — uniqueElementsByRight works for nested properties - -# PASS test\uniqueElementsBy\uniqueElementsBy.test.js - -ok 248 — uniqueElementsBy is a Function -ok 249 — uniqueElementsBy works for properties -ok 250 — uniqueElementsBy works for nested properties - -# PASS test\offset\offset.test.js - -ok 251 — offset is a Function -ok 252 — Offset of 0 returns the same array. -ok 253 — Offset > 0 returns the offsetted array. -ok 254 — Offset < 0 returns the reverse offsetted array. -ok 255 — Offset greater than the length of the array returns the same array. -ok 256 — Offset less than the negative length of the array returns the same array. -ok 257 — Offsetting empty array returns an empty array. - -# PASS test\all\all.test.js - -ok 258 — all is a Function -ok 259 — Returns true for arrays with no falsey values -ok 260 — Returns false for arrays with 0 -ok 261 — Returns false for arrays with NaN -ok 262 — Returns false for arrays with undefined -ok 263 — Returns false for arrays with null -ok 264 — Returns false for arrays with empty strings -ok 265 — Returns true with predicate function -ok 266 — Returns false with a predicate function - -# PASS test\equals\equals.test.js - -ok 267 — equals is a Function -ok 268 — { a: [2, {e: 3}], b: [4], c: 'foo' } is equal to { a: [2, {e: 3}], b: [4], c: 'foo' } -ok 269 — [1,2,3] is equal to [1,2,3] -ok 270 — { a: [2, 3], b: [4] } is not equal to { a: [2, 3], b: [6] } -ok 271 — [1,2,3] is not equal to [1,2,4] -ok 272 — [1, 2, 3] should be equal to { 0: 1, 1: 2, 2: 3 }) - type is different, but their enumerable properties match. - -# PASS test\filterNonUniqueBy\filterNonUniqueBy.test.js - -ok 273 — filterNonUniqueBy is a Function -ok 274 — filterNonUniqueBy works for properties -ok 275 — filterNonUniqueBy works for nested properties - -# PASS test\randomIntArrayInRange\randomIntArrayInRange.test.js - -ok 276 — randomIntArrayInRange is a Function -ok 277 — The returned array contains only integers -ok 278 — The returned array has the proper length -ok 279 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). - -# PASS test\pluralize\pluralize.test.js - -ok 280 — pluralize is a Function -ok 281 — Produces the plural of the word -ok 282 — Produces the singular of the word -ok 283 — Produces the plural of the word -ok 284 — Prodices the defined plural of the word -ok 285 — Works with a dictionary - -# PASS test\sampleSize\sampleSize.test.js - -ok 286 — sampleSize is a Function -ok 287 — Returns a single element without n specified -ok 288 — Returns a random sample of specified size from an array -ok 289 — Returns all elements in an array if n >= length -ok 290 — Returns an empty array if original array is empty -ok 291 — Returns an empty array if n = 0 - -# PASS test\CSVToArray\CSVToArray.test.js - -ok 292 — CSVToArray is a Function -ok 293 — CSVToArray works with default delimiter -ok 294 — CSVToArray works with custom delimiter -ok 295 — CSVToArray omits the first row -ok 296 — CSVToArray omits the first row and works with a custom delimiter - -# PASS test\randomIntegerInRange\randomIntegerInRange.test.js - -ok 297 — randomIntegerInRange is a Function -ok 298 — The returned value is an integer -ok 299 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test\randomNumberInRange\randomNumberInRange.test.js - -ok 300 — randomNumberInRange is a Function -ok 301 — The returned value is a number -ok 302 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). - -# PASS test\orderBy\orderBy.test.js - -ok 303 — orderBy is a Function -ok 304 — Returns a sorted array of objects ordered by properties and orders. -ok 305 — Returns a sorted array of objects ordered by properties and orders. - -# PASS test\geometricProgression\geometricProgression.test.js - -ok 306 — geometricProgression is a Function -ok 307 — Initializes an array containing the numbers in the specified range -ok 308 — Initializes an array containing the numbers in the specified range -ok 309 — Initializes an array containing the numbers in the specified range - -# PASS test\any\any.test.js - -ok 310 — any is a Function -ok 311 — Returns true for arrays with at least one truthy value -ok 312 — Returns false for arrays with no truthy values -ok 313 — Returns false for arrays with no truthy values -ok 314 — Returns true with predicate function -ok 315 — Returns false with a predicate function - -# PASS test\mapObject\mapObject.test.js - -ok 316 — mapObject is a Function -ok 317 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } -ok 318 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } -ok 319 — 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 320 — join is a Function -ok 321 — Joins all elements of an array into a string and returns this string -ok 322 — Joins all elements of an array into a string and returns this string -ok 323 — Joins all elements of an array into a string and returns this string - -# PASS test\binomialCoefficient\binomialCoefficient.test.js - -ok 324 — binomialCoefficient is a Function -ok 325 — Returns the appropriate value -ok 326 — Returns the appropriate value -ok 327 — Returns the appropriate value -ok 328 — Returns NaN -ok 329 — Returns NaN - -# PASS test\toCurrency\toCurrency.test.js - -ok 330 — toCurrency is a Function -ok 331 — currency: Euro | currencyLangFormat: Local -ok 332 — currency: US Dollar | currencyLangFormat: English (United States) -ok 333 — currency: Japanese Yen | currencyLangFormat: Local - -# PASS test\mapString\mapString.test.js - -ok 334 — mapString is a Function -ok 335 — mapString returns a capitalized string -ok 336 — mapString can deal with indexes -ok 337 — mapString can deal with the full string - -# PASS test\dig\dig.test.js - -ok 338 — dig is a Function -ok 339 — Dig target success -ok 340 — Dig target with falsey value -ok 341 — Dig target with array -ok 342 — Unknown target return undefined - -# PASS test\invertKeyValues\invertKeyValues.test.js - -ok 343 — invertKeyValues is a Function -ok 344 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } -ok 345 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } - -# PASS test\reduceWhich\reduceWhich.test.js - -ok 346 — reduceWhich is a Function -ok 347 — Returns the minimum of an array -ok 348 — Returns the maximum of an array -ok 349 — Returns the object with the minimum specified value in an array - -# PASS test\fromCamelCase\fromCamelCase.test.js - -ok 350 — fromCamelCase is a Function -ok 351 — Converts a string from camelcase -ok 352 — Converts a string from camelcase -ok 353 — Converts a string from camelcase - -# PASS test\approximatelyEqual\approximatelyEqual.test.js - -ok 354 — approximatelyEqual is a Function -ok 355 — Works for PI / 2 -ok 356 — Works for 0.1 + 0.2 === 0.3 -ok 357 — Works for exactly equal values -ok 358 — Works for a custom epsilon - -# PASS test\castArray\castArray.test.js - -ok 359 — castArray is a Function -ok 360 — Works for single values -ok 361 — Works for arrays with one value -ok 362 — Works for arrays with multiple value -ok 363 — Works for strings -ok 364 — Works for objects - -# PASS test\binarySearch\binarySearch.test.js - -ok 365 — binarySearch is a Function -ok 366 — Finds item in array -ok 367 — Returns -1 when not found -ok 368 — Works with empty arrays -ok 369 — Works for one element arrays - -# PASS test\none\none.test.js - -ok 370 — none is a Function -ok 371 — Returns true for arrays with no truthy values -ok 372 — Returns false for arrays with at least one truthy value -ok 373 — Returns true with a predicate function -ok 374 — Returns false with predicate function - -# PASS test\inRange\inRange.test.js - -ok 375 — inRange is a Function -ok 376 — The given number falls within the given range -ok 377 — The given number falls within the given range -ok 378 — The given number does not falls within the given range -ok 379 — The given number does not falls within the given range - -# PASS test\mask\mask.test.js - -ok 380 — mask is a Function -ok 381 — Replaces all but the last num of characters with the specified mask character -ok 382 — Replaces all but the last num of characters with the specified mask character -ok 383 — Replaces all but the last num of characters with the specified mask character - -# PASS test\factorial\factorial.test.js - -ok 384 — factorial is a Function -ok 385 — Calculates the factorial of 720 -ok 386 — Calculates the factorial of 0 -ok 387 — Calculates the factorial of 1 -ok 388 — Calculates the factorial of 4 -ok 389 — Calculates the factorial of 10 - -# PASS test\converge\converge.test.js - -ok 390 — converge is a Function -ok 391 — Produces the average of the array -ok 392 — Produces the strange concatenation - -# PASS test\toOrdinalSuffix\toOrdinalSuffix.test.js - -ok 393 — toOrdinalSuffix is a Function -ok 394 — Adds an ordinal suffix to a number -ok 395 — Adds an ordinal suffix to a number -ok 396 — Adds an ordinal suffix to a number -ok 397 — Adds an ordinal suffix to a number - -# PASS test\deepClone\deepClone.test.js - -ok 398 — deepClone is a Function -ok 399 — Shallow cloning works -ok 400 — Deep cloning works -ok 401 — Array shallow cloning works -ok 402 — Array deep cloning works - -# PASS test\capitalize\capitalize.test.js - -ok 403 — capitalize is a Function -ok 404 — Capitalizes the first letter of a string -ok 405 — Capitalizes the first letter of a string -ok 406 — Works with characters -ok 407 — "Works with single character words - -# PASS test\isAnagram\isAnagram.test.js - -ok 408 — isAnagram is a Function -ok 409 — Checks valid anagram -ok 410 — Works with spaces -ok 411 — Ignores case -ok 412 — Ignores special characters - -# PASS test\randomHexColorCode\randomHexColorCode.test.js - -ok 413 — randomHexColorCode is a Function -ok 414 — randomHexColorCode has to proper length -ok 415 — The color code starts with "#" -ok 416 — The color code contains only valid hex-digits - -# PASS test\tomorrow\tomorrow.test.js - -ok 417 — tomorrow is a Function -ok 418 — Returns the correct year -ok 419 — Returns the correct month -ok 420 — Returns the correct date - -# PASS test\JSONtoCSV\JSONtoCSV.test.js - -ok 421 — JSONtoCSV is a Function -ok 422 — JSONtoCSV works with default delimiter -ok 423 — JSONtoCSV works with custom delimiter - -# PASS test\prettyBytes\prettyBytes.test.js - -ok 424 — prettyBytes is a Function -ok 425 — Converts a number in bytes to a human-readable string. -ok 426 — Converts a number in bytes to a human-readable string. -ok 427 — Converts a number in bytes to a human-readable string. - -# PASS test\shuffle\shuffle.test.js - -ok 428 — shuffle is a Function -ok 429 — Shuffles the array -ok 430 — New array contains all original elements -ok 431 — Works for empty arrays -ok 432 — Works for single-element arrays - -# PASS test\isString\isString.test.js - -ok 433 — isString is a Function -ok 434 — foo is a string -ok 435 — "10" is a string -ok 436 — Empty string is a string -ok 437 — 10 is not a string -ok 438 — true is not string - -# PASS test\hexToRGB\hexToRGB.test.js - -ok 439 — hexToRGB is a Function -ok 440 — Converts a color code to a rgb() or rgba() string -ok 441 — Converts a color code to a rgb() or rgba() string -ok 442 — Converts a color code to a rgb() or rgba() string - -# PASS test\dropRight\dropRight.test.js - -ok 443 — dropRight is a Function -ok 444 — Returns a new array with n elements removed from the right -ok 445 — Returns a new array with n elements removed from the right -ok 446 — Returns a new array with n elements removed from the right - -# PASS test\stringPermutations\stringPermutations.test.js - -ok 447 — stringPermutations is a Function -ok 448 — Generates all stringPermutations of a string -ok 449 — Works for single-letter strings -ok 450 — Works for empty strings - -# PASS test\partition\partition.test.js - -ok 451 — partition is a Function -ok 452 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. - -# PASS test\isObjectLike\isObjectLike.test.js - -ok 453 — isObjectLike is a Function -ok 454 — Returns true for an object -ok 455 — Returns true for an array -ok 456 — Returns false for a function -ok 457 — Returns false for null - -# PASS test\capitalizeEveryWord\capitalizeEveryWord.test.js - -ok 458 — capitalizeEveryWord is a Function -ok 459 — Capitalizes the first letter of every word in a string -ok 460 — Works with characters -ok 461 — Works with one word string - -# PASS test\sumPower\sumPower.test.js - -ok 462 — sumPower is a Function -ok 463 — Returns the sum of the powers of all the numbers from start to end -ok 464 — Returns the sum of the powers of all the numbers from start to end -ok 465 — Returns the sum of the powers of all the numbers from start to end - -# PASS test\unzip\unzip.test.js - -ok 466 — unzip is a Function -ok 467 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] -ok 468 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] - -# PASS test\untildify\untildify.test.js - -ok 469 — untildify is a Function -ok 470 — Contains no tildes -ok 471 — Does not alter the rest of the path -ok 472 — Does not alter paths without tildes - -# PASS test\isObject\isObject.test.js - -ok 473 — isObject is a Function -ok 474 — isObject([1, 2, 3, 4]) is a object -ok 475 — isObject([]) is a object -ok 476 — isObject({ a:1 }) is a object -ok 477 — isObject(true) is not a object - -# PASS test\formatDuration\formatDuration.test.js - -ok 478 — formatDuration is a Function -ok 479 — Returns the human readable format of the given number of milliseconds -ok 480 — Returns the human readable format of the given number of milliseconds - -# PASS test\byteSize\byteSize.test.js - -ok 481 — byteSize is a Function -ok 482 — Works for a single letter -ok 483 — Works for a common string -ok 484 — Works for emoji - -# PASS test\standardDeviation\standardDeviation.test.js - -ok 485 — standardDeviation is a Function -ok 486 — Returns the standard deviation of an array of numbers -ok 487 — Returns the standard deviation of an array of numbers - -# PASS test\sortedIndex\sortedIndex.test.js - -ok 488 — sortedIndex is a Function -ok 489 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. -ok 490 — Returns the lowest index at which value should be inserted into array in order to maintain its sort order. - -# PASS test\uncurry\uncurry.test.js - -ok 491 — uncurry is a Function -ok 492 — Works without a provided value for n -ok 493 — Works with n = 2 -ok 494 — Works with n = 3 - -# PASS test\pad\pad.test.js - -ok 495 — pad is a Function -ok 496 — cat is padded on both sides -ok 497 — length of string is 8 -ok 498 — pads 42 with "0" -ok 499 — does not truncates if string exceeds length - -# PASS test\isAbsoluteURL\isAbsoluteURL.test.js - -ok 500 — isAbsoluteURL is a Function -ok 501 — Given string is an absolute URL -ok 502 — Given string is an absolute URL -ok 503 — Given string is not an absolute URL - -# PASS test\isValidJSON\isValidJSON.test.js - -ok 504 — isValidJSON is a Function -ok 505 — {"name":"Adam","age":20} is a valid JSON -ok 506 — {"name":"Adam",age:"20"} is not a valid JSON -ok 507 — null is a valid JSON - -# PASS test\CSVToJSON\CSVToJSON.test.js - -ok 508 — CSVToJSON is a Function -ok 509 — CSVToJSON works with default delimiter -ok 510 — CSVToJSON works with custom delimiter - -# PASS test\URLJoin\URLJoin.test.js - -ok 511 — URLJoin is a Function -ok 512 — Returns proper URL -ok 513 — Returns proper URL - -# PASS test\reject\reject.test.js - -ok 514 — reject is a Function -ok 515 — Works with numbers -ok 516 — Works with strings - -# PASS test\reducedFilter\reducedFilter.test.js - -ok 517 — reducedFilter is a Function -ok 518 — Filter an array of objects based on a condition while also filtering out unspecified keys. - -# PASS test\groupBy\groupBy.test.js - -ok 519 — groupBy is a Function -ok 520 — Groups the elements of an array based on the given function -ok 521 — Groups the elements of an array based on the given function - -# PASS test\matches\matches.test.js - -ok 522 — matches is a Function -ok 523 — Matches returns true for two similar objects -ok 524 — Matches returns false for two non-similar objects - -# PASS test\functionName\functionName.test.js - -ok 525 — functionName is a Function -ok 526 — Works for native functions -ok 527 — Works for functions -ok 528 — Works for arrow functions - -# PASS test\lowercaseKeys\lowercaseKeys.test.js - -ok 529 — lowercaseKeys is a Function -ok 530 — Lowercases object keys -ok 531 — Does not mutate original object - -# PASS test\collatz\collatz.test.js - -ok 532 — collatz is a Function -ok 533 — When n is even, divide by 2 -ok 534 — When n is odd, times by 3 and add 1 -ok 535 — Eventually reaches 1 - -# PASS test\symmetricDifferenceWith\symmetricDifferenceWith.test.js - -ok 536 — symmetricDifferenceWith is a Function -ok 537 — Returns the symmetric difference between two arrays, using a provided function as a comparator - -# PASS test\collectInto\collectInto.test.js - -ok 538 — collectInto is a Function -ok 539 — Works with multiple promises - -# PASS test\UUIDGeneratorNode\UUIDGeneratorNode.test.js - -ok 540 — UUIDGeneratorNode is a Function -ok 541 — Contains dashes in the proper places -ok 542 — Only contains hexadecimal digits - -# PASS test\nthArg\nthArg.test.js - -ok 543 — nthArg is a Function -ok 544 — Returns the nth argument -ok 545 — Returns undefined if arguments too few -ok 546 — Works for negative values - -# PASS test\luhnCheck\luhnCheck.test.js - -ok 547 — luhnCheck is a Function -ok 548 — validates identification number -ok 549 — validates identification number -ok 550 — validates identification number - -# PASS test\matchesWith\matchesWith.test.js - -ok 551 — matchesWith is a Function -ok 552 — Returns true for two objects with similar values, based on the provided function - -# PASS test\functions\functions.test.js - -ok 553 — functions is a Function -ok 554 — Returns own methods -ok 555 — Returns own and inherited methods - -# PASS test\sample\sample.test.js - -ok 556 — sample is a Function -ok 557 — Returns a random element from the array -ok 558 — Works for single-element arrays -ok 559 — Returns undefined for empty array - -# PASS test\differenceBy\differenceBy.test.js - -ok 560 — differenceBy is a Function -ok 561 — Works using a native function and numbers -ok 562 — Works with arrow function and objects - -# PASS test\drop\drop.test.js - -ok 563 — drop is a Function -ok 564 — Works without the last argument -ok 565 — Removes appropriate element count as specified -ok 566 — Empties array given a count greater than length - -# PASS test\pipeAsyncFunctions\pipeAsyncFunctions.test.js - -ok 567 — pipeAsyncFunctions is a Function -ok 568 — pipeAsyncFunctions result should be 15 - -# PASS test\flattenObject\flattenObject.test.js - -ok 569 — flattenObject is a Function -ok 570 — Flattens an object with the paths for keys -ok 571 — Works with arrays - -# PASS test\elo\elo.test.js - -ok 572 — elo is a Function -ok 573 — Standard 1v1s -ok 574 — Standard 1v1s -ok 575 — 4 player FFA, all same rank - -# PASS test\memoize\memoize.test.js - -ok 576 — memoize is a Function -ok 577 — Function works properly -ok 578 — Function works properly -ok 579 — Cache stores values - -# PASS test\isLowerCase\isLowerCase.test.js - -ok 580 — isLowerCase is a Function -ok 581 — passed string is a lowercase -ok 582 — passed string is a lowercase -ok 583 — passed value is not a lowercase - -# PASS test\averageBy\averageBy.test.js - -ok 584 — averageBy is a Function -ok 585 — Produces the right result with a function -ok 586 — Produces the right result with a property name - -# PASS test\renameKeys\renameKeys.test.js - -ok 587 — renameKeys is a Function -ok 588 — renameKeys is a Function - -# PASS test\bindKey\bindKey.test.js - -ok 589 — bindKey is a Function -ok 590 — Binds function to an object context - -# PASS test\symmetricDifferenceBy\symmetricDifferenceBy.test.js - -ok 591 — symmetricDifferenceBy is a Function -ok 592 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both - -# PASS test\isArrayLike\isArrayLike.test.js - -ok 593 — isArrayLike is a Function -ok 594 — Returns true for a string -ok 595 — Returns true for an array -ok 596 — Returns false for null - -# PASS test\promisify\promisify.test.js - -ok 597 — promisify is a Function -ok 598 — Returns a promise -ok 599 — Runs the function provided - -# PASS test\isUpperCase\isUpperCase.test.js - -ok 600 — isUpperCase is a Function -ok 601 — ABC is all upper case -ok 602 — abc is not all upper case -ok 603 — A3@$ is all uppercase - -# PASS test\pullAtValue\pullAtValue.test.js - -ok 604 — pullAtValue is a Function -ok 605 — Pulls the specified values -ok 606 — Pulls the specified values - -# PASS test\arrayToCSV\arrayToCSV.test.js - -ok 607 — arrayToCSV is a Function -ok 608 — arrayToCSV works with default delimiter -ok 609 — arrayToCSV works with custom delimiter - -# PASS test\intersectionWith\intersectionWith.test.js - -ok 610 — intersectionWith is a Function -ok 611 — Returns a list of elements that exist in both arrays, using a provided comparator function - -# PASS test\isPromiseLike\isPromiseLike.test.js - -ok 612 — isPromiseLike is a Function -ok 613 — Returns true for a promise-like object -ok 614 — Returns false for an empty object - -# PASS test\maxBy\maxBy.test.js - -ok 615 — maxBy is a Function -ok 616 — Produces the right result with a function -ok 617 — Produces the right result with a property name - -# PASS test\minBy\minBy.test.js - -ok 618 — minBy is a Function -ok 619 — Produces the right result with a function -ok 620 — Produces the right result with a property name - -# PASS test\pullAtIndex\pullAtIndex.test.js - -ok 621 — pullAtIndex is a Function -ok 622 — Pulls the given values -ok 623 — Pulls the given values - -# PASS test\unzipWith\unzipWith.test.js - -ok 624 — unzipWith is a Function -ok 625 — unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc + v, 0)) equals [3, 30, 300] - -# PASS test\merge\merge.test.js - -ok 626 — merge is a Function -ok 627 — Merges two objects - -# PASS test\bind\bind.test.js - -ok 628 — bind is a Function -ok 629 — Binds to an object context - -# PASS test\coalesceFactory\coalesceFactory.test.js - -ok 630 — coalesceFactory is a Function -ok 631 — Returns a customized coalesce function - -# PASS test\takeRight\takeRight.test.js - -ok 632 — takeRight is a Function -ok 633 — Returns an array with n elements removed from the end -ok 634 — Returns an array with n elements removed from the end - -# PASS test\truthCheckCollection\truthCheckCollection.test.js - -ok 635 — truthCheckCollection is a Function -ok 636 — second argument is truthy on all elements of a collection - -# PASS test\findLastKey\findLastKey.test.js - -ok 637 — findLastKey is a Function -ok 638 — eturns the appropriate key - -# PASS test\isNil\isNil.test.js - -ok 639 — isNil is a Function -ok 640 — Returns true for null -ok 641 — Returns true for undefined -ok 642 — Returns false for an empty string - -# PASS test\chainAsync\chainAsync.test.js - -ok 643 — chainAsync is a Function -ok 644 — Calls all functions in an array - -# PASS test\gcd\gcd.test.js - -ok 645 — gcd is a Function -ok 646 — Calculates the greatest common divisor between two or more numbers/arrays -ok 647 — Calculates the greatest common divisor between two or more numbers/arrays - -# PASS test\isPlainObject\isPlainObject.test.js - -ok 648 — isPlainObject is a Function -ok 649 — Returns true for a plain object -ok 650 — Returns false for a Map (example of non-plain object) - -# PASS test\runPromisesInSeries\runPromisesInSeries.test.js - -ok 651 — runPromisesInSeries is a Function -ok 652 — Runs promises in series - -# PASS test\pipeFunctions\pipeFunctions.test.js - -ok 653 — pipeFunctions is a Function -ok 654 — Performs left-to-right function composition - -# PASS test\isTravisCI\isTravisCI.test.js - -ok 655 — isTravisCI is a Function -ok 656 — Not running on Travis, correctly evaluates - -# PASS test\extendHex\extendHex.test.js - -ok 657 — extendHex is a Function -ok 658 — Extends a 3-digit color code to a 6-digit color code -ok 659 — Extends a 3-digit color code to a 6-digit color code - -# PASS test\intersectionBy\intersectionBy.test.js - -ok 660 — intersectionBy is a Function -ok 661 — Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both - -# PASS test\take\take.test.js - -ok 662 — take is a Function -ok 663 — Returns an array with n elements removed from the beginning. -ok 664 — Returns an array with n elements removed from the beginning. - -# PASS test\indexOfAll\indexOfAll.test.js - -ok 665 — indexOfAll is a Function -ok 666 — Returns all indices of val in an array -ok 667 — Returns all indices of val in an array - -# PASS test\when\when.test.js - -ok 668 — when is a Function -ok 669 — Returns the proper result -ok 670 — Returns the proper result - -# PASS test\shallowClone\shallowClone.test.js - -ok 671 — shallowClone is a Function -ok 672 — Shallow cloning works -ok 673 — Does not clone deeply - -# PASS test\getURLParameters\getURLParameters.test.js - -ok 674 — getURLParameters is a Function -ok 675 — Returns an object containing the parameters of the current URL - -# PASS test\decapitalize\decapitalize.test.js - -ok 676 — decapitalize is a Function -ok 677 — Works with default parameter -ok 678 — Works with second parameter set to true - -# PASS test\overArgs\overArgs.test.js - -ok 679 — overArgs is a Function -ok 680 — Invokes the provided function with its arguments transformed - -# PASS test\cleanObj\cleanObj.test.js - -ok 681 — cleanObj is a Function -ok 682 — Removes any properties except the ones specified from a JSON object - -# PASS test\countBy\countBy.test.js - -ok 683 — countBy is a Function -ok 684 — Works for functions -ok 685 — Works for property names - -# PASS test\nthElement\nthElement.test.js - -ok 686 — nthElement is a Function -ok 687 — Returns the nth element of an array. -ok 688 — Returns the nth element of an array. - -# PASS test\findKey\findKey.test.js - -ok 689 — findKey is a Function -ok 690 — Returns the appropriate key - -# PASS test\partialRight\partialRight.test.js - -ok 691 — partialRight is a Function -ok 692 — Appends arguments - -# PASS test\spreadOver\spreadOver.test.js - -ok 693 — spreadOver is a Function -ok 694 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. +ok 207 — runAsync is a Function # PASS test\minN\minN.test.js -ok 695 — minN is a Function -ok 696 — Returns the n minimum elements from the provided array -ok 697 — Returns the n minimum elements from the provided array - -# PASS test\composeRight\composeRight.test.js - -ok 698 — composeRight is a Function -ok 699 — Performs left-to-right function composition - -# PASS test\maxN\maxN.test.js - -ok 700 — maxN is a Function -ok 701 — Returns the n maximum elements from the provided array -ok 702 — Returns the n maximum elements from the provided array - -# PASS test\flatten\flatten.test.js - -ok 703 — flatten is a Function -ok 704 — Flattens an array -ok 705 — Flattens an array - -# PASS test\getDaysDiffBetweenDates\getDaysDiffBetweenDates.test.js - -ok 706 — getDaysDiffBetweenDates is a Function -ok 707 — Returns the difference in days between two dates - -# PASS test\hashNode\hashNode.test.js - -ok 708 — hashNode is a Function -ok 709 — Produces the appropriate hash - -# PASS test\initializeArrayWithRange\initializeArrayWithRange.test.js - -ok 710 — initializeArrayWithRange is a Function -ok 711 — Initializes an array containing the numbers in the specified range - -# PASS test\sortedLastIndexBy\sortedLastIndexBy.test.js - -ok 712 — sortedLastIndexBy is a Function -ok 713 — Returns the highest index to insert the element without messing up the list order - -# PASS test\bindAll\bindAll.test.js - -ok 714 — bindAll is a Function -ok 715 — Binds to an object context - -# PASS test\initializeArrayWithValues\initializeArrayWithValues.test.js - -ok 716 — initializeArrayWithValues is a Function -ok 717 — Initializes and fills an array with the specified values - -# PASS test\compose\compose.test.js - -ok 718 — compose is a Function -ok 719 — Performs right-to-left function composition - -# PASS test\lcm\lcm.test.js - -ok 720 — lcm is a Function -ok 721 — Returns the least common multiple of two or more numbers. -ok 722 — Returns the least common multiple of two or more numbers. - -# PASS test\transform\transform.test.js - -ok 723 — transform is a Function -ok 724 — Transforms an object - -# PASS test\reduceSuccessive\reduceSuccessive.test.js - -ok 725 — reduceSuccessive is a Function -ok 726 — Returns the array of successively reduced values - -# PASS test\percentile\percentile.test.js - -ok 727 — percentile is a Function -ok 728 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. - -# PASS test\mapValues\mapValues.test.js - -ok 729 — mapValues is a Function -ok 730 — Maps values - -# PASS test\permutations\permutations.test.js - -ok 731 — permutations is a Function -ok 732 — Generates all permutations of an array - -# PASS test\partial\partial.test.js - -ok 733 — partial is a Function -ok 734 — Prepends arguments - -# PASS test\differenceWith\differenceWith.test.js - -ok 735 — differenceWith is a Function -ok 736 — Filters out all values from an array - -# PASS test\palindrome\palindrome.test.js - -ok 737 — palindrome is a Function -ok 738 — Given string is a palindrome -ok 739 — Given string is not a palindrome - -# PASS test\size\size.test.js - -ok 740 — size is a Function -ok 741 — Get size of arrays, objects or strings. -ok 742 — Get size of arrays, objects or strings. - -# PASS test\median\median.test.js - -ok 743 — median is a Function -ok 744 — Returns the median of an array of numbers -ok 745 — Returns the median of an array of numbers - -# PASS test\degreesToRads\degreesToRads.test.js - -ok 746 — degreesToRads is a Function -ok 747 — Returns the appropriate value - -# PASS test\forOwnRight\forOwnRight.test.js - -ok 748 — forOwnRight is a Function -ok 749 — Iterates over an element's key-value pairs in reverse - -# PASS test\sortedIndexBy\sortedIndexBy.test.js - -ok 750 — sortedIndexBy is a Function -ok 751 — Returns the lowest index to insert the element without messing up the list order - -# PASS test\rearg\rearg.test.js - -ok 752 — rearg is a Function -ok 753 — Reorders arguments in invoked function - -# PASS test\isFunction\isFunction.test.js - -ok 754 — isFunction is a Function -ok 755 — passed value is a function -ok 756 — passed value is not a function - -# PASS test\pickBy\pickBy.test.js - -ok 757 — pickBy is a Function -ok 758 — Creates an object composed of the properties the given function returns truthy for. - -# PASS test\dropRightWhile\dropRightWhile.test.js - -ok 759 — dropRightWhile is a Function -ok 760 — Removes elements from the end of an array until the passed function returns true. - -# PASS test\unionWith\unionWith.test.js - -ok 761 — unionWith is a Function -ok 762 — Produces the appropriate results - -# PASS test\bifurcate\bifurcate.test.js - -ok 763 — bifurcate is a Function -ok 764 — Splits the collection into two groups - -# PASS test\bifurcateBy\bifurcateBy.test.js - -ok 765 — bifurcateBy is a Function -ok 766 — Splits the collection into two groups - -# PASS test\flip\flip.test.js - -ok 767 — flip is a Function -ok 768 — Flips argument order - -# PASS test\sortedLastIndex\sortedLastIndex.test.js - -ok 769 — sortedLastIndex is a Function -ok 770 — Returns the highest index to insert the element without messing up the list order - -# PASS test\splitLines\splitLines.test.js - -ok 771 — splitLines is a Function -ok 772 — Splits a multiline string into an array of lines. - -# PASS test\isBoolean\isBoolean.test.js - -ok 773 — isBoolean is a Function -ok 774 — passed value is not a boolean -ok 775 — passed value is not a boolean - -# PASS test\sortCharactersInString\sortCharactersInString.test.js - -ok 776 — sortCharactersInString is a Function -ok 777 — Alphabetically sorts the characters in a string. - -# PASS test\omitBy\omitBy.test.js - -ok 778 — omitBy is a Function -ok 779 — Creates an object composed of the properties the given function returns falsey for - -# PASS test\symmetricDifference\symmetricDifference.test.js - -ok 780 — symmetricDifference is a Function -ok 781 — Returns the symmetric difference between two arrays. - -# PASS test\get\get.test.js - -ok 782 — get is a Function -ok 783 — Retrieve a property indicated by the selector from an object. - -# PASS test\pullBy\pullBy.test.js - -ok 784 — pullBy is a Function -ok 785 — Pulls the specified values - -# PASS test\xProd\xProd.test.js - -ok 786 — xProd is a Function -ok 787 — xProd([1, 2], ['a', 'b']) returns [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] - -# PASS test\unescapeHTML\unescapeHTML.test.js - -ok 788 — unescapeHTML is a Function -ok 789 — Unescapes escaped HTML characters. - -# PASS test\unflattenObject\unflattenObject.test.js - -ok 790 — unflattenObject is a Function -ok 791 — Unflattens an object with the paths for keys - -# PASS test\stableSort\stableSort.test.js - -ok 792 — stableSort is a Function -ok 793 — Array is properly sorted - -# PASS test\initialize2DArray\initialize2DArray.test.js - -ok 794 — initialize2DArray is a Function -ok 795 — Initializes a 2D array of given width and height and value - -# PASS test\attempt\attempt.test.js - -ok 796 — attempt is a Function -ok 797 — Returns a value -ok 798 — Returns an error - -# PASS test\isNumber\isNumber.test.js - -ok 799 — isNumber is a Function -ok 800 — passed argument is a number -ok 801 — passed argument is not a number - -# PASS test\objectFromPairs\objectFromPairs.test.js - -ok 802 — objectFromPairs is a Function -ok 803 — Creates an object from the given key-value pairs. - -# PASS test\isArray\isArray.test.js - -ok 804 — isArray is a Function -ok 805 — passed value is an array -ok 806 — passed value is not an array - -# PASS test\escapeHTML\escapeHTML.test.js - -ok 807 — escapeHTML is a Function -ok 808 — Escapes a string for use in HTML - -# PASS test\toDecimalMark\toDecimalMark.test.js - -ok 809 — toDecimalMark is a Function -ok 810 — convert a float-point arithmetic to the Decimal mark form - -# PASS test\forEachRight\forEachRight.test.js - -ok 811 — forEachRight is a Function -ok 812 — Iterates over the array in reverse - -# PASS test\unfold\unfold.test.js - -ok 813 — unfold is a Function -ok 814 — Works with a given function, producing an array - -# PASS test\objectToPairs\objectToPairs.test.js - -ok 815 — objectToPairs is a Function -ok 816 — Creates an array of key-value pair arrays from an object. - -# PASS test\filterNonUnique\filterNonUnique.test.js - -ok 817 — filterNonUnique is a Function -ok 818 — Filters out the non-unique values in an array - -# PASS test\curry\curry.test.js - -ok 819 — curry is a Function -ok 820 — curries a Math.pow -ok 821 — curries a Math.min - -# PASS test\findLastIndex\findLastIndex.test.js - -ok 822 — findLastIndex is a Function -ok 823 — Finds last index for which the given function returns true - -# PASS test\forOwn\forOwn.test.js - -ok 824 — forOwn is a Function -ok 825 — Iterates over an element's key-value pairs - -# PASS test\ary\ary.test.js - -ok 826 — ary is a Function -ok 827 — Discards arguments with index >=n - -# PASS test\countOccurrences\countOccurrences.test.js - -ok 828 — countOccurrences is a Function -ok 829 — Counts the occurrences of a value in an array - -# PASS test\stripHTMLTags\stripHTMLTags.test.js - -ok 830 — stripHTMLTags is a Function -ok 831 — Removes HTML tags - -# PASS test\takeRightWhile\takeRightWhile.test.js - -ok 832 — takeRightWhile is a Function -ok 833 — Removes elements until the function returns true - -# PASS test\removeNonASCII\removeNonASCII.test.js - -ok 834 — removeNonASCII is a Function -ok 835 — Removes non-ASCII characters - -# PASS test\compact\compact.test.js - -ok 836 — compact is a Function -ok 837 — Removes falsey values from an array - -# PASS test\isNull\isNull.test.js - -ok 838 — isNull is a Function -ok 839 — passed argument is a null -ok 840 — passed argument is a null - -# PASS test\pick\pick.test.js - -ok 841 — pick is a Function -ok 842 — Picks the key-value pairs corresponding to the given keys from an object. - -# PASS test\delay\delay.test.js - -ok 843 — delay is a Function -ok 844 — Works as expecting, passing arguments properly - -# PASS test\dropWhile\dropWhile.test.js - -ok 845 — dropWhile is a Function -ok 846 — Removes elements in an array until the passed function returns true. - -# PASS test\atob\atob.test.js - -ok 847 — atob is a Function -ok 848 — atob("Zm9vYmFy") equals "foobar" -ok 849 — atob("Z") returns "" - -# PASS test\defaults\defaults.test.js - -ok 850 — defaults is a Function -ok 851 — Assigns default values for undefined properties - -# PASS test\remove\remove.test.js - -ok 852 — remove is a Function -ok 853 — Removes elements from an array for which the given function returns false - -# PASS test\omit\omit.test.js - -ok 854 — omit is a Function -ok 855 — Omits the key-value pairs corresponding to the given keys from an object - -# PASS test\truncateString\truncateString.test.js - -ok 856 — truncateString is a Function -ok 857 — Truncates a "boomerang" up to a specified length. - -# PASS test\clampNumber\clampNumber.test.js - -ok 858 — clampNumber is a Function -ok 859 — Clamps num within the inclusive range specified by the boundary values a and b - -# PASS test\intersection\intersection.test.js - -ok 860 — intersection is a Function -ok 861 — Returns a list of elements that exist in both arrays - -# PASS test\parseCookie\parseCookie.test.js - -ok 862 — parseCookie is a Function -ok 863 — Parses the cookie - -# PASS test\similarity\similarity.test.js - -ok 864 — similarity is a Function -ok 865 — Returns an array of elements that appear in both arrays. - -# PASS test\over\over.test.js - -ok 866 — over is a Function -ok 867 — Applies given functions over multiple arguments - -# PASS test\isEven\isEven.test.js - -ok 868 — isEven is a Function -ok 869 — 4 is even number -ok 870 — 5 is not an even number - -# PASS test\pull\pull.test.js - -ok 871 — pull is a Function -ok 872 — Pulls the specified values - -# PASS test\findLast\findLast.test.js - -ok 873 — findLast is a Function -ok 874 — Finds last element for which the given function returns true - -# PASS test\cloneRegExp\cloneRegExp.test.js - -ok 875 — cloneRegExp is a Function -ok 876 — Clones regular expressions properly - -# PASS test\escapeRegExp\escapeRegExp.test.js - -ok 877 — escapeRegExp is a Function -ok 878 — Escapes a string to use in a regular expression - -# PASS test\times\times.test.js - -ok 879 — times is a Function -ok 880 — Runs a function the specified amount of times - -# PASS test\takeWhile\takeWhile.test.js - -ok 881 — takeWhile is a Function -ok 882 — Removes elements until the function returns true - -# PASS test\coalesce\coalesce.test.js - -ok 883 — coalesce is a Function -ok 884 — Returns the first non-null/undefined argument - -# PASS test\longestItem\longestItem.test.js - -ok 885 — longestItem is a Function -ok 886 — Returns the longest object - -# PASS test\tail\tail.test.js - -ok 887 — tail is a Function -ok 888 — Returns tail -ok 889 — Returns tail - -# PASS test\powerset\powerset.test.js - -ok 890 — powerset is a Function -ok 891 — Returns the powerset of a given array of numbers. - -# PASS test\fibonacci\fibonacci.test.js - -ok 892 — fibonacci is a Function -ok 893 — Generates an array, containing the Fibonacci sequence - -# PASS test\hammingDistance\hammingDistance.test.js - -ok 894 — hammingDistance is a Function -ok 895 — retuns hamming disance between 2 values - -# PASS test\primes\primes.test.js - -ok 896 — primes is a Function -ok 897 — Generates primes up to a given number, using the Sieve of Eratosthenes. - -# PASS test\distance\distance.test.js - -ok 898 — distance is a Function -ok 899 — Calculates the distance between two points - -# PASS test\serializeCookie\serializeCookie.test.js - -ok 900 — serializeCookie is a Function -ok 901 — Serializes the cookie - -# PASS test\deepFlatten\deepFlatten.test.js - -ok 902 — deepFlatten is a Function -ok 903 — Deep flattens an array - -# PASS test\difference\difference.test.js - -ok 904 — difference is a Function -ok 905 — Returns the difference between two arrays - -# PASS test\RGBToHex\RGBToHex.test.js - -ok 906 — RGBToHex is a Function -ok 907 — Converts the values of RGB components to a color code. - -# PASS test\negate\negate.test.js - -ok 908 — negate is a Function -ok 909 — Negates a predicate function - -# PASS test\everyNth\everyNth.test.js - -ok 910 — everyNth is a Function -ok 911 — Returns every nth element in an array - -# PASS test\unary\unary.test.js - -ok 912 — unary is a Function -ok 913 — Discards arguments after the first one - -# PASS test\unionBy\unionBy.test.js - -ok 914 — unionBy is a Function -ok 915 — Produces the appropriate results - -# PASS test\initial\initial.test.js - -ok 916 — initial is a Function -ok 917 — Returns all the elements of an array except the last one - -# PASS test\sleep\sleep.test.js - -ok 918 — sleep is a Function -ok 919 — Works as expected - -# PASS test\radsToDegrees\radsToDegrees.test.js - -ok 920 — radsToDegrees is a Function -ok 921 — Returns the appropriate value - -# PASS test\mapKeys\mapKeys.test.js - -ok 922 — mapKeys is a Function -ok 923 — Maps keys - -# PASS test\reverseString\reverseString.test.js - -ok 924 — reverseString is a Function -ok 925 — Reverses a string. - -# PASS test\isDivisible\isDivisible.test.js - -ok 926 — isDivisible is a Function -ok 927 — The number 6 is divisible by 3 - -# PASS test\isSymbol\isSymbol.test.js - -ok 928 — isSymbol is a Function -ok 929 — Checks if the given argument is a symbol - -# PASS test\isUndefined\isUndefined.test.js - -ok 930 — isUndefined is a Function -ok 931 — Returns true for undefined - -# PASS test\digitize\digitize.test.js - -ok 932 — digitize is a Function -ok 933 — Converts a number to an array of digits - -# PASS test\getType\getType.test.js - -ok 934 — getType is a Function -ok 935 — Returns the native type of a value - -# PASS test\sdbm\sdbm.test.js - -ok 936 — sdbm is a Function -ok 937 — Hashes the input string into a whole number. - -# PASS test\call\call.test.js - -ok 938 — call is a Function -ok 939 — Calls function on given object - -# PASS test\debounce\debounce.test.js - -ok 940 — debounce is a Function -ok 941 — Works as expected - -# PASS test\initializeArrayWithRangeRight\initializeArrayWithRangeRight.test.js - -ok 942 — initializeArrayWithRangeRight is a Function - -# PASS test\sum\sum.test.js - -ok 943 — sum is a Function -ok 944 — Returns the sum of two or more numbers/arrays. - -# PASS test\btoa\btoa.test.js - -ok 945 — btoa is a Function -ok 946 — btoa("foobar") equals "Zm9vYmFy" - -# PASS test\elementIsVisibleInViewport\elementIsVisibleInViewport.test.js - -ok 947 — elementIsVisibleInViewport is a Function - -# PASS test\isPrime\isPrime.test.js - -ok 948 — isPrime is a Function -ok 949 — passed number is a prime - -# PASS test\getMeridiemSuffixOfInteger\getMeridiemSuffixOfInteger.test.js - -ok 950 — getMeridiemSuffixOfInteger is a Function - -# PASS test\fibonacciCountUntilNum\fibonacciCountUntilNum.test.js - -ok 951 — fibonacciCountUntilNum is a Function - -# PASS test\recordAnimationFrames\recordAnimationFrames.test.js - -ok 952 — recordAnimationFrames is a Function - -# PASS test\UUIDGeneratorBrowser\UUIDGeneratorBrowser.test.js - -ok 953 — UUIDGeneratorBrowser is a Function - -# PASS test\getColonTimeFromDate\getColonTimeFromDate.test.js - -ok 954 — getColonTimeFromDate is a Function - -# PASS test\isBrowserTabFocused\isBrowserTabFocused.test.js - -ok 955 — isBrowserTabFocused is a Function - -# PASS test\levenshteinDistance\levenshteinDistance.test.js - -ok 956 — levenshteinDistance is a Function - -# PASS test\initializeNDArray\initializeNDArray.test.js - -ok 957 — initializeNDArray is a Function - -# PASS test\isArmstrongNumber\isArmstrongNumber.test.js - -ok 958 — isArmstrongNumber is a Function - -# PASS test\fibonacciUntilNum\fibonacciUntilNum.test.js - -ok 959 — fibonacciUntilNum is a Function - -# PASS test\getScrollPosition\getScrollPosition.test.js - -ok 960 — getScrollPosition is a Function - -# PASS test\onUserInputChange\onUserInputChange.test.js - -ok 961 — onUserInputChange is a Function +ok 208 — minN is a Function +ok 209 — Returns the n minimum elements from the provided array +ok 210 — Returns the n minimum elements from the provided array # PASS test\observeMutations\observeMutations.test.js -ok 962 — observeMutations is a Function +ok 211 — observeMutations is a Function -# PASS test\detectDeviceType\detectDeviceType.test.js +# PASS test\shuffle\shuffle.test.js -ok 963 — detectDeviceType is a Function +ok 212 — shuffle is a Function +ok 213 — Shuffles the array +ok 214 — New array contains all original elements +ok 215 — Works for empty arrays +ok 216 — Works for single-element arrays -# PASS test\arrayToHtmlList\arrayToHtmlList.test.js +# PASS test\symmetricDifferenceBy\symmetricDifferenceBy.test.js -ok 964 — arrayToHtmlList is a Function +ok 217 — symmetricDifferenceBy is a Function +ok 218 — Returns the symmetric difference between two arrays, after applying the provided function to each array element of both -# PASS test\speechSynthesis\speechSynthesis.test.js +# PASS test\isBoolean\isBoolean.test.js -ok 965 — speechSynthesis is a Function +ok 219 — isBoolean is a Function +ok 220 — passed value is not a boolean +ok 221 — passed value is not a boolean -# PASS test\copyToClipboard\copyToClipboard.test.js +# PASS test\is\is.test.js -ok 966 — copyToClipboard is a Function +ok 222 — is is a Function +ok 223 — Works for arrays with data +ok 224 — Works for empty arrays +ok 225 — Works for arrays, not objects +ok 226 — Works for objects +ok 227 — Works for maps +ok 228 — Works for regular expressions +ok 229 — Works for sets +ok 230 — Works for weak maps +ok 231 — Works for weak sets +ok 232 — Works for strings - returns true for primitive +ok 233 — Works for strings - returns true when using constructor +ok 234 — Works for numbers - returns true for primitive +ok 235 — Works for numbers - returns true when using constructor +ok 236 — Works for booleans - returns true for primitive +ok 237 — Works for booleans - returns true when using constructor +ok 238 — Works for functions -# PASS test\elementContains\elementContains.test.js +# PASS test\fibonacciCountUntilNum\fibonacciCountUntilNum.test.js -ok 967 — elementContains is a Function +ok 239 — fibonacciCountUntilNum is a Function -# PASS test\nodeListToArray\nodeListToArray.test.js +# PASS test\percentile\percentile.test.js -ok 968 — nodeListToArray is a Function +ok 240 — percentile is a Function +ok 241 — Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. -# PASS test\createEventHub\createEventHub.test.js +# PASS test\gcd\gcd.test.js -ok 969 — createEventHub is a Function - -# PASS test\mostPerformant\mostPerformant.test.js - -ok 970 — mostPerformant is a Function - -# PASS test\createElement\createElement.test.js - -ok 971 — createElement is a Function - -# PASS test\readFileLines\readFileLines.test.js - -ok 972 — readFileLines is a Function - -# PASS test\httpsRedirect\httpsRedirect.test.js - -ok 973 — httpsRedirect is a Function - -# PASS test\bottomVisible\bottomVisible.test.js - -ok 974 — bottomVisible is a Function - -# PASS test\isArrayBuffer\isArrayBuffer.test.js - -ok 975 — isArrayBuffer is a Function - -# PASS test\removeVowels\removeVowels.test.js - -ok 976 — removeVowels is a Function - -# PASS test\isTypedArray\isTypedArray.test.js - -ok 977 — isTypedArray is a Function - -# PASS test\howManyTimes\howManyTimes.test.js - -ok 978 — howManyTimes is a Function - -# PASS test\smoothScroll\smoothScroll.test.js - -ok 979 — smoothScroll is a Function - -# PASS test\triggerEvent\triggerEvent.test.js - -ok 980 — triggerEvent is a Function - -# PASS test\insertBefore\insertBefore.test.js - -ok 981 — insertBefore is a Function - -# PASS test\hashBrowser\hashBrowser.test.js - -ok 982 — hashBrowser is a Function - -# PASS test\scrollToTop\scrollToTop.test.js - -ok 983 — scrollToTop is a Function - -# PASS test\countVowels\countVowels.test.js - -ok 984 — countVowels is a Function - -# PASS test\toggleClass\toggleClass.test.js - -ok 985 — toggleClass is a Function - -# PASS test\insertAfter\insertAfter.test.js - -ok 986 — insertAfter is a Function - -# PASS test\httpDelete\httpDelete.test.js - -ok 987 — httpDelete is a Function - -# PASS test\JSONToDate\JSONToDate.test.js - -ok 988 — JSONToDate is a Function - -# PASS test\currentURL\currentURL.test.js - -ok 989 — currentURL is a Function - -# PASS test\JSONToFile\JSONToFile.test.js - -ok 990 — JSONToFile is a Function - -# PASS test\isBrowser\isBrowser.test.js - -ok 991 — isBrowser is a Function - -# PASS test\timeTaken\timeTaken.test.js - -ok 992 — timeTaken is a Function - -# PASS test\isWeakMap\isWeakMap.test.js - -ok 993 — isWeakMap is a Function - -# PASS test\isWeakSet\isWeakSet.test.js - -ok 994 — isWeakSet is a Function - -# PASS test\isSimilar\isSimilar.test.js - -ok 995 — isSimilar is a Function - -# PASS test\hasClass\hasClass.test.js - -ok 996 — hasClass is a Function - -# PASS test\setStyle\setStyle.test.js - -ok 997 — setStyle is a Function - -# PASS test\getStyle\getStyle.test.js - -ok 998 — getStyle is a Function - -# PASS test\colorize\colorize.test.js - -ok 999 — colorize is a Function - -# PASS test\throttle\throttle.test.js - -ok 1000 — throttle is a Function - -# PASS test\runAsync\runAsync.test.js - -ok 1001 — runAsync is a Function - -# PASS test\solveRPN\solveRPN.test.js - -ok 1002 — solveRPN is a Function - -# PASS test\isRegExp\isRegExp.test.js - -ok 1003 — isRegExp is a Function - -# PASS test\redirect\redirect.test.js - -ok 1004 — redirect is a Function - -# PASS test\hasFlags\hasFlags.test.js - -ok 1005 — hasFlags is a Function - -# PASS test\counter\counter.test.js - -ok 1006 — counter is a Function - -# PASS test\httpPost\httpPost.test.js - -ok 1007 — httpPost is a Function - -# PASS test\httpGet\httpGet.test.js - -ok 1008 — httpGet is a Function - -# PASS test\factors\factors.test.js - -ok 1009 — factors is a Function - -# PASS test\httpPut\httpPut.test.js - -ok 1010 — httpPut is a Function - -# PASS test\zipWith\zipWith.test.js - -ok 1011 — zipWith is a Function - -# PASS test\prefix\prefix.test.js - -ok 1012 — prefix is a Function - -# PASS test\toHash\toHash.test.js - -ok 1013 — toHash is a Function - -# PASS test\isMap\isMap.test.js - -ok 1014 — isMap is a Function - -# PASS test\isSet\isSet.test.js - -ok 1015 — isSet is a Function - -# PASS test\sumBy\sumBy.test.js - -ok 1016 — sumBy is a Function - -# PASS test\defer\defer.test.js - -ok 1017 — defer is a Function - -# PASS test\hide\hide.test.js - -ok 1018 — hide is a Function +ok 242 — gcd is a Function +ok 243 — Calculates the greatest common divisor between two or more numbers/arrays +ok 244 — Calculates the greatest common divisor between two or more numbers/arrays # PASS test\nest\nest.test.js -ok 1019 — nest is a Function +ok 245 — nest is a Function -# PASS test\once\once.test.js +# PASS test\omitBy\omitBy.test.js -ok 1020 — once is a Function +ok 246 — omitBy is a Function +ok 247 — Creates an object composed of the properties the given function returns falsey for -# PASS test\show\show.test.js +# PASS test\isPrime\isPrime.test.js -ok 1021 — show is a Function +ok 248 — isPrime is a Function +ok 249 — passed number is a prime -# PASS test\off\off.test.js +# PASS test\filterNonUnique\filterNonUnique.test.js -ok 1022 — off is a Function +ok 250 — filterNonUnique is a Function +ok 251 — Filters out the non-unique values in an array + +# PASS test\hexToRGB\hexToRGB.test.js + +ok 252 — hexToRGB is a Function +ok 253 — Converts a color code to a rgb() or rgba() string +ok 254 — Converts a color code to a rgb() or rgba() string +ok 255 — Converts a color code to a rgb() or rgba() string + +# PASS test\average\average.test.js + +ok 256 — average is a Function +ok 257 — average(true) returns 0 +ok 258 — average(false) returns 1 +ok 259 — average(9, 1) returns 5 +ok 260 — average(153, 44, 55, 64, 71, 1122, 322774, 2232, 23423, 234, 3631) returns 32163.909090909092 +ok 261 — average(1, 2, 3) returns 2 +ok 262 — average(null) returns 0 +ok 263 — average(1, 2, 3) returns NaN +ok 264 — average(String) returns NaN +ok 265 — average({ a: 123}) returns NaN +ok 266 — average([undefined, 0, string]) returns NaN +ok 267 — average([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test\composeRight\composeRight.test.js + +ok 268 — composeRight is a Function +ok 269 — Performs left-to-right function composition + +# PASS test\randomIntegerInRange\randomIntegerInRange.test.js + +ok 270 — randomIntegerInRange is a Function +ok 271 — The returned value is an integer +ok 272 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test\isPrimitive\isPrimitive.test.js + +ok 273 — isPrimitive is a Function +ok 274 — isPrimitive(null) is primitive +ok 275 — isPrimitive(undefined) is primitive +ok 276 — isPrimitive(string) is primitive +ok 277 — isPrimitive(true) is primitive +ok 278 — isPrimitive(50) is primitive +ok 279 — isPrimitive('Hello') is primitive +ok 280 — isPrimitive(false) is primitive +ok 281 — isPrimitive(Symbol()) is primitive +ok 282 — isPrimitive([1, 2, 3]) is not primitive +ok 283 — isPrimitive({ a: 123 }) is not primitive +ok 284 — isPrimitive({ a: 123 }) takes less than 2s to run # PASS test\on\on.test.js -ok 1023 — on is a Function +ok 285 — on is a Function -# PASS test\hz\hz.test.js +# PASS test\fibonacci\fibonacci.test.js -ok 1024 — hz is a Function +ok 286 — fibonacci is a Function +ok 287 — Generates an array, containing the Fibonacci sequence + +# PASS test\orderBy\orderBy.test.js + +ok 288 — orderBy is a Function +ok 289 — Returns a sorted array of objects ordered by properties and orders. +ok 290 — Returns a sorted array of objects ordered by properties and orders. + +# PASS test\luhnCheck\luhnCheck.test.js + +ok 291 — luhnCheck is a Function +ok 292 — validates identification number +ok 293 — validates identification number +ok 294 — validates identification number + +# PASS test\omit\omit.test.js + +ok 295 — omit is a Function +ok 296 — Omits the key-value pairs corresponding to the given keys from an object + +# PASS test\all\all.test.js + +ok 297 — all is a Function +ok 298 — Returns true for arrays with no falsey values +ok 299 — Returns false for arrays with 0 +ok 300 — Returns false for arrays with NaN +ok 301 — Returns false for arrays with undefined +ok 302 — Returns false for arrays with null +ok 303 — Returns false for arrays with empty strings +ok 304 — Returns true with predicate function +ok 305 — Returns false with a predicate function + +# PASS test\functions\functions.test.js + +ok 306 — functions is a Function +ok 307 — Returns own methods +ok 308 — Returns own and inherited methods + +# PASS test\sample\sample.test.js + +ok 309 — sample is a Function +ok 310 — Returns a random element from the array +ok 311 — Works for single-element arrays +ok 312 — Returns undefined for empty array + +# PASS test\tomorrow\tomorrow.test.js + +ok 313 — tomorrow is a Function +ok 314 — Returns the correct year +ok 315 — Returns the correct month +ok 316 — Returns the correct date + +# PASS test\mapValues\mapValues.test.js + +ok 317 — mapValues is a Function +ok 318 — Maps values + +# PASS test\stripHTMLTags\stripHTMLTags.test.js + +ok 319 — stripHTMLTags is a Function +ok 320 — Removes HTML tags + +# PASS test\binarySearch\binarySearch.test.js + +ok 321 — binarySearch is a Function +ok 322 — Finds item in array +ok 323 — Returns -1 when not found +ok 324 — Works with empty arrays +ok 325 — Works for one element arrays + +# PASS test\bind\bind.test.js + +ok 326 — bind is a Function +ok 327 — Binds to an object context + +# PASS test\palindrome\palindrome.test.js + +ok 328 — palindrome is a Function +ok 329 — Given string is a palindrome +ok 330 — Given string is not a palindrome + +# PASS test\without\without.test.js + +ok 331 — without is a Function +ok 332 — without([2, 1, 2, 3], 1, 2) returns [3] +ok 333 — without([]) returns [] +ok 334 — without([3, 1, true, '3', true], '3', true) returns [3, 1] +ok 335 — without('string'.split(''), 's', 't', 'g') returns ['r', 'i', 'n'] +ok 336 — without() throws an error +ok 337 — without(null) throws an error +ok 338 — without(undefined) throws an error +ok 339 — without(123) throws an error +ok 340 — without({}) throws an error + +# PASS test\httpDelete\httpDelete.test.js + +ok 341 — httpDelete is a Function + +# PASS test\CSVToArray\CSVToArray.test.js + +ok 342 — CSVToArray is a Function +ok 343 — CSVToArray works with default delimiter +ok 344 — CSVToArray works with custom delimiter +ok 345 — CSVToArray omits the first row +ok 346 — CSVToArray omits the first row and works with a custom delimiter + +# PASS test\times\times.test.js + +ok 347 — times is a Function +ok 348 — Runs a function the specified amount of times + +# PASS test\getDaysDiffBetweenDates\getDaysDiffBetweenDates.test.js + +ok 349 — getDaysDiffBetweenDates is a Function +ok 350 — Returns the difference in days between two dates + +# PASS test\countOccurrences\countOccurrences.test.js + +ok 351 — countOccurrences is a Function +ok 352 — Counts the occurrences of a value in an array + +# PASS test\randomHexColorCode\randomHexColorCode.test.js + +ok 353 — randomHexColorCode is a Function +ok 354 — randomHexColorCode has to proper length +ok 355 — The color code starts with "#" +ok 356 — The color code contains only valid hex-digits + +# PASS test\differenceBy\differenceBy.test.js + +ok 357 — differenceBy is a Function +ok 358 — Works using a native function and numbers +ok 359 — Works with arrow function and objects + +# PASS test\join\join.test.js + +ok 360 — join is a Function +ok 361 — Joins all elements of an array into a string and returns this string +ok 362 — Joins all elements of an array into a string and returns this string +ok 363 — Joins all elements of an array into a string and returns this string + +# PASS test\castArray\castArray.test.js + +ok 364 — castArray is a Function +ok 365 — Works for single values +ok 366 — Works for arrays with one value +ok 367 — Works for arrays with multiple value +ok 368 — Works for strings +ok 369 — Works for objects + +# PASS test\isUpperCase\isUpperCase.test.js + +ok 370 — isUpperCase is a Function +ok 371 — ABC is all upper case +ok 372 — abc is not all upper case +ok 373 — A3@$ is all uppercase + +# PASS test\sortedLastIndex\sortedLastIndex.test.js + +ok 374 — sortedLastIndex is a Function +ok 375 — Returns the highest index to insert the element without messing up the list order + +# PASS test\capitalize\capitalize.test.js + +ok 376 — capitalize is a Function +ok 377 — Capitalizes the first letter of a string +ok 378 — Capitalizes the first letter of a string +ok 379 — Works with characters +ok 380 — "Works with single character words + +# PASS test\uncurry\uncurry.test.js + +ok 381 — uncurry is a Function +ok 382 — Works without a provided value for n +ok 383 — Works with n = 2 +ok 384 — Works with n = 3 + +# PASS test\sumBy\sumBy.test.js + +ok 385 — sumBy is a Function + +# PASS test\sortedLastIndexBy\sortedLastIndexBy.test.js + +ok 386 — sortedLastIndexBy is a Function +ok 387 — Returns the highest index to insert the element without messing up the list order + +# PASS test\bifurcate\bifurcate.test.js + +ok 388 — bifurcate is a Function +ok 389 — Splits the collection into two groups + +# PASS test\escapeRegExp\escapeRegExp.test.js + +ok 390 — escapeRegExp is a Function +ok 391 — Escapes a string to use in a regular expression + +# PASS test\scrollToTop\scrollToTop.test.js + +ok 392 — scrollToTop is a Function + +# PASS test\sampleSize\sampleSize.test.js + +ok 393 — sampleSize is a Function +ok 394 — Returns a single element without n specified +ok 395 — Returns a random sample of specified size from an array +ok 396 — Returns all elements in an array if n >= length +ok 397 — Returns an empty array if original array is empty +ok 398 — Returns an empty array if n = 0 + +# PASS test\elo\elo.test.js + +ok 399 — elo is a Function +ok 400 — Standard 1v1s +ok 401 — Standard 1v1s +ok 402 — 4 player FFA, all same rank + +# PASS test\size\size.test.js + +ok 403 — size is a Function +ok 404 — Get size of arrays, objects or strings. +ok 405 — Get size of arrays, objects or strings. + +# PASS test\reduceSuccessive\reduceSuccessive.test.js + +ok 406 — reduceSuccessive is a Function +ok 407 — Returns the array of successively reduced values + +# PASS test\pullAtIndex\pullAtIndex.test.js + +ok 408 — pullAtIndex is a Function +ok 409 — Pulls the given values +ok 410 — Pulls the given values + +# PASS test\getColonTimeFromDate\getColonTimeFromDate.test.js + +ok 411 — getColonTimeFromDate is a Function + +# PASS test\differenceWith\differenceWith.test.js + +ok 412 — differenceWith is a Function +ok 413 — Filters out all values from an array + +# PASS test\colorize\colorize.test.js + +ok 414 — colorize is a Function + +# PASS test\primes\primes.test.js + +ok 415 — primes is a Function +ok 416 — Generates primes up to a given number, using the Sieve of Eratosthenes. + +# PASS test\createEventHub\createEventHub.test.js + +ok 417 — createEventHub is a Function + +# PASS test\isObject\isObject.test.js + +ok 418 — isObject is a Function +ok 419 — isObject([1, 2, 3, 4]) is a object +ok 420 — isObject([]) is a object +ok 421 — isObject({ a:1 }) is a object +ok 422 — isObject(true) is not a object + +# PASS test\getScrollPosition\getScrollPosition.test.js + +ok 423 — getScrollPosition is a Function + +# PASS test\toDecimalMark\toDecimalMark.test.js + +ok 424 — toDecimalMark is a Function +ok 425 — convert a float-point arithmetic to the Decimal mark form + +# PASS test\isEmpty\isEmpty.test.js + +ok 426 — isEmpty is a Function +ok 427 — Returns true for empty Map +ok 428 — Returns true for empty Set +ok 429 — Returns true for empty array +ok 430 — Returns true for empty object +ok 431 — Returns true for empty string +ok 432 — Returns false for non-empty array +ok 433 — Returns false for non-empty object +ok 434 — Returns false for non-empty string +ok 435 — Returns true - type is not considered a collection +ok 436 — Returns true - type is not considered a collection + +# PASS test\initializeArrayWithRange\initializeArrayWithRange.test.js + +ok 437 — initializeArrayWithRange is a Function +ok 438 — Initializes an array containing the numbers in the specified range + +# PASS test\dropRightWhile\dropRightWhile.test.js + +ok 439 — dropRightWhile is a Function +ok 440 — Removes elements from the end of an array until the passed function returns true. + +# PASS test\initial\initial.test.js + +ok 441 — initial is a Function +ok 442 — Returns all the elements of an array except the last one + +# PASS test\isFunction\isFunction.test.js + +ok 443 — isFunction is a Function +ok 444 — passed value is a function +ok 445 — passed value is not a function + +# PASS test\isNil\isNil.test.js + +ok 446 — isNil is a Function +ok 447 — Returns true for null +ok 448 — Returns true for undefined +ok 449 — Returns false for an empty string + +# PASS test\pullBy\pullBy.test.js + +ok 450 — pullBy is a Function +ok 451 — Pulls the specified values + +# PASS test\stableSort\stableSort.test.js + +ok 452 — stableSort is a Function +ok 453 — Array is properly sorted + +# PASS test\binomialCoefficient\binomialCoefficient.test.js + +ok 454 — binomialCoefficient is a Function +ok 455 — Returns the appropriate value +ok 456 — Returns the appropriate value +ok 457 — Returns the appropriate value +ok 458 — Returns NaN +ok 459 — Returns NaN + +# PASS test\isArmstrongNumber\isArmstrongNumber.test.js + +ok 460 — isArmstrongNumber is a Function + +# PASS test\dropWhile\dropWhile.test.js + +ok 461 — dropWhile is a Function +ok 462 — Removes elements in an array until the passed function returns true. + +# PASS test\capitalizeEveryWord\capitalizeEveryWord.test.js + +ok 463 — capitalizeEveryWord is a Function +ok 464 — Capitalizes the first letter of every word in a string +ok 465 — Works with characters +ok 466 — Works with one word string + +# PASS test\flatten\flatten.test.js + +ok 467 — flatten is a Function +ok 468 — Flattens an array +ok 469 — Flattens an array + +# PASS test\getMeridiemSuffixOfInteger\getMeridiemSuffixOfInteger.test.js + +ok 470 — getMeridiemSuffixOfInteger is a Function + +# PASS test\mapKeys\mapKeys.test.js + +ok 471 — mapKeys is a Function +ok 472 — Maps keys + +# PASS test\httpsRedirect\httpsRedirect.test.js + +ok 473 — httpsRedirect is a Function + +# PASS test\mapObject\mapObject.test.js + +ok 474 — mapObject is a Function +ok 475 — mapObject([1, 2, 3], a => a * a) returns { 1: 1, 2: 4, 3: 9 } +ok 476 — mapObject([1, 2, 3, 4], (a, b) => b - a) returns { 1: -1, 2: -1, 3: -1, 4: -1 } +ok 477 — mapObject([1, 2, 3, 4], (a, b) => a - b) returns { 1: 1, 2: 1, 3: 1, 4: 1 } + +# PASS test\approximatelyEqual\approximatelyEqual.test.js + +ok 478 — approximatelyEqual is a Function +ok 479 — Works for PI / 2 +ok 480 — Works for 0.1 + 0.2 === 0.3 +ok 481 — Works for exactly equal values +ok 482 — Works for a custom epsilon + +# PASS test\median\median.test.js + +ok 483 — median is a Function +ok 484 — Returns the median of an array of numbers +ok 485 — Returns the median of an array of numbers + +# PASS test\zipWith\zipWith.test.js + +ok 486 — zipWith is a Function + +# PASS test\bindKey\bindKey.test.js + +ok 487 — bindKey is a Function +ok 488 — Binds function to an object context + +# PASS test\toOrdinalSuffix\toOrdinalSuffix.test.js + +ok 489 — toOrdinalSuffix is a Function +ok 490 — Adds an ordinal suffix to a number +ok 491 — Adds an ordinal suffix to a number +ok 492 — Adds an ordinal suffix to a number +ok 493 — Adds an ordinal suffix to a number + +# PASS test\elementContains\elementContains.test.js + +ok 494 — elementContains is a Function + +# PASS test\validateNumber\validateNumber.test.js + +ok 495 — validateNumber is a Function +ok 496 — validateNumber(9) returns true +ok 497 — validateNumber(234asd.slice(0, 2)) returns true +ok 498 — validateNumber(1232) returns true +ok 499 — validateNumber(1232 + 13423) returns true +ok 500 — validateNumber(1232 * 2342 * 123) returns true +ok 501 — validateNumber(1232.23423536) returns true +ok 502 — validateNumber(234asd) returns false +ok 503 — validateNumber(e234d) returns false +ok 504 — validateNumber(false) returns false +ok 505 — validateNumber(true) returns false +ok 506 — validateNumber(null) returns false +ok 507 — validateNumber(123 * asd) returns false + +# PASS test\chainAsync\chainAsync.test.js + +ok 508 — chainAsync is a Function +ok 509 — Calls all functions in an array + +# PASS test\hashNode\hashNode.test.js + +ok 510 — hashNode is a Function +ok 511 — Produces the appropriate hash + +# PASS test\attempt\attempt.test.js + +ok 512 — attempt is a Function +ok 513 — Returns a value +ok 514 — Returns an error + +# PASS test\httpPut\httpPut.test.js + +ok 515 — httpPut is a Function + +# PASS test\findKey\findKey.test.js + +ok 516 — findKey is a Function +ok 517 — Returns the appropriate key + +# PASS test\copyToClipboard\copyToClipboard.test.js + +ok 518 — copyToClipboard is a Function + +# PASS test\unescapeHTML\unescapeHTML.test.js + +ok 519 — unescapeHTML is a Function +ok 520 — Unescapes escaped HTML characters. + +# PASS test\isBrowser\isBrowser.test.js + +ok 521 — isBrowser is a Function + +# PASS test\isWeakSet\isWeakSet.test.js + +ok 522 — isWeakSet is a Function + +# PASS test\pullAtValue\pullAtValue.test.js + +ok 523 — pullAtValue is a Function +ok 524 — Pulls the specified values +ok 525 — Pulls the specified values + +# PASS test\fibonacciUntilNum\fibonacciUntilNum.test.js + +ok 526 — fibonacciUntilNum is a Function + +# PASS test\quickSort\quickSort.test.js + +ok 527 — quickSort is a Function +ok 528 — quickSort([5, 6, 4, 3, 1, 2]) returns [1, 2, 3, 4, 5, 6] +ok 529 — quickSort([-1, 0, -2]) returns [-2, -1, 0] +ok 530 — quickSort() throws an error +ok 531 — quickSort(123) throws an error +ok 532 — quickSort({ 234: string}) throws an error +ok 533 — quickSort(null) throws an error +ok 534 — quickSort(undefined) throws an error +ok 535 — quickSort([11, 1, 324, 23232, -1, 53, 2, 524, 32, 13, 156, 133, 62, 12, 4]) takes less than 2s to run + +# PASS test\prettyBytes\prettyBytes.test.js + +ok 536 — prettyBytes is a Function +ok 537 — Converts a number in bytes to a human-readable string. +ok 538 — Converts a number in bytes to a human-readable string. +ok 539 — Converts a number in bytes to a human-readable string. + +# PASS test\initialize2DArray\initialize2DArray.test.js + +ok 540 — initialize2DArray is a Function +ok 541 — Initializes a 2D array of given width and height and value + +# PASS test\CSVToJSON\CSVToJSON.test.js + +ok 542 — CSVToJSON is a Function +ok 543 — CSVToJSON works with default delimiter +ok 544 — CSVToJSON works with custom delimiter + +# PASS test\countVowels\countVowels.test.js + +ok 545 — countVowels is a Function + +# PASS test\createElement\createElement.test.js + +ok 546 — createElement is a Function + +# PASS test\getType\getType.test.js + +ok 547 — getType is a Function +ok 548 — Returns the native type of a value + +# PASS test\truthCheckCollection\truthCheckCollection.test.js + +ok 549 — truthCheckCollection is a Function +ok 550 — second argument is truthy on all elements of a collection + +# PASS test\throttle\throttle.test.js + +ok 551 — throttle is a Function + +# PASS test\countBy\countBy.test.js + +ok 552 — countBy is a Function +ok 553 — Works for functions +ok 554 — Works for property names + +# PASS test\JSONToFile\JSONToFile.test.js + +ok 555 — JSONToFile is a Function + +# PASS test\toSafeInteger\toSafeInteger.test.js + +ok 556 — toSafeInteger is a Function +ok 557 — Number(toSafeInteger(3.2)) is a number +ok 558 — Converts a value to a safe integer +ok 559 — toSafeInteger('4.2') returns 4 +ok 560 — toSafeInteger(4.6) returns 5 +ok 561 — toSafeInteger([]) returns 0 +ok 562 — isNaN(toSafeInteger([1.5, 3124])) is true +ok 563 — isNaN(toSafeInteger('string')) is true +ok 564 — isNaN(toSafeInteger({})) is true +ok 565 — isNaN(toSafeInteger()) is true +ok 566 — toSafeInteger(Infinity) returns 9007199254740991 +ok 567 — toSafeInteger(3.2) takes less than 2s to run + +# PASS test\when\when.test.js + +ok 568 — when is a Function +ok 569 — Returns the proper result +ok 570 — Returns the proper result + +# PASS test\geometricProgression\geometricProgression.test.js + +ok 571 — geometricProgression is a Function +ok 572 — Initializes an array containing the numbers in the specified range +ok 573 — Initializes an array containing the numbers in the specified range +ok 574 — Initializes an array containing the numbers in the specified range + +# PASS test\filterNonUniqueBy\filterNonUniqueBy.test.js + +ok 575 — filterNonUniqueBy is a Function +ok 576 — filterNonUniqueBy works for properties +ok 577 — filterNonUniqueBy works for nested properties + +# PASS test\curry\curry.test.js + +ok 578 — curry is a Function +ok 579 — curries a Math.pow +ok 580 — curries a Math.min + +# PASS test\btoa\btoa.test.js + +ok 581 — btoa is a Function +ok 582 — btoa("foobar") equals "Zm9vYmFy" + +# PASS test\cleanObj\cleanObj.test.js + +ok 583 — cleanObj is a Function +ok 584 — Removes any properties except the ones specified from a JSON object + +# PASS test\prefix\prefix.test.js + +ok 585 — prefix is a Function + +# PASS test\collatz\collatz.test.js + +ok 586 — collatz is a Function +ok 587 — When n is even, divide by 2 +ok 588 — When n is odd, times by 3 and add 1 +ok 589 — Eventually reaches 1 + +# PASS test\delay\delay.test.js + +ok 590 — delay is a Function +ok 591 — Works as expecting, passing arguments properly + +# PASS test\pipeFunctions\pipeFunctions.test.js + +ok 592 — pipeFunctions is a Function +ok 593 — Performs left-to-right function composition + +# PASS test\unfold\unfold.test.js + +ok 594 — unfold is a Function +ok 595 — Works with a given function, producing an array + +# PASS test\nthArg\nthArg.test.js + +ok 596 — nthArg is a Function +ok 597 — Returns the nth argument +ok 598 — Returns undefined if arguments too few +ok 599 — Works for negative values + +# PASS test\round\round.test.js + +ok 600 — round is a Function +ok 601 — round(1.005, 2) returns 1.01 +ok 602 — round(123.3423345345345345344, 11) returns 123.34233453453 +ok 603 — round(3.342, 11) returns 3.342 +ok 604 — round(1.005) returns 1 +ok 605 — round([1.005, 2]) returns NaN +ok 606 — round(string) returns NaN +ok 607 — round() returns NaN +ok 608 — round(132, 413, 4134) returns NaN +ok 609 — round({a: 132}, 413) returns NaN +ok 610 — round(123.3423345345345345344, 11) takes less than 2s to run + +# PASS test\levenshteinDistance\levenshteinDistance.test.js + +ok 611 — levenshteinDistance is a Function + +# PASS test\isSymbol\isSymbol.test.js + +ok 612 — isSymbol is a Function +ok 613 — Checks if the given argument is a symbol + +# PASS test\isArrayLike\isArrayLike.test.js + +ok 614 — isArrayLike is a Function +ok 615 — Returns true for a string +ok 616 — Returns true for an array +ok 617 — Returns false for null + +# PASS test\isAnagram\isAnagram.test.js + +ok 618 — isAnagram is a Function +ok 619 — Checks valid anagram +ok 620 — Works with spaces +ok 621 — Ignores case +ok 622 — Ignores special characters + +# PASS test\maxBy\maxBy.test.js + +ok 623 — maxBy is a Function +ok 624 — Produces the right result with a function +ok 625 — Produces the right result with a property name + +# PASS test\isString\isString.test.js + +ok 626 — isString is a Function +ok 627 — foo is a string +ok 628 — "10" is a string +ok 629 — Empty string is a string +ok 630 — 10 is not a string +ok 631 — true is not string + +# PASS test\partial\partial.test.js + +ok 632 — partial is a Function +ok 633 — Prepends arguments + +# PASS test\timeTaken\timeTaken.test.js + +ok 634 — timeTaken is a Function + +# PASS test\head\head.test.js + +ok 635 — head is a Function +ok 636 — head({ a: 1234}) returns undefined +ok 637 — head([1, 2, 3]) returns 1 +ok 638 — head({ 0: false}) returns false +ok 639 — head(String) returns S +ok 640 — head(null) throws an Error +ok 641 — head(undefined) throws an Error +ok 642 — head() throws an Error +ok 643 — head([1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 1122, 32124, 23232]) takes less than 2s to run + +# PASS test\call\call.test.js + +ok 644 — call is a Function +ok 645 — Calls function on given object + +# PASS test\RGBToHex\RGBToHex.test.js + +ok 646 — RGBToHex is a Function +ok 647 — Converts the values of RGB components to a color code. + +# PASS test\transform\transform.test.js + +ok 648 — transform is a Function +ok 649 — Transforms an object + +# PASS test\invertKeyValues\invertKeyValues.test.js + +ok 650 — invertKeyValues is a Function +ok 651 — invertKeyValues({ a: 1, b: 2, c: 1 }) returns { 1: [ 'a', 'c' ], 2: [ 'b' ] } +ok 652 — invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value) returns { group1: [ 'a', 'c' ], group2: [ 'b' ] } + +# PASS test\pull\pull.test.js + +ok 653 — pull is a Function +ok 654 — Pulls the specified values + +# PASS test\unzip\unzip.test.js + +ok 655 — unzip is a Function +ok 656 — unzip([['a', 1, true], ['b', 2, false]]) equals [['a','b'], [1, 2], [true, false]] +ok 657 — unzip([['a', 1, true], ['b', 2]]) equals [['a','b'], [1, 2], [true]] + +# PASS test\powerset\powerset.test.js + +ok 658 — powerset is a Function +ok 659 — Returns the powerset of a given array of numbers. + +# PASS test\forOwnRight\forOwnRight.test.js + +ok 660 — forOwnRight is a Function +ok 661 — Iterates over an element's key-value pairs in reverse + +# PASS test\findLast\findLast.test.js + +ok 662 — findLast is a Function +ok 663 — Finds last element for which the given function returns true + +# PASS test\take\take.test.js + +ok 664 — take is a Function +ok 665 — Returns an array with n elements removed from the beginning. +ok 666 — Returns an array with n elements removed from the beginning. + +# PASS test\zipObject\zipObject.test.js + +ok 667 — zipObject is a Function +ok 668 — zipObject([a, b, c], [1, 2]) returns {a: 1, b: 2, c: undefined} +ok 669 — zipObject([a, b], [1, 2, 3]) returns {a: 1, b: 2} +ok 670 — zipObject([a, b, c], string) returns { a: s, b: t, c: r } +ok 671 — zipObject([a], string) returns { a: s } +ok 672 — zipObject() throws an error +ok 673 — zipObject((['string'], null) throws an error +ok 674 — zipObject(null, [1]) throws an error +ok 675 — zipObject('string') throws an error +ok 676 — zipObject('test', 'string') throws an error + +# PASS test\httpPost\httpPost.test.js + +ok 677 — httpPost is a Function + +# PASS test\uniqueElementsBy\uniqueElementsBy.test.js + +ok 678 — uniqueElementsBy is a Function +ok 679 — uniqueElementsBy works for properties +ok 680 — uniqueElementsBy works for nested properties + +# PASS test\lcm\lcm.test.js + +ok 681 — lcm is a Function +ok 682 — Returns the least common multiple of two or more numbers. +ok 683 — Returns the least common multiple of two or more numbers. + +# PASS test\debounce\debounce.test.js + +ok 684 — debounce is a Function +ok 685 — Works as expected + +# PASS test\similarity\similarity.test.js + +ok 686 — similarity is a Function +ok 687 — Returns an array of elements that appear in both arrays. + +# PASS test\deepClone\deepClone.test.js + +ok 688 — deepClone is a Function +ok 689 — Shallow cloning works +ok 690 — Deep cloning works +ok 691 — Array shallow cloning works +ok 692 — Array deep cloning works + +# PASS test\radsToDegrees\radsToDegrees.test.js + +ok 693 — radsToDegrees is a Function +ok 694 — Returns the appropriate value + +# PASS test\permutations\permutations.test.js + +ok 695 — permutations is a Function +ok 696 — Generates all permutations of an array + +# PASS test\readFileLines\readFileLines.test.js + +ok 697 — readFileLines is a Function + +# PASS test\clampNumber\clampNumber.test.js + +ok 698 — clampNumber is a Function +ok 699 — Clamps num within the inclusive range specified by the boundary values a and b + +# PASS test\escapeHTML\escapeHTML.test.js + +ok 700 — escapeHTML is a Function +ok 701 — Escapes a string for use in HTML + +# PASS test\rearg\rearg.test.js + +ok 702 — rearg is a Function +ok 703 — Reorders arguments in invoked function + +# PASS test\promisify\promisify.test.js + +ok 704 — promisify is a Function +ok 705 — Returns a promise +ok 706 — Runs the function provided + +# PASS test\untildify\untildify.test.js + +ok 707 — untildify is a Function +ok 708 — Contains no tildes +ok 709 — Does not alter the rest of the path +ok 710 — Does not alter paths without tildes + +# PASS test\hasFlags\hasFlags.test.js + +ok 711 — hasFlags is a Function + +# PASS test\forOwn\forOwn.test.js + +ok 712 — forOwn is a Function +ok 713 — Iterates over an element's key-value pairs + +# PASS test\once\once.test.js + +ok 714 — once is a Function + +# PASS test\inRange\inRange.test.js + +ok 715 — inRange is a Function +ok 716 — The given number falls within the given range +ok 717 — The given number falls within the given range +ok 718 — The given number does not falls within the given range +ok 719 — The given number does not falls within the given range + +# PASS test\onUserInputChange\onUserInputChange.test.js + +ok 720 — onUserInputChange is a Function + +# PASS test\indexOfAll\indexOfAll.test.js + +ok 721 — indexOfAll is a Function +ok 722 — Returns all indices of val in an array +ok 723 — Returns all indices of val in an array + +# PASS test\isLowerCase\isLowerCase.test.js + +ok 724 — isLowerCase is a Function +ok 725 — passed string is a lowercase +ok 726 — passed string is a lowercase +ok 727 — passed value is not a lowercase + +# PASS test\factors\factors.test.js + +ok 728 — factors is a Function + +# PASS test\lowercaseKeys\lowercaseKeys.test.js + +ok 729 — lowercaseKeys is a Function +ok 730 — Lowercases object keys +ok 731 — Does not mutate original object + +# PASS test\isValidJSON\isValidJSON.test.js + +ok 732 — isValidJSON is a Function +ok 733 — {"name":"Adam","age":20} is a valid JSON +ok 734 — {"name":"Adam",age:"20"} is not a valid JSON +ok 735 — null is a valid JSON + +# PASS test\isBrowserTabFocused\isBrowserTabFocused.test.js + +ok 736 — isBrowserTabFocused is a Function + +# PASS test\renameKeys\renameKeys.test.js + +ok 737 — renameKeys is a Function +ok 738 — renameKeys is a Function + +# PASS test\bifurcateBy\bifurcateBy.test.js + +ok 739 — bifurcateBy is a Function +ok 740 — Splits the collection into two groups + +# PASS test\remove\remove.test.js + +ok 741 — remove is a Function +ok 742 — Removes elements from an array for which the given function returns false + +# PASS test\matchesWith\matchesWith.test.js + +ok 743 — matchesWith is a Function +ok 744 — Returns true for two objects with similar values, based on the provided function + +# PASS test\findLastIndex\findLastIndex.test.js + +ok 745 — findLastIndex is a Function +ok 746 — Finds last index for which the given function returns true + +# PASS test\drop\drop.test.js + +ok 747 — drop is a Function +ok 748 — Works without the last argument +ok 749 — Removes appropriate element count as specified +ok 750 — Empties array given a count greater than length + +# PASS test\maxN\maxN.test.js + +ok 751 — maxN is a Function +ok 752 — Returns the n maximum elements from the provided array +ok 753 — Returns the n maximum elements from the provided array + +# PASS test\pick\pick.test.js + +ok 754 — pick is a Function +ok 755 — Picks the key-value pairs corresponding to the given keys from an object. + +# PASS test\isAbsoluteURL\isAbsoluteURL.test.js + +ok 756 — isAbsoluteURL is a Function +ok 757 — Given string is an absolute URL +ok 758 — Given string is an absolute URL +ok 759 — Given string is not an absolute URL + +# PASS test\groupBy\groupBy.test.js + +ok 760 — groupBy is a Function +ok 761 — Groups the elements of an array based on the given function +ok 762 — Groups the elements of an array based on the given function + +# PASS test\isObjectLike\isObjectLike.test.js + +ok 763 — isObjectLike is a Function +ok 764 — Returns true for an object +ok 765 — Returns true for an array +ok 766 — Returns false for a function +ok 767 — Returns false for null + +# PASS test\decapitalize\decapitalize.test.js + +ok 768 — decapitalize is a Function +ok 769 — Works with default parameter +ok 770 — Works with second parameter set to true + +# PASS test\objectToPairs\objectToPairs.test.js + +ok 771 — objectToPairs is a Function +ok 772 — Creates an array of key-value pair arrays from an object. + +# PASS test\findLastKey\findLastKey.test.js + +ok 773 — findLastKey is a Function +ok 774 — eturns the appropriate key + +# PASS test\fromCamelCase\fromCamelCase.test.js + +ok 775 — fromCamelCase is a Function +ok 776 — Converts a string from camelcase +ok 777 — Converts a string from camelcase +ok 778 — Converts a string from camelcase + +# PASS test\defer\defer.test.js + +ok 779 — defer is a Function + +# PASS test\unionWith\unionWith.test.js + +ok 780 — unionWith is a Function +ok 781 — Produces the appropriate results + +# PASS test\initializeNDArray\initializeNDArray.test.js + +ok 782 — initializeNDArray is a Function + +# PASS test\randomNumberInRange\randomNumberInRange.test.js + +ok 783 — randomNumberInRange is a Function +ok 784 — The returned value is a number +ok 785 — The returned value lies between provided lowerLimit and upperLimit (both inclusive). + +# PASS test\offset\offset.test.js + +ok 786 — offset is a Function +ok 787 — Offset of 0 returns the same array. +ok 788 — Offset > 0 returns the offsetted array. +ok 789 — Offset < 0 returns the reverse offsetted array. +ok 790 — Offset greater than the length of the array returns the same array. +ok 791 — Offset less than the negative length of the array returns the same array. +ok 792 — Offsetting empty array returns an empty array. + +# PASS test\digitize\digitize.test.js + +ok 793 — digitize is a Function +ok 794 — Converts a number to an array of digits + +# PASS test\takeRightWhile\takeRightWhile.test.js + +ok 795 — takeRightWhile is a Function +ok 796 — Removes elements until the function returns true + +# PASS test\factorial\factorial.test.js + +ok 797 — factorial is a Function +ok 798 — Calculates the factorial of 720 +ok 799 — Calculates the factorial of 0 +ok 800 — Calculates the factorial of 1 +ok 801 — Calculates the factorial of 4 +ok 802 — Calculates the factorial of 10 + +# PASS test\dropRight\dropRight.test.js + +ok 803 — dropRight is a Function +ok 804 — Returns a new array with n elements removed from the right +ok 805 — Returns a new array with n elements removed from the right +ok 806 — Returns a new array with n elements removed from the right + +# PASS test\partialRight\partialRight.test.js + +ok 807 — partialRight is a Function +ok 808 — Appends arguments + +# PASS test\sum\sum.test.js + +ok 809 — sum is a Function +ok 810 — Returns the sum of two or more numbers/arrays. + +# PASS test\UUIDGeneratorBrowser\UUIDGeneratorBrowser.test.js + +ok 811 — UUIDGeneratorBrowser is a Function + +# PASS test\isNumber\isNumber.test.js + +ok 812 — isNumber is a Function +ok 813 — passed argument is a number +ok 814 — passed argument is not a number + +# PASS test\UUIDGeneratorNode\UUIDGeneratorNode.test.js + +ok 815 — UUIDGeneratorNode is a Function +ok 816 — Contains dashes in the proper places +ok 817 — Only contains hexadecimal digits + +# PASS test\dig\dig.test.js + +ok 818 — dig is a Function +ok 819 — Dig target success +ok 820 — Dig target with falsey value +ok 821 — Dig target with array +ok 822 — Unknown target return undefined + +# PASS test\cloneRegExp\cloneRegExp.test.js + +ok 823 — cloneRegExp is a Function +ok 824 — Clones regular expressions properly + +# PASS test\parseCookie\parseCookie.test.js + +ok 825 — parseCookie is a Function +ok 826 — Parses the cookie + +# PASS test\reducedFilter\reducedFilter.test.js + +ok 827 — reducedFilter is a Function +ok 828 — Filter an array of objects based on a condition while also filtering out unspecified keys. + +# PASS test\any\any.test.js + +ok 829 — any is a Function +ok 830 — Returns true for arrays with at least one truthy value +ok 831 — Returns false for arrays with no truthy values +ok 832 — Returns false for arrays with no truthy values +ok 833 — Returns true with predicate function +ok 834 — Returns false with a predicate function + +# PASS test\reject\reject.test.js + +ok 835 — reject is a Function +ok 836 — Works with numbers +ok 837 — Works with strings + +# PASS test\toHash\toHash.test.js + +ok 838 — toHash is a Function + +# PASS test\unionBy\unionBy.test.js + +ok 839 — unionBy is a Function +ok 840 — Produces the appropriate results + +# PASS test\hasClass\hasClass.test.js + +ok 841 — hasClass is a Function + +# PASS test\isSimilar\isSimilar.test.js + +ok 842 — isSimilar is a Function + +# PASS test\removeNonASCII\removeNonASCII.test.js + +ok 843 — removeNonASCII is a Function +ok 844 — Removes non-ASCII characters + +# PASS test\isPromiseLike\isPromiseLike.test.js + +ok 845 — isPromiseLike is a Function +ok 846 — Returns true for a promise-like object +ok 847 — Returns false for an empty object + +# PASS test\none\none.test.js + +ok 848 — none is a Function +ok 849 — Returns true for arrays with no truthy values +ok 850 — Returns false for arrays with at least one truthy value +ok 851 — Returns true with a predicate function +ok 852 — Returns false with predicate function + +# PASS test\insertAfter\insertAfter.test.js + +ok 853 — insertAfter is a Function + +# PASS test\recordAnimationFrames\recordAnimationFrames.test.js + +ok 854 — recordAnimationFrames is a Function + +# PASS test\compose\compose.test.js + +ok 855 — compose is a Function +ok 856 — Performs right-to-left function composition + +# PASS test\triggerEvent\triggerEvent.test.js + +ok 857 — triggerEvent is a Function + +# PASS test\howManyTimes\howManyTimes.test.js + +ok 858 — howManyTimes is a Function + +# PASS test\httpGet\httpGet.test.js + +ok 859 — httpGet is a Function + +# PASS test\forEachRight\forEachRight.test.js + +ok 860 — forEachRight is a Function +ok 861 — Iterates over the array in reverse + +# PASS test\isTravisCI\isTravisCI.test.js + +ok 862 — isTravisCI is a Function +ok 863 — Not running on Travis, correctly evaluates + +# PASS test\mapString\mapString.test.js + +ok 864 — mapString is a Function +ok 865 — mapString returns a capitalized string +ok 866 — mapString can deal with indexes +ok 867 — mapString can deal with the full string + +# PASS test\runPromisesInSeries\runPromisesInSeries.test.js + +ok 868 — runPromisesInSeries is a Function +ok 869 — Runs promises in series + +# PASS test\distance\distance.test.js + +ok 870 — distance is a Function +ok 871 — Calculates the distance between two points + +# PASS test\sdbm\sdbm.test.js + +ok 872 — sdbm is a Function +ok 873 — Hashes the input string into a whole number. + +# PASS test\currentURL\currentURL.test.js + +ok 874 — currentURL is a Function + +# PASS test\matches\matches.test.js + +ok 875 — matches is a Function +ok 876 — Matches returns true for two similar objects +ok 877 — Matches returns false for two non-similar objects + +# PASS test\isDivisible\isDivisible.test.js + +ok 878 — isDivisible is a Function +ok 879 — The number 6 is divisible by 3 + +# PASS test\minBy\minBy.test.js + +ok 880 — minBy is a Function +ok 881 — Produces the right result with a function +ok 882 — Produces the right result with a property name + +# PASS test\bindAll\bindAll.test.js + +ok 883 — bindAll is a Function +ok 884 — Binds to an object context + +# PASS test\reverseString\reverseString.test.js + +ok 885 — reverseString is a Function +ok 886 — Reverses a string. + +# PASS test\elementIsVisibleInViewport\elementIsVisibleInViewport.test.js + +ok 887 — elementIsVisibleInViewport is a Function + +# PASS test\sumPower\sumPower.test.js + +ok 888 — sumPower is a Function +ok 889 — Returns the sum of the powers of all the numbers from start to end +ok 890 — Returns the sum of the powers of all the numbers from start to end +ok 891 — Returns the sum of the powers of all the numbers from start to end + +# PASS test\nodeListToArray\nodeListToArray.test.js + +ok 892 — nodeListToArray is a Function + +# PASS test\show\show.test.js + +ok 893 — show is a Function + +# PASS test\isEven\isEven.test.js + +ok 894 — isEven is a Function +ok 895 — 4 is even number +ok 896 — 5 is not an even number + +# PASS test\unflattenObject\unflattenObject.test.js + +ok 897 — unflattenObject is a Function +ok 898 — Unflattens an object with the paths for keys + +# PASS test\defaults\defaults.test.js + +ok 899 — defaults is a Function +ok 900 — Assigns default values for undefined properties + +# PASS test\initializeArrayWithValues\initializeArrayWithValues.test.js + +ok 901 — initializeArrayWithValues is a Function +ok 902 — Initializes and fills an array with the specified values + +# PASS test\standardDeviation\standardDeviation.test.js + +ok 903 — standardDeviation is a Function +ok 904 — Returns the standard deviation of an array of numbers +ok 905 — Returns the standard deviation of an array of numbers + +# PASS test\degreesToRads\degreesToRads.test.js + +ok 906 — degreesToRads is a Function +ok 907 — Returns the appropriate value + +# PASS test\getURLParameters\getURLParameters.test.js + +ok 908 — getURLParameters is a Function +ok 909 — Returns an object containing the parameters of the current URL + +# PASS test\mostPerformant\mostPerformant.test.js + +ok 910 — mostPerformant is a Function + +# PASS test\intersectionWith\intersectionWith.test.js + +ok 911 — intersectionWith is a Function +ok 912 — Returns a list of elements that exist in both arrays, using a provided comparator function + +# PASS test\difference\difference.test.js + +ok 913 — difference is a Function +ok 914 — Returns the difference between two arrays + +# PASS test\symmetricDifference\symmetricDifference.test.js + +ok 915 — symmetricDifference is a Function +ok 916 — Returns the symmetric difference between two arrays. + +# PASS test\insertBefore\insertBefore.test.js + +ok 917 — insertBefore is a Function + +# PASS test\averageBy\averageBy.test.js + +ok 918 — averageBy is a Function +ok 919 — Produces the right result with a function +ok 920 — Produces the right result with a property name + +# PASS test\arrayToCSV\arrayToCSV.test.js + +ok 921 — arrayToCSV is a Function +ok 922 — arrayToCSV works with default delimiter +ok 923 — arrayToCSV works with custom delimiter + +# PASS test\truncateString\truncateString.test.js + +ok 924 — truncateString is a Function +ok 925 — Truncates a "boomerang" up to a specified length. + +# PASS test\hammingDistance\hammingDistance.test.js + +ok 926 — hammingDistance is a Function +ok 927 — retuns hamming disance between 2 values + +# PASS test\intersection\intersection.test.js + +ok 928 — intersection is a Function +ok 929 — Returns a list of elements that exist in both arrays + +# PASS test\pipeAsyncFunctions\pipeAsyncFunctions.test.js + +ok 930 — pipeAsyncFunctions is a Function +ok 931 — pipeAsyncFunctions result should be 15 + +# PASS test\randomIntArrayInRange\randomIntArrayInRange.test.js + +ok 932 — randomIntArrayInRange is a Function +ok 933 — The returned array contains only integers +ok 934 — The returned array has the proper length +ok 935 — The returned array's values lie between provided lowerLimit and upperLimit (both inclusive). + +# PASS test\detectDeviceType\detectDeviceType.test.js + +ok 936 — detectDeviceType is a Function + +# PASS test\arrayToHtmlList\arrayToHtmlList.test.js + +ok 937 — arrayToHtmlList is a Function + +# PASS test\sleep\sleep.test.js + +ok 938 — sleep is a Function +ok 939 — Works as expected + +# PASS test\getStyle\getStyle.test.js + +ok 940 — getStyle is a Function + +# PASS test\pad\pad.test.js + +ok 941 — pad is a Function +ok 942 — cat is padded on both sides +ok 943 — length of string is 8 +ok 944 — pads 42 with "0" +ok 945 — does not truncates if string exceeds length + +# PASS test\spreadOver\spreadOver.test.js + +ok 946 — spreadOver is a Function +ok 947 — Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. + +# PASS test\JSONtoCSV\JSONtoCSV.test.js + +ok 948 — JSONtoCSV is a Function +ok 949 — JSONtoCSV works with default delimiter +ok 950 — JSONtoCSV works with custom delimiter + +# PASS test\mask\mask.test.js + +ok 951 — mask is a Function +ok 952 — Replaces all but the last num of characters with the specified mask character +ok 953 — Replaces all but the last num of characters with the specified mask character +ok 954 — Replaces all but the last num of characters with the specified mask character + +# PASS test\extendHex\extendHex.test.js + +ok 955 — extendHex is a Function +ok 956 — Extends a 3-digit color code to a 6-digit color code +ok 957 — Extends a 3-digit color code to a 6-digit color code + +# PASS test\splitLines\splitLines.test.js + +ok 958 — splitLines is a Function +ok 959 — Splits a multiline string into an array of lines. + +# PASS test\off\off.test.js + +ok 960 — off is a Function + +# PASS test\JSONToDate\JSONToDate.test.js + +ok 961 — JSONToDate is a Function + +# PASS test\serializeCookie\serializeCookie.test.js + +ok 962 — serializeCookie is a Function +ok 963 — Serializes the cookie + +# PASS test\tail\tail.test.js + +ok 964 — tail is a Function +ok 965 — Returns tail +ok 966 — Returns tail + +# PASS test\atob\atob.test.js + +ok 967 — atob is a Function +ok 968 — atob("Zm9vYmFy") equals "foobar" +ok 969 — atob("Z") returns "" + +# PASS test\redirect\redirect.test.js + +ok 970 — redirect is a Function + +# PASS test\isNull\isNull.test.js + +ok 971 — isNull is a Function +ok 972 — passed argument is a null +ok 973 — passed argument is a null + +# PASS test\smoothScroll\smoothScroll.test.js + +ok 974 — smoothScroll is a Function + +# PASS test\flip\flip.test.js + +ok 975 — flip is a Function +ok 976 — Flips argument order + +# PASS test\hashBrowser\hashBrowser.test.js + +ok 977 — hashBrowser is a Function + +# PASS test\isUndefined\isUndefined.test.js + +ok 978 — isUndefined is a Function +ok 979 — Returns true for undefined + +# PASS test\symmetricDifferenceWith\symmetricDifferenceWith.test.js + +ok 980 — symmetricDifferenceWith is a Function +ok 981 — Returns the symmetric difference between two arrays, using a provided function as a comparator + +# PASS test\sortedIndexBy\sortedIndexBy.test.js + +ok 982 — sortedIndexBy is a Function +ok 983 — Returns the lowest index to insert the element without messing up the list order + +# PASS test\removeVowels\removeVowels.test.js + +ok 984 — removeVowels is a Function + +# PASS test\counter\counter.test.js + +ok 985 — counter is a Function + +# PASS test\partition\partition.test.js + +ok 986 — partition is a Function +ok 987 — Groups the elements into two arrays, depending on the provided function's truthiness for each element. + +# PASS test\nthElement\nthElement.test.js + +ok 988 — nthElement is a Function +ok 989 — Returns the nth element of an array. +ok 990 — Returns the nth element of an array. + +# PASS test\initializeArrayWithRangeRight\initializeArrayWithRangeRight.test.js + +ok 991 — initializeArrayWithRangeRight is a Function + +# PASS test\compact\compact.test.js + +ok 992 — compact is a Function +ok 993 — Removes falsey values from an array + +# PASS test\pickBy\pickBy.test.js + +ok 994 — pickBy is a Function +ok 995 — Creates an object composed of the properties the given function returns truthy for. + +# PASS test\everyNth\everyNth.test.js + +ok 996 — everyNth is a Function +ok 997 — Returns every nth element in an array + +# PASS test\URLJoin\URLJoin.test.js + +ok 998 — URLJoin is a Function +ok 999 — Returns proper URL +ok 1000 — Returns proper URL + +# PASS test\isSet\isSet.test.js + +ok 1001 — isSet is a Function + +# PASS test\isMap\isMap.test.js + +ok 1002 — isMap is a Function + +# PASS test\overArgs\overArgs.test.js + +ok 1003 — overArgs is a Function +ok 1004 — Invokes the provided function with its arguments transformed + +# PASS test\longestItem\longestItem.test.js + +ok 1005 — longestItem is a Function +ok 1006 — Returns the longest object + +# PASS test\bottomVisible\bottomVisible.test.js + +ok 1007 — bottomVisible is a Function + +# PASS test\collectInto\collectInto.test.js + +ok 1008 — collectInto is a Function +ok 1009 — Works with multiple promises + +# PASS test\isArrayBuffer\isArrayBuffer.test.js + +ok 1010 — isArrayBuffer is a Function + +# PASS test\functionName\functionName.test.js + +ok 1011 — functionName is a Function +ok 1012 — Works for native functions +ok 1013 — Works for functions +ok 1014 — Works for arrow functions + +# PASS test\isWeakMap\isWeakMap.test.js + +ok 1015 — isWeakMap is a Function + +# PASS test\isTypedArray\isTypedArray.test.js + +ok 1016 — isTypedArray is a Function + +# PASS test\byteSize\byteSize.test.js + +ok 1017 — byteSize is a Function +ok 1018 — Works for a single letter +ok 1019 — Works for a common string +ok 1020 — Works for emoji + +# PASS test\isArray\isArray.test.js + +ok 1021 — isArray is a Function +ok 1022 — passed value is an array +ok 1023 — passed value is not an array + +# PASS test\isRegExp\isRegExp.test.js + +ok 1024 — isRegExp is a Function 1..1024 # Test Suites: 100% ██████████, 344 passed, 344 total # Tests: 100% ██████████, 1024 passed, 1024 total -# Time: 16.972s +# Time: 15.479s, estimated 12s # Ran all test suites. diff --git a/test/throttle/throttle.js b/test/throttle/throttle.js index 716a2b0b6..2ed612018 100644 --- a/test/throttle/throttle.js +++ b/test/throttle/throttle.js @@ -18,5 +18,4 @@ const throttle = (fn, wait) => { } }; }; - -module.exports = throttle; \ No newline at end of file +module.exports = throttle; diff --git a/test/timeTaken/timeTaken.js b/test/timeTaken/timeTaken.js index 1ae4f8142..96cab458b 100644 --- a/test/timeTaken/timeTaken.js +++ b/test/timeTaken/timeTaken.js @@ -4,5 +4,4 @@ const timeTaken = callback => { console.timeEnd('timeTaken'); return r; }; - -module.exports = timeTaken; \ No newline at end of file +module.exports = timeTaken; diff --git a/test/times/times.js b/test/times/times.js index e5ba840d9..cb1402553 100644 --- a/test/times/times.js +++ b/test/times/times.js @@ -2,5 +2,4 @@ const times = (n, fn, context = undefined) => { let i = 0; while (fn.call(context, i) !== false && ++i < n) {} }; - -module.exports = times; \ No newline at end of file +module.exports = times; diff --git a/test/toCamelCase/toCamelCase.js b/test/toCamelCase/toCamelCase.js index cd5a861bf..edc309d0f 100644 --- a/test/toCamelCase/toCamelCase.js +++ b/test/toCamelCase/toCamelCase.js @@ -7,5 +7,4 @@ const toCamelCase = str => { .join(''); return s.slice(0, 1).toLowerCase() + s.slice(1); }; - -module.exports = toCamelCase; \ No newline at end of file +module.exports = toCamelCase; diff --git a/test/toCurrency/toCurrency.js b/test/toCurrency/toCurrency.js index 5d2685375..698ad39f2 100644 --- a/test/toCurrency/toCurrency.js +++ b/test/toCurrency/toCurrency.js @@ -1,4 +1,3 @@ const toCurrency = (n, curr, LanguageFormat = undefined) => Intl.NumberFormat(LanguageFormat, { style: 'currency', currency: curr }).format(n); - -module.exports = toCurrency; \ No newline at end of file +module.exports = toCurrency; diff --git a/test/toDecimalMark/toDecimalMark.js b/test/toDecimalMark/toDecimalMark.js index 4f3401aa4..839d2b25b 100644 --- a/test/toDecimalMark/toDecimalMark.js +++ b/test/toDecimalMark/toDecimalMark.js @@ -1,3 +1,2 @@ const toDecimalMark = num => num.toLocaleString('en-US'); - -module.exports = toDecimalMark; \ No newline at end of file +module.exports = toDecimalMark; diff --git a/test/toHash/toHash.js b/test/toHash/toHash.js index e9ceae4af..d2a89a847 100644 --- a/test/toHash/toHash.js +++ b/test/toHash/toHash.js @@ -4,5 +4,4 @@ const toHash = (object, key) => (acc, data, index) => ((acc[!key ? index : data[key]] = data), acc), {} ); - -module.exports = toHash; \ No newline at end of file +module.exports = toHash; diff --git a/test/toKebabCase/toKebabCase.js b/test/toKebabCase/toKebabCase.js index 2a80c63c2..53e3c8c7f 100644 --- a/test/toKebabCase/toKebabCase.js +++ b/test/toKebabCase/toKebabCase.js @@ -4,5 +4,4 @@ const toKebabCase = str => .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g) .map(x => x.toLowerCase()) .join('-'); - -module.exports = toKebabCase; \ No newline at end of file +module.exports = toKebabCase; diff --git a/test/toOrdinalSuffix/toOrdinalSuffix.js b/test/toOrdinalSuffix/toOrdinalSuffix.js index f6e32c976..85dcb7b53 100644 --- a/test/toOrdinalSuffix/toOrdinalSuffix.js +++ b/test/toOrdinalSuffix/toOrdinalSuffix.js @@ -8,5 +8,4 @@ const toOrdinalSuffix = num => { ? int + ordinals[digits[0] - 1] : int + ordinals[3]; }; - -module.exports = toOrdinalSuffix; \ No newline at end of file +module.exports = toOrdinalSuffix; diff --git a/test/toSafeInteger/toSafeInteger.js b/test/toSafeInteger/toSafeInteger.js index 9e54b2f4c..f8408387f 100644 --- a/test/toSafeInteger/toSafeInteger.js +++ b/test/toSafeInteger/toSafeInteger.js @@ -1,4 +1,3 @@ const toSafeInteger = num => Math.round(Math.max(Math.min(num, Number.MAX_SAFE_INTEGER), Number.MIN_SAFE_INTEGER)); - -module.exports = toSafeInteger; \ No newline at end of file +module.exports = toSafeInteger; diff --git a/test/toSnakeCase/toSnakeCase.js b/test/toSnakeCase/toSnakeCase.js index 8f9d78803..86c59cbb7 100644 --- a/test/toSnakeCase/toSnakeCase.js +++ b/test/toSnakeCase/toSnakeCase.js @@ -4,5 +4,4 @@ const toSnakeCase = str => .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g) .map(x => x.toLowerCase()) .join('_'); - -module.exports = toSnakeCase; \ No newline at end of file +module.exports = toSnakeCase; diff --git a/test/toggleClass/toggleClass.js b/test/toggleClass/toggleClass.js index 5c34eec24..61362e885 100644 --- a/test/toggleClass/toggleClass.js +++ b/test/toggleClass/toggleClass.js @@ -1,3 +1,2 @@ const toggleClass = (el, className) => el.classList.toggle(className); - -module.exports = toggleClass; \ No newline at end of file +module.exports = toggleClass; diff --git a/test/tomorrow/tomorrow.js b/test/tomorrow/tomorrow.js index 1643aa3d0..a78e50b47 100644 --- a/test/tomorrow/tomorrow.js +++ b/test/tomorrow/tomorrow.js @@ -6,5 +6,4 @@ const tomorrow = (long = false) => { ).padStart(2, '0')}`; return !long ? ret : `${ret}T00:00:00`; }; - -module.exports = tomorrow; \ No newline at end of file +module.exports = tomorrow; diff --git a/test/transform/transform.js b/test/transform/transform.js index 44f10f3fd..6381c797b 100644 --- a/test/transform/transform.js +++ b/test/transform/transform.js @@ -1,3 +1,2 @@ const transform = (obj, fn, acc) => Object.keys(obj).reduce((a, k) => fn(a, obj[k], k, obj), acc); - -module.exports = transform; \ No newline at end of file +module.exports = transform; diff --git a/test/triggerEvent/triggerEvent.js b/test/triggerEvent/triggerEvent.js index 24d4d46bf..2ed952fad 100644 --- a/test/triggerEvent/triggerEvent.js +++ b/test/triggerEvent/triggerEvent.js @@ -1,4 +1,3 @@ const triggerEvent = (el, eventType, detail = undefined) => el.dispatchEvent(new CustomEvent(eventType, { detail: detail })); - -module.exports = triggerEvent; \ No newline at end of file +module.exports = triggerEvent; diff --git a/test/truncateString/truncateString.js b/test/truncateString/truncateString.js index 495431aa3..a251353e3 100644 --- a/test/truncateString/truncateString.js +++ b/test/truncateString/truncateString.js @@ -1,4 +1,3 @@ const truncateString = (str, num) => str.length > num ? str.slice(0, num > 3 ? num - 3 : num) + '...' : str; - -module.exports = truncateString; \ No newline at end of file +module.exports = truncateString; diff --git a/test/truthCheckCollection/truthCheckCollection.js b/test/truthCheckCollection/truthCheckCollection.js index 88ec49189..4308926ac 100644 --- a/test/truthCheckCollection/truthCheckCollection.js +++ b/test/truthCheckCollection/truthCheckCollection.js @@ -1,3 +1,2 @@ const truthCheckCollection = (collection, pre) => collection.every(obj => obj[pre]); - -module.exports = truthCheckCollection; \ No newline at end of file +module.exports = truthCheckCollection; diff --git a/test/unary/unary.js b/test/unary/unary.js index a177a851f..9dda10708 100644 --- a/test/unary/unary.js +++ b/test/unary/unary.js @@ -1,3 +1,2 @@ const unary = fn => val => fn(val); - -module.exports = unary; \ No newline at end of file +module.exports = unary; diff --git a/test/uncurry/uncurry.js b/test/uncurry/uncurry.js index b68dceb59..f3bd5e58a 100644 --- a/test/uncurry/uncurry.js +++ b/test/uncurry/uncurry.js @@ -3,5 +3,4 @@ const uncurry = (fn, n = 1) => (...args) => { if (n > args.length) throw new RangeError('Arguments too few!'); return next(fn)(args.slice(0, n)); }; - -module.exports = uncurry; \ No newline at end of file +module.exports = uncurry; diff --git a/test/unescapeHTML/unescapeHTML.js b/test/unescapeHTML/unescapeHTML.js index 9e01cb8be..43ffa0bf9 100644 --- a/test/unescapeHTML/unescapeHTML.js +++ b/test/unescapeHTML/unescapeHTML.js @@ -10,5 +10,4 @@ const unescapeHTML = str => '"': '"' }[tag] || tag) ); - -module.exports = unescapeHTML; \ No newline at end of file +module.exports = unescapeHTML; diff --git a/test/unflattenObject/unflattenObject.js b/test/unflattenObject/unflattenObject.js index c34f43e58..9b52bad26 100644 --- a/test/unflattenObject/unflattenObject.js +++ b/test/unflattenObject/unflattenObject.js @@ -14,5 +14,4 @@ const unflattenObject = obj => } else acc[k] = obj[k]; return acc; }, {}); - -module.exports = unflattenObject; \ No newline at end of file +module.exports = unflattenObject; diff --git a/test/unfold/unfold.js b/test/unfold/unfold.js index 45cc27f60..1f8d84437 100644 --- a/test/unfold/unfold.js +++ b/test/unfold/unfold.js @@ -4,5 +4,4 @@ const unfold = (fn, seed) => { while ((val = fn(val[1]))) result.push(val[0]); return result; }; - -module.exports = unfold; \ No newline at end of file +module.exports = unfold; diff --git a/test/union/union.js b/test/union/union.js index 2bd3845fd..c10144580 100644 --- a/test/union/union.js +++ b/test/union/union.js @@ -1,3 +1,2 @@ const union = (a, b) => Array.from(new Set([...a, ...b])); - -module.exports = union; \ No newline at end of file +module.exports = union; diff --git a/test/unionBy/unionBy.js b/test/unionBy/unionBy.js index 49506e32a..86d52180c 100644 --- a/test/unionBy/unionBy.js +++ b/test/unionBy/unionBy.js @@ -2,5 +2,4 @@ const unionBy = (a, b, fn) => { const s = new Set(a.map(v => fn(v))); return Array.from(new Set([...a, ...b.filter(x => !s.has(fn(x)))])); }; - -module.exports = unionBy; \ No newline at end of file +module.exports = unionBy; diff --git a/test/unionWith/unionWith.js b/test/unionWith/unionWith.js index a2ac685b4..1faa0a847 100644 --- a/test/unionWith/unionWith.js +++ b/test/unionWith/unionWith.js @@ -1,4 +1,3 @@ const unionWith = (a, b, comp) => Array.from(new Set([...a, ...b.filter(x => a.findIndex(y => comp(x, y)) === -1)])); - -module.exports = unionWith; \ No newline at end of file +module.exports = unionWith; diff --git a/test/uniqueElements/uniqueElements.js b/test/uniqueElements/uniqueElements.js index bf626d44b..17da4091f 100644 --- a/test/uniqueElements/uniqueElements.js +++ b/test/uniqueElements/uniqueElements.js @@ -1,3 +1,2 @@ const uniqueElements = arr => [...new Set(arr)]; - -module.exports = uniqueElements; \ No newline at end of file +module.exports = uniqueElements; diff --git a/test/uniqueElementsBy/uniqueElementsBy.js b/test/uniqueElementsBy/uniqueElementsBy.js index 1005aa169..151471448 100644 --- a/test/uniqueElementsBy/uniqueElementsBy.js +++ b/test/uniqueElementsBy/uniqueElementsBy.js @@ -3,5 +3,4 @@ const uniqueElementsBy = (arr, fn) => if (!acc.some(x => fn(v, x))) acc.push(v); return acc; }, []); - -module.exports = uniqueElementsBy; \ No newline at end of file +module.exports = uniqueElementsBy; diff --git a/test/uniqueElementsByRight/uniqueElementsByRight.js b/test/uniqueElementsByRight/uniqueElementsByRight.js index 79764d861..8f114ebf9 100644 --- a/test/uniqueElementsByRight/uniqueElementsByRight.js +++ b/test/uniqueElementsByRight/uniqueElementsByRight.js @@ -3,5 +3,4 @@ const uniqueElementsByRight = (arr, fn) => if (!acc.some(x => fn(v, x))) acc.push(v); return acc; }, []); - -module.exports = uniqueElementsByRight; \ No newline at end of file +module.exports = uniqueElementsByRight; diff --git a/test/untildify/untildify.js b/test/untildify/untildify.js index dbbf08975..4dd64d3b1 100644 --- a/test/untildify/untildify.js +++ b/test/untildify/untildify.js @@ -1,3 +1,2 @@ const untildify = str => str.replace(/^~($|\/|\\)/, `${require('os').homedir()}$1`); - -module.exports = untildify; \ No newline at end of file +module.exports = untildify; diff --git a/test/unzip/unzip.js b/test/unzip/unzip.js index cc0661a2e..4aa9c5965 100644 --- a/test/unzip/unzip.js +++ b/test/unzip/unzip.js @@ -5,5 +5,4 @@ const unzip = arr => length: Math.max(...arr.map(x => x.length)) }).map(x => []) ); - -module.exports = unzip; \ No newline at end of file +module.exports = unzip; diff --git a/test/unzipWith/unzipWith.js b/test/unzipWith/unzipWith.js index 4b9b595d0..7c94b6875 100644 --- a/test/unzipWith/unzipWith.js +++ b/test/unzipWith/unzipWith.js @@ -7,5 +7,4 @@ const unzipWith = (arr, fn) => }).map(x => []) ) .map(val => fn(...val)); - -module.exports = unzipWith; \ No newline at end of file +module.exports = unzipWith; diff --git a/test/validateNumber/validateNumber.js b/test/validateNumber/validateNumber.js index 3cbd62d91..691081f8e 100644 --- a/test/validateNumber/validateNumber.js +++ b/test/validateNumber/validateNumber.js @@ -1,3 +1,2 @@ const validateNumber = n => !isNaN(parseFloat(n)) && isFinite(n) && Number(n) == n; - -module.exports = validateNumber; \ No newline at end of file +module.exports = validateNumber; diff --git a/test/when/when.js b/test/when/when.js index 555ddefd2..57055511f 100644 --- a/test/when/when.js +++ b/test/when/when.js @@ -1,3 +1,2 @@ const when = (pred, whenTrue) => x => (pred(x) ? whenTrue(x) : x); - -module.exports = when; \ No newline at end of file +module.exports = when; diff --git a/test/without/without.js b/test/without/without.js index e21464463..c17d28369 100644 --- a/test/without/without.js +++ b/test/without/without.js @@ -1,3 +1,2 @@ const without = (arr, ...args) => arr.filter(v => !args.includes(v)); - -module.exports = without; \ No newline at end of file +module.exports = without; diff --git a/test/words/words.js b/test/words/words.js index 89c98dd0a..f7a51417a 100644 --- a/test/words/words.js +++ b/test/words/words.js @@ -1,3 +1,2 @@ const words = (str, pattern = /[^a-zA-Z-]+/) => str.split(pattern).filter(Boolean); - -module.exports = words; \ No newline at end of file +module.exports = words; diff --git a/test/xProd/xProd.js b/test/xProd/xProd.js index 2cf81762f..b98865854 100644 --- a/test/xProd/xProd.js +++ b/test/xProd/xProd.js @@ -1,3 +1,2 @@ const xProd = (a, b) => a.reduce((acc, x) => acc.concat(b.map(y => [x, y])), []); - -module.exports = xProd; \ No newline at end of file +module.exports = xProd; diff --git a/test/yesNo/yesNo.js b/test/yesNo/yesNo.js index 560d22a24..5e318eec4 100644 --- a/test/yesNo/yesNo.js +++ b/test/yesNo/yesNo.js @@ -1,4 +1,3 @@ const yesNo = (val, def = false) => /^(y|yes)$/i.test(val) ? true : /^(n|no)$/i.test(val) ? false : def; - -module.exports = yesNo; \ No newline at end of file +module.exports = yesNo; diff --git a/test/zip/zip.js b/test/zip/zip.js index bb22b7e36..29dd6e79c 100644 --- a/test/zip/zip.js +++ b/test/zip/zip.js @@ -4,5 +4,4 @@ const zip = (...arrays) => { return Array.from({ length: arrays.length }, (_, k) => arrays[k][i]); }); }; - -module.exports = zip; \ No newline at end of file +module.exports = zip; diff --git a/test/zipObject/zipObject.js b/test/zipObject/zipObject.js index bc6fa882e..3a670fefa 100644 --- a/test/zipObject/zipObject.js +++ b/test/zipObject/zipObject.js @@ -1,4 +1,3 @@ const zipObject = (props, values) => props.reduce((obj, prop, index) => ((obj[prop] = values[index]), obj), {}); - -module.exports = zipObject; \ No newline at end of file +module.exports = zipObject; diff --git a/test/zipWith/zipWith.js b/test/zipWith/zipWith.js index c142ff1f8..9a6a1e926 100644 --- a/test/zipWith/zipWith.js +++ b/test/zipWith/zipWith.js @@ -5,5 +5,4 @@ const zipWith = (...array) => { (_, i) => (fn ? fn(...array.map(a => a[i])) : array.map(a => a[i])) ); }; - -module.exports = zipWith; \ No newline at end of file +module.exports = zipWith;