diff --git a/README.md b/README.md index f03694e55..3f7defad2 100644 --- a/README.md +++ b/README.md @@ -515,7 +515,7 @@ const firstTwoMax = ary(Math.max, 2); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### call @@ -542,7 +542,7 @@ Promise.resolve([1, 2, 3]) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### collectInto @@ -567,7 +567,7 @@ Pall(p1, p2, p3).then(console.log); // [1, 2, 3] (after about 2 seconds) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### flip @@ -594,7 +594,7 @@ Object.assign(b, a); // == b -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### over @@ -616,7 +616,7 @@ minMax(1, 2, 3, 4, 5); // [1,5] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### overArgs @@ -640,7 +640,7 @@ fn(9, 3); // [81, 6] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pipeAsyncFunctions @@ -671,7 +671,7 @@ const sum = pipeAsyncFunctions( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pipeFunctions @@ -696,7 +696,7 @@ multiplyAndAdd5(5, 2); // 15 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### promisify @@ -724,7 +724,7 @@ delay(2000).then(() => console.log('Hi!')); // // Promise resolves after 2s -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### rearg @@ -751,7 +751,7 @@ rearged('b', 'c', 'a'); // ['a', 'b', 'c'] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### spreadOver @@ -773,7 +773,7 @@ arrayMax([1, 2, 3]); // 3 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unary @@ -794,7 +794,7 @@ const unary = fn => val => fn(val); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -822,7 +822,7 @@ all([1, 2, 3]); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### allEqual @@ -844,7 +844,7 @@ allEqual([1, 1, 1, 1]); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### any @@ -867,7 +867,7 @@ any([0, 0, 1, 0]); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### arrayToCSV @@ -892,7 +892,7 @@ arrayToCSV([['a', 'b'], ['c', 'd']], ';'); // '"a";"b"\n"c";"d"' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### bifurcate @@ -914,7 +914,7 @@ bifurcate(['beep', 'boop', 'foo', 'bar'], [true, true, false, true]); // [ ['bee -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### bifurcateBy @@ -936,7 +936,7 @@ bifurcateBy(['beep', 'boop', 'foo', 'bar'], x => x[0] === 'b'); // [ ['beep', 'b -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### chunk @@ -962,7 +962,7 @@ chunk([1, 2, 3, 4, 5], 2); // [[1,2],[3,4],[5]] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### compact @@ -983,7 +983,7 @@ compact([0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34]); // [ 1, 2, 3, 'a' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### countBy @@ -1010,7 +1010,7 @@ countBy(['one', 'two', 'three'], 'length'); // {3: 2, 5: 1} -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### countOccurrences @@ -1031,7 +1031,7 @@ countOccurrences([1, 1, 2, 1, 2, 3], 1); // 3 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### deepFlatten @@ -1054,7 +1054,7 @@ deepFlatten([1, [2], [[3], 4], 5]); // [1,2,3,4,5] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### difference @@ -1078,7 +1078,7 @@ difference([1, 2, 3], [1, 2, 4]); // [3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### differenceBy @@ -1103,7 +1103,7 @@ differenceBy([{ x: 2 }, { x: 1 }], [{ x: 1 }], v => v.x); // [ { x: 2 } ] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### differenceWith @@ -1124,7 +1124,7 @@ differenceWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Mat -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### drop @@ -1147,7 +1147,7 @@ drop([1, 2, 3], 42); // [] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### dropRight @@ -1170,7 +1170,7 @@ dropRight([1, 2, 3], 42); // [] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### dropRightWhile @@ -1195,7 +1195,7 @@ dropRightWhile([1, 2, 3, 4], n => n < 3); // [1, 2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### dropWhile @@ -1220,7 +1220,7 @@ dropWhile([1, 2, 3, 4], n => n >= 3); // [3,4] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### everyNth @@ -1241,7 +1241,7 @@ everyNth([1, 2, 3, 4, 5, 6], 2); // [ 2, 4, 6 ] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### filterNonUnique @@ -1262,7 +1262,7 @@ filterNonUnique([1, 2, 2, 3, 4, 4, 5]); // [1,3,5] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### filterNonUniqueBy @@ -1294,7 +1294,7 @@ filterNonUniqueBy( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### findLast @@ -1315,7 +1315,7 @@ findLast([1, 2, 3, 4], n => n % 2 === 1); // 3 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### findLastIndex @@ -1341,7 +1341,7 @@ findLastIndex([1, 2, 3, 4], n => n % 2 === 1); // 2 (index of the value 3) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### flatten @@ -1367,7 +1367,7 @@ flatten([1, [2, [3, [4, 5], 6], 7], 8], 2); // [1, 2, 3, [4, 5], 6, 7, 8] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### forEachRight @@ -1392,7 +1392,7 @@ forEachRight([1, 2, 3, 4], val => console.log(val)); // '4', '3', '2', '1' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### groupBy @@ -1419,7 +1419,7 @@ groupBy(['one', 'two', 'three'], 'length'); // {3: ['one', 'two'], 5: ['three']} -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### head @@ -1440,7 +1440,7 @@ head([1, 2, 3]); // 1 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### indexOfAll @@ -1463,7 +1463,7 @@ indexOfAll([1, 2, 3], 4); // [] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### initial @@ -1484,7 +1484,7 @@ initial([1, 2, 3]); // [1,2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### initialize2DArray @@ -1506,7 +1506,7 @@ initialize2DArray(2, 2, 0); // [[0,0], [0,0]] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### initializeArrayWithRange @@ -1532,7 +1532,7 @@ initializeArrayWithRange(9, 0, 2); // [0,2,4,6,8] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### initializeArrayWithRangeRight @@ -1560,7 +1560,7 @@ initializeArrayWithRangeRight(9, 0, 2); // [8,6,4,2,0] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### initializeArrayWithValues @@ -1582,7 +1582,7 @@ initializeArrayWithValues(5, 2); // [2,2,2,2,2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### initializeNDArray @@ -1608,7 +1608,7 @@ initializeNDArray(5, 2, 2, 2); // [[[5,5],[5,5]],[[5,5],[5,5]]] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### intersection @@ -1632,7 +1632,7 @@ intersection([1, 2, 3], [4, 3, 2]); // [2,3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### intersectionBy @@ -1656,7 +1656,7 @@ intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### intersectionWith @@ -1677,7 +1677,7 @@ intersectionWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0, 3.9], (a, b) => Math.round(a) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isSorted @@ -1709,7 +1709,7 @@ isSorted([4, 3, 5]); // 0 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### join @@ -1743,7 +1743,7 @@ join(['pen', 'pineapple', 'apple', 'pen']); // "pen,pineapple,apple,pen" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### JSONtoCSV ![advanced](/advanced.svg) @@ -1777,7 +1777,7 @@ JSONtoCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### last @@ -1798,7 +1798,7 @@ last([1, 2, 3]); // 3 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### longestItem @@ -1826,7 +1826,7 @@ longestItem([1, 2, 3], 'foobar'); // 'foobar' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### mapObject ![advanced](/advanced.svg) @@ -1851,7 +1851,7 @@ squareIt([1, 2, 3]); // { 1: 1, 2: 4, 3: 9 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### maxN @@ -1875,7 +1875,7 @@ maxN([1, 2, 3], 2); // [3,2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### minN @@ -1899,7 +1899,7 @@ minN([1, 2, 3], 2); // [1,2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### none @@ -1922,7 +1922,7 @@ none([0, 0, 0]); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### nthElement @@ -1946,7 +1946,7 @@ nthElement(['a', 'b', 'b'], -3); // 'a' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### offset @@ -1970,7 +1970,7 @@ offset([1, 2, 3, 4, 5], -2); // [4, 5, 1, 2, 3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### partition @@ -2000,7 +2000,7 @@ partition(users, o => o.active); // [[{ 'user': 'fred', 'age': 40, 'active': -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### permutations ![advanced](/advanced.svg) @@ -2035,7 +2035,7 @@ permutations([1, 33, 5]); // [ [ 1, 33, 5 ], [ 1, 5, 33 ], [ 33, 1, 5 ], [ 33, 5 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pull @@ -2065,7 +2065,7 @@ pull(myArray, 'a', 'c'); // myArray = [ 'b', 'b' ] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pullAtIndex ![advanced](/advanced.svg) @@ -2097,7 +2097,7 @@ let pulled = pullAtIndex(myArray, [1, 3]); // myArray = [ 'a', 'c' ] , pulled = -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pullAtValue ![advanced](/advanced.svg) @@ -2128,7 +2128,7 @@ let pulled = pullAtValue(myArray, ['b', 'd']); // myArray = [ 'a', 'c' ] , pulle -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pullBy ![advanced](/advanced.svg) @@ -2161,7 +2161,7 @@ pullBy(myArray, [{ x: 1 }, { x: 3 }], o => o.x); // myArray = [{ x: 2 }] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### reducedFilter @@ -2202,7 +2202,7 @@ reducedFilter(data, ['id', 'name'], item => item.age > 24); // [{ id: 2, name: ' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### reduceSuccessive @@ -2224,7 +2224,7 @@ reduceSuccessive([1, 2, 3, 4, 5, 6], (acc, val) => acc + val, 0); // [0, 1, 3, 6 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### reduceWhich @@ -2252,7 +2252,7 @@ reduceWhich( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### reject @@ -2272,7 +2272,7 @@ reject(word => word.length > 4, ['Apple', 'Pear', 'Kiwi', 'Banana']); // ['Pear' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### remove @@ -2300,7 +2300,7 @@ remove([1, 2, 3, 4], n => n % 2 === 0); // [2, 4] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sample @@ -2322,7 +2322,7 @@ sample([3, 7, 9, 11]); // 9 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sampleSize @@ -2353,7 +2353,7 @@ sampleSize([1, 2, 3], 4); // [2,3,1] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### shuffle @@ -2382,7 +2382,7 @@ shuffle(foo); // [2,3,1], foo = [1,2,3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### similarity @@ -2403,7 +2403,7 @@ similarity([1, 2, 3], [1, 2, 4]); // [1,2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sortedIndex @@ -2430,7 +2430,7 @@ sortedIndex([30, 50], 40); // 1 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sortedIndexBy @@ -2457,7 +2457,7 @@ sortedIndexBy([{ x: 4 }, { x: 5 }], { x: 4 }, o => o.x); // 0 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sortedLastIndex @@ -2483,7 +2483,7 @@ sortedLastIndex([10, 20, 30, 30, 40], 30); // 4 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sortedLastIndexBy @@ -2514,7 +2514,7 @@ sortedLastIndexBy([{ x: 4 }, { x: 5 }], { x: 4 }, o => o.x); // 1 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### stableSort ![advanced](/advanced.svg) @@ -2543,7 +2543,7 @@ const stable = stableSort(arr, () => 0); // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### symmetricDifference @@ -2569,7 +2569,7 @@ symmetricDifference([1, 2, 2], [1, 3, 1]); // [2, 2, 3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### symmetricDifferenceBy @@ -2594,7 +2594,7 @@ symmetricDifferenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [ 1.2, 3.4 ] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### symmetricDifferenceWith @@ -2622,7 +2622,7 @@ symmetricDifferenceWith( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### tail @@ -2644,7 +2644,7 @@ tail([1]); // [1] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### take @@ -2666,7 +2666,7 @@ take([1, 2, 3], 0); // [] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### takeRight @@ -2688,7 +2688,7 @@ takeRight([1, 2, 3]); // [3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### takeRightWhile @@ -2714,7 +2714,7 @@ takeRightWhile([1, 2, 3, 4], n => n < 3); // [3, 4] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### takeWhile @@ -2739,7 +2739,7 @@ takeWhile([1, 2, 3, 4], n => n >= 3); // [1, 2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toHash @@ -2777,7 +2777,7 @@ managers; // [ { manager:1, employees: [ { id: 2, first: "Joe" }, { id: 3, first -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### union @@ -2798,7 +2798,7 @@ union([1, 2, 3], [4, 3, 2]); // [1,2,3,4] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unionBy @@ -2824,7 +2824,7 @@ unionBy([2.1], [1.2, 2.3], Math.floor); // [2.1, 1.2] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unionWith @@ -2846,7 +2846,7 @@ unionWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0, 3.9], (a, b) => Math.round(a) === Mat -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### uniqueElements @@ -2867,7 +2867,7 @@ uniqueElements([1, 2, 2, 3, 4, 4, 5]); // [1,2,3,4,5] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### uniqueElementsBy @@ -2902,7 +2902,7 @@ uniqueElementsBy( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### uniqueElementsByRight @@ -2937,7 +2937,7 @@ uniqueElementsByRight( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### uniqueSymmetricDifference @@ -2961,7 +2961,7 @@ uniqueSymmetricDifference([1, 2, 2], [1, 3, 1]); // [2, 3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unzip @@ -2990,7 +2990,7 @@ unzip([['a', 1, true], ['b', 2]]); //[['a', 'b'], [1, 2], [true]] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unzipWith ![advanced](/advanced.svg) @@ -3021,7 +3021,7 @@ unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### without @@ -3044,7 +3044,7 @@ without([2, 1, 2, 3], 1, 2); // [3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### xProd @@ -3065,7 +3065,7 @@ xProd([1, 2], ['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### zip @@ -3094,7 +3094,7 @@ zip(['a'], [1, 2], [true, false]); // [['a', 1, true], [undefined, 2, false]] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### zipObject @@ -3117,7 +3117,7 @@ zipObject(['a', 'b'], [1, 2, 3]); // {a: 1, b: 2} -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### zipWith ![advanced](/advanced.svg) @@ -3154,7 +3154,7 @@ zipWith( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -3184,7 +3184,7 @@ arrayToHtmlList(['item 1', 'item 2'], 'myListID'); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### bottomVisible @@ -3207,7 +3207,7 @@ bottomVisible(); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### copyToClipboard ![advanced](/advanced.svg) @@ -3250,7 +3250,7 @@ copyToClipboard('Lorem ipsum'); // 'Lorem ipsum' copied to clipboard. -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### counter ![advanced](/advanced.svg) @@ -3285,7 +3285,7 @@ counter('#my-id', 1, 1000, 5, 2000); // Creates a 2-second timer for the element -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### createElement @@ -3318,7 +3318,7 @@ console.log(el.className); // 'container' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### createEventHub ![advanced](/advanced.svg) @@ -3371,7 +3371,7 @@ hub.off('message', handler); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### currentURL @@ -3392,7 +3392,7 @@ currentURL(); // 'https://google.com' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### detectDeviceType @@ -3416,7 +3416,7 @@ detectDeviceType(); // "Mobile" or "Desktop" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### elementContains @@ -3438,7 +3438,7 @@ elementContains(document.querySelector('body'), document.querySelector('body')); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### elementIsVisibleInViewport ![advanced](/advanced.svg) @@ -3471,7 +3471,7 @@ elementIsVisibleInViewport(el, true); // true - (partially visible) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### getScrollPosition @@ -3496,7 +3496,7 @@ getScrollPosition(); // {x: 0, y: 200} -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### getStyle @@ -3517,7 +3517,7 @@ getStyle(document.querySelector('p'), 'font-size'); // '16px' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hasClass @@ -3538,7 +3538,7 @@ hasClass(document.querySelector('p.special'), 'special'); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hashBrowser ![advanced](/advanced.svg) @@ -3566,7 +3566,7 @@ hashBrowser(JSON.stringify({ a: 'a', b: [1, 2, 3, 4], foo: { c: 'bar' } })).then -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hide @@ -3587,7 +3587,7 @@ hide(document.querySelectorAll('img')); // Hides all elements on the page -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### httpsRedirect @@ -3610,7 +3610,7 @@ httpsRedirect(); // If you are on http://mydomain.com, you are redirected to htt -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### insertAfter @@ -3631,7 +3631,7 @@ insertAfter(document.getElementById('myId'), '

after

'); //
-[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### insertBefore @@ -3652,7 +3652,7 @@ insertBefore(document.getElementById('myId'), '

before

'); //

before

-[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isBrowserTabFocused @@ -3673,7 +3673,7 @@ isBrowserTabFocused(); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### nodeListToArray @@ -3694,7 +3694,7 @@ nodeListToArray(document.childNodes); // [ , html ] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### observeMutations ![advanced](/advanced.svg) @@ -3735,7 +3735,7 @@ obs.disconnect(); // Disconnects the observer and stops logging mutations on the -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### off @@ -3759,7 +3759,7 @@ off(document.body, 'click', fn); // no longer logs '!' upon clicking on the page -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### on @@ -3789,7 +3789,7 @@ on(document.body, 'click', fn, { options: true }); // use capturing instead of b -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### onUserInputChange ![advanced](/advanced.svg) @@ -3827,7 +3827,7 @@ onUserInputChange(type => { -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### prefix @@ -3856,7 +3856,7 @@ prefix('appearance'); // 'appearance' on a supported browser, otherwise 'webkitA -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### recordAnimationFrames @@ -3903,7 +3903,7 @@ const recorder2 = recordAnimationFrames(cb, false); // `start` needs to be expli -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### redirect @@ -3926,7 +3926,7 @@ redirect('https://google.com'); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### runAsync ![advanced](/advanced.svg) @@ -3982,7 +3982,7 @@ runAsync(() => typeof outsideVariable).then(console.log); // 'undefined' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### scrollToTop @@ -4010,7 +4010,7 @@ scrollToTop(); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### setStyle @@ -4031,7 +4031,7 @@ setStyle(document.querySelector('p'), 'font-size', '20px'); // The first

ele -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### show @@ -4052,7 +4052,7 @@ show(...document.querySelectorAll('img')); // Shows all elements on the pa -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### smoothScroll @@ -4078,7 +4078,7 @@ smoothScroll('.fooBar'); // scrolls smoothly to the first element with a class o -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toggleClass @@ -4099,7 +4099,7 @@ toggleClass(document.querySelector('p.special'), 'special'); // The paragraph wi -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### triggerEvent @@ -4124,7 +4124,7 @@ triggerEvent(document.getElementById('myId'), 'click', { username: 'bob' }); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### UUIDGeneratorBrowser @@ -4148,7 +4148,7 @@ UUIDGeneratorBrowser(); // '7982fcfe-5721-4632-bede-6000885be57d' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -4191,7 +4191,7 @@ formatDuration(34325055574); // '397 days, 6 hours, 44 minutes, 15 seconds, 574 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### getColonTimeFromDate @@ -4212,7 +4212,7 @@ getColonTimeFromDate(new Date()); // "08:38:00" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### getDaysDiffBetweenDates @@ -4234,7 +4234,7 @@ getDaysDiffBetweenDates(new Date('2017-12-13'), new Date('2017-12-22')); // 9 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### getMeridiemSuffixOfInteger @@ -4265,7 +4265,7 @@ getMeridiemSuffixOfInteger(25); // "1pm" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### tomorrow @@ -4293,7 +4293,7 @@ tomorrow(true); // 2017-12-27T00:00:00 (if current date is 2017-12-26) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -4328,7 +4328,7 @@ if (elements instanceof Error) elements = []; // elements = [] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### bind @@ -4355,7 +4355,7 @@ console.log(freddyBound('hi', '!')); // 'hi fred!' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### bindKey @@ -4385,7 +4385,7 @@ console.log(freddyBound('hi', '!')); // 'hi fred!' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### chainAsync @@ -4418,7 +4418,7 @@ chainAsync([ -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### compose @@ -4446,7 +4446,7 @@ multiplyAndAdd5(5, 2); // 15 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### composeRight @@ -4471,7 +4471,7 @@ addAndSquare(1, 2); // 9 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### converge @@ -4497,7 +4497,7 @@ average([1, 2, 3, 4, 5, 6, 7]); // 4 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### curry @@ -4523,7 +4523,7 @@ curry(Math.min, 3)(10)(50)(2); // 2 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### debounce @@ -4557,7 +4557,7 @@ window.addEventListener( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### defer @@ -4584,7 +4584,7 @@ defer(longRunningFunction); // Browser will update the HTML then run the functio -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### delay @@ -4612,7 +4612,7 @@ delay( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### functionName @@ -4633,7 +4633,7 @@ functionName(Math.max); // max (logged in debug channel of console) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hz @@ -4676,7 +4676,7 @@ Math.round(hz(sumForLoop)); // 4784 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### memoize ![advanced](/advanced.svg) @@ -4710,7 +4710,7 @@ console.log(anagramsCached.cache); // The cached anagrams map -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### negate @@ -4731,7 +4731,7 @@ const negate = func => (...args) => !func(...args); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### once @@ -4763,7 +4763,7 @@ document.body.addEventListener('click', once(startApp)); // only runs `startApp` -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### partial @@ -4786,7 +4786,7 @@ greetHello('John'); // 'Hello John!' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### partialRight @@ -4809,7 +4809,7 @@ greetJohn('Hello'); // 'Hello John!' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### runPromisesInSeries @@ -4831,7 +4831,7 @@ runPromisesInSeries([() => delay(1000), () => delay(2000)]); // Executes each pr -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sleep @@ -4856,7 +4856,7 @@ async function sleepyWork() { -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### throttle ![advanced](/advanced.svg) @@ -4905,7 +4905,7 @@ window.addEventListener( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### times @@ -4932,7 +4932,7 @@ console.log(output); // 01234 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### uncurry @@ -4963,7 +4963,7 @@ uncurriedAdd(1, 2, 3); // 6 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unfold @@ -4991,7 +4991,7 @@ unfold(f, 10); // [-10, -20, -30, -40, -50] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### when @@ -5014,7 +5014,7 @@ doubleEvenNumbers(1); // 1 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -5041,7 +5041,7 @@ approximatelyEqual(Math.PI / 2.0, 1.5708); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### average @@ -5063,7 +5063,7 @@ average(1, 2, 3); // 2 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### averageBy @@ -5087,7 +5087,7 @@ averageBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 5 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### binomialCoefficient @@ -5121,7 +5121,7 @@ binomialCoefficient(8, 2); // 28 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### clampNumber @@ -5144,7 +5144,7 @@ clampNumber(1, -1, -5); // -1 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### degreesToRads @@ -5165,7 +5165,7 @@ degreesToRads(90.0); // ~1.5708 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### digitize @@ -5187,7 +5187,7 @@ digitize(123); // [1, 2, 3] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### distance @@ -5208,7 +5208,7 @@ distance(1, 1, 2, 3); // 2.23606797749979 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### elo ![advanced](/advanced.svg) @@ -5259,7 +5259,7 @@ own individual rating by supplying it as the third argument. -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### factorial @@ -5290,7 +5290,7 @@ factorial(6); // 720 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### fibonacci @@ -5316,7 +5316,7 @@ fibonacci(6); // [0, 1, 1, 2, 3, 5] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### gcd @@ -5343,7 +5343,7 @@ gcd(...[12, 8, 32]); // 4 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### geometricProgression @@ -5372,7 +5372,7 @@ geometricProgression(256, 1, 4); // [1, 4, 16, 64, 256] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hammingDistance @@ -5394,7 +5394,7 @@ hammingDistance(2, 3); // 1 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### inRange @@ -5422,7 +5422,7 @@ inRange(3, 2); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isDivisible @@ -5443,7 +5443,7 @@ isDivisible(6, 3); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isEven @@ -5465,7 +5465,7 @@ isEven(3); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isPrime @@ -5491,7 +5491,7 @@ isPrime(11); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### lcm @@ -5518,7 +5518,7 @@ lcm(...[1, 3, 4, 5]); // 60 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### luhnCheck ![advanced](/advanced.svg) @@ -5554,7 +5554,7 @@ luhnCheck(123456789); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### maxBy @@ -5576,7 +5576,7 @@ maxBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 8 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### median @@ -5602,7 +5602,7 @@ median([5, 6, 50, 1, -5]); // 5 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### minBy @@ -5624,7 +5624,7 @@ minBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 2 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### percentile @@ -5646,7 +5646,7 @@ percentile([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 6); // 55 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### powerset @@ -5667,7 +5667,7 @@ powerset([1, 2]); // [[], [1], [2], [2,1]] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### primes @@ -5694,7 +5694,7 @@ primes(10); // [2,3,5,7] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### radsToDegrees @@ -5715,7 +5715,7 @@ radsToDegrees(Math.PI / 2); // 90 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### randomIntArrayInRange @@ -5737,7 +5737,7 @@ randomIntArrayInRange(12, 35, 10); // [ 34, 14, 27, 17, 30, 27, 20, 26, 21, 14 ] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### randomIntegerInRange @@ -5758,7 +5758,7 @@ randomIntegerInRange(0, 5); // 2 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### randomNumberInRange @@ -5779,7 +5779,7 @@ randomNumberInRange(2, 10); // 6.0211363285087005 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### round @@ -5801,7 +5801,7 @@ round(1.005, 2); // 1.01 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sdbm @@ -5829,7 +5829,7 @@ sdbm('name'); // -3521204949 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### standardDeviation @@ -5859,7 +5859,7 @@ standardDeviation([10, 2, 38, 23, 38, 23, 21], true); // 12.29899614287479 (popu -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sum @@ -5880,7 +5880,7 @@ sum(...[1, 2, 3, 4]); // 10 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sumBy @@ -5903,7 +5903,7 @@ sumBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 20 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sumPower @@ -5932,7 +5932,7 @@ sumPower(10, 3, 5); //2925 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toSafeInteger @@ -5956,7 +5956,7 @@ toSafeInteger(Infinity); // 9007199254740991 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -5982,7 +5982,7 @@ atob('Zm9vYmFy'); // 'foobar' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### btoa @@ -6003,7 +6003,7 @@ btoa('foobar'); // 'Zm9vYmFy' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### colorize @@ -6044,7 +6044,7 @@ console.log(colorize(colorize('foo').yellow, colorize('foo').green).bgWhite); // -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hasFlags @@ -6070,7 +6070,7 @@ hasFlags('special'); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hashNode @@ -6104,7 +6104,7 @@ hashNode(JSON.stringify({ a: 'a', b: [1, 2, 3, 4], foo: { c: 'bar' } })).then(co -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isTravisCI @@ -6125,7 +6125,7 @@ isTravisCI(); // true (if code is running on Travis CI) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### JSONToFile @@ -6148,7 +6148,7 @@ JSONToFile({ test: 'is passed' }, 'testJsonFile'); // writes the object to 'test -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### readFileLines @@ -6185,7 +6185,7 @@ console.log(arr); // ['line1', 'line2', 'line3'] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### untildify @@ -6206,7 +6206,7 @@ untildify('~/node'); // '/Users/aUser/node' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### UUIDGeneratorNode @@ -6231,7 +6231,7 @@ UUIDGeneratorNode(); // '79c7c136-60ee-40a2-beb2-856f1feabefc' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -6272,7 +6272,7 @@ jQuery(element).on('click', view.click); // Logs 'clicked docs' when clicked. -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### deepClone @@ -6302,7 +6302,7 @@ const b = deepClone(a); // a !== b, a.obj !== b.obj -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### deepFreeze @@ -6332,7 +6332,7 @@ o[1][0] = 4; // not allowed as well -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### defaults @@ -6353,7 +6353,7 @@ defaults({ a: 1 }, { b: 2 }, { b: 6 }, { a: 3 }); // { a: 1, b: 2 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### dig @@ -6389,7 +6389,7 @@ dig(data, 'level4'); // undefined -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### equals ![advanced](/advanced.svg) @@ -6421,7 +6421,7 @@ equals({ a: [2, { e: 3 }], b: [4], c: 'foo' }, { a: [2, { e: 3 }], b: [4], c: 'f -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### findKey @@ -6449,7 +6449,7 @@ findKey( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### findLastKey @@ -6480,7 +6480,7 @@ findLastKey( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### flattenObject @@ -6511,7 +6511,7 @@ flattenObject({ a: { b: { c: 1 } }, d: 1 }); // { 'a.b.c': 1, d: 1 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### forOwn @@ -6532,7 +6532,7 @@ forOwn({ foo: 'bar', a: 1 }, v => console.log(v)); // 'bar', 1 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### forOwnRight @@ -6556,7 +6556,7 @@ forOwnRight({ foo: 'bar', a: 1 }, v => console.log(v)); // 1, 'bar' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### functions @@ -6590,7 +6590,7 @@ functions(new Foo(), true); // ['a', 'b', 'c'] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### get @@ -6619,7 +6619,7 @@ get(obj, 'selector.to.val', 'target[0]', 'target[2].a'); // ['val to select', 1, -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### invertKeyValues @@ -6648,7 +6648,7 @@ invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value); // { group1: [ -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### lowercaseKeys @@ -6675,7 +6675,7 @@ const myObjLower = lowercaseKeys(myObj); // {name: 'Adam', surname: 'Smith'}; -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### mapKeys @@ -6701,7 +6701,7 @@ mapKeys({ a: 1, b: 2 }, (val, key) => key + val); // { a1: 1, b2: 2 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### mapValues @@ -6731,7 +6731,7 @@ mapValues(users, u => u.age); // { fred: 40, pebbles: 1 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### matches @@ -6754,7 +6754,7 @@ matches({ hair: 'long', beard: true }, { age: 25, hair: 'long', beard: true }); -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### matchesWith @@ -6787,7 +6787,7 @@ matchesWith( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### merge @@ -6826,7 +6826,7 @@ merge(object, other); // { a: [ { x: 2 }, { y: 4 }, { z: 3 } ], b: [ 1, 2, 3 ], -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### nest @@ -6863,7 +6863,7 @@ const nestedComments = nest(comments); // [{ id: 1, parent_id: null, children: [ -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### objectFromPairs @@ -6884,7 +6884,7 @@ objectFromPairs([['a', 1], ['b', 2]]); // {a: 1, b: 2} -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### objectToPairs @@ -6905,7 +6905,7 @@ objectToPairs({ a: 1, b: 2 }); // [['a',1],['b',2]] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### omit @@ -6930,7 +6930,7 @@ omit({ a: 1, b: '2', c: 3 }, ['b']); // { 'a': 1, 'c': 3 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### omitBy @@ -6955,7 +6955,7 @@ omitBy({ a: 1, b: '2', c: 3 }, x => typeof x === 'number'); // { b: '2' } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### orderBy @@ -6988,7 +6988,7 @@ orderBy(users, ['name', 'age']); // [{name: 'barney', age: 36}, {name: 'fred', a -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pick @@ -7010,7 +7010,7 @@ pick({ a: 1, b: '2', c: 3 }, ['a', 'c']); // { 'a': 1, 'c': 3 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pickBy @@ -7035,7 +7035,7 @@ pickBy({ a: 1, b: '2', c: 3 }, x => typeof x === 'number'); // { 'a': 1, 'c': 3 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### renameKeys @@ -7064,7 +7064,7 @@ renameKeys({ name: 'firstName', job: 'passion' }, obj); // { firstName: 'Bobo', -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### shallowClone @@ -7086,7 +7086,7 @@ const b = shallowClone(a); // a !== b -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### size @@ -7121,7 +7121,7 @@ size({ one: 1, two: 2, three: 3 }); // 3 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### transform @@ -7149,7 +7149,7 @@ transform( -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### truthCheckCollection @@ -7170,7 +7170,7 @@ truthCheckCollection([{ user: 'Tinky-Winky', sex: 'male' }, { user: 'Dipsy', sex -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unflattenObject ![advanced](/advanced.svg) @@ -7208,7 +7208,7 @@ unflattenObject({ 'a.b.c': 1, d: 1 }); // { a: { b: { c: 1 } }, d: 1 } -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -7235,7 +7235,7 @@ byteSize('Hello World'); // 11 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### capitalize @@ -7259,7 +7259,7 @@ capitalize('fooBar', true); // 'Foobar' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### capitalizeEveryWord @@ -7280,7 +7280,7 @@ capitalizeEveryWord('hello world!'); // 'Hello World!' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### CSVToArray @@ -7310,7 +7310,7 @@ CSVToArray('col1,col2\na,b\nc,d', ',', true); // [['a','b'],['c','d']]; -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### CSVToJSON ![advanced](/advanced.svg) @@ -7345,7 +7345,7 @@ CSVToJSON('col1;col2\na;b\nc;d', ';'); // [{'col1': 'a', 'col2': 'b'}, {'col1': -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### decapitalize @@ -7369,7 +7369,7 @@ decapitalize('FooBar', true); // 'fOOBAR' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### escapeHTML @@ -7401,7 +7401,7 @@ escapeHTML('Me & you'); // '<a href="#">Me & -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### escapeRegExp @@ -7422,7 +7422,7 @@ escapeRegExp('(test)'); // \\(test\\) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### fromCamelCase @@ -7450,7 +7450,7 @@ fromCamelCase('someJavascriptProperty', '_'); // 'some_javascript_property' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isAbsoluteURL @@ -7473,7 +7473,7 @@ isAbsoluteURL('/foo/bar'); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isAnagram @@ -7503,7 +7503,7 @@ isAnagram('iceman', 'cinema'); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isLowerCase @@ -7526,7 +7526,7 @@ isLowerCase('Ab4'); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isUpperCase @@ -7550,7 +7550,7 @@ isLowerCase('aB4'); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### mapString @@ -7577,7 +7577,7 @@ mapString('lorem ipsum', c => c.toUpperCase()); // 'LOREM IPSUM' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### mask @@ -7604,7 +7604,7 @@ mask(1234567890, -4, '$'); // '$$$$567890' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pad @@ -7629,7 +7629,7 @@ pad('foobar', 3); // 'foobar' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### palindrome @@ -7654,7 +7654,7 @@ palindrome('taco cat'); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### pluralize @@ -7690,7 +7690,7 @@ autoPluralize(2, 'person'); // 'people' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### removeNonASCII @@ -7711,7 +7711,7 @@ removeNonASCII('äÄçÇéÉêlorem-ipsumöÖÐþúÚ'); // 'lorem-ipsum' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### reverseString @@ -7733,7 +7733,7 @@ reverseString('foobar'); // 'raboof' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### sortCharactersInString @@ -7754,7 +7754,7 @@ sortCharactersInString('cabbage'); // 'aabbceg' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### splitLines @@ -7775,7 +7775,7 @@ splitLines('This\nis a\nmultiline\nstring.\n'); // ['This', 'is a', 'multiline', -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### stringPermutations ![advanced](/advanced.svg) @@ -7810,7 +7810,7 @@ stringPermutations('abc'); // ['abc','acb','bac','bca','cab','cba'] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### stripHTMLTags @@ -7831,7 +7831,7 @@ stripHTMLTags('

lorem ipsum

'); // 'lorem ipsum' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toCamelCase @@ -7863,7 +7863,7 @@ toCamelCase('some-mixed_string with spaces_underscores-and-hyphens'); // 'someMi -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toKebabCase @@ -7893,7 +7893,7 @@ toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSo -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toSnakeCase @@ -7923,7 +7923,7 @@ toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSo -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### truncateString @@ -7946,7 +7946,7 @@ truncateString('boomerang', 7); // 'boom...' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### unescapeHTML @@ -7978,7 +7978,7 @@ unescapeHTML('<a href="#">Me & you</a>'); // ' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### URLJoin ![advanced](/advanced.svg) @@ -8007,7 +8007,7 @@ URLJoin('http://www.google.com', 'a', '/b/cd', '?foo=123', '?bar=foo'); // 'http -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### words @@ -8030,7 +8030,7 @@ words('python, javaScript & coffee'); // ["python", "javaScript", "coffee"] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -8057,7 +8057,7 @@ getType(new Set([1, 2, 3])); // 'set' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### is @@ -8090,7 +8090,7 @@ is(Boolean, new Boolean(true)); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isArrayLike @@ -8113,7 +8113,7 @@ isArrayLike(null); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isBoolean @@ -8135,7 +8135,7 @@ isBoolean(false); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isEmpty @@ -8165,7 +8165,7 @@ isEmpty(true); // true - type is not considered a collection -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isFunction @@ -8187,7 +8187,7 @@ isFunction(x => x); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isNil @@ -8209,7 +8209,7 @@ isNil(undefined); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isNull @@ -8230,7 +8230,7 @@ isNull(null); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isNumber @@ -8252,7 +8252,7 @@ isNumber(1); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isObject @@ -8279,7 +8279,7 @@ isObject(true); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isObjectLike @@ -8303,7 +8303,7 @@ isObjectLike(null); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isPlainObject @@ -8325,7 +8325,7 @@ isPlainObject(new Map()); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isPrimitive @@ -8353,7 +8353,7 @@ isPrimitive([]); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isPromiseLike @@ -8383,7 +8383,7 @@ isPromiseLike({}); // false -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isString @@ -8404,7 +8404,7 @@ isString('10'); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isSymbol @@ -8425,7 +8425,7 @@ isSymbol(Symbol('x')); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isUndefined @@ -8446,7 +8446,7 @@ isUndefined(undefined); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isValidJSON @@ -8476,7 +8476,7 @@ isValidJSON(null); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) --- @@ -8503,7 +8503,7 @@ castArray([1]); // [1] -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### cloneRegExp @@ -8525,7 +8525,7 @@ const regExp2 = cloneRegExp(regExp); // /lorem ipsum/gi -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### coalesce @@ -8546,7 +8546,7 @@ coalesce(null, undefined, '', NaN, 'Waldo'); // "" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### coalesceFactory @@ -8568,7 +8568,7 @@ customCoalesce(undefined, null, NaN, '', 'Waldo'); // "Waldo" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### extendHex @@ -8597,7 +8597,7 @@ extendHex('05a'); // '#0055aa' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### getURLParameters @@ -8624,7 +8624,7 @@ getURLParameters('google.com'); // {} -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### hexToRGB ![advanced](/advanced.svg) @@ -8665,7 +8665,7 @@ hexToRGB('#fff'); // 'rgb(255, 255, 255)' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### httpGet @@ -8705,7 +8705,7 @@ Logs: { -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### httpPost @@ -8765,7 +8765,7 @@ Logs: { -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### isBrowser @@ -8789,7 +8789,7 @@ isBrowser(); // false (Node) -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### mostPerformant @@ -8828,7 +8828,7 @@ mostPerformant([ -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### nthArg @@ -8853,7 +8853,7 @@ last(1, 2, 3, 4, 5); // 5 -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### parseCookie @@ -8883,7 +8883,7 @@ parseCookie('foo=bar; equation=E%3Dmc%5E2'); // { foo: 'bar', equation: 'E=mc^2' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### prettyBytes ![advanced](/advanced.svg) @@ -8916,7 +8916,7 @@ prettyBytes(123456789, 3, false); // "123MB" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### randomHexColorCode @@ -8940,7 +8940,7 @@ randomHexColorCode(); // "#e34155" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### RGBToHex @@ -8961,7 +8961,7 @@ RGBToHex(255, 165, 1); // 'ffa501' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### serializeCookie @@ -8982,7 +8982,7 @@ serializeCookie('foo', 'bar'); // 'foo=bar' -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### timeTaken @@ -9008,7 +9008,7 @@ timeTaken(() => Math.pow(2, 10)); // 1024, (logged): timeTaken: 0.02099609375ms -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toCurrency @@ -9034,7 +9034,7 @@ toCurrency(322342436423.2435, 'JPY', 'fi'); // 322 342 436 423 ¥ | currency: Ja -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toDecimalMark @@ -9053,7 +9053,7 @@ toDecimalMark(12305030388.9087); // "12,305,030,388.909" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### toOrdinalSuffix @@ -9085,7 +9085,7 @@ toOrdinalSuffix('123'); // "123rd" -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### validateNumber @@ -9108,7 +9108,7 @@ validateNumber('10'); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ### yesNo @@ -9134,7 +9134,7 @@ yesNo('Foo', true); // true -[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#table-of-contents) ## Collaborators diff --git a/scripts/build.js b/scripts/build.js index 9d817d4ff..686b742b8 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -76,7 +76,7 @@ if ( data.slice(data.lastIndexOf('```js'), data.lastIndexOf('```')) + data.slice(data.lastIndexOf('```')) ); - output += data + '\n' + misc.link('⬆ Back to top', misc.anchor('Table of Contents')) + '\n\n'; + output += data + '\n
' + misc.link('⬆ Back to top', misc.anchor('Table of Contents')) + '\n\n'; } // Write to the README file of the archive @@ -206,7 +206,7 @@ try { snippet.slice(snippet.lastIndexOf('```')) ); - output += snippet + '\n' + misc.link('⬆ Back to top', misc.anchor('Table of Contents')) + '\n\n'; + output += snippet + '\n
' + misc.link('⬆ Back to top', misc.anchor('Table of Contents')) + '\n\n'; } }