diff --git a/scripts/tdd.js b/scripts/tdd.js index 71e55df85..21151f199 100644 --- a/scripts/tdd.js +++ b/scripts/tdd.js @@ -61,7 +61,7 @@ snippetFiles .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};`.trim(); // Export template for snippetName.test.js which generates a example test & other information const exportTest = [ diff --git a/test/JSONToDate/JSONToDate.js b/test/JSONToDate/JSONToDate.js index 658c2f6fc..943251c96 100644 --- a/test/JSONToDate/JSONToDate.js +++ b/test/JSONToDate/JSONToDate.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/JSONToFile/JSONToFile.js b/test/JSONToFile/JSONToFile.js index 450fe0d35..8ae6fedcd 100644 --- a/test/JSONToFile/JSONToFile.js +++ b/test/JSONToFile/JSONToFile.js @@ -1,4 +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; \ No newline at end of file diff --git a/test/RGBToHex/RGBToHex.js b/test/RGBToHex/RGBToHex.js index 4e84c450b..fdb1c63d0 100644 --- a/test/RGBToHex/RGBToHex.js +++ b/test/RGBToHex/RGBToHex.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/URLJoin/URLJoin.js b/test/URLJoin/URLJoin.js index ccff1cb75..0125c4ffa 100644 --- a/test/URLJoin/URLJoin.js +++ b/test/URLJoin/URLJoin.js @@ -7,4 +7,4 @@ args .replace(/\/(\?|&|#[^!])/g, '$1') .replace(/\?/g, '&') .replace('&', '?'); -module.exports = URLJoin \ No newline at end of file +module.exports = URLJoin; \ No newline at end of file diff --git a/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js b/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js index bdd30d1f1..30b17a372 100644 --- a/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js +++ b/test/UUIDGeneratorBrowser/UUIDGeneratorBrowser.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/UUIDGeneratorNode/UUIDGeneratorNode.js b/test/UUIDGeneratorNode/UUIDGeneratorNode.js index 46afbd090..862fa79e1 100644 --- a/test/UUIDGeneratorNode/UUIDGeneratorNode.js +++ b/test/UUIDGeneratorNode/UUIDGeneratorNode.js @@ -3,4 +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; \ No newline at end of file diff --git a/test/anagrams/anagrams.js b/test/anagrams/anagrams.js index 32a1b62ae..86b0f4f45 100644 --- a/test/anagrams/anagrams.js +++ b/test/anagrams/anagrams.js @@ -8,4 +8,4 @@ acc.concat(anagrams(str.slice(0, i) + str.slice(i + 1)).map(val => letter + val) [] ); }; -module.exports = anagrams \ No newline at end of file +module.exports = anagrams; \ No newline at end of file diff --git a/test/arrayToHtmlList/arrayToHtmlList.js b/test/arrayToHtmlList/arrayToHtmlList.js index ae6fed9c2..e182b4329 100644 --- a/test/arrayToHtmlList/arrayToHtmlList.js +++ b/test/arrayToHtmlList/arrayToHtmlList.js @@ -1,3 +1,3 @@ const arrayToHtmlList = (arr, listID) => arr.map(item => (document.querySelector('#' + listID).innerHTML += `
  • ${item}
  • `)); -module.exports = arrayToHtmlList \ No newline at end of file +module.exports = arrayToHtmlList; \ No newline at end of file diff --git a/test/ary/ary.js b/test/ary/ary.js index 25aa3b39a..1244bba0c 100644 --- a/test/ary/ary.js +++ b/test/ary/ary.js @@ -1,2 +1,2 @@ const ary = (fn, n) => (...args) => fn(...args.slice(0, n)); -module.exports = ary \ No newline at end of file +module.exports = ary; \ No newline at end of file diff --git a/test/atob/atob.js b/test/atob/atob.js index fc39b89f8..6ec0acff6 100644 --- a/test/atob/atob.js +++ b/test/atob/atob.js @@ -1,2 +1,2 @@ const atob = str => new Buffer(str, 'base64').toString('binary'); -module.exports = atob \ No newline at end of file +module.exports = atob; \ No newline at end of file diff --git a/test/attempt/attempt.js b/test/attempt/attempt.js index 6d079c71e..20d9769a5 100644 --- a/test/attempt/attempt.js +++ b/test/attempt/attempt.js @@ -5,4 +5,4 @@ return fn(args); return e instanceof Error ? e : new Error(e); } }; -module.exports = attempt \ No newline at end of file +module.exports = attempt; \ No newline at end of file diff --git a/test/average/average.js b/test/average/average.js index 57c11529f..53c4f96e0 100644 --- a/test/average/average.js +++ b/test/average/average.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/averageBy/averageBy.js b/test/averageBy/averageBy.js index fc38bc749..97dfedb32 100644 --- a/test/averageBy/averageBy.js +++ b/test/averageBy/averageBy.js @@ -1,4 +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; \ No newline at end of file diff --git a/test/binarySearch/binarySearch.js b/test/binarySearch/binarySearch.js index 484a20638..38cedecce 100644 --- a/test/binarySearch/binarySearch.js +++ b/test/binarySearch/binarySearch.js @@ -5,4 +5,4 @@ if (arr[mid] > val) return binarySearch(arr, val, start, mid - 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; \ No newline at end of file diff --git a/test/bind/bind.js b/test/bind/bind.js index 63499a7d0..31e295e77 100644 --- a/test/bind/bind.js +++ b/test/bind/bind.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/bindAll/bindAll.js b/test/bindAll/bindAll.js index 187778935..afbd74026 100644 --- a/test/bindAll/bindAll.js +++ b/test/bindAll/bindAll.js @@ -7,4 +7,4 @@ return f.apply(obj); }) ) ); -module.exports = bindAll \ No newline at end of file +module.exports = bindAll; \ No newline at end of file diff --git a/test/bindKey/bindKey.js b/test/bindKey/bindKey.js index 72d491b73..04645b19e 100644 --- a/test/bindKey/bindKey.js +++ b/test/bindKey/bindKey.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/bottomVisible/bottomVisible.js b/test/bottomVisible/bottomVisible.js index 68c5f357c..298fa122f 100644 --- a/test/bottomVisible/bottomVisible.js +++ b/test/bottomVisible/bottomVisible.js @@ -1,4 +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; \ No newline at end of file diff --git a/test/btoa/btoa.js b/test/btoa/btoa.js index af14ade08..56098b744 100644 --- a/test/btoa/btoa.js +++ b/test/btoa/btoa.js @@ -1,2 +1,2 @@ const btoa = str => new Buffer(str, 'binary').toString('base64'); -module.exports = btoa \ No newline at end of file +module.exports = btoa; \ No newline at end of file diff --git a/test/byteSize/byteSize.js b/test/byteSize/byteSize.js index e9ef3735a..591328a31 100644 --- a/test/byteSize/byteSize.js +++ b/test/byteSize/byteSize.js @@ -1,2 +1,2 @@ const byteSize = str => new Blob([str]).size; -module.exports = byteSize \ No newline at end of file +module.exports = byteSize; \ No newline at end of file diff --git a/test/call/call.js b/test/call/call.js index bcb7f341b..57ceb4de3 100644 --- a/test/call/call.js +++ b/test/call/call.js @@ -1,2 +1,2 @@ const call = (key, ...args) => context => context[key](...args); -module.exports = call \ No newline at end of file +module.exports = call; \ No newline at end of file diff --git a/test/capitalize/capitalize.js b/test/capitalize/capitalize.js index bc1710773..3288a50d3 100644 --- a/test/capitalize/capitalize.js +++ b/test/capitalize/capitalize.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/capitalizeEveryWord/capitalizeEveryWord.js b/test/capitalizeEveryWord/capitalizeEveryWord.js index 28a8f6d0b..ba4f0bfd9 100644 --- a/test/capitalizeEveryWord/capitalizeEveryWord.js +++ b/test/capitalizeEveryWord/capitalizeEveryWord.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/castArray/castArray.js b/test/castArray/castArray.js index 963203b1f..74beb1184 100644 --- a/test/castArray/castArray.js +++ b/test/castArray/castArray.js @@ -1,2 +1,2 @@ const castArray = val => (Array.isArray(val) ? val : [val]); -module.exports = castArray \ No newline at end of file +module.exports = castArray; \ No newline at end of file diff --git a/test/chainAsync/chainAsync.js b/test/chainAsync/chainAsync.js index 8322779ad..a1456675c 100644 --- a/test/chainAsync/chainAsync.js +++ b/test/chainAsync/chainAsync.js @@ -3,4 +3,4 @@ let curr = 0; const next = () => fns[curr++](next); next(); }; -module.exports = chainAsync \ No newline at end of file +module.exports = chainAsync; \ No newline at end of file diff --git a/test/chunk/chunk.js b/test/chunk/chunk.js index 39ffc5d71..f260eb566 100644 --- a/test/chunk/chunk.js +++ b/test/chunk/chunk.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/clampNumber/clampNumber.js b/test/clampNumber/clampNumber.js index ecd804f73..17265b603 100644 --- a/test/clampNumber/clampNumber.js +++ b/test/clampNumber/clampNumber.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/cleanObj/cleanObj.js b/test/cleanObj/cleanObj.js index d3dfc14d3..0d38b03f8 100644 --- a/test/cleanObj/cleanObj.js +++ b/test/cleanObj/cleanObj.js @@ -8,4 +8,4 @@ delete obj[key]; }); return obj; }; -module.exports = cleanObj \ No newline at end of file +module.exports = cleanObj; \ No newline at end of file diff --git a/test/cloneRegExp/cloneRegExp.js b/test/cloneRegExp/cloneRegExp.js index d0fdb3953..762a4e623 100644 --- a/test/cloneRegExp/cloneRegExp.js +++ b/test/cloneRegExp/cloneRegExp.js @@ -1,2 +1,2 @@ const cloneRegExp = regExp => new RegExp(regExp.source, regExp.flags); -module.exports = cloneRegExp \ No newline at end of file +module.exports = cloneRegExp; \ No newline at end of file diff --git a/test/coalesce/coalesce.js b/test/coalesce/coalesce.js index 839e85f10..e2333a321 100644 --- a/test/coalesce/coalesce.js +++ b/test/coalesce/coalesce.js @@ -1,2 +1,2 @@ const coalesce = (...args) => args.find(_ => ![undefined, null].includes(_)); -module.exports = coalesce \ No newline at end of file +module.exports = coalesce; \ No newline at end of file diff --git a/test/coalesceFactory/coalesceFactory.js b/test/coalesceFactory/coalesceFactory.js index 356ab50bb..d21c07200 100644 --- a/test/coalesceFactory/coalesceFactory.js +++ b/test/coalesceFactory/coalesceFactory.js @@ -1,2 +1,2 @@ const coalesceFactory = valid => (...args) => args.find(valid); -module.exports = coalesceFactory \ No newline at end of file +module.exports = coalesceFactory; \ No newline at end of file diff --git a/test/collatz/collatz.js b/test/collatz/collatz.js index a5ea21085..185344cd3 100644 --- a/test/collatz/collatz.js +++ b/test/collatz/collatz.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/collectInto/collectInto.js b/test/collectInto/collectInto.js index 829b8844b..61da731c5 100644 --- a/test/collectInto/collectInto.js +++ b/test/collectInto/collectInto.js @@ -1,2 +1,2 @@ const collectInto = fn => (...args) => fn(args); -module.exports = collectInto \ No newline at end of file +module.exports = collectInto; \ No newline at end of file diff --git a/test/colorize/colorize.js b/test/colorize/colorize.js index 63e7f7d29..7c8fe1846 100644 --- a/test/colorize/colorize.js +++ b/test/colorize/colorize.js @@ -16,4 +16,4 @@ bgMagenta: `\x1b[45m${args.join(' ')}\x1b[0m`, 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; \ No newline at end of file diff --git a/test/compact/compact.js b/test/compact/compact.js index 24866fe96..52927b836 100644 --- a/test/compact/compact.js +++ b/test/compact/compact.js @@ -1,2 +1,2 @@ const compact = arr => arr.filter(Boolean); -module.exports = compact \ No newline at end of file +module.exports = compact; \ No newline at end of file diff --git a/test/compose/compose.js b/test/compose/compose.js index b4e352b0b..eaacf7fc2 100644 --- a/test/compose/compose.js +++ b/test/compose/compose.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/composeRight/composeRight.js b/test/composeRight/composeRight.js index 3e17a2b91..4474298bb 100644 --- a/test/composeRight/composeRight.js +++ b/test/composeRight/composeRight.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/copyToClipboard/copyToClipboard.js b/test/copyToClipboard/copyToClipboard.js index 5af7138b6..9c35cee65 100644 --- a/test/copyToClipboard/copyToClipboard.js +++ b/test/copyToClipboard/copyToClipboard.js @@ -15,4 +15,4 @@ document.getSelection().removeAllRanges(); document.getSelection().addRange(selected); } }; -module.exports = copyToClipboard \ No newline at end of file +module.exports = copyToClipboard; \ No newline at end of file diff --git a/test/countBy/countBy.js b/test/countBy/countBy.js index fdd3f3f92..256070afb 100644 --- a/test/countBy/countBy.js +++ b/test/countBy/countBy.js @@ -3,4 +3,4 @@ arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val, i) => acc[val] = (acc[val] || 0) + 1; return acc; }, {}); -module.exports = countBy \ No newline at end of file +module.exports = countBy; \ No newline at end of file diff --git a/test/countOccurrences/countOccurrences.js b/test/countOccurrences/countOccurrences.js index bc76c8bc3..3b0d6c416 100644 --- a/test/countOccurrences/countOccurrences.js +++ b/test/countOccurrences/countOccurrences.js @@ -1,2 +1,2 @@ const countOccurrences = (arr, val) => arr.reduce((a, v) => (v === val ? a + 1 : a + 0), 0); -module.exports = countOccurrences \ No newline at end of file +module.exports = countOccurrences; \ No newline at end of file diff --git a/test/countVowels/countVowels.js b/test/countVowels/countVowels.js index cf9730c41..1f9fe96a5 100644 --- a/test/countVowels/countVowels.js +++ b/test/countVowels/countVowels.js @@ -1,2 +1,2 @@ const countVowels = str => (str.match(/[aeiou]/gi) || []).length; -module.exports = countVowels \ No newline at end of file +module.exports = countVowels; \ No newline at end of file diff --git a/test/createElement/createElement.js b/test/createElement/createElement.js index a9d6062e8..becd41371 100644 --- a/test/createElement/createElement.js +++ b/test/createElement/createElement.js @@ -3,4 +3,4 @@ const el = document.createElement('div'); el.innerHTML = str; return el.firstElementChild; }; -module.exports = createElement \ No newline at end of file +module.exports = createElement; \ No newline at end of file diff --git a/test/createEventHub/createEventHub.js b/test/createEventHub/createEventHub.js index 82a792026..949f8fbc0 100644 --- a/test/createEventHub/createEventHub.js +++ b/test/createEventHub/createEventHub.js @@ -12,4 +12,4 @@ const i = (this.hub[event] || []).findIndex(h => h === handler); if (i > -1) this.hub[event].splice(i, 1); } }); -module.exports = createEventHub \ No newline at end of file +module.exports = createEventHub; \ No newline at end of file diff --git a/test/currentURL/currentURL.js b/test/currentURL/currentURL.js index 47c9e8867..0d849248e 100644 --- a/test/currentURL/currentURL.js +++ b/test/currentURL/currentURL.js @@ -1,2 +1,2 @@ const currentURL = () => window.location.href; -module.exports = currentURL \ No newline at end of file +module.exports = currentURL; \ No newline at end of file diff --git a/test/curry/curry.js b/test/curry/curry.js index ca08777f9..152faf1e0 100644 --- a/test/curry/curry.js +++ b/test/curry/curry.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/debounce/debounce.js b/test/debounce/debounce.js index 430bfeaed..668fa19bb 100644 --- a/test/debounce/debounce.js +++ b/test/debounce/debounce.js @@ -7,4 +7,4 @@ clearTimeout(inDebounce); inDebounce = setTimeout(() => fn.apply(context, args), wait); }; }; -module.exports = debounce \ No newline at end of file +module.exports = debounce; \ No newline at end of file diff --git a/test/decapitalize/decapitalize.js b/test/decapitalize/decapitalize.js index b27279ebc..b124df72c 100644 --- a/test/decapitalize/decapitalize.js +++ b/test/decapitalize/decapitalize.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/deepClone/deepClone.js b/test/deepClone/deepClone.js index fdb424f30..dcf7720b4 100644 --- a/test/deepClone/deepClone.js +++ b/test/deepClone/deepClone.js @@ -5,4 +5,4 @@ key => (clone[key] = typeof obj[key] === 'object' ? deepClone(obj[key]) : obj[ke ); return clone; }; -module.exports = deepClone \ No newline at end of file +module.exports = deepClone; \ No newline at end of file diff --git a/test/deepFlatten/deepFlatten.js b/test/deepFlatten/deepFlatten.js index 7b6736558..c63f62add 100644 --- a/test/deepFlatten/deepFlatten.js +++ b/test/deepFlatten/deepFlatten.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/defaults/defaults.js b/test/defaults/defaults.js index bb66f6cc1..93b4860b5 100644 --- a/test/defaults/defaults.js +++ b/test/defaults/defaults.js @@ -1,2 +1,2 @@ const defaults = (obj, ...defs) => Object.assign({}, obj, ...defs.reverse(), obj); -module.exports = defaults \ No newline at end of file +module.exports = defaults; \ No newline at end of file diff --git a/test/defer/defer.js b/test/defer/defer.js index fd555a267..21b71c903 100644 --- a/test/defer/defer.js +++ b/test/defer/defer.js @@ -1,2 +1,2 @@ const defer = (fn, ...args) => setTimeout(fn, 1, ...args); -module.exports = defer \ No newline at end of file +module.exports = defer; \ No newline at end of file diff --git a/test/delay/delay.js b/test/delay/delay.js index 2c5f8ef20..1ea1dce3c 100644 --- a/test/delay/delay.js +++ b/test/delay/delay.js @@ -1,2 +1,2 @@ const delay = (fn, wait, ...args) => setTimeout(fn, wait, ...args); -module.exports = delay \ No newline at end of file +module.exports = delay; \ No newline at end of file diff --git a/test/detectDeviceType/detectDeviceType.js b/test/detectDeviceType/detectDeviceType.js index e2d834fd0..846a330e7 100644 --- a/test/detectDeviceType/detectDeviceType.js +++ b/test/detectDeviceType/detectDeviceType.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/difference/difference.js b/test/difference/difference.js index 3a2642b5b..95ecb7c51 100644 --- a/test/difference/difference.js +++ b/test/difference/difference.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/differenceBy/differenceBy.js b/test/differenceBy/differenceBy.js index 84e5548bb..3e61a2ae2 100644 --- a/test/differenceBy/differenceBy.js +++ b/test/differenceBy/differenceBy.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/differenceWith/differenceWith.js b/test/differenceWith/differenceWith.js index 83db305b1..59d99a9ba 100644 --- a/test/differenceWith/differenceWith.js +++ b/test/differenceWith/differenceWith.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/digitize/digitize.js b/test/digitize/digitize.js index b6324fe65..074c62069 100644 --- a/test/digitize/digitize.js +++ b/test/digitize/digitize.js @@ -1,2 +1,2 @@ const digitize = n => [...`${n}`].map(i => parseInt(i)); -module.exports = digitize \ No newline at end of file +module.exports = digitize; \ No newline at end of file diff --git a/test/distance/distance.js b/test/distance/distance.js index fdcbc4f15..0be1a9b8d 100644 --- a/test/distance/distance.js +++ b/test/distance/distance.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/drop/drop.js b/test/drop/drop.js index 53f8cd929..6f5fe45e4 100644 --- a/test/drop/drop.js +++ b/test/drop/drop.js @@ -1,2 +1,2 @@ const drop = (arr, n = 1) => arr.slice(n); -module.exports = drop \ No newline at end of file +module.exports = drop; \ No newline at end of file diff --git a/test/dropRight/dropRight.js b/test/dropRight/dropRight.js index 6e5e6725b..578c378a8 100644 --- a/test/dropRight/dropRight.js +++ b/test/dropRight/dropRight.js @@ -1,2 +1,2 @@ const dropRight = (arr, n = 1) => arr.slice(0, -n); -module.exports = dropRight \ No newline at end of file +module.exports = dropRight; \ No newline at end of file diff --git a/test/dropRightWhile/dropRightWhile.js b/test/dropRightWhile/dropRightWhile.js index 3b6dd7ccb..d77f45a6d 100644 --- a/test/dropRightWhile/dropRightWhile.js +++ b/test/dropRightWhile/dropRightWhile.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/dropWhile/dropWhile.js b/test/dropWhile/dropWhile.js index 655598419..4fdeab662 100644 --- a/test/dropWhile/dropWhile.js +++ b/test/dropWhile/dropWhile.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js b/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js index e8033fcfa..a63276c07 100644 --- a/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js +++ b/test/elementIsVisibleInViewport/elementIsVisibleInViewport.js @@ -6,4 +6,4 @@ return partiallyVisible ((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; \ No newline at end of file diff --git a/test/elo/elo.js b/test/elo/elo.js index 19952b6b2..5c3f24cb7 100644 --- a/test/elo/elo.js +++ b/test/elo/elo.js @@ -16,4 +16,4 @@ j++; } return ratings; }; -module.exports = elo \ No newline at end of file +module.exports = elo; \ No newline at end of file diff --git a/test/equals/equals.js b/test/equals/equals.js index d9959f799..a579629e0 100644 --- a/test/equals/equals.js +++ b/test/equals/equals.js @@ -8,4 +8,4 @@ let keys = Object.keys(a); 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; \ No newline at end of file diff --git a/test/escapeHTML/escapeHTML.js b/test/escapeHTML/escapeHTML.js index f1d9c874c..aef6febb8 100644 --- a/test/escapeHTML/escapeHTML.js +++ b/test/escapeHTML/escapeHTML.js @@ -10,4 +10,4 @@ tag => '"': '"' }[tag] || tag) ); -module.exports = escapeHTML \ No newline at end of file +module.exports = escapeHTML; \ No newline at end of file diff --git a/test/escapeRegExp/escapeRegExp.js b/test/escapeRegExp/escapeRegExp.js index cfd2d03bf..d7087a53a 100644 --- a/test/escapeRegExp/escapeRegExp.js +++ b/test/escapeRegExp/escapeRegExp.js @@ -1,2 +1,2 @@ const escapeRegExp = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); -module.exports = escapeRegExp \ No newline at end of file +module.exports = escapeRegExp; \ No newline at end of file diff --git a/test/everyNth/everyNth.js b/test/everyNth/everyNth.js index 12285c8f0..bd3d6017a 100644 --- a/test/everyNth/everyNth.js +++ b/test/everyNth/everyNth.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/extendHex/extendHex.js b/test/extendHex/extendHex.js index fe39c39fa..60c36dd12 100644 --- a/test/extendHex/extendHex.js +++ b/test/extendHex/extendHex.js @@ -5,4 +5,4 @@ shortHex .split('') .map(x => x + x) .join(''); -module.exports = extendHex \ No newline at end of file +module.exports = extendHex; \ No newline at end of file diff --git a/test/factorial/factorial.js b/test/factorial/factorial.js index b09e3ab26..8895763b2 100644 --- a/test/factorial/factorial.js +++ b/test/factorial/factorial.js @@ -4,4 +4,4 @@ n < 0 throw new TypeError('Negative numbers are not allowed!'); })() : n <= 1 ? 1 : n * factorial(n - 1); -module.exports = factorial \ No newline at end of file +module.exports = factorial; \ No newline at end of file diff --git a/test/factors/factors.js b/test/factors/factors.js index d0d789e83..d75a1d7ea 100644 --- a/test/factors/factors.js +++ b/test/factors/factors.js @@ -17,4 +17,4 @@ return acc; }, []); return primes ? array.filter(isPrime) : array; }; -module.exports = factors \ No newline at end of file +module.exports = factors; \ No newline at end of file diff --git a/test/fibonacci/fibonacci.js b/test/fibonacci/fibonacci.js index 2fe873dc3..b9700838a 100644 --- a/test/fibonacci/fibonacci.js +++ b/test/fibonacci/fibonacci.js @@ -3,4 +3,4 @@ Array.from({ length: n }).reduce( (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; \ No newline at end of file diff --git a/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js b/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js index 7746208c2..a2765e50c 100644 --- a/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js +++ b/test/fibonacciCountUntilNum/fibonacciCountUntilNum.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/fibonacciUntilNum/fibonacciUntilNum.js b/test/fibonacciUntilNum/fibonacciUntilNum.js index 649bd6e25..dd1040fea 100644 --- a/test/fibonacciUntilNum/fibonacciUntilNum.js +++ b/test/fibonacciUntilNum/fibonacciUntilNum.js @@ -5,4 +5,4 @@ return Array.from({ length: n }).reduce( [] ); }; -module.exports = fibonacciUntilNum \ No newline at end of file +module.exports = fibonacciUntilNum; \ No newline at end of file diff --git a/test/filterNonUnique/filterNonUnique.js b/test/filterNonUnique/filterNonUnique.js index 30a039b67..7d7a2688d 100644 --- a/test/filterNonUnique/filterNonUnique.js +++ b/test/filterNonUnique/filterNonUnique.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/findKey/findKey.js b/test/findKey/findKey.js index 66a5edc1c..0743cce13 100644 --- a/test/findKey/findKey.js +++ b/test/findKey/findKey.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/findLast/findLast.js b/test/findLast/findLast.js index 1586a1b46..82f3a11e6 100644 --- a/test/findLast/findLast.js +++ b/test/findLast/findLast.js @@ -1,2 +1,2 @@ const findLast = (arr, fn) => arr.filter(fn).slice(-1)[0]; -module.exports = findLast \ No newline at end of file +module.exports = findLast; \ No newline at end of file diff --git a/test/findLastIndex/findLastIndex.js b/test/findLastIndex/findLastIndex.js index 378a0e244..41e536d7d 100644 --- a/test/findLastIndex/findLastIndex.js +++ b/test/findLastIndex/findLastIndex.js @@ -3,4 +3,4 @@ arr .map((val, i) => [i, val]) .filter(val => fn(val[1], val[0], arr)) .slice(-1)[0][0]; -module.exports = findLastIndex \ No newline at end of file +module.exports = findLastIndex; \ No newline at end of file diff --git a/test/findLastKey/findLastKey.js b/test/findLastKey/findLastKey.js index 0033cf1e8..d28c7cda8 100644 --- a/test/findLastKey/findLastKey.js +++ b/test/findLastKey/findLastKey.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/flatten/flatten.js b/test/flatten/flatten.js index 6563b70fd..185cda9e8 100644 --- a/test/flatten/flatten.js +++ b/test/flatten/flatten.js @@ -2,4 +2,4 @@ const flatten = (arr, depth = 1) => depth != 1 ? arr.reduce((a, v) => a.concat(Array.isArray(v) ? flatten(v, depth - 1) : v), []) : arr.reduce((a, v) => a.concat(v), []); -module.exports = flatten \ No newline at end of file +module.exports = flatten; \ No newline at end of file diff --git a/test/flip/flip.js b/test/flip/flip.js index 79d2e19e6..9287d1faf 100644 --- a/test/flip/flip.js +++ b/test/flip/flip.js @@ -1,2 +1,2 @@ const flip = fn => (first, ...rest) => fn(...rest, first); -module.exports = flip \ No newline at end of file +module.exports = flip; \ No newline at end of file diff --git a/test/forEachRight/forEachRight.js b/test/forEachRight/forEachRight.js index f23c83b8f..48b911a5b 100644 --- a/test/forEachRight/forEachRight.js +++ b/test/forEachRight/forEachRight.js @@ -3,4 +3,4 @@ arr .slice(0) .reverse() .forEach(callback); -module.exports = forEachRight \ No newline at end of file +module.exports = forEachRight; \ No newline at end of file diff --git a/test/forOwn/forOwn.js b/test/forOwn/forOwn.js index 52fdf433b..cdc29acc6 100644 --- a/test/forOwn/forOwn.js +++ b/test/forOwn/forOwn.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/forOwnRight/forOwnRight.js b/test/forOwnRight/forOwnRight.js index c29f23464..f392aecc8 100644 --- a/test/forOwnRight/forOwnRight.js +++ b/test/forOwnRight/forOwnRight.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/formatDuration/formatDuration.js b/test/formatDuration/formatDuration.js index ed0d60595..82955dc28 100644 --- a/test/formatDuration/formatDuration.js +++ b/test/formatDuration/formatDuration.js @@ -12,4 +12,4 @@ return Object.entries(time) .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; \ No newline at end of file diff --git a/test/fromCamelCase/fromCamelCase.js b/test/fromCamelCase/fromCamelCase.js index 3538c0f2e..85f39e652 100644 --- a/test/fromCamelCase/fromCamelCase.js +++ b/test/fromCamelCase/fromCamelCase.js @@ -3,4 +3,4 @@ str .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; \ No newline at end of file diff --git a/test/functionName/functionName.js b/test/functionName/functionName.js index ffca87364..b8f8329e0 100644 --- a/test/functionName/functionName.js +++ b/test/functionName/functionName.js @@ -1,2 +1,2 @@ const functionName = fn => (console.debug(fn.name), fn); -module.exports = functionName \ No newline at end of file +module.exports = functionName; \ No newline at end of file diff --git a/test/functions/functions.js b/test/functions/functions.js index 93e11a78a..c97e10359 100644 --- a/test/functions/functions.js +++ b/test/functions/functions.js @@ -3,4 +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; \ No newline at end of file diff --git a/test/gcd/gcd.js b/test/gcd/gcd.js index 877cd3763..81fd33f08 100644 --- a/test/gcd/gcd.js +++ b/test/gcd/gcd.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/geometricProgression/geometricProgression.js b/test/geometricProgression/geometricProgression.js index afaeaf136..205ff6004 100644 --- a/test/geometricProgression/geometricProgression.js +++ b/test/geometricProgression/geometricProgression.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/get/get.js b/test/get/get.js index 568160c84..0f57d5ab5 100644 --- a/test/get/get.js +++ b/test/get/get.js @@ -6,4 +6,4 @@ s .filter(t => t !== '') .reduce((prev, cur) => prev && prev[cur], from) ); -module.exports = get \ No newline at end of file +module.exports = get; \ No newline at end of file diff --git a/test/getColonTimeFromDate/getColonTimeFromDate.js b/test/getColonTimeFromDate/getColonTimeFromDate.js index 690720d2a..eba292834 100644 --- a/test/getColonTimeFromDate/getColonTimeFromDate.js +++ b/test/getColonTimeFromDate/getColonTimeFromDate.js @@ -1,2 +1,2 @@ const getColonTimeFromDate = date => date.toTimeString().slice(0, 8); -module.exports = getColonTimeFromDate \ No newline at end of file +module.exports = getColonTimeFromDate; \ No newline at end of file diff --git a/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js b/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js index 899f75ae4..5b5bba94f 100644 --- a/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js +++ b/test/getDaysDiffBetweenDates/getDaysDiffBetweenDates.js @@ -1,3 +1,3 @@ const getDaysDiffBetweenDates = (dateInitial, dateFinal) => (dateFinal - dateInitial) / (1000 * 3600 * 24); -module.exports = getDaysDiffBetweenDates \ No newline at end of file +module.exports = getDaysDiffBetweenDates; \ No newline at end of file diff --git a/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js b/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js index 3a933cce1..3bdd3e09b 100644 --- a/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js +++ b/test/getMeridiemSuffixOfInteger/getMeridiemSuffixOfInteger.js @@ -2,4 +2,4 @@ const getMeridiemSuffixOfInteger = num => num === 0 || num === 24 ? 12 + 'am' : num === 12 ? 12 + 'pm' : num < 12 ? num % 12 + 'am' : num % 12 + 'pm'; -module.exports = getMeridiemSuffixOfInteger \ No newline at end of file +module.exports = getMeridiemSuffixOfInteger; \ No newline at end of file diff --git a/test/getScrollPosition/getScrollPosition.js b/test/getScrollPosition/getScrollPosition.js index a5fa12a18..5bedcc1fe 100644 --- a/test/getScrollPosition/getScrollPosition.js +++ b/test/getScrollPosition/getScrollPosition.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/getStyle/getStyle.js b/test/getStyle/getStyle.js index 6303f0993..9dae09683 100644 --- a/test/getStyle/getStyle.js +++ b/test/getStyle/getStyle.js @@ -1,2 +1,2 @@ const getStyle = (el, ruleName) => getComputedStyle(el)[ruleName]; -module.exports = getStyle \ No newline at end of file +module.exports = getStyle; \ No newline at end of file diff --git a/test/getType/getType.js b/test/getType/getType.js index 8c9f93a75..7827941c8 100644 --- a/test/getType/getType.js +++ b/test/getType/getType.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/getURLParameters/getURLParameters.js b/test/getURLParameters/getURLParameters.js index 88d2bd2a0..3fa194174 100644 --- a/test/getURLParameters/getURLParameters.js +++ b/test/getURLParameters/getURLParameters.js @@ -3,4 +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; \ No newline at end of file diff --git a/test/groupBy/groupBy.js b/test/groupBy/groupBy.js index 25bb573d9..b423945a4 100644 --- a/test/groupBy/groupBy.js +++ b/test/groupBy/groupBy.js @@ -3,4 +3,4 @@ arr.map(typeof fn === 'function' ? fn : val => val[fn]).reduce((acc, val, i) => acc[val] = (acc[val] || []).concat(arr[i]); return acc; }, {}); -module.exports = groupBy \ No newline at end of file +module.exports = groupBy; \ No newline at end of file diff --git a/test/hammingDistance/hammingDistance.js b/test/hammingDistance/hammingDistance.js index 356304ed4..161bd0b4f 100644 --- a/test/hammingDistance/hammingDistance.js +++ b/test/hammingDistance/hammingDistance.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/hasClass/hasClass.js b/test/hasClass/hasClass.js index c14590500..5e717540c 100644 --- a/test/hasClass/hasClass.js +++ b/test/hasClass/hasClass.js @@ -1,2 +1,2 @@ const hasClass = (el, className) => el.classList.contains(className); -module.exports = hasClass \ No newline at end of file +module.exports = hasClass; \ No newline at end of file diff --git a/test/hasFlags/hasFlags.js b/test/hasFlags/hasFlags.js index 9b8740692..aba5fbb3c 100644 --- a/test/hasFlags/hasFlags.js +++ b/test/hasFlags/hasFlags.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/hashBrowser/hashBrowser.js b/test/hashBrowser/hashBrowser.js index ea13e46a2..d7d70d6a7 100644 --- a/test/hashBrowser/hashBrowser.js +++ b/test/hashBrowser/hashBrowser.js @@ -6,4 +6,4 @@ for (let i = 0; i < view.byteLength; i += 4) 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; \ No newline at end of file diff --git a/test/hashNode/hashNode.js b/test/hashNode/hashNode.js index 9041dec36..cdc9af50e 100644 --- a/test/hashNode/hashNode.js +++ b/test/hashNode/hashNode.js @@ -12,4 +12,4 @@ crypto 0 ) ); -module.exports = hashNode \ No newline at end of file +module.exports = hashNode; \ No newline at end of file diff --git a/test/head/head.js b/test/head/head.js index bf2039dd0..709cd9a1d 100644 --- a/test/head/head.js +++ b/test/head/head.js @@ -1,2 +1,2 @@ const head = arr => arr[0]; -module.exports = head \ No newline at end of file +module.exports = head; \ No newline at end of file diff --git a/test/hexToRGB/hexToRGB.js b/test/hexToRGB/hexToRGB.js index 516050b8a..3963228eb 100644 --- a/test/hexToRGB/hexToRGB.js +++ b/test/hexToRGB/hexToRGB.js @@ -17,4 +17,4 @@ return ( ')' ); }; -module.exports = hexToRGB \ No newline at end of file +module.exports = hexToRGB; \ No newline at end of file diff --git a/test/hide/hide.js b/test/hide/hide.js index d16add1ce..d862ff1ef 100644 --- a/test/hide/hide.js +++ b/test/hide/hide.js @@ -1,2 +1,2 @@ const hide = (...el) => [...el].forEach(e => (e.style.display = 'none')); -module.exports = hide \ No newline at end of file +module.exports = hide; \ No newline at end of file diff --git a/test/howManyTimes/howManyTimes.js b/test/howManyTimes/howManyTimes.js index 51313c194..4beccb533 100644 --- a/test/howManyTimes/howManyTimes.js +++ b/test/howManyTimes/howManyTimes.js @@ -8,4 +8,4 @@ num = num / divisor; } return i; }; -module.exports = howManyTimes \ No newline at end of file +module.exports = howManyTimes; \ No newline at end of file diff --git a/test/httpDelete/httpDelete.js b/test/httpDelete/httpDelete.js index 0892b1819..eaf7f0562 100644 --- a/test/httpDelete/httpDelete.js +++ b/test/httpDelete/httpDelete.js @@ -5,4 +5,4 @@ request.onload = () => callback(request); request.onerror = () => err(request); request.send(); }; -module.exports = httpDelete \ No newline at end of file +module.exports = httpDelete; \ No newline at end of file diff --git a/test/httpGet/httpGet.js b/test/httpGet/httpGet.js index 413049085..8aa83ad7f 100644 --- a/test/httpGet/httpGet.js +++ b/test/httpGet/httpGet.js @@ -5,4 +5,4 @@ request.onload = () => callback(request.responseText); request.onerror = () => err(request); request.send(); }; -module.exports = httpGet \ No newline at end of file +module.exports = httpGet; \ No newline at end of file diff --git a/test/httpPost/httpPost.js b/test/httpPost/httpPost.js index e81331645..4ed125b6f 100644 --- a/test/httpPost/httpPost.js +++ b/test/httpPost/httpPost.js @@ -6,4 +6,4 @@ request.onload = () => callback(request.responseText); request.onerror = () => err(request); request.send(data); }; -module.exports = httpPost \ No newline at end of file +module.exports = httpPost; \ No newline at end of file diff --git a/test/httpPut/httpPut.js b/test/httpPut/httpPut.js index 71a0f79d9..daf0d9b62 100644 --- a/test/httpPut/httpPut.js +++ b/test/httpPut/httpPut.js @@ -6,4 +6,4 @@ request.onload = () => callback(request); request.onerror = () => err(request); request.send(data); }; -module.exports = httpPut \ No newline at end of file +module.exports = httpPut; \ No newline at end of file diff --git a/test/httpsRedirect/httpsRedirect.js b/test/httpsRedirect/httpsRedirect.js index c1e3d2c5a..42473e321 100644 --- a/test/httpsRedirect/httpsRedirect.js +++ b/test/httpsRedirect/httpsRedirect.js @@ -1,4 +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; \ No newline at end of file diff --git a/test/inRange/inRange.js b/test/inRange/inRange.js index 8eaa567cf..342b48e67 100644 --- a/test/inRange/inRange.js +++ b/test/inRange/inRange.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/indexOfAll/indexOfAll.js b/test/indexOfAll/indexOfAll.js index e99be6004..938cf47a6 100644 --- a/test/indexOfAll/indexOfAll.js +++ b/test/indexOfAll/indexOfAll.js @@ -3,4 +3,4 @@ const indices = []; arr.forEach((el, i) => el === val && indices.push(i)); return indices; }; -module.exports = indexOfAll \ No newline at end of file +module.exports = indexOfAll; \ No newline at end of file diff --git a/test/initial/initial.js b/test/initial/initial.js index c7ed44b13..0afd603ba 100644 --- a/test/initial/initial.js +++ b/test/initial/initial.js @@ -1,2 +1,2 @@ const initial = arr => arr.slice(0, -1); -module.exports = initial \ No newline at end of file +module.exports = initial; \ No newline at end of file diff --git a/test/initialize2DArray/initialize2DArray.js b/test/initialize2DArray/initialize2DArray.js index 00b71e6af..6fd51be70 100644 --- a/test/initialize2DArray/initialize2DArray.js +++ b/test/initialize2DArray/initialize2DArray.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/initializeArrayWithRange/initializeArrayWithRange.js b/test/initializeArrayWithRange/initializeArrayWithRange.js index 11132582e..f44302a2c 100644 --- a/test/initializeArrayWithRange/initializeArrayWithRange.js +++ b/test/initializeArrayWithRange/initializeArrayWithRange.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js b/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js index 478a73f2c..8d94244c6 100644 --- a/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js +++ b/test/initializeArrayWithRangeRight/initializeArrayWithRangeRight.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/initializeArrayWithValues/initializeArrayWithValues.js b/test/initializeArrayWithValues/initializeArrayWithValues.js index 32e55933a..b2705dfae 100644 --- a/test/initializeArrayWithValues/initializeArrayWithValues.js +++ b/test/initializeArrayWithValues/initializeArrayWithValues.js @@ -1,2 +1,2 @@ const initializeArrayWithValues = (n, val = 0) => Array(n).fill(val); -module.exports = initializeArrayWithValues \ No newline at end of file +module.exports = initializeArrayWithValues; \ No newline at end of file diff --git a/test/intersection/intersection.js b/test/intersection/intersection.js index c637ae88f..96fe9ec04 100644 --- a/test/intersection/intersection.js +++ b/test/intersection/intersection.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/intersectionBy/intersectionBy.js b/test/intersectionBy/intersectionBy.js index 78b3549c5..cb005e02d 100644 --- a/test/intersectionBy/intersectionBy.js +++ b/test/intersectionBy/intersectionBy.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/intersectionWith/intersectionWith.js b/test/intersectionWith/intersectionWith.js index 4d01fb1a9..e341faac5 100644 --- a/test/intersectionWith/intersectionWith.js +++ b/test/intersectionWith/intersectionWith.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/invertKeyValues/invertKeyValues.js b/test/invertKeyValues/invertKeyValues.js index 0b2b5f35b..59c52315a 100644 --- a/test/invertKeyValues/invertKeyValues.js +++ b/test/invertKeyValues/invertKeyValues.js @@ -5,4 +5,4 @@ acc[val] = acc[val] || []; acc[val].push(key); return acc; }, {}); -module.exports = invertKeyValues \ No newline at end of file +module.exports = invertKeyValues; \ No newline at end of file diff --git a/test/is/is.js b/test/is/is.js index 59035ba79..d87edcc74 100644 --- a/test/is/is.js +++ b/test/is/is.js @@ -1,2 +1,2 @@ const is = (type, val) => val instanceof type; -module.exports = is \ No newline at end of file +module.exports = is; \ No newline at end of file diff --git a/test/isAbsoluteURL/isAbsoluteURL.js b/test/isAbsoluteURL/isAbsoluteURL.js index 31accb72d..d6bbe1850 100644 --- a/test/isAbsoluteURL/isAbsoluteURL.js +++ b/test/isAbsoluteURL/isAbsoluteURL.js @@ -1,2 +1,2 @@ const isAbsoluteURL = str => /^[a-z][a-z0-9+.-]*:/.test(str); -module.exports = isAbsoluteURL \ No newline at end of file +module.exports = isAbsoluteURL; \ No newline at end of file diff --git a/test/isArmstrongNumber/isArmstrongNumber.js b/test/isArmstrongNumber/isArmstrongNumber.js index e71055d5d..f0ebb49c4 100644 --- a/test/isArmstrongNumber/isArmstrongNumber.js +++ b/test/isArmstrongNumber/isArmstrongNumber.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/isArrayLike/isArrayLike.js b/test/isArrayLike/isArrayLike.js index 4930908ec..ad76eacf4 100644 --- a/test/isArrayLike/isArrayLike.js +++ b/test/isArrayLike/isArrayLike.js @@ -5,4 +5,4 @@ return [...val], true; return false; } }; -module.exports = isArrayLike \ No newline at end of file +module.exports = isArrayLike; \ No newline at end of file diff --git a/test/isBoolean/isBoolean.js b/test/isBoolean/isBoolean.js index 1ae8e4c9c..6b210a95f 100644 --- a/test/isBoolean/isBoolean.js +++ b/test/isBoolean/isBoolean.js @@ -1,2 +1,2 @@ const isBoolean = val => typeof val === 'boolean'; -module.exports = isBoolean \ No newline at end of file +module.exports = isBoolean; \ No newline at end of file diff --git a/test/isDivisible/isDivisible.js b/test/isDivisible/isDivisible.js index a0f9d226d..31d5f22f9 100644 --- a/test/isDivisible/isDivisible.js +++ b/test/isDivisible/isDivisible.js @@ -1,2 +1,2 @@ const isDivisible = (dividend, divisor) => dividend % divisor === 0; -module.exports = isDivisible \ No newline at end of file +module.exports = isDivisible; \ No newline at end of file diff --git a/test/isEmpty/isEmpty.js b/test/isEmpty/isEmpty.js index 189bdf0fd..e8bf40b5d 100644 --- a/test/isEmpty/isEmpty.js +++ b/test/isEmpty/isEmpty.js @@ -1,2 +1,2 @@ const isEmpty = val => val == null || !(Object.keys(val) || val).length; -module.exports = isEmpty \ No newline at end of file +module.exports = isEmpty; \ No newline at end of file diff --git a/test/isEven/isEven.js b/test/isEven/isEven.js index 6807815ad..3eef5efcf 100644 --- a/test/isEven/isEven.js +++ b/test/isEven/isEven.js @@ -1,2 +1,2 @@ const isEven = num => num % 2 === 0; -module.exports = isEven \ No newline at end of file +module.exports = isEven; \ No newline at end of file diff --git a/test/isFunction/isFunction.js b/test/isFunction/isFunction.js index 2afc19f96..00aefcee2 100644 --- a/test/isFunction/isFunction.js +++ b/test/isFunction/isFunction.js @@ -1,2 +1,2 @@ const isFunction = val => typeof val === 'function'; -module.exports = isFunction \ No newline at end of file +module.exports = isFunction; \ No newline at end of file diff --git a/test/isLowerCase/isLowerCase.js b/test/isLowerCase/isLowerCase.js index b717cbc36..4b79d4557 100644 --- a/test/isLowerCase/isLowerCase.js +++ b/test/isLowerCase/isLowerCase.js @@ -1,2 +1,2 @@ const isLowerCase = str => str === str.toLowerCase(); -module.exports = isLowerCase \ No newline at end of file +module.exports = isLowerCase; \ No newline at end of file diff --git a/test/isNil/isNil.js b/test/isNil/isNil.js index aed4ee641..9ed182745 100644 --- a/test/isNil/isNil.js +++ b/test/isNil/isNil.js @@ -1,2 +1,2 @@ const isNil = val => val === undefined || val === null; -module.exports = isNil \ No newline at end of file +module.exports = isNil; \ No newline at end of file diff --git a/test/isNull/isNull.js b/test/isNull/isNull.js index a741e6a67..a69ef841c 100644 --- a/test/isNull/isNull.js +++ b/test/isNull/isNull.js @@ -1,2 +1,2 @@ const isNull = val => val === null; -module.exports = isNull \ No newline at end of file +module.exports = isNull; \ No newline at end of file diff --git a/test/isNumber/isNumber.js b/test/isNumber/isNumber.js index 89c9390bf..894017c4e 100644 --- a/test/isNumber/isNumber.js +++ b/test/isNumber/isNumber.js @@ -1,2 +1,2 @@ const isNumber = val => typeof val === 'number'; -module.exports = isNumber \ No newline at end of file +module.exports = isNumber; \ No newline at end of file diff --git a/test/isObject/isObject.js b/test/isObject/isObject.js index 087cedddd..d4bd9c13a 100644 --- a/test/isObject/isObject.js +++ b/test/isObject/isObject.js @@ -1,2 +1,2 @@ const isObject = obj => obj === Object(obj); -module.exports = isObject \ No newline at end of file +module.exports = isObject; \ No newline at end of file diff --git a/test/isObjectLike/isObjectLike.js b/test/isObjectLike/isObjectLike.js index c7088e7ad..03857716a 100644 --- a/test/isObjectLike/isObjectLike.js +++ b/test/isObjectLike/isObjectLike.js @@ -1,2 +1,2 @@ const isObjectLike = val => val !== null && typeof val === 'object'; -module.exports = isObjectLike \ No newline at end of file +module.exports = isObjectLike; \ No newline at end of file diff --git a/test/isPlainObject/isPlainObject.js b/test/isPlainObject/isPlainObject.js index 3e85aaf92..e773a5a33 100644 --- a/test/isPlainObject/isPlainObject.js +++ b/test/isPlainObject/isPlainObject.js @@ -1,2 +1,2 @@ const isPlainObject = val => !!val && typeof val === 'object' && val.constructor === Object; -module.exports = isPlainObject \ No newline at end of file +module.exports = isPlainObject; \ No newline at end of file diff --git a/test/isPrime/isPrime.js b/test/isPrime/isPrime.js index 3691324d3..8bcd42264 100644 --- a/test/isPrime/isPrime.js +++ b/test/isPrime/isPrime.js @@ -3,4 +3,4 @@ const boundary = Math.floor(Math.sqrt(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; \ No newline at end of file diff --git a/test/isPrimitive/isPrimitive.js b/test/isPrimitive/isPrimitive.js index 46c9a0568..6d09935ff 100644 --- a/test/isPrimitive/isPrimitive.js +++ b/test/isPrimitive/isPrimitive.js @@ -1,2 +1,2 @@ const isPrimitive = val => !['object', 'function'].includes(typeof val) || val === null; -module.exports = isPrimitive \ No newline at end of file +module.exports = isPrimitive; \ No newline at end of file diff --git a/test/isPromiseLike/isPromiseLike.js b/test/isPromiseLike/isPromiseLike.js index 736b6ced9..1720e8be2 100644 --- a/test/isPromiseLike/isPromiseLike.js +++ b/test/isPromiseLike/isPromiseLike.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/isSorted/isSorted.js b/test/isSorted/isSorted.js index c80495eb6..17b0b20fe 100644 --- a/test/isSorted/isSorted.js +++ b/test/isSorted/isSorted.js @@ -4,4 +4,4 @@ for (let [i, val] of arr.entries()) if (i === arr.length - 1) return direction; else if ((val - arr[i + 1]) * direction > 0) return 0; }; -module.exports = isSorted \ No newline at end of file +module.exports = isSorted; \ No newline at end of file diff --git a/test/isString/isString.js b/test/isString/isString.js index 2ca94c27d..2b64d1ba7 100644 --- a/test/isString/isString.js +++ b/test/isString/isString.js @@ -1,2 +1,2 @@ const isString = val => typeof val === 'string'; -module.exports = isString \ No newline at end of file +module.exports = isString; \ No newline at end of file diff --git a/test/isSymbol/isSymbol.js b/test/isSymbol/isSymbol.js index f9956e85b..23c191bda 100644 --- a/test/isSymbol/isSymbol.js +++ b/test/isSymbol/isSymbol.js @@ -1,2 +1,2 @@ const isSymbol = val => typeof val === 'symbol'; -module.exports = isSymbol \ No newline at end of file +module.exports = isSymbol; \ No newline at end of file diff --git a/test/isTravisCI/isTravisCI.js b/test/isTravisCI/isTravisCI.js index 9dcc7e8c3..ca00910b6 100644 --- a/test/isTravisCI/isTravisCI.js +++ b/test/isTravisCI/isTravisCI.js @@ -1,2 +1,2 @@ const isTravisCI = () => 'TRAVIS' in process.env && 'CI' in process.env; -module.exports = isTravisCI \ No newline at end of file +module.exports = isTravisCI; \ No newline at end of file diff --git a/test/isUndefined/isUndefined.js b/test/isUndefined/isUndefined.js index 7eb3f9b03..6991389b3 100644 --- a/test/isUndefined/isUndefined.js +++ b/test/isUndefined/isUndefined.js @@ -1,2 +1,2 @@ const isUndefined = val => val === undefined; -module.exports = isUndefined \ No newline at end of file +module.exports = isUndefined; \ No newline at end of file diff --git a/test/isUpperCase/isUpperCase.js b/test/isUpperCase/isUpperCase.js index 9f255968e..5005edc9d 100644 --- a/test/isUpperCase/isUpperCase.js +++ b/test/isUpperCase/isUpperCase.js @@ -1,2 +1,2 @@ const isUpperCase = str => str === str.toUpperCase(); -module.exports = isUpperCase \ No newline at end of file +module.exports = isUpperCase; \ No newline at end of file diff --git a/test/isValidJSON/isValidJSON.js b/test/isValidJSON/isValidJSON.js index b06d5538c..a06dd1ac6 100644 --- a/test/isValidJSON/isValidJSON.js +++ b/test/isValidJSON/isValidJSON.js @@ -6,4 +6,4 @@ return true; return false; } }; -module.exports = isValidJSON \ No newline at end of file +module.exports = isValidJSON; \ No newline at end of file diff --git a/test/join/join.js b/test/join/join.js index 7fc8e49f7..05eb45f90 100644 --- a/test/join/join.js +++ b/test/join/join.js @@ -6,4 +6,4 @@ i == arr.length - 2 : i == arr.length - 1 ? acc + val : acc + val + separator, '' ); -module.exports = join \ No newline at end of file +module.exports = join; \ No newline at end of file diff --git a/test/last/last.js b/test/last/last.js index 322078184..a97eb32c3 100644 --- a/test/last/last.js +++ b/test/last/last.js @@ -1,2 +1,2 @@ const last = arr => arr[arr.length - 1]; -module.exports = last \ No newline at end of file +module.exports = last; \ No newline at end of file diff --git a/test/lcm/lcm.js b/test/lcm/lcm.js index 871e8bdb9..11e4fee7b 100644 --- a/test/lcm/lcm.js +++ b/test/lcm/lcm.js @@ -3,4 +3,4 @@ const gcd = (x, y) => (!y ? x : gcd(y, x % y)); 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; \ No newline at end of file diff --git a/test/longestItem/longestItem.js b/test/longestItem/longestItem.js index 9d1e5c007..bb9ac4b92 100644 --- a/test/longestItem/longestItem.js +++ b/test/longestItem/longestItem.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/lowercaseKeys/lowercaseKeys.js b/test/lowercaseKeys/lowercaseKeys.js index 5fafc126c..3c5901fe4 100644 --- a/test/lowercaseKeys/lowercaseKeys.js +++ b/test/lowercaseKeys/lowercaseKeys.js @@ -3,4 +3,4 @@ Object.keys(obj).reduce((acc, key) => { acc[key.toLowerCase()] = obj[key]; return acc; }, {}); -module.exports = lowercaseKeys \ No newline at end of file +module.exports = lowercaseKeys; \ No newline at end of file diff --git a/test/luhnCheck/luhnCheck.js b/test/luhnCheck/luhnCheck.js index b8742e21d..bdd2595d6 100644 --- a/test/luhnCheck/luhnCheck.js +++ b/test/luhnCheck/luhnCheck.js @@ -8,4 +8,4 @@ let sum = arr.reduce((acc, val, i) => (i % 2 !== 0 ? acc + val : acc + (val * 2) sum += lastDigit; return sum % 10 === 0; }; -module.exports = luhnCheck \ No newline at end of file +module.exports = luhnCheck; \ No newline at end of file diff --git a/test/mapKeys/mapKeys.js b/test/mapKeys/mapKeys.js index a1ca80202..524a636c3 100644 --- a/test/mapKeys/mapKeys.js +++ b/test/mapKeys/mapKeys.js @@ -3,4 +3,4 @@ Object.keys(obj).reduce((acc, k) => { acc[fn(obj[k], k, obj)] = obj[k]; return acc; }, {}); -module.exports = mapKeys \ No newline at end of file +module.exports = mapKeys; \ No newline at end of file diff --git a/test/mapObject/mapObject.js b/test/mapObject/mapObject.js index 5bb4603c9..509f08b1c 100644 --- a/test/mapObject/mapObject.js +++ b/test/mapObject/mapObject.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/mapValues/mapValues.js b/test/mapValues/mapValues.js index 89f62920a..abec7632d 100644 --- a/test/mapValues/mapValues.js +++ b/test/mapValues/mapValues.js @@ -3,4 +3,4 @@ Object.keys(obj).reduce((acc, k) => { acc[k] = fn(obj[k], k, obj); return acc; }, {}); -module.exports = mapValues \ No newline at end of file +module.exports = mapValues; \ No newline at end of file diff --git a/test/mask/mask.js b/test/mask/mask.js index 8f725dea7..2c79c7d50 100644 --- a/test/mask/mask.js +++ b/test/mask/mask.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/matches/matches.js b/test/matches/matches.js index 4c774e710..135df143d 100644 --- a/test/matches/matches.js +++ b/test/matches/matches.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/matchesWith/matchesWith.js b/test/matchesWith/matchesWith.js index 0b9ae8d96..0daa71da7 100644 --- a/test/matchesWith/matchesWith.js +++ b/test/matchesWith/matchesWith.js @@ -5,4 +5,4 @@ obj.hasOwnProperty(key) && 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; \ No newline at end of file diff --git a/test/maxBy/maxBy.js b/test/maxBy/maxBy.js index 68292b944..c4204d79f 100644 --- a/test/maxBy/maxBy.js +++ b/test/maxBy/maxBy.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/maxN/maxN.js b/test/maxN/maxN.js index 2883c00cc..75046237a 100644 --- a/test/maxN/maxN.js +++ b/test/maxN/maxN.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/median/median.js b/test/median/median.js index 63b0b2bdc..643d20f4a 100644 --- a/test/median/median.js +++ b/test/median/median.js @@ -3,4 +3,4 @@ const mid = Math.floor(arr.length / 2), 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; \ No newline at end of file diff --git a/test/memoize/memoize.js b/test/memoize/memoize.js index f95372c10..ab6c99f1e 100644 --- a/test/memoize/memoize.js +++ b/test/memoize/memoize.js @@ -6,4 +6,4 @@ return cache.has(val) ? cache.get(val) : cache.set(val, fn.call(this, val)) && c cached.cache = cache; return cached; }; -module.exports = memoize \ No newline at end of file +module.exports = memoize; \ No newline at end of file diff --git a/test/merge/merge.js b/test/merge/merge.js index 5a816f96f..cb441008e 100644 --- a/test/merge/merge.js +++ b/test/merge/merge.js @@ -7,4 +7,4 @@ return acc; }, {}), {} ); -module.exports = merge \ No newline at end of file +module.exports = merge; \ No newline at end of file diff --git a/test/minBy/minBy.js b/test/minBy/minBy.js index c5a3505dd..82f5005b0 100644 --- a/test/minBy/minBy.js +++ b/test/minBy/minBy.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/minN/minN.js b/test/minN/minN.js index 1a6974e9e..96a78fc3b 100644 --- a/test/minN/minN.js +++ b/test/minN/minN.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/negate/negate.js b/test/negate/negate.js index 228a224f0..b3dfb79e6 100644 --- a/test/negate/negate.js +++ b/test/negate/negate.js @@ -1,2 +1,2 @@ const negate = func => (...args) => !func(...args); -module.exports = negate \ No newline at end of file +module.exports = negate; \ No newline at end of file diff --git a/test/nthArg/nthArg.js b/test/nthArg/nthArg.js index a43475e8a..dc08dad6b 100644 --- a/test/nthArg/nthArg.js +++ b/test/nthArg/nthArg.js @@ -1,2 +1,2 @@ const nthArg = n => (...args) => args.slice(n)[0]; -module.exports = nthArg \ No newline at end of file +module.exports = nthArg; \ No newline at end of file diff --git a/test/nthElement/nthElement.js b/test/nthElement/nthElement.js index 2e88831c1..76765b528 100644 --- a/test/nthElement/nthElement.js +++ b/test/nthElement/nthElement.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/objectFromPairs/objectFromPairs.js b/test/objectFromPairs/objectFromPairs.js index a51048410..fa1f3fe47 100644 --- a/test/objectFromPairs/objectFromPairs.js +++ b/test/objectFromPairs/objectFromPairs.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/objectToPairs/objectToPairs.js b/test/objectToPairs/objectToPairs.js index 1f09bf226..6fbfbab75 100644 --- a/test/objectToPairs/objectToPairs.js +++ b/test/objectToPairs/objectToPairs.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/observeMutations/observeMutations.js b/test/observeMutations/observeMutations.js index ab05e3fef..aabe9b998 100644 --- a/test/observeMutations/observeMutations.js +++ b/test/observeMutations/observeMutations.js @@ -16,4 +16,4 @@ options ); return observer; }; -module.exports = observeMutations \ No newline at end of file +module.exports = observeMutations; \ No newline at end of file diff --git a/test/off/off.js b/test/off/off.js index fb19a0434..ab9e91695 100644 --- a/test/off/off.js +++ b/test/off/off.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/omit/omit.js b/test/omit/omit.js index 3963ed455..ffdbcbd82 100644 --- a/test/omit/omit.js +++ b/test/omit/omit.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/omitBy/omitBy.js b/test/omitBy/omitBy.js index 3beabf15d..5937a3d8a 100644 --- a/test/omitBy/omitBy.js +++ b/test/omitBy/omitBy.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/on/on.js b/test/on/on.js index a8f53f65c..36b943813 100644 --- a/test/on/on.js +++ b/test/on/on.js @@ -3,4 +3,4 @@ const delegatorFn = e => e.target.matches(opts.target) && fn.call(e.target, e); 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; \ No newline at end of file diff --git a/test/onUserInputChange/onUserInputChange.js b/test/onUserInputChange/onUserInputChange.js index 1850c9dec..5cb956112 100644 --- a/test/onUserInputChange/onUserInputChange.js +++ b/test/onUserInputChange/onUserInputChange.js @@ -12,4 +12,4 @@ if (type === 'touch') return; (type = 'touch'), callback(type), document.addEventListener('mousemove', mousemoveHandler); }); }; -module.exports = onUserInputChange \ No newline at end of file +module.exports = onUserInputChange; \ No newline at end of file diff --git a/test/once/once.js b/test/once/once.js index 35f512e35..d37dcdc87 100644 --- a/test/once/once.js +++ b/test/once/once.js @@ -6,4 +6,4 @@ called = true; return fn.apply(this, args); }; }; -module.exports = once \ No newline at end of file +module.exports = once; \ No newline at end of file diff --git a/test/orderBy/orderBy.js b/test/orderBy/orderBy.js index ae7f113c7..c98d2e74c 100644 --- a/test/orderBy/orderBy.js +++ b/test/orderBy/orderBy.js @@ -8,4 +8,4 @@ acc = p1 > p2 ? 1 : p1 < p2 ? -1 : 0; return acc; }, 0) ); -module.exports = orderBy \ No newline at end of file +module.exports = orderBy; \ No newline at end of file diff --git a/test/over/over.js b/test/over/over.js index 5a972c2f7..56ed8046e 100644 --- a/test/over/over.js +++ b/test/over/over.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/overArgs/overArgs.js b/test/overArgs/overArgs.js index 41250eb89..10af7fd54 100644 --- a/test/overArgs/overArgs.js +++ b/test/overArgs/overArgs.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/palindrome/palindrome.js b/test/palindrome/palindrome.js index 1b17b4023..f47eaadf8 100644 --- a/test/palindrome/palindrome.js +++ b/test/palindrome/palindrome.js @@ -8,4 +8,4 @@ s .join('') ); }; -module.exports = palindrome \ No newline at end of file +module.exports = palindrome; \ No newline at end of file diff --git a/test/parseCookie/parseCookie.js b/test/parseCookie/parseCookie.js index 63656448c..9e620bfe0 100644 --- a/test/parseCookie/parseCookie.js +++ b/test/parseCookie/parseCookie.js @@ -6,4 +6,4 @@ str acc[decodeURIComponent(v[0].trim())] = decodeURIComponent(v[1].trim()); return acc; }, {}); -module.exports = parseCookie \ No newline at end of file +module.exports = parseCookie; \ No newline at end of file diff --git a/test/partial/partial.js b/test/partial/partial.js index c6e9b012a..202699ee7 100644 --- a/test/partial/partial.js +++ b/test/partial/partial.js @@ -1,2 +1,2 @@ const partial = (fn, ...partials) => (...args) => fn(...partials, ...args); -module.exports = partial \ No newline at end of file +module.exports = partial; \ No newline at end of file diff --git a/test/partialRight/partialRight.js b/test/partialRight/partialRight.js index 20b89052d..d58d2f8ab 100644 --- a/test/partialRight/partialRight.js +++ b/test/partialRight/partialRight.js @@ -1,2 +1,2 @@ const partialRight = (fn, ...partials) => (...args) => fn(...args, ...partials); -module.exports = partialRight \ No newline at end of file +module.exports = partialRight; \ No newline at end of file diff --git a/test/partition/partition.js b/test/partition/partition.js index 3e03d4e52..6df2c8dc0 100644 --- a/test/partition/partition.js +++ b/test/partition/partition.js @@ -6,4 +6,4 @@ return acc; }, [[], []] ); -module.exports = partition \ No newline at end of file +module.exports = partition; \ No newline at end of file diff --git a/test/percentile/percentile.js b/test/percentile/percentile.js index 45e69c0a6..2cb1f2223 100644 --- a/test/percentile/percentile.js +++ b/test/percentile/percentile.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/pick/pick.js b/test/pick/pick.js index 649a25a9b..28e8caac7 100644 --- a/test/pick/pick.js +++ b/test/pick/pick.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/pickBy/pickBy.js b/test/pickBy/pickBy.js index f8671e0bb..fa2f4701f 100644 --- a/test/pickBy/pickBy.js +++ b/test/pickBy/pickBy.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/pipeAsyncFunctions/pipeAsyncFunctions.js b/test/pipeAsyncFunctions/pipeAsyncFunctions.js index 09091affc..2057bfbd8 100644 --- a/test/pipeAsyncFunctions/pipeAsyncFunctions.js +++ b/test/pipeAsyncFunctions/pipeAsyncFunctions.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/pipeFunctions/pipeFunctions.js b/test/pipeFunctions/pipeFunctions.js index 46b2ec419..730dcd382 100644 --- a/test/pipeFunctions/pipeFunctions.js +++ b/test/pipeFunctions/pipeFunctions.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/pluralize/pluralize.js b/test/pluralize/pluralize.js index 7e1c477c9..53277ee84 100644 --- a/test/pluralize/pluralize.js +++ b/test/pluralize/pluralize.js @@ -4,4 +4,4 @@ const _pluralize = (num, 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; \ No newline at end of file diff --git a/test/powerset/powerset.js b/test/powerset/powerset.js index 0804d4c0b..87bfd2f95 100644 --- a/test/powerset/powerset.js +++ b/test/powerset/powerset.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/prettyBytes/prettyBytes.js b/test/prettyBytes/prettyBytes.js index 110b723ce..0841950dd 100644 --- a/test/prettyBytes/prettyBytes.js +++ b/test/prettyBytes/prettyBytes.js @@ -5,4 +5,4 @@ const exponent = Math.min(Math.floor(Math.log10(num < 0 ? -num : num) / 3), UNIT 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; \ No newline at end of file diff --git a/test/primes/primes.js b/test/primes/primes.js index a7a67a86a..0c66ca826 100644 --- a/test/primes/primes.js +++ b/test/primes/primes.js @@ -5,4 +5,4 @@ numsTillSqroot = Array.from({ length: sqroot - 1 }).map((x, i) => i + 2); 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; \ No newline at end of file diff --git a/test/promisify/promisify.js b/test/promisify/promisify.js index c41f99772..e5f4a57b8 100644 --- a/test/promisify/promisify.js +++ b/test/promisify/promisify.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/pull/pull.js b/test/pull/pull.js index 3b526fd6a..b9b21eccb 100644 --- a/test/pull/pull.js +++ b/test/pull/pull.js @@ -4,4 +4,4 @@ let pulled = arr.filter((v, i) => !argState.includes(v)); arr.length = 0; pulled.forEach(v => arr.push(v)); }; -module.exports = pull \ No newline at end of file +module.exports = pull; \ No newline at end of file diff --git a/test/pullAtIndex/pullAtIndex.js b/test/pullAtIndex/pullAtIndex.js index f85941a9b..c3f3e6c2e 100644 --- a/test/pullAtIndex/pullAtIndex.js +++ b/test/pullAtIndex/pullAtIndex.js @@ -7,4 +7,4 @@ arr.length = 0; pulled.forEach(v => arr.push(v)); return removed; }; -module.exports = pullAtIndex \ No newline at end of file +module.exports = pullAtIndex; \ No newline at end of file diff --git a/test/pullAtValue/pullAtValue.js b/test/pullAtValue/pullAtValue.js index 5750b4b82..93def969d 100644 --- a/test/pullAtValue/pullAtValue.js +++ b/test/pullAtValue/pullAtValue.js @@ -6,4 +6,4 @@ arr.length = 0; mutateTo.forEach(v => arr.push(v)); return removed; }; -module.exports = pullAtValue \ No newline at end of file +module.exports = pullAtValue; \ No newline at end of file diff --git a/test/pullBy/pullBy.js b/test/pullBy/pullBy.js index 9f7d1f6dc..76728052d 100644 --- a/test/pullBy/pullBy.js +++ b/test/pullBy/pullBy.js @@ -7,4 +7,4 @@ let pulled = arr.filter((v, i) => !argState.includes(fn(v))); arr.length = 0; pulled.forEach(v => arr.push(v)); }; -module.exports = pullBy \ No newline at end of file +module.exports = pullBy; \ No newline at end of file diff --git a/test/quickSort/quickSort.js b/test/quickSort/quickSort.js index 3b17b2f89..b5bb4cf86 100644 --- a/test/quickSort/quickSort.js +++ b/test/quickSort/quickSort.js @@ -6,4 +6,4 @@ isNaN(n) n, ...quickSort(nums.filter(v => (!desc ? v > n : v <= n)), desc) ]; -module.exports = quickSort \ No newline at end of file +module.exports = quickSort; \ No newline at end of file diff --git a/test/randomHexColorCode/randomHexColorCode.js b/test/randomHexColorCode/randomHexColorCode.js index e06722739..e2ae04303 100644 --- a/test/randomHexColorCode/randomHexColorCode.js +++ b/test/randomHexColorCode/randomHexColorCode.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/randomIntArrayInRange/randomIntArrayInRange.js b/test/randomIntArrayInRange/randomIntArrayInRange.js index 8136f6f4c..6816c654b 100644 --- a/test/randomIntArrayInRange/randomIntArrayInRange.js +++ b/test/randomIntArrayInRange/randomIntArrayInRange.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/randomIntegerInRange/randomIntegerInRange.js b/test/randomIntegerInRange/randomIntegerInRange.js index 2031f2c76..465beef48 100644 --- a/test/randomIntegerInRange/randomIntegerInRange.js +++ b/test/randomIntegerInRange/randomIntegerInRange.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/randomNumberInRange/randomNumberInRange.js b/test/randomNumberInRange/randomNumberInRange.js index db50d7486..bac57eef7 100644 --- a/test/randomNumberInRange/randomNumberInRange.js +++ b/test/randomNumberInRange/randomNumberInRange.js @@ -1,2 +1,2 @@ const randomNumberInRange = (min, max) => Math.random() * (max - min) + min; -module.exports = randomNumberInRange \ No newline at end of file +module.exports = randomNumberInRange; \ No newline at end of file diff --git a/test/readFileLines/readFileLines.js b/test/readFileLines/readFileLines.js index fc286c8eb..75a0af232 100644 --- a/test/readFileLines/readFileLines.js +++ b/test/readFileLines/readFileLines.js @@ -4,4 +4,4 @@ fs .readFileSync(filename) .toString('UTF8') .split('\n'); -module.exports = readFileLines \ No newline at end of file +module.exports = readFileLines; \ No newline at end of file diff --git a/test/rearg/rearg.js b/test/rearg/rearg.js index b2f97244c..d8353d7c0 100644 --- a/test/rearg/rearg.js +++ b/test/rearg/rearg.js @@ -5,4 +5,4 @@ fn( Array.from({ length: indexes.length }) ) ); -module.exports = rearg \ No newline at end of file +module.exports = rearg; \ No newline at end of file diff --git a/test/redirect/redirect.js b/test/redirect/redirect.js index 7959a5f01..6b3c1821c 100644 --- a/test/redirect/redirect.js +++ b/test/redirect/redirect.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/reduceSuccessive/reduceSuccessive.js b/test/reduceSuccessive/reduceSuccessive.js index 67a9d03b3..8c2d8ccd3 100644 --- a/test/reduceSuccessive/reduceSuccessive.js +++ b/test/reduceSuccessive/reduceSuccessive.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/reduceWhich/reduceWhich.js b/test/reduceWhich/reduceWhich.js index 4558ef6b7..5a2d4c7af 100644 --- a/test/reduceWhich/reduceWhich.js +++ b/test/reduceWhich/reduceWhich.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/reducedFilter/reducedFilter.js b/test/reducedFilter/reducedFilter.js index 6e4662f37..8b5a361bd 100644 --- a/test/reducedFilter/reducedFilter.js +++ b/test/reducedFilter/reducedFilter.js @@ -5,4 +5,4 @@ acc[key] = el[key]; return acc; }, {}) ); -module.exports = reducedFilter \ No newline at end of file +module.exports = reducedFilter; \ No newline at end of file diff --git a/test/remove/remove.js b/test/remove/remove.js index 9132f4290..c4f4ec1f3 100644 --- a/test/remove/remove.js +++ b/test/remove/remove.js @@ -5,4 +5,4 @@ arr.splice(arr.indexOf(val), 1); return acc.concat(val); }, []) : []; -module.exports = remove \ No newline at end of file +module.exports = remove; \ No newline at end of file diff --git a/test/removeNonASCII/removeNonASCII.js b/test/removeNonASCII/removeNonASCII.js index 5d6d25acd..ea6f6e31f 100644 --- a/test/removeNonASCII/removeNonASCII.js +++ b/test/removeNonASCII/removeNonASCII.js @@ -1,2 +1,2 @@ const removeNonASCII = str => str.replace(/[^\x20-\x7E]/g, ''); -module.exports = removeNonASCII \ No newline at end of file +module.exports = removeNonASCII; \ No newline at end of file diff --git a/test/removeVowels/removeVowels.js b/test/removeVowels/removeVowels.js index 8f9fd62bf..53a1638a4 100644 --- a/test/removeVowels/removeVowels.js +++ b/test/removeVowels/removeVowels.js @@ -1,2 +1,2 @@ const removeVowels = (str, repl = '') => str.replace(/[aeiou]/gi,repl); -module.exports = removeVowels \ No newline at end of file +module.exports = removeVowels; \ No newline at end of file diff --git a/test/reverseString/reverseString.js b/test/reverseString/reverseString.js index 1b98ef6c1..fc40f8c4d 100644 --- a/test/reverseString/reverseString.js +++ b/test/reverseString/reverseString.js @@ -1,2 +1,2 @@ const reverseString = str => [...str].reverse().join(''); -module.exports = reverseString \ No newline at end of file +module.exports = reverseString; \ No newline at end of file diff --git a/test/round/round.js b/test/round/round.js index 2f86eb4d9..c5c59560d 100644 --- a/test/round/round.js +++ b/test/round/round.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/runAsync/runAsync.js b/test/runAsync/runAsync.js index c5cc4c1a3..f027a973d 100644 --- a/test/runAsync/runAsync.js +++ b/test/runAsync/runAsync.js @@ -14,4 +14,4 @@ rej(err), worker.terminate(); }; }); }; -module.exports = runAsync \ No newline at end of file +module.exports = runAsync; \ No newline at end of file diff --git a/test/runPromisesInSeries/runPromisesInSeries.js b/test/runPromisesInSeries/runPromisesInSeries.js index 8ce9536f2..20184876f 100644 --- a/test/runPromisesInSeries/runPromisesInSeries.js +++ b/test/runPromisesInSeries/runPromisesInSeries.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/sample/sample.js b/test/sample/sample.js index b230d5b89..1bf8aa450 100644 --- a/test/sample/sample.js +++ b/test/sample/sample.js @@ -1,2 +1,2 @@ const sample = arr => arr[Math.floor(Math.random() * arr.length)]; -module.exports = sample \ No newline at end of file +module.exports = sample; \ No newline at end of file diff --git a/test/sampleSize/sampleSize.js b/test/sampleSize/sampleSize.js index dba6acd68..3696ccf5d 100644 --- a/test/sampleSize/sampleSize.js +++ b/test/sampleSize/sampleSize.js @@ -6,4 +6,4 @@ const i = Math.floor(Math.random() * m--); } return arr.slice(0, n); }; -module.exports = sampleSize \ No newline at end of file +module.exports = sampleSize; \ No newline at end of file diff --git a/test/scrollToTop/scrollToTop.js b/test/scrollToTop/scrollToTop.js index b99155274..50eac27e7 100644 --- a/test/scrollToTop/scrollToTop.js +++ b/test/scrollToTop/scrollToTop.js @@ -5,4 +5,4 @@ window.requestAnimationFrame(scrollToTop); window.scrollTo(0, c - c / 8); } }; -module.exports = scrollToTop \ No newline at end of file +module.exports = scrollToTop; \ No newline at end of file diff --git a/test/sdbm/sdbm.js b/test/sdbm/sdbm.js index 43f750617..97eb568ec 100644 --- a/test/sdbm/sdbm.js +++ b/test/sdbm/sdbm.js @@ -6,4 +6,4 @@ return arr.reduce( 0 ); }; -module.exports = sdbm \ No newline at end of file +module.exports = sdbm; \ No newline at end of file diff --git a/test/serializeCookie/serializeCookie.js b/test/serializeCookie/serializeCookie.js index 62c174699..b440d8e57 100644 --- a/test/serializeCookie/serializeCookie.js +++ b/test/serializeCookie/serializeCookie.js @@ -1,2 +1,2 @@ const serializeCookie = (name, val) => `${encodeURIComponent(name)}=${encodeURIComponent(val)}`; -module.exports = serializeCookie \ No newline at end of file +module.exports = serializeCookie; \ No newline at end of file diff --git a/test/setStyle/setStyle.js b/test/setStyle/setStyle.js index 49574a009..1c6e61f53 100644 --- a/test/setStyle/setStyle.js +++ b/test/setStyle/setStyle.js @@ -1,2 +1,2 @@ const setStyle = (el, ruleName, val) => (el.style[ruleName] = val); -module.exports = setStyle \ No newline at end of file +module.exports = setStyle; \ No newline at end of file diff --git a/test/shallowClone/shallowClone.js b/test/shallowClone/shallowClone.js index a502e8a17..71313e168 100644 --- a/test/shallowClone/shallowClone.js +++ b/test/shallowClone/shallowClone.js @@ -1,2 +1,2 @@ const shallowClone = obj => Object.assign({}, obj); -module.exports = shallowClone \ No newline at end of file +module.exports = shallowClone; \ No newline at end of file diff --git a/test/show/show.js b/test/show/show.js index f48b74226..1b4cd9632 100644 --- a/test/show/show.js +++ b/test/show/show.js @@ -1,2 +1,2 @@ const show = (...el) => [...el].forEach(e => (e.style.display = '')); -module.exports = show \ No newline at end of file +module.exports = show; \ No newline at end of file diff --git a/test/shuffle/shuffle.js b/test/shuffle/shuffle.js index 6f17df997..2c0c103e5 100644 --- a/test/shuffle/shuffle.js +++ b/test/shuffle/shuffle.js @@ -6,4 +6,4 @@ const i = Math.floor(Math.random() * m--); } return arr; }; -module.exports = shuffle \ No newline at end of file +module.exports = shuffle; \ No newline at end of file diff --git a/test/similarity/similarity.js b/test/similarity/similarity.js index e1c53bfa6..c3c853a61 100644 --- a/test/similarity/similarity.js +++ b/test/similarity/similarity.js @@ -1,2 +1,2 @@ const similarity = (arr, values) => arr.filter(v => values.includes(v)); -module.exports = similarity \ No newline at end of file +module.exports = similarity; \ No newline at end of file diff --git a/test/size/size.js b/test/size/size.js index 55bb37d0d..90c0bd355 100644 --- a/test/size/size.js +++ b/test/size/size.js @@ -4,4 +4,4 @@ Array.isArray(val) : val && typeof val === 'object' ? val.size || val.length || Object.keys(val).length : typeof val === 'string' ? new Blob([val]).size : 0; -module.exports = size \ No newline at end of file +module.exports = size; \ No newline at end of file diff --git a/test/sleep/sleep.js b/test/sleep/sleep.js index ac53ad307..42f6a0e0a 100644 --- a/test/sleep/sleep.js +++ b/test/sleep/sleep.js @@ -1,2 +1,2 @@ const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); -module.exports = sleep \ No newline at end of file +module.exports = sleep; \ No newline at end of file diff --git a/test/solveRPN/solveRPN.js b/test/solveRPN/solveRPN.js index 57e7ecc41..ac84c4a3d 100644 --- a/test/solveRPN/solveRPN.js +++ b/test/solveRPN/solveRPN.js @@ -26,4 +26,4 @@ throw `${symbol} is not a recognized symbol`; 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; \ No newline at end of file diff --git a/test/sortCharactersInString/sortCharactersInString.js b/test/sortCharactersInString/sortCharactersInString.js index b8bcbef82..f22f27613 100644 --- a/test/sortCharactersInString/sortCharactersInString.js +++ b/test/sortCharactersInString/sortCharactersInString.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/sortedIndex/sortedIndex.js b/test/sortedIndex/sortedIndex.js index c181d53ca..7d6f7fcdd 100644 --- a/test/sortedIndex/sortedIndex.js +++ b/test/sortedIndex/sortedIndex.js @@ -3,4 +3,4 @@ const isDescending = arr[0] > arr[arr.length - 1]; 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; \ No newline at end of file diff --git a/test/sortedIndexBy/sortedIndexBy.js b/test/sortedIndexBy/sortedIndexBy.js index 2d30a90e8..7602c8bca 100644 --- a/test/sortedIndexBy/sortedIndexBy.js +++ b/test/sortedIndexBy/sortedIndexBy.js @@ -4,4 +4,4 @@ const val = fn(n); 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; \ No newline at end of file diff --git a/test/sortedLastIndex/sortedLastIndex.js b/test/sortedLastIndex/sortedLastIndex.js index 0da2ba411..89dbcd636 100644 --- a/test/sortedLastIndex/sortedLastIndex.js +++ b/test/sortedLastIndex/sortedLastIndex.js @@ -6,4 +6,4 @@ const index = arr .findIndex(el => (isDescending ? n <= el[1] : n >= el[1])); return index === -1 ? 0 : arr.length - index - 1; }; -module.exports = sortedLastIndex \ No newline at end of file +module.exports = sortedLastIndex; \ No newline at end of file diff --git a/test/sortedLastIndexBy/sortedLastIndexBy.js b/test/sortedLastIndexBy/sortedLastIndexBy.js index b638df20f..2f02555c2 100644 --- a/test/sortedLastIndexBy/sortedLastIndexBy.js +++ b/test/sortedLastIndexBy/sortedLastIndexBy.js @@ -7,4 +7,4 @@ const index = arr .findIndex(el => (isDescending ? val <= el[1] : val >= el[1])); return index === -1 ? 0 : arr.length - index; }; -module.exports = sortedLastIndexBy \ No newline at end of file +module.exports = sortedLastIndexBy; \ No newline at end of file diff --git a/test/speechSynthesis/speechSynthesis.js b/test/speechSynthesis/speechSynthesis.js index 633cb5e41..a194b30fe 100644 --- a/test/speechSynthesis/speechSynthesis.js +++ b/test/speechSynthesis/speechSynthesis.js @@ -3,4 +3,4 @@ const msg = new SpeechSynthesisUtterance(message); msg.voice = window.speechSynthesis.getVoices()[0]; window.speechSynthesis.speak(msg); }; -module.exports = speechSynthesis \ No newline at end of file +module.exports = speechSynthesis; \ No newline at end of file diff --git a/test/splitLines/splitLines.js b/test/splitLines/splitLines.js index 2d675dbc6..8a10116b9 100644 --- a/test/splitLines/splitLines.js +++ b/test/splitLines/splitLines.js @@ -1,2 +1,2 @@ const splitLines = str => str.split(/\r?\n/); -module.exports = splitLines \ No newline at end of file +module.exports = splitLines; \ No newline at end of file diff --git a/test/spreadOver/spreadOver.js b/test/spreadOver/spreadOver.js index 5f2274140..2a5ca63dd 100644 --- a/test/spreadOver/spreadOver.js +++ b/test/spreadOver/spreadOver.js @@ -1,2 +1,2 @@ const spreadOver = fn => argsArr => fn(...argsArr); -module.exports = spreadOver \ No newline at end of file +module.exports = spreadOver; \ No newline at end of file diff --git a/test/standardDeviation/standardDeviation.js b/test/standardDeviation/standardDeviation.js index 249125b88..fa74f2ad1 100644 --- a/test/standardDeviation/standardDeviation.js +++ b/test/standardDeviation/standardDeviation.js @@ -5,4 +5,4 @@ arr.reduce((acc, val) => acc.concat((val - mean) ** 2), []).reduce((acc, val) => (arr.length - (usePopulation ? 0 : 1)) ); }; -module.exports = standardDeviation \ No newline at end of file +module.exports = standardDeviation; \ No newline at end of file diff --git a/test/stripHTMLTags/stripHTMLTags.js b/test/stripHTMLTags/stripHTMLTags.js index 7c14b0b8a..3ecfe2fbd 100644 --- a/test/stripHTMLTags/stripHTMLTags.js +++ b/test/stripHTMLTags/stripHTMLTags.js @@ -1,2 +1,2 @@ const stripHTMLTags = str => str.replace(/<[^>]*>/g, ''); -module.exports = stripHTMLTags \ No newline at end of file +module.exports = stripHTMLTags; \ No newline at end of file diff --git a/test/sum/sum.js b/test/sum/sum.js index 27ba3fe25..84bbe72a9 100644 --- a/test/sum/sum.js +++ b/test/sum/sum.js @@ -1,2 +1,2 @@ const sum = (...arr) => [...arr].reduce((acc, val) => acc + val, 0); -module.exports = sum \ No newline at end of file +module.exports = sum; \ No newline at end of file diff --git a/test/sumBy/sumBy.js b/test/sumBy/sumBy.js index c78200a47..cf5253440 100644 --- a/test/sumBy/sumBy.js +++ b/test/sumBy/sumBy.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/sumPower/sumPower.js b/test/sumPower/sumPower.js index a739bad0c..5b1ddbfd0 100644 --- a/test/sumPower/sumPower.js +++ b/test/sumPower/sumPower.js @@ -3,4 +3,4 @@ Array(end + 1 - start) .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; \ No newline at end of file diff --git a/test/symmetricDifference/symmetricDifference.js b/test/symmetricDifference/symmetricDifference.js index 5f2f4fe9a..bbef282e2 100644 --- a/test/symmetricDifference/symmetricDifference.js +++ b/test/symmetricDifference/symmetricDifference.js @@ -3,4 +3,4 @@ const sA = new Set(a), 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; \ No newline at end of file diff --git a/test/symmetricDifferenceBy/symmetricDifferenceBy.js b/test/symmetricDifferenceBy/symmetricDifferenceBy.js index 5ffe62578..bd3c406e1 100644 --- a/test/symmetricDifferenceBy/symmetricDifferenceBy.js +++ b/test/symmetricDifferenceBy/symmetricDifferenceBy.js @@ -3,4 +3,4 @@ const sA = new Set(a.map(v => fn(v))), 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; \ No newline at end of file diff --git a/test/symmetricDifferenceWith/symmetricDifferenceWith.js b/test/symmetricDifferenceWith/symmetricDifferenceWith.js index 0f58ea86a..13a12660b 100644 --- a/test/symmetricDifferenceWith/symmetricDifferenceWith.js +++ b/test/symmetricDifferenceWith/symmetricDifferenceWith.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/tail/tail.js b/test/tail/tail.js index a13eb8836..98b888534 100644 --- a/test/tail/tail.js +++ b/test/tail/tail.js @@ -1,2 +1,2 @@ const tail = arr => (arr.length > 1 ? arr.slice(1) : arr); -module.exports = tail \ No newline at end of file +module.exports = tail; \ No newline at end of file diff --git a/test/take/take.js b/test/take/take.js index 4bb5d6a19..056163326 100644 --- a/test/take/take.js +++ b/test/take/take.js @@ -1,2 +1,2 @@ const take = (arr, n = 1) => arr.slice(0, n); -module.exports = take \ No newline at end of file +module.exports = take; \ No newline at end of file diff --git a/test/takeRight/takeRight.js b/test/takeRight/takeRight.js index 14bf346c8..b87e28e2c 100644 --- a/test/takeRight/takeRight.js +++ b/test/takeRight/takeRight.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/takeRightWhile/takeRightWhile.js b/test/takeRightWhile/takeRightWhile.js index 4dc889aad..d5ae4dcdc 100644 --- a/test/takeRightWhile/takeRightWhile.js +++ b/test/takeRightWhile/takeRightWhile.js @@ -3,4 +3,4 @@ for (let i of arr.reverse().keys()) 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; \ No newline at end of file diff --git a/test/takeWhile/takeWhile.js b/test/takeWhile/takeWhile.js index febed48f8..1adb11cf0 100644 --- a/test/takeWhile/takeWhile.js +++ b/test/takeWhile/takeWhile.js @@ -2,4 +2,4 @@ const takeWhile = (arr, func) => { for (let i of arr.keys()) if (func(arr[i])) return arr.slice(0, i); return arr; }; -module.exports = takeWhile \ No newline at end of file +module.exports = takeWhile; \ No newline at end of file diff --git a/test/testlog b/test/testlog index 9086d6aac..9a8c8f78c 100644 --- a/test/testlog +++ b/test/testlog @@ -1,4 +1,4 @@ -Test log for: Sun Feb 04 2018 16:58:46 GMT+0200 (GTB Standard Time) +Test log for: Sun Feb 04 2018 17:37:55 GMT+0200 (GTB Standard Time) > 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code > tape test/**/*.test.js | tap-spec @@ -1711,6 +1711,6 @@ Test log for: Sun Feb 04 2018 16:58:46 GMT+0200 (GTB Standard Time) total: 813 passing: 813 - duration: 2.4s + duration: 2.5s diff --git a/test/throttle/throttle.js b/test/throttle/throttle.js index b26b6b74b..5b3a0b0ec 100644 --- a/test/throttle/throttle.js +++ b/test/throttle/throttle.js @@ -18,4 +18,4 @@ lastTime = Date.now(); } }; }; -module.exports = throttle \ No newline at end of file +module.exports = throttle; \ No newline at end of file diff --git a/test/timeTaken/timeTaken.js b/test/timeTaken/timeTaken.js index 59d0def76..126533ef7 100644 --- a/test/timeTaken/timeTaken.js +++ b/test/timeTaken/timeTaken.js @@ -4,4 +4,4 @@ const r = callback(); console.timeEnd('timeTaken'); return r; }; -module.exports = timeTaken \ No newline at end of file +module.exports = timeTaken; \ No newline at end of file diff --git a/test/times/times.js b/test/times/times.js index 8866d35b4..2c1f71c94 100644 --- a/test/times/times.js +++ b/test/times/times.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/toCamelCase/toCamelCase.js b/test/toCamelCase/toCamelCase.js index 93d2098c1..2e396c7c1 100644 --- a/test/toCamelCase/toCamelCase.js +++ b/test/toCamelCase/toCamelCase.js @@ -7,4 +7,4 @@ str .join(''); return s.slice(0, 1).toLowerCase() + s.slice(1); }; -module.exports = toCamelCase \ No newline at end of file +module.exports = toCamelCase; \ No newline at end of file diff --git a/test/toCurrency/toCurrency.js b/test/toCurrency/toCurrency.js index 97dfb3f49..b7e12c4ca 100644 --- a/test/toCurrency/toCurrency.js +++ b/test/toCurrency/toCurrency.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/toDecimalMark/toDecimalMark.js b/test/toDecimalMark/toDecimalMark.js index 68b31c094..100b300a6 100644 --- a/test/toDecimalMark/toDecimalMark.js +++ b/test/toDecimalMark/toDecimalMark.js @@ -1,2 +1,2 @@ const toDecimalMark = num => num.toLocaleString('en-US'); -module.exports = toDecimalMark \ No newline at end of file +module.exports = toDecimalMark; \ No newline at end of file diff --git a/test/toKebabCase/toKebabCase.js b/test/toKebabCase/toKebabCase.js index 7a8fef0f6..c4de1c3bf 100644 --- a/test/toKebabCase/toKebabCase.js +++ b/test/toKebabCase/toKebabCase.js @@ -4,4 +4,4 @@ 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; \ No newline at end of file diff --git a/test/toOrdinalSuffix/toOrdinalSuffix.js b/test/toOrdinalSuffix/toOrdinalSuffix.js index 0f3d9b25d..8efc575fb 100644 --- a/test/toOrdinalSuffix/toOrdinalSuffix.js +++ b/test/toOrdinalSuffix/toOrdinalSuffix.js @@ -8,4 +8,4 @@ return oPattern.includes(digits[0]) && !tPattern.includes(digits[1]) ? int + ordinals[digits[0] - 1] : int + ordinals[3]; }; -module.exports = toOrdinalSuffix \ No newline at end of file +module.exports = toOrdinalSuffix; \ No newline at end of file diff --git a/test/toSafeInteger/toSafeInteger.js b/test/toSafeInteger/toSafeInteger.js index b34b0b0b7..f162e6167 100644 --- a/test/toSafeInteger/toSafeInteger.js +++ b/test/toSafeInteger/toSafeInteger.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/toSnakeCase/toSnakeCase.js b/test/toSnakeCase/toSnakeCase.js index 4e18c9123..2990ea732 100644 --- a/test/toSnakeCase/toSnakeCase.js +++ b/test/toSnakeCase/toSnakeCase.js @@ -4,4 +4,4 @@ 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; \ No newline at end of file diff --git a/test/toggleClass/toggleClass.js b/test/toggleClass/toggleClass.js index 90de4b417..1ce2b663c 100644 --- a/test/toggleClass/toggleClass.js +++ b/test/toggleClass/toggleClass.js @@ -1,2 +1,2 @@ const toggleClass = (el, className) => el.classList.toggle(className); -module.exports = toggleClass \ No newline at end of file +module.exports = toggleClass; \ No newline at end of file diff --git a/test/tomorrow/tomorrow.js b/test/tomorrow/tomorrow.js index cb644dc4e..6cac1913e 100644 --- a/test/tomorrow/tomorrow.js +++ b/test/tomorrow/tomorrow.js @@ -5,4 +5,4 @@ return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, '0')}-${String t.getDate() ).padStart(2, '0')}`; }; -module.exports = tomorrow \ No newline at end of file +module.exports = tomorrow; \ No newline at end of file diff --git a/test/transform/transform.js b/test/transform/transform.js index 1232a4a9b..64d62fd28 100644 --- a/test/transform/transform.js +++ b/test/transform/transform.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/truncateString/truncateString.js b/test/truncateString/truncateString.js index ef9546701..83977ca52 100644 --- a/test/truncateString/truncateString.js +++ b/test/truncateString/truncateString.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/truthCheckCollection/truthCheckCollection.js b/test/truthCheckCollection/truthCheckCollection.js index 8a7ada0b0..71b660f77 100644 --- a/test/truthCheckCollection/truthCheckCollection.js +++ b/test/truthCheckCollection/truthCheckCollection.js @@ -1,2 +1,2 @@ const truthCheckCollection = (collection, pre) => collection.every(obj => obj[pre]); -module.exports = truthCheckCollection \ No newline at end of file +module.exports = truthCheckCollection; \ No newline at end of file diff --git a/test/unary/unary.js b/test/unary/unary.js index 524eb0113..7930f086d 100644 --- a/test/unary/unary.js +++ b/test/unary/unary.js @@ -1,2 +1,2 @@ const unary = fn => val => fn(val); -module.exports = unary \ No newline at end of file +module.exports = unary; \ No newline at end of file diff --git a/test/unescapeHTML/unescapeHTML.js b/test/unescapeHTML/unescapeHTML.js index a82099aa1..4f5ffe3dd 100644 --- a/test/unescapeHTML/unescapeHTML.js +++ b/test/unescapeHTML/unescapeHTML.js @@ -10,4 +10,4 @@ tag => '"': '"' }[tag] || tag) ); -module.exports = unescapeHTML \ No newline at end of file +module.exports = unescapeHTML; \ No newline at end of file diff --git a/test/unfold/unfold.js b/test/unfold/unfold.js index 499ad0ab6..597ebcf9c 100644 --- a/test/unfold/unfold.js +++ b/test/unfold/unfold.js @@ -4,4 +4,4 @@ val = [null, seed]; while ((val = fn(val[1]))) result.push(val[0]); return result; }; -module.exports = unfold \ No newline at end of file +module.exports = unfold; \ No newline at end of file diff --git a/test/union/union.js b/test/union/union.js index d0b4b52ea..958406de8 100644 --- a/test/union/union.js +++ b/test/union/union.js @@ -1,2 +1,2 @@ const union = (a, b) => Array.from(new Set([...a, ...b])); -module.exports = union \ No newline at end of file +module.exports = union; \ No newline at end of file diff --git a/test/unionBy/unionBy.js b/test/unionBy/unionBy.js index d4afc4763..09ae1f579 100644 --- a/test/unionBy/unionBy.js +++ b/test/unionBy/unionBy.js @@ -2,4 +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; \ No newline at end of file diff --git a/test/unionWith/unionWith.js b/test/unionWith/unionWith.js index cb1ca174d..c498e8d28 100644 --- a/test/unionWith/unionWith.js +++ b/test/unionWith/unionWith.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/uniqueElements/uniqueElements.js b/test/uniqueElements/uniqueElements.js index feb8e9b74..ef789d0fd 100644 --- a/test/uniqueElements/uniqueElements.js +++ b/test/uniqueElements/uniqueElements.js @@ -1,2 +1,2 @@ const uniqueElements = arr => [...new Set(arr)]; -module.exports = uniqueElements \ No newline at end of file +module.exports = uniqueElements; \ No newline at end of file diff --git a/test/untildify/untildify.js b/test/untildify/untildify.js index 4962b7567..aeef31c50 100644 --- a/test/untildify/untildify.js +++ b/test/untildify/untildify.js @@ -1,2 +1,2 @@ const untildify = str => str.replace(/^~($|\/|\\)/, `${require('os').homedir()}$1`); -module.exports = untildify \ No newline at end of file +module.exports = untildify; \ No newline at end of file diff --git a/test/unzip/unzip.js b/test/unzip/unzip.js index 4cfe50a93..69c0a0312 100644 --- a/test/unzip/unzip.js +++ b/test/unzip/unzip.js @@ -5,4 +5,4 @@ Array.from({ length: Math.max(...arr.map(x => x.length)) }).map(x => []) ); -module.exports = unzip \ No newline at end of file +module.exports = unzip; \ No newline at end of file diff --git a/test/unzipWith/unzipWith.js b/test/unzipWith/unzipWith.js index 6f1ba0869..6acbabf87 100644 --- a/test/unzipWith/unzipWith.js +++ b/test/unzipWith/unzipWith.js @@ -7,4 +7,4 @@ length: Math.max(...arr.map(x => x.length)) }).map(x => []) ) .map(val => fn(...val)); -module.exports = unzipWith \ No newline at end of file +module.exports = unzipWith; \ No newline at end of file diff --git a/test/validateNumber/validateNumber.js b/test/validateNumber/validateNumber.js index 1b03adf29..9d96fb7fe 100644 --- a/test/validateNumber/validateNumber.js +++ b/test/validateNumber/validateNumber.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/without/without.js b/test/without/without.js index 598b31253..c05181cbf 100644 --- a/test/without/without.js +++ b/test/without/without.js @@ -1,2 +1,2 @@ const without = (arr, ...args) => arr.filter(v => !args.includes(v)); -module.exports = without \ No newline at end of file +module.exports = without; \ No newline at end of file diff --git a/test/words/words.js b/test/words/words.js index d26c714fa..676be35c7 100644 --- a/test/words/words.js +++ b/test/words/words.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/xProd/xProd.js b/test/xProd/xProd.js index 2b7a126c3..fc4123ef5 100644 --- a/test/xProd/xProd.js +++ b/test/xProd/xProd.js @@ -1,2 +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; \ No newline at end of file diff --git a/test/yesNo/yesNo.js b/test/yesNo/yesNo.js index 11a2a248a..83bbe99ae 100644 --- a/test/yesNo/yesNo.js +++ b/test/yesNo/yesNo.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/zip/zip.js b/test/zip/zip.js index 60ad9d244..54a162bce 100644 --- a/test/zip/zip.js +++ b/test/zip/zip.js @@ -4,4 +4,4 @@ return Array.from({ length: maxLength }).map((_, i) => { return Array.from({ length: arrays.length }, (_, k) => arrays[k][i]); }); }; -module.exports = zip \ No newline at end of file +module.exports = zip; \ No newline at end of file diff --git a/test/zipObject/zipObject.js b/test/zipObject/zipObject.js index e077594b4..c44e95eda 100644 --- a/test/zipObject/zipObject.js +++ b/test/zipObject/zipObject.js @@ -1,3 +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; \ No newline at end of file diff --git a/test/zipWith/zipWith.js b/test/zipWith/zipWith.js index 39d5d18bb..a1b2f338f 100644 --- a/test/zipWith/zipWith.js +++ b/test/zipWith/zipWith.js @@ -8,4 +8,4 @@ return Array.from({ length: arrays.length }, (_, k) => arrays[k][i]); }); return fn ? result.map(arr => fn(...arr)) : result; }; -module.exports = zipWith \ No newline at end of file +module.exports = zipWith; \ No newline at end of file