diff --git a/README.md b/README.md index db822344f..8378df587 100644 --- a/README.md +++ b/README.md @@ -531,7 +531,7 @@ const firstTwoMax = ary(Math.max, 2); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### call @@ -558,7 +558,7 @@ Promise.resolve([1, 2, 3]) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### collectInto @@ -583,7 +583,7 @@ Pall(p1, p2, p3).then(console.log); // [1, 2, 3] (after about 2 seconds) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### flip @@ -610,7 +610,7 @@ Object.assign(b, a); // == b -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### over @@ -632,7 +632,7 @@ minMax(1, 2, 3, 4, 5); // [1,5] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### overArgs @@ -656,7 +656,7 @@ fn(9, 3); // [81, 6] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pipeAsyncFunctions @@ -687,7 +687,7 @@ const sum = pipeAsyncFunctions( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pipeFunctions @@ -712,7 +712,7 @@ multiplyAndAdd5(5, 2); // 15 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### promisify @@ -740,7 +740,7 @@ delay(2000).then(() => console.log('Hi!')); // // Promise resolves after 2s -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### rearg @@ -767,7 +767,7 @@ rearged('b', 'c', 'a'); // ['a', 'b', 'c'] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### spreadOver @@ -789,7 +789,7 @@ arrayMax([1, 2, 3]); // 3 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unary @@ -810,7 +810,7 @@ const unary = fn => val => fn(val); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -838,7 +838,7 @@ all([1, 2, 3]); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### allEqual @@ -860,7 +860,7 @@ allEqual([1, 1, 1, 1]); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### any @@ -883,7 +883,7 @@ any([0, 0, 1, 0]); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### arrayToCSV @@ -908,7 +908,7 @@ arrayToCSV([['a', 'b'], ['c', 'd']], ';'); // '"a";"b"\n"c";"d"' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### bifurcate @@ -930,7 +930,7 @@ bifurcate(['beep', 'boop', 'foo', 'bar'], [true, true, false, true]); // [ ['bee -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### bifurcateBy @@ -952,7 +952,7 @@ bifurcateBy(['beep', 'boop', 'foo', 'bar'], x => x[0] === 'b'); // [ ['beep', 'b -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### chunk @@ -978,7 +978,7 @@ chunk([1, 2, 3, 4, 5], 2); // [[1,2],[3,4],[5]] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### compact @@ -999,7 +999,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](#contents) ### countBy @@ -1026,7 +1026,7 @@ countBy(['one', 'two', 'three'], 'length'); // {3: 2, 5: 1} -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### countOccurrences @@ -1047,7 +1047,7 @@ countOccurrences([1, 1, 2, 1, 2, 3], 1); // 3 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### deepFlatten @@ -1070,7 +1070,7 @@ deepFlatten([1, [2], [[3], 4], 5]); // [1,2,3,4,5] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### difference @@ -1094,7 +1094,7 @@ difference([1, 2, 3], [1, 2, 4]); // [3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### differenceBy @@ -1119,7 +1119,7 @@ differenceBy([{ x: 2 }, { x: 1 }], [{ x: 1 }], v => v.x); // [ { x: 2 } ] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### differenceWith @@ -1140,7 +1140,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](#contents) ### drop @@ -1163,7 +1163,7 @@ drop([1, 2, 3], 42); // [] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### dropRight @@ -1186,7 +1186,7 @@ dropRight([1, 2, 3], 42); // [] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### dropRightWhile @@ -1211,7 +1211,7 @@ dropRightWhile([1, 2, 3, 4], n => n < 3); // [1, 2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### dropWhile @@ -1236,7 +1236,7 @@ dropWhile([1, 2, 3, 4], n => n >= 3); // [3,4] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### everyNth @@ -1257,7 +1257,7 @@ everyNth([1, 2, 3, 4, 5, 6], 2); // [ 2, 4, 6 ] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### filterNonUnique @@ -1278,7 +1278,7 @@ filterNonUnique([1, 2, 2, 3, 4, 4, 5]); // [1, 3, 5] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### filterNonUniqueBy @@ -1310,7 +1310,7 @@ filterNonUniqueBy( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### findLast @@ -1331,7 +1331,7 @@ findLast([1, 2, 3, 4], n => n % 2 === 1); // 3 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### findLastIndex @@ -1357,7 +1357,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](#contents) ### flatten @@ -1383,7 +1383,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](#contents) ### forEachRight @@ -1408,7 +1408,7 @@ forEachRight([1, 2, 3, 4], val => console.log(val)); // '4', '3', '2', '1' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### groupBy @@ -1435,7 +1435,7 @@ groupBy(['one', 'two', 'three'], 'length'); // {3: ['one', 'two'], 5: ['three']} -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### head @@ -1456,7 +1456,7 @@ head([1, 2, 3]); // 1 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### indexOfAll @@ -1480,7 +1480,7 @@ indexOfAll([1, 2, 3], 4); // [] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### initial @@ -1501,7 +1501,7 @@ initial([1, 2, 3]); // [1,2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### initialize2DArray @@ -1523,7 +1523,7 @@ initialize2DArray(2, 2, 0); // [[0,0], [0,0]] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### initializeArrayWithRange @@ -1549,7 +1549,7 @@ initializeArrayWithRange(9, 0, 2); // [0,2,4,6,8] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### initializeArrayWithRangeRight @@ -1577,7 +1577,7 @@ initializeArrayWithRangeRight(9, 0, 2); // [8,6,4,2,0] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### initializeArrayWithValues @@ -1599,7 +1599,7 @@ initializeArrayWithValues(5, 2); // [2, 2, 2, 2, 2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### initializeNDArray @@ -1625,7 +1625,7 @@ initializeNDArray(5, 2, 2, 2); // [[[5,5],[5,5]],[[5,5],[5,5]]] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### intersection @@ -1649,7 +1649,7 @@ intersection([1, 2, 3], [4, 3, 2]); // [2, 3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### intersectionBy @@ -1673,7 +1673,7 @@ intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### intersectionWith @@ -1694,7 +1694,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](#contents) ### isSorted @@ -1726,7 +1726,7 @@ isSorted([4, 3, 5]); // 0 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### join @@ -1761,7 +1761,7 @@ join(['pen', 'pineapple', 'apple', 'pen']); // "pen,pineapple,apple,pen" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### JSONtoCSV ![advanced](/advanced.svg) @@ -1795,7 +1795,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](#contents) ### last @@ -1816,7 +1816,7 @@ last([1, 2, 3]); // 3 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### longestItem @@ -1843,7 +1843,7 @@ longestItem([1, 2, 3], 'foobar'); // 'foobar' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### mapObject ![advanced](/advanced.svg) @@ -1868,7 +1868,7 @@ squareIt([1, 2, 3]); // { 1: 1, 2: 4, 3: 9 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### maxN @@ -1893,7 +1893,7 @@ maxN([1, 2, 3], 2); // [3,2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### minN @@ -1918,7 +1918,7 @@ minN([1, 2, 3], 2); // [1,2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### none @@ -1941,7 +1941,7 @@ none([0, 0, 0]); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### nthElement @@ -1965,7 +1965,7 @@ nthElement(['a', 'b', 'b'], -3); // 'a' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### offset @@ -1989,7 +1989,7 @@ offset([1, 2, 3, 4, 5], -2); // [4, 5, 1, 2, 3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### partition @@ -2019,7 +2019,7 @@ partition(users, o => o.active); // [[{ 'user': 'fred', 'age': 40, 'active': -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### permutations ![advanced](/advanced.svg) @@ -2054,7 +2054,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](#contents) ### pull @@ -2084,7 +2084,7 @@ pull(myArray, 'a', 'c'); // myArray = [ 'b', 'b' ] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pullAtIndex ![advanced](/advanced.svg) @@ -2116,7 +2116,7 @@ let pulled = pullAtIndex(myArray, [1, 3]); // myArray = [ 'a', 'c' ] , pulled = -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pullAtValue ![advanced](/advanced.svg) @@ -2147,7 +2147,7 @@ let pulled = pullAtValue(myArray, ['b', 'd']); // myArray = [ 'a', 'c' ] , pulle -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pullBy ![advanced](/advanced.svg) @@ -2180,7 +2180,7 @@ pullBy(myArray, [{ x: 1 }, { x: 3 }], o => o.x); // myArray = [{ x: 2 }] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### reducedFilter @@ -2221,7 +2221,7 @@ reducedFilter(data, ['id', 'name'], item => item.age > 24); // [{ id: 2, name: ' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### reduceSuccessive @@ -2243,7 +2243,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](#contents) ### reduceWhich @@ -2271,7 +2271,7 @@ reduceWhich( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### reject @@ -2291,7 +2291,7 @@ reject(word => word.length > 4, ['Apple', 'Pear', 'Kiwi', 'Banana']); // ['Pear' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### remove @@ -2319,7 +2319,7 @@ remove([1, 2, 3, 4], n => n % 2 === 0); // [2, 4] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sample @@ -2341,7 +2341,7 @@ sample([3, 7, 9, 11]); // 9 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sampleSize @@ -2372,7 +2372,7 @@ sampleSize([1, 2, 3], 4); // [2,3,1] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### shank @@ -2403,7 +2403,7 @@ console.log(names); // ['alpha', 'bravo', 'charlie'] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### shuffle @@ -2432,7 +2432,7 @@ shuffle(foo); // [2, 3, 1], foo = [1, 2, 3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### similarity @@ -2453,7 +2453,7 @@ similarity([1, 2, 3], [1, 2, 4]); // [1, 2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sortedIndex @@ -2480,7 +2480,7 @@ sortedIndex([30, 50], 40); // 1 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sortedIndexBy @@ -2507,7 +2507,7 @@ sortedIndexBy([{ x: 4 }, { x: 5 }], { x: 4 }, o => o.x); // 0 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sortedLastIndex @@ -2533,7 +2533,7 @@ sortedLastIndex([10, 20, 30, 30, 40], 30); // 4 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sortedLastIndexBy @@ -2564,7 +2564,7 @@ sortedLastIndexBy([{ x: 4 }, { x: 5 }], { x: 4 }, o => o.x); // 1 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### stableSort ![advanced](/advanced.svg) @@ -2593,7 +2593,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](#contents) ### symmetricDifference @@ -2619,7 +2619,7 @@ symmetricDifference([1, 2, 2], [1, 3, 1]); // [2, 2, 3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### symmetricDifferenceBy @@ -2644,7 +2644,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](#contents) ### symmetricDifferenceWith @@ -2672,7 +2672,7 @@ symmetricDifferenceWith( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### tail @@ -2694,7 +2694,7 @@ tail([1]); // [1] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### take @@ -2716,7 +2716,7 @@ take([1, 2, 3], 0); // [] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### takeRight @@ -2738,7 +2738,7 @@ takeRight([1, 2, 3]); // [3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### takeRightWhile @@ -2760,7 +2760,7 @@ takeRightWhile([1, 2, 3, 4], n => n < 3); // [3, 4] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### takeWhile @@ -2785,7 +2785,7 @@ takeWhile([1, 2, 3, 4], n => n >= 3); // [1, 2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toHash @@ -2823,7 +2823,7 @@ managers; // [ { manager:1, employees: [ { id: 2, first: "Joe" }, { id: 3, first -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### union @@ -2844,7 +2844,7 @@ union([1, 2, 3], [4, 3, 2]); // [1,2,3,4] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unionBy @@ -2870,7 +2870,7 @@ unionBy([2.1], [1.2, 2.3], Math.floor); // [2.1, 1.2] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unionWith @@ -2892,7 +2892,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](#contents) ### uniqueElements @@ -2913,7 +2913,7 @@ uniqueElements([1, 2, 2, 3, 4, 4, 5]); // [1, 2, 3, 4, 5] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### uniqueElementsBy @@ -2948,7 +2948,7 @@ uniqueElementsBy( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### uniqueElementsByRight @@ -2983,7 +2983,7 @@ uniqueElementsByRight( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### uniqueSymmetricDifference @@ -3007,7 +3007,7 @@ uniqueSymmetricDifference([1, 2, 2], [1, 3, 1]); // [2, 3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unzip @@ -3036,7 +3036,7 @@ unzip([['a', 1, true], ['b', 2]]); // [['a', 'b'], [1, 2], [true]] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unzipWith ![advanced](/advanced.svg) @@ -3067,7 +3067,7 @@ unzipWith([[1, 10, 100], [2, 20, 200]], (...args) => args.reduce((acc, v) => acc -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### without @@ -3090,7 +3090,7 @@ without([2, 1, 2, 3], 1, 2); // [3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### xProd @@ -3111,7 +3111,7 @@ xProd([1, 2], ['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### zip @@ -3140,7 +3140,7 @@ zip(['a'], [1, 2], [true, false]); // [['a', 1, true], [undefined, 2, false]] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### zipObject @@ -3163,7 +3163,7 @@ zipObject(['a', 'b'], [1, 2, 3]); // {a: 1, b: 2} -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### zipWith ![advanced](/advanced.svg) @@ -3200,7 +3200,7 @@ zipWith( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -3230,7 +3230,7 @@ arrayToHtmlList(['item 1', 'item 2'], 'myListID'); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### bottomVisible @@ -3253,7 +3253,7 @@ bottomVisible(); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### copyToClipboard ![advanced](/advanced.svg) @@ -3297,7 +3297,7 @@ copyToClipboard('Lorem ipsum'); // 'Lorem ipsum' copied to clipboard. -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### counter ![advanced](/advanced.svg) @@ -3332,7 +3332,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](#contents) ### createElement @@ -3365,7 +3365,7 @@ console.log(el.className); // 'container' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### createEventHub ![advanced](/advanced.svg) @@ -3418,7 +3418,7 @@ hub.off('message', handler); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### currentURL @@ -3439,7 +3439,7 @@ currentURL(); // 'https://google.com' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### detectDeviceType @@ -3463,7 +3463,7 @@ detectDeviceType(); // "Mobile" or "Desktop" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### elementContains @@ -3485,7 +3485,7 @@ elementContains(document.querySelector('body'), document.querySelector('body')); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### elementIsVisibleInViewport ![advanced](/advanced.svg) @@ -3518,7 +3518,7 @@ elementIsVisibleInViewport(el, true); // true - (partially visible) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### getImages @@ -3543,7 +3543,7 @@ getImages(document, false); // ['image1.jpg', 'image2.png', '...'] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### getScrollPosition @@ -3568,7 +3568,7 @@ getScrollPosition(); // {x: 0, y: 200} -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### getStyle @@ -3589,7 +3589,7 @@ getStyle(document.querySelector('p'), 'font-size'); // '16px' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hasClass @@ -3610,7 +3610,7 @@ hasClass(document.querySelector('p.special'), 'special'); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hashBrowser ![advanced](/advanced.svg) @@ -3638,7 +3638,7 @@ hashBrowser(JSON.stringify({ a: 'a', b: [1, 2, 3, 4], foo: { c: 'bar' } })).then -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hide @@ -3659,7 +3659,7 @@ hide(document.querySelectorAll('img')); // Hides all elements on the page -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### httpsRedirect @@ -3682,7 +3682,7 @@ httpsRedirect(); // If you are on http://mydomain.com, you are redirected to htt -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### insertAfter @@ -3703,7 +3703,7 @@ insertAfter(document.getElementById('myId'), '

after

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

before

'); //

before

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

ele -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### show @@ -4120,7 +4120,7 @@ show(...document.querySelectorAll('img')); // Shows all elements on the pa -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### smoothScroll @@ -4146,7 +4146,7 @@ smoothScroll('.fooBar'); // scrolls smoothly to the first element with a class o -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toggleClass @@ -4167,7 +4167,7 @@ toggleClass(document.querySelector('p.special'), 'special'); // The paragraph wi -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### triggerEvent @@ -4192,7 +4192,7 @@ triggerEvent(document.getElementById('myId'), 'click', { username: 'bob' }); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### UUIDGeneratorBrowser @@ -4216,7 +4216,7 @@ UUIDGeneratorBrowser(); // '7982fcfe-5721-4632-bede-6000885be57d' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -4244,7 +4244,7 @@ dayOfYear(new Date()); // 272 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### formatDuration @@ -4282,7 +4282,7 @@ formatDuration(34325055574); // '397 days, 6 hours, 44 minutes, 15 seconds, 574 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### getColonTimeFromDate @@ -4303,7 +4303,7 @@ getColonTimeFromDate(new Date()); // "08:38:00" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### getDaysDiffBetweenDates @@ -4325,7 +4325,7 @@ getDaysDiffBetweenDates(new Date('2017-12-13'), new Date('2017-12-22')); // 9 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### getMeridiemSuffixOfInteger @@ -4356,7 +4356,7 @@ getMeridiemSuffixOfInteger(25); // "1pm" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isAfterDate @@ -4377,7 +4377,7 @@ isAfterDate(new Date(2010, 10, 21), new Date(2010, 10, 20)); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isBeforeDate @@ -4398,7 +4398,7 @@ isBeforeDate(new Date(2010, 10, 20), new Date(2010, 10, 21)); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isSameDate @@ -4419,7 +4419,7 @@ isSameDate(new Date(2010, 10, 20), new Date(2010, 10, 20)); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### maxDate @@ -4446,7 +4446,7 @@ maxDate(array); // 2018-03-11T22:00:00.000Z -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### minDate @@ -4473,7 +4473,7 @@ minDate(array); // 2016-01-08T22:00:00.000Z -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### tomorrow @@ -4502,7 +4502,7 @@ tomorrow(true); // 2017-12-27T00:00:00 (if current date is 2017-12-26) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -4537,7 +4537,7 @@ if (elements instanceof Error) elements = []; // elements = [] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### bind @@ -4564,7 +4564,7 @@ console.log(freddyBound('hi', '!')); // 'hi fred!' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### bindKey @@ -4594,7 +4594,7 @@ console.log(freddyBound('hi', '!')); // 'hi fred!' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### chainAsync @@ -4627,7 +4627,7 @@ chainAsync([ -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### compose @@ -4655,7 +4655,7 @@ multiplyAndAdd5(5, 2); // 15 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### composeRight @@ -4680,7 +4680,7 @@ addAndSquare(1, 2); // 9 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### converge @@ -4706,7 +4706,7 @@ average([1, 2, 3, 4, 5, 6, 7]); // 4 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### curry @@ -4732,7 +4732,7 @@ curry(Math.min, 3)(10)(50)(2); // 2 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### debounce @@ -4766,7 +4766,7 @@ window.addEventListener( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### defer @@ -4793,7 +4793,7 @@ defer(longRunningFunction); // Browser will update the HTML then run the functio -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### delay @@ -4821,7 +4821,7 @@ delay( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### functionName @@ -4842,7 +4842,7 @@ functionName(Math.max); // max (logged in debug channel of console) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hz @@ -4885,7 +4885,7 @@ Math.round(hz(sumForLoop)); // 4784 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### memoize ![advanced](/advanced.svg) @@ -4919,7 +4919,7 @@ console.log(anagramsCached.cache); // The cached anagrams map -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### negate @@ -4940,7 +4940,7 @@ const negate = func => (...args) => !func(...args); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### once @@ -4972,7 +4972,7 @@ document.body.addEventListener('click', once(startApp)); // only runs `startApp` -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### partial @@ -4995,7 +4995,7 @@ greetHello('John'); // 'Hello John!' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### partialRight @@ -5018,7 +5018,7 @@ greetJohn('Hello'); // 'Hello John!' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### runPromisesInSeries @@ -5040,7 +5040,7 @@ runPromisesInSeries([() => delay(1000), () => delay(2000)]); // Executes each pr -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sleep @@ -5065,7 +5065,7 @@ async function sleepyWork() { -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### throttle ![advanced](/advanced.svg) @@ -5114,7 +5114,7 @@ window.addEventListener( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### times @@ -5141,7 +5141,7 @@ console.log(output); // 01234 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### uncurry @@ -5172,7 +5172,7 @@ uncurriedAdd(1, 2, 3); // 6 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unfold @@ -5200,7 +5200,7 @@ unfold(f, 10); // [-10, -20, -30, -40, -50] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### when @@ -5223,7 +5223,7 @@ doubleEvenNumbers(1); // 1 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -5250,7 +5250,7 @@ approximatelyEqual(Math.PI / 2.0, 1.5708); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### average @@ -5272,7 +5272,7 @@ average(1, 2, 3); // 2 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### averageBy @@ -5296,7 +5296,7 @@ averageBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 5 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### binomialCoefficient @@ -5330,7 +5330,7 @@ binomialCoefficient(8, 2); // 28 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### clampNumber @@ -5353,7 +5353,7 @@ clampNumber(1, -1, -5); // -1 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### degreesToRads @@ -5374,7 +5374,7 @@ degreesToRads(90.0); // ~1.5708 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### digitize @@ -5396,7 +5396,7 @@ digitize(123); // [1, 2, 3] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### distance @@ -5417,7 +5417,7 @@ distance(1, 1, 2, 3); // 2.23606797749979 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### elo ![advanced](/advanced.svg) @@ -5467,7 +5467,7 @@ own individual rating by supplying it as the third argument. -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### factorial @@ -5498,7 +5498,7 @@ factorial(6); // 720 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### fibonacci @@ -5524,7 +5524,7 @@ fibonacci(6); // [0, 1, 1, 2, 3, 5] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### gcd @@ -5551,7 +5551,7 @@ gcd(...[12, 8, 32]); // 4 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### geometricProgression @@ -5580,7 +5580,7 @@ geometricProgression(256, 1, 4); // [1, 4, 16, 64, 256] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hammingDistance @@ -5602,7 +5602,7 @@ hammingDistance(2, 3); // 1 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### inRange @@ -5630,7 +5630,7 @@ inRange(3, 2); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isDivisible @@ -5651,7 +5651,7 @@ isDivisible(6, 3); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isEven @@ -5673,7 +5673,7 @@ isEven(3); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isPrime @@ -5699,7 +5699,7 @@ isPrime(11); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### lcm @@ -5726,7 +5726,7 @@ lcm(...[1, 3, 4, 5]); // 60 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### luhnCheck ![advanced](/advanced.svg) @@ -5762,7 +5762,7 @@ luhnCheck(123456789); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### maxBy @@ -5784,7 +5784,7 @@ maxBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 8 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### median @@ -5810,7 +5810,7 @@ median([5, 6, 50, 1, -5]); // 5 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### minBy @@ -5832,7 +5832,7 @@ minBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 2 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### percentile @@ -5854,7 +5854,7 @@ percentile([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 6); // 55 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### powerset @@ -5875,7 +5875,7 @@ powerset([1, 2]); // [[], [1], [2], [2, 1]] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### primes @@ -5902,7 +5902,7 @@ primes(10); // [2,3,5,7] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### radsToDegrees @@ -5923,7 +5923,7 @@ radsToDegrees(Math.PI / 2); // 90 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### randomIntArrayInRange @@ -5945,7 +5945,7 @@ randomIntArrayInRange(12, 35, 10); // [ 34, 14, 27, 17, 30, 27, 20, 26, 21, 14 ] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### randomIntegerInRange @@ -5966,7 +5966,7 @@ randomIntegerInRange(0, 5); // 2 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### randomNumberInRange @@ -5987,7 +5987,7 @@ randomNumberInRange(2, 10); // 6.0211363285087005 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### round @@ -6009,7 +6009,7 @@ round(1.005, 2); // 1.01 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sdbm @@ -6037,7 +6037,7 @@ sdbm('name'); // -3521204949 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### standardDeviation @@ -6067,7 +6067,7 @@ standardDeviation([10, 2, 38, 23, 38, 23, 21], true); // 12.29899614287479 (popu -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sum @@ -6088,7 +6088,7 @@ sum(...[1, 2, 3, 4]); // 10 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sumBy @@ -6111,7 +6111,7 @@ sumBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], 'n'); // 20 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sumPower @@ -6140,7 +6140,7 @@ sumPower(10, 3, 5); // 2925 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toSafeInteger @@ -6164,7 +6164,7 @@ toSafeInteger(Infinity); // 9007199254740991 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -6190,7 +6190,7 @@ atob('Zm9vYmFy'); // 'foobar' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### btoa @@ -6211,7 +6211,7 @@ btoa('foobar'); // 'Zm9vYmFy' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### colorize @@ -6252,7 +6252,7 @@ console.log(colorize(colorize('foo').yellow, colorize('foo').green).bgWhite); // -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hasFlags @@ -6278,7 +6278,7 @@ hasFlags('special'); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hashNode @@ -6312,7 +6312,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](#contents) ### isDuplexStream @@ -6342,7 +6342,7 @@ isDuplexStream(new Stream.Duplex()); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isReadableStream @@ -6370,7 +6370,7 @@ isReadableStream(fs.createReadStream('test.txt')); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isStream @@ -6392,7 +6392,7 @@ isStream(fs.createReadStream('test.txt')); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isTravisCI @@ -6413,7 +6413,7 @@ isTravisCI(); // true (if code is running on Travis CI) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isWritableStream @@ -6441,7 +6441,7 @@ isWritableStream(fs.createWriteStream('test.txt')); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### JSONToFile @@ -6464,7 +6464,7 @@ JSONToFile({ test: 'is passed' }, 'testJsonFile'); // writes the object to 'test -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### readFileLines @@ -6501,7 +6501,7 @@ console.log(arr); // ['line1', 'line2', 'line3'] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### untildify @@ -6522,7 +6522,7 @@ untildify('~/node'); // '/Users/aUser/node' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### UUIDGeneratorNode @@ -6547,7 +6547,7 @@ UUIDGeneratorNode(); // '79c7c136-60ee-40a2-beb2-856f1feabefc' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -6588,7 +6588,7 @@ jQuery(element).on('click', view.click); // Logs 'clicked docs' when clicked. -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### deepClone @@ -6618,7 +6618,7 @@ const b = deepClone(a); // a !== b, a.obj !== b.obj -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### deepFreeze @@ -6648,7 +6648,7 @@ o[1][0] = 4; // not allowed as well -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### defaults @@ -6669,7 +6669,7 @@ defaults({ a: 1 }, { b: 2 }, { b: 6 }, { a: 3 }); // { a: 1, b: 2 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### dig @@ -6705,7 +6705,7 @@ dig(data, 'level4'); // undefined -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### equals ![advanced](/advanced.svg) @@ -6737,7 +6737,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](#contents) ### findKey @@ -6765,7 +6765,7 @@ findKey( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### findLastKey @@ -6798,7 +6798,7 @@ findLastKey( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### flattenObject @@ -6829,7 +6829,7 @@ flattenObject({ a: { b: { c: 1 } }, d: 1 }); // { 'a.b.c': 1, d: 1 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### forOwn @@ -6850,7 +6850,7 @@ forOwn({ foo: 'bar', a: 1 }, v => console.log(v)); // 'bar', 1 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### forOwnRight @@ -6874,7 +6874,7 @@ forOwnRight({ foo: 'bar', a: 1 }, v => console.log(v)); // 1, 'bar' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### functions @@ -6908,7 +6908,7 @@ functions(new Foo(), true); // ['a', 'b', 'c'] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### get @@ -6937,7 +6937,7 @@ get(obj, 'selector.to.val', 'target[0]', 'target[2].a'); // ['val to select', 1, -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### invertKeyValues @@ -6966,7 +6966,7 @@ invertKeyValues({ a: 1, b: 2, c: 1 }, value => 'group' + value); // { group1: [ -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### lowercaseKeys @@ -6993,7 +6993,7 @@ const myObjLower = lowercaseKeys(myObj); // {name: 'Adam', surname: 'Smith'}; -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### mapKeys @@ -7019,7 +7019,7 @@ mapKeys({ a: 1, b: 2 }, (val, key) => key + val); // { a1: 1, b2: 2 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### mapValues @@ -7049,7 +7049,7 @@ mapValues(users, u => u.age); // { fred: 40, pebbles: 1 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### matches @@ -7072,7 +7072,7 @@ matches({ hair: 'long', beard: true }, { age: 25, hair: 'long', beard: true }); -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### matchesWith @@ -7105,7 +7105,7 @@ matchesWith( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### merge @@ -7144,7 +7144,7 @@ merge(object, other); // { a: [ { x: 2 }, { y: 4 }, { z: 3 } ], b: [ 1, 2, 3 ], -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### nest @@ -7181,7 +7181,7 @@ const nestedComments = nest(comments); // [{ id: 1, parent_id: null, children: [ -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### objectFromPairs @@ -7202,7 +7202,7 @@ objectFromPairs([['a', 1], ['b', 2]]); // {a: 1, b: 2} -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### objectToPairs @@ -7223,7 +7223,7 @@ objectToPairs({ a: 1, b: 2 }); // [ ['a', 1], ['b', 2] ] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### omit @@ -7248,7 +7248,7 @@ omit({ a: 1, b: '2', c: 3 }, ['b']); // { 'a': 1, 'c': 3 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### omitBy @@ -7273,7 +7273,7 @@ omitBy({ a: 1, b: '2', c: 3 }, x => typeof x === 'number'); // { b: '2' } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### orderBy @@ -7306,7 +7306,7 @@ orderBy(users, ['name', 'age']); // [{name: 'barney', age: 36}, {name: 'fred', a -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pick @@ -7328,7 +7328,7 @@ pick({ a: 1, b: '2', c: 3 }, ['a', 'c']); // { 'a': 1, 'c': 3 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pickBy @@ -7353,7 +7353,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](#contents) ### renameKeys @@ -7382,7 +7382,7 @@ renameKeys({ name: 'firstName', job: 'passion' }, obj); // { firstName: 'Bobo', -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### shallowClone @@ -7404,7 +7404,7 @@ const b = shallowClone(a); // a !== b -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### size @@ -7439,7 +7439,7 @@ size({ one: 1, two: 2, three: 3 }); // 3 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### transform @@ -7467,7 +7467,7 @@ transform( -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### truthCheckCollection @@ -7488,7 +7488,7 @@ truthCheckCollection([{ user: 'Tinky-Winky', sex: 'male' }, { user: 'Dipsy', sex -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unflattenObject ![advanced](/advanced.svg) @@ -7526,7 +7526,7 @@ unflattenObject({ 'a.b.c': 1, d: 1 }); // { a: { b: { c: 1 } }, d: 1 } -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -7553,7 +7553,7 @@ byteSize('Hello World'); // 11 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### capitalize @@ -7577,7 +7577,7 @@ capitalize('fooBar', true); // 'Foobar' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### capitalizeEveryWord @@ -7598,7 +7598,7 @@ capitalizeEveryWord('hello world!'); // 'Hello World!' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### CSVToArray @@ -7628,7 +7628,7 @@ CSVToArray('col1,col2\na,b\nc,d', ',', true); // [['a','b'],['c','d']]; -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### CSVToJSON ![advanced](/advanced.svg) @@ -7663,7 +7663,7 @@ CSVToJSON('col1;col2\na;b\nc;d', ';'); // [{'col1': 'a', 'col2': 'b'}, {'col1': -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### decapitalize @@ -7687,7 +7687,7 @@ decapitalize('FooBar', true); // 'fOOBAR' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### escapeHTML @@ -7719,7 +7719,7 @@ escapeHTML('Me & you'); // '<a href="#">Me & -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### escapeRegExp @@ -7740,7 +7740,7 @@ escapeRegExp('(test)'); // \\(test\\) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### fromCamelCase @@ -7768,7 +7768,7 @@ fromCamelCase('someJavascriptProperty', '_'); // 'some_javascript_property' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### indentString @@ -7791,7 +7791,7 @@ indentString('Lorem\nIpsum', 2, '_'); // '__Lorem\n__Ipsum' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isAbsoluteURL @@ -7814,7 +7814,7 @@ isAbsoluteURL('/foo/bar'); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isAnagram @@ -7844,7 +7844,7 @@ isAnagram('iceman', 'cinema'); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isLowerCase @@ -7867,7 +7867,7 @@ isLowerCase('Ab4'); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isUpperCase @@ -7891,7 +7891,7 @@ isLowerCase('aB4'); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### mapString @@ -7918,7 +7918,7 @@ mapString('lorem ipsum', c => c.toUpperCase()); // 'LOREM IPSUM' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### mask @@ -7943,7 +7943,7 @@ mask(1234567890, -4, '$'); // '$$$$567890' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pad @@ -7968,7 +7968,7 @@ pad('foobar', 3); // 'foobar' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### palindrome @@ -7993,7 +7993,7 @@ palindrome('taco cat'); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### pluralize @@ -8029,7 +8029,7 @@ autoPluralize(2, 'person'); // 'people' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### removeNonASCII @@ -8050,7 +8050,7 @@ removeNonASCII('äÄçÇéÉêlorem-ipsumöÖÐþúÚ'); // 'lorem-ipsum' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### reverseString @@ -8072,7 +8072,7 @@ reverseString('foobar'); // 'raboof' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### sortCharactersInString @@ -8093,7 +8093,7 @@ sortCharactersInString('cabbage'); // 'aabbceg' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### splitLines @@ -8114,7 +8114,7 @@ splitLines('This\nis a\nmultiline\nstring.\n'); // ['This', 'is a', 'multiline', -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### stringPermutations ![advanced](/advanced.svg) @@ -8149,7 +8149,7 @@ stringPermutations('abc'); // ['abc','acb','bac','bca','cab','cba'] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### stripHTMLTags @@ -8170,7 +8170,7 @@ stripHTMLTags('

lorem ipsum

'); // 'lorem ipsum' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toCamelCase @@ -8202,7 +8202,7 @@ toCamelCase('some-mixed_string with spaces_underscores-and-hyphens'); // 'someMi -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toKebabCase @@ -8232,7 +8232,7 @@ toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSo -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toSnakeCase @@ -8262,7 +8262,7 @@ toSnakeCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSo -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toTitleCase @@ -8290,7 +8290,7 @@ toTitleCase('some-mixed_string with spaces_underscores-and-hyphens'); // 'Some M -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### truncateString @@ -8313,7 +8313,7 @@ truncateString('boomerang', 7); // 'boom...' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### unescapeHTML @@ -8345,7 +8345,7 @@ unescapeHTML('<a href="#">Me & you</a>'); // ' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### URLJoin ![advanced](/advanced.svg) @@ -8374,7 +8374,7 @@ URLJoin('http://www.google.com', 'a', '/b/cd', '?foo=123', '?bar=foo'); // 'http -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### words @@ -8397,7 +8397,7 @@ words('python, javaScript & coffee'); // ["python", "javaScript", "coffee"] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -8424,7 +8424,7 @@ getType(new Set([1, 2, 3])); // 'set' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### is @@ -8457,7 +8457,7 @@ is(Boolean, new Boolean(true)); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isArrayLike @@ -8480,7 +8480,7 @@ isArrayLike(null); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isBoolean @@ -8502,7 +8502,7 @@ isBoolean(false); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isEmpty @@ -8532,7 +8532,7 @@ isEmpty(true); // true - type is not considered a collection -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isFunction @@ -8554,7 +8554,7 @@ isFunction(x => x); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isNil @@ -8576,7 +8576,7 @@ isNil(undefined); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isNull @@ -8597,7 +8597,7 @@ isNull(null); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isNumber @@ -8619,7 +8619,7 @@ isNumber(1); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isObject @@ -8646,7 +8646,7 @@ isObject(true); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isObjectLike @@ -8670,7 +8670,7 @@ isObjectLike(null); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isPlainObject @@ -8692,7 +8692,7 @@ isPlainObject(new Map()); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isPrimitive @@ -8718,7 +8718,7 @@ isPrimitive([]); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isPromiseLike @@ -8748,7 +8748,7 @@ isPromiseLike({}); // false -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isString @@ -8769,7 +8769,7 @@ isString('10'); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isSymbol @@ -8790,7 +8790,7 @@ isSymbol(Symbol('x')); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isUndefined @@ -8811,7 +8811,7 @@ isUndefined(undefined); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isValidJSON @@ -8841,7 +8841,7 @@ isValidJSON(null); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) --- @@ -8868,7 +8868,7 @@ castArray([1]); // [1] -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### cloneRegExp @@ -8890,7 +8890,7 @@ const regExp2 = cloneRegExp(regExp); // /lorem ipsum/gi -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### coalesce @@ -8911,7 +8911,7 @@ coalesce(null, undefined, '', NaN, 'Waldo'); // "" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### coalesceFactory @@ -8933,7 +8933,7 @@ customCoalesce(undefined, null, NaN, '', 'Waldo'); // "Waldo" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### extendHex @@ -8962,7 +8962,7 @@ extendHex('05a'); // '#0055aa' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### getURLParameters @@ -8989,7 +8989,7 @@ getURLParameters('google.com'); // {} -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### hexToRGB ![advanced](/advanced.svg) @@ -9030,7 +9030,7 @@ hexToRGB('#fff'); // 'rgb(255, 255, 255)' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### httpGet @@ -9070,7 +9070,7 @@ Logs: { -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### httpPost @@ -9130,7 +9130,7 @@ Logs: { -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### isBrowser @@ -9154,7 +9154,7 @@ isBrowser(); // false (Node) -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### mostPerformant @@ -9193,7 +9193,7 @@ mostPerformant([ -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### nthArg @@ -9218,7 +9218,7 @@ last(1, 2, 3, 4, 5); // 5 -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### parseCookie @@ -9248,7 +9248,7 @@ parseCookie('foo=bar; equation=E%3Dmc%5E2'); // { foo: 'bar', equation: 'E=mc^2' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### prettyBytes ![advanced](/advanced.svg) @@ -9281,7 +9281,7 @@ prettyBytes(123456789, 3, false); // "123MB" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### randomHexColorCode @@ -9305,7 +9305,7 @@ randomHexColorCode(); // "#e34155" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### RGBToHex @@ -9326,7 +9326,7 @@ RGBToHex(255, 165, 1); // 'ffa501' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### serializeCookie @@ -9347,7 +9347,7 @@ serializeCookie('foo', 'bar'); // 'foo=bar' -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### timeTaken @@ -9373,7 +9373,7 @@ timeTaken(() => Math.pow(2, 10)); // 1024, (logged): timeTaken: 0.02099609375ms -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toCurrency @@ -9399,7 +9399,7 @@ toCurrency(322342436423.2435, 'JPY', 'fi'); // 322 342 436 423 ¥ | currency: Ja -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toDecimalMark @@ -9418,7 +9418,7 @@ toDecimalMark(12305030388.9087); // "12,305,030,388.909" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### toOrdinalSuffix @@ -9450,7 +9450,7 @@ toOrdinalSuffix('123'); // "123rd" -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### validateNumber @@ -9473,7 +9473,7 @@ validateNumber('10'); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ### yesNo @@ -9499,7 +9499,7 @@ yesNo('Foo', true); // true -
[⬆ Back to top](#table-of-contents) +
[⬆ Back to top](#contents) ## Collaborators