prototyped.js 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +9 -32
- package/.gitattributes +2 -0
- package/.github/workflows/release.yml +13 -6
- package/.github/workflows/test.yml +14 -13
- package/__tests__/array/all.test.ts +2 -2
- package/__tests__/array/any.test.ts +1 -1
- package/__tests__/array/append.test.ts +5 -7
- package/__tests__/array/average.test.ts +2 -6
- package/__tests__/array/compact.test.ts +13 -15
- package/__tests__/array/countBy.test.ts +8 -2
- package/__tests__/array/diff.test.ts +4 -6
- package/__tests__/array/distinct.test.ts +3 -8
- package/__tests__/array/distinctBy.test.ts +1 -3
- package/__tests__/array/equals.test.ts +15 -15
- package/__tests__/array/implode.test.ts +14 -18
- package/__tests__/array/max.test.ts +1 -3
- package/__tests__/array/median.test.ts +2 -8
- package/__tests__/array/min.test.ts +1 -3
- package/__tests__/array/nest.test.ts +60 -30
- package/__tests__/array/orderBy.test.ts +2 -3
- package/__tests__/array/partition.test.ts +23 -9
- package/__tests__/array/pluck.test.ts +5 -9
- package/__tests__/array/pull.test.ts +2 -2
- package/__tests__/array/sortBy.test.ts +1 -1
- package/__tests__/array/sum.test.ts +1 -3
- package/__tests__/array/toCSV.test.ts +8 -12
- package/__tests__/array/unwind.test.ts +4 -6
- package/__tests__/array/where.test.ts +11 -19
- package/__tests__/array/whereBetween.test.ts +2 -3
- package/__tests__/array/whereIn.test.ts +2 -3
- package/__tests__/array/whereLike.test.ts +4 -6
- package/__tests__/array/whereNotBetween.test.ts +5 -7
- package/__tests__/array/whereNotIn.test.ts +1 -3
- package/__tests__/array/whereNotLike.test.ts +4 -6
- package/__tests__/array/whereNotNull.test.ts +3 -6
- package/__tests__/array/whereNull.test.ts +3 -3
- package/__tests__/array/zip.test.ts +1 -0
- package/__tests__/array/zipObject.test.ts +5 -1
- package/__tests__/date/equals.test.ts +4 -4
- package/__tests__/date/isDate.test.ts +1 -1
- package/__tests__/date/today.test.ts +6 -8
- package/__tests__/date/tomorrow.test.ts +6 -8
- package/__tests__/date/yesterday.test.ts +6 -8
- package/__tests__/object/assign.test.ts +4 -1
- package/__tests__/object/camelCaseKeys.test.ts +9 -5
- package/__tests__/object/clone.test.ts +32 -9
- package/__tests__/object/defaults.test.ts +4 -1
- package/__tests__/object/dig.test.ts +1 -0
- package/__tests__/object/equals.test.ts +16 -12
- package/__tests__/object/flatten.test.ts +15 -12
- package/__tests__/object/forEach.test.ts +14 -5
- package/__tests__/object/get.test.ts +1 -3
- package/__tests__/object/invert.test.ts +5 -2
- package/__tests__/object/isPlainObject.test.ts +3 -1
- package/__tests__/object/kebabCaseKeys.test.ts +9 -5
- package/__tests__/object/keys.test.ts +5 -1
- package/__tests__/object/lowerCaseKeys.test.ts +5 -2
- package/__tests__/object/map.test.ts +15 -8
- package/__tests__/object/mapKeys.test.ts +4 -1
- package/__tests__/object/mapValues.test.ts +15 -8
- package/__tests__/object/merge.test.ts +14 -9
- package/__tests__/object/omit.test.ts +13 -2
- package/__tests__/object/reduce.test.ts +15 -12
- package/__tests__/object/set.test.ts +2 -0
- package/__tests__/object/size.test.ts +5 -1
- package/__tests__/object/snakeCaseKeys.test.ts +9 -5
- package/__tests__/object/values.test.ts +5 -1
- package/__tests__/string/camelCase.test.ts +7 -14
- package/__tests__/string/humanize.test.ts +4 -5
- package/__tests__/string/kebabCase.test.ts +9 -13
- package/__tests__/string/map.test.ts +1 -1
- package/__tests__/string/pluralize.test.ts +15 -3
- package/__tests__/string/reduce.test.ts +1 -0
- package/__tests__/string/snakeCase.test.ts +9 -13
- package/__tests__/utils.test.ts +2 -2
- package/build/cjs/array/all/index.js +10 -0
- package/build/cjs/array/all/index.js.map +1 -1
- package/build/cjs/array/all/shim.js +1 -12
- package/build/cjs/array/all/shim.js.map +1 -1
- package/build/cjs/array/any/index.js +11 -0
- package/build/cjs/array/any/index.js.map +1 -1
- package/build/cjs/array/any/shim.js +1 -13
- package/build/cjs/array/any/shim.js.map +1 -1
- package/build/cjs/array/append/index.js +8 -0
- package/build/cjs/array/append/index.js.map +1 -1
- package/build/cjs/array/append/shim.js +1 -11
- package/build/cjs/array/append/shim.js.map +1 -1
- package/build/cjs/array/average/index.js +12 -2
- package/build/cjs/array/average/index.js.map +1 -1
- package/build/cjs/array/average/shim.js +2 -25
- package/build/cjs/array/average/shim.js.map +1 -1
- package/build/cjs/array/chunk/index.js +8 -1
- package/build/cjs/array/chunk/index.js.map +1 -1
- package/build/cjs/array/chunk/shim.js +1 -10
- package/build/cjs/array/chunk/shim.js.map +1 -1
- package/build/cjs/array/clone/index.js +7 -0
- package/build/cjs/array/clone/index.js.map +1 -1
- package/build/cjs/array/clone/shim.js +1 -10
- package/build/cjs/array/clone/shim.js.map +1 -1
- package/build/cjs/array/compact/index.js +6 -0
- package/build/cjs/array/compact/index.js.map +1 -1
- package/build/cjs/array/compact/shim.js +1 -9
- package/build/cjs/array/compact/shim.js.map +1 -1
- package/build/cjs/array/contains/index.js +10 -0
- package/build/cjs/array/contains/index.js.map +1 -1
- package/build/cjs/array/contains/shim.js +1 -10
- package/build/cjs/array/contains/shim.js.map +1 -1
- package/build/cjs/array/count/index.js +12 -3
- package/build/cjs/array/count/index.js.map +1 -1
- package/build/cjs/array/count/shim.js +1 -11
- package/build/cjs/array/count/shim.js.map +1 -1
- package/build/cjs/array/countBy/index.js +10 -0
- package/build/cjs/array/countBy/index.js.map +1 -1
- package/build/cjs/array/countBy/shim.js +1 -12
- package/build/cjs/array/countBy/shim.js.map +1 -1
- package/build/cjs/array/crossJoin/index.js +9 -1
- package/build/cjs/array/crossJoin/index.js.map +1 -1
- package/build/cjs/array/crossJoin/shim.js +1 -11
- package/build/cjs/array/crossJoin/shim.js.map +1 -1
- package/build/cjs/array/deepFlatten/index.js +7 -1
- package/build/cjs/array/deepFlatten/index.js.map +1 -1
- package/build/cjs/array/deepFlatten/shim.js +1 -9
- package/build/cjs/array/deepFlatten/shim.js.map +1 -1
- package/build/cjs/array/diff/index.js +14 -2
- package/build/cjs/array/diff/index.js.map +1 -1
- package/build/cjs/array/diff/shim.js +1 -14
- package/build/cjs/array/diff/shim.js.map +1 -1
- package/build/cjs/array/distinct/index.js +16 -4
- package/build/cjs/array/distinct/index.js.map +1 -1
- package/build/cjs/array/distinct/shim.js +1 -12
- package/build/cjs/array/distinct/shim.js.map +1 -1
- package/build/cjs/array/distinctBy/index.js +12 -5
- package/build/cjs/array/distinctBy/index.js.map +1 -1
- package/build/cjs/array/distinctBy/shim.js +1 -10
- package/build/cjs/array/distinctBy/shim.js.map +1 -1
- package/build/cjs/array/empty/index.js +8 -0
- package/build/cjs/array/empty/index.js.map +1 -1
- package/build/cjs/array/empty/shim.js +1 -10
- package/build/cjs/array/empty/shim.js.map +1 -1
- package/build/cjs/array/equals/index.js +8 -1
- package/build/cjs/array/equals/index.js.map +1 -1
- package/build/cjs/array/equals/shim.js +1 -10
- package/build/cjs/array/equals/shim.js.map +1 -1
- package/build/cjs/array/everyNth/index.js +7 -0
- package/build/cjs/array/everyNth/index.js.map +1 -1
- package/build/cjs/array/everyNth/shim.js +1 -9
- package/build/cjs/array/everyNth/shim.js.map +1 -1
- package/build/cjs/array/first/index.js +6 -0
- package/build/cjs/array/first/index.js.map +1 -1
- package/build/cjs/array/first/shim.js +1 -9
- package/build/cjs/array/first/shim.js.map +1 -1
- package/build/cjs/array/flatten/index.js +10 -2
- package/build/cjs/array/flatten/index.js.map +1 -1
- package/build/cjs/array/flatten/shim.js +1 -11
- package/build/cjs/array/flatten/shim.js.map +1 -1
- package/build/cjs/array/get/index.js +10 -0
- package/build/cjs/array/get/index.js.map +1 -1
- package/build/cjs/array/get/shim.js +1 -12
- package/build/cjs/array/get/shim.js.map +1 -1
- package/build/cjs/array/groupBy/index.js +11 -1
- package/build/cjs/array/groupBy/index.js.map +1 -1
- package/build/cjs/array/groupBy/shim.js +1 -11
- package/build/cjs/array/groupBy/shim.js.map +1 -1
- package/build/cjs/array/implode/index.js +4 -2
- package/build/cjs/array/implode/index.js.map +1 -1
- package/build/cjs/array/implode/shim.js +1 -12
- package/build/cjs/array/implode/shim.js.map +1 -1
- package/build/cjs/array/index.js.map +1 -1
- package/build/cjs/array/indexOfAll/index.js +9 -0
- package/build/cjs/array/indexOfAll/index.js.map +1 -1
- package/build/cjs/array/indexOfAll/shim.js +1 -11
- package/build/cjs/array/indexOfAll/shim.js.map +1 -1
- package/build/cjs/array/initial/index.js +5 -0
- package/build/cjs/array/initial/index.js.map +1 -1
- package/build/cjs/array/initial/shim.js +1 -9
- package/build/cjs/array/initial/shim.js.map +1 -1
- package/build/cjs/array/intersect/index.js +8 -1
- package/build/cjs/array/intersect/index.js.map +1 -1
- package/build/cjs/array/intersect/shim.js +1 -10
- package/build/cjs/array/intersect/shim.js.map +1 -1
- package/build/cjs/array/isEmpty/index.js +7 -0
- package/build/cjs/array/isEmpty/index.js.map +1 -1
- package/build/cjs/array/isEmpty/shim.js +1 -10
- package/build/cjs/array/isEmpty/shim.js.map +1 -1
- package/build/cjs/array/last/index.js +6 -0
- package/build/cjs/array/last/index.js.map +1 -1
- package/build/cjs/array/last/shim.js +1 -9
- package/build/cjs/array/last/shim.js.map +1 -1
- package/build/cjs/array/limit/index.js +9 -2
- package/build/cjs/array/limit/index.js.map +1 -1
- package/build/cjs/array/limit/shim.js +2 -21
- package/build/cjs/array/limit/shim.js.map +1 -1
- package/build/cjs/array/max/index.js +1 -1
- package/build/cjs/array/max/index.js.map +1 -1
- package/build/cjs/array/max/shim.js +1 -12
- package/build/cjs/array/max/shim.js.map +1 -1
- package/build/cjs/array/median/index.js +1 -1
- package/build/cjs/array/median/index.js.map +1 -1
- package/build/cjs/array/median/shim.js +1 -11
- package/build/cjs/array/median/shim.js.map +1 -1
- package/build/cjs/array/merge/index.js +8 -0
- package/build/cjs/array/merge/index.js.map +1 -1
- package/build/cjs/array/merge/shim.js +1 -10
- package/build/cjs/array/merge/shim.js.map +1 -1
- package/build/cjs/array/min/index.js +1 -1
- package/build/cjs/array/min/index.js.map +1 -1
- package/build/cjs/array/min/shim.js +1 -12
- package/build/cjs/array/min/shim.js.map +1 -1
- package/build/cjs/array/nest/index.js +24 -5
- package/build/cjs/array/nest/index.js.map +1 -1
- package/build/cjs/array/nest/shim.js +1 -18
- package/build/cjs/array/nest/shim.js.map +1 -1
- package/build/cjs/array/orderBy/index.js +11 -9
- package/build/cjs/array/orderBy/index.js.map +1 -1
- package/build/cjs/array/orderBy/shim.js +1 -13
- package/build/cjs/array/orderBy/shim.js.map +1 -1
- package/build/cjs/array/pad/index.js +10 -0
- package/build/cjs/array/pad/index.js.map +1 -1
- package/build/cjs/array/pad/shim.js +1 -12
- package/build/cjs/array/pad/shim.js.map +1 -1
- package/build/cjs/array/partition/index.js +17 -1
- package/build/cjs/array/partition/index.js.map +1 -1
- package/build/cjs/array/partition/shim.js +1 -17
- package/build/cjs/array/partition/shim.js.map +1 -1
- package/build/cjs/array/pluck/index.js +11 -1
- package/build/cjs/array/pluck/index.js.map +1 -1
- package/build/cjs/array/pluck/shim.js +1 -11
- package/build/cjs/array/pluck/shim.js.map +1 -1
- package/build/cjs/array/prepend/index.js +8 -0
- package/build/cjs/array/prepend/index.js.map +1 -1
- package/build/cjs/array/prepend/shim.js +1 -10
- package/build/cjs/array/prepend/shim.js.map +1 -1
- package/build/cjs/array/pull/index.js +10 -2
- package/build/cjs/array/pull/index.js.map +1 -1
- package/build/cjs/array/pull/shim.js +1 -10
- package/build/cjs/array/pull/shim.js.map +1 -1
- package/build/cjs/array/range/index.js +14 -1
- package/build/cjs/array/range/index.js.map +1 -1
- package/build/cjs/array/range/shim.js +0 -14
- package/build/cjs/array/range/shim.js.map +1 -1
- package/build/cjs/array/repeat/index.js +7 -0
- package/build/cjs/array/repeat/index.js.map +1 -1
- package/build/cjs/array/repeat/shim.js +0 -10
- package/build/cjs/array/repeat/shim.js.map +1 -1
- package/build/cjs/array/sample/index.js +5 -0
- package/build/cjs/array/sample/index.js.map +1 -1
- package/build/cjs/array/sample/shim.js +1 -9
- package/build/cjs/array/sample/shim.js.map +1 -1
- package/build/cjs/array/shim.js +0 -1
- package/build/cjs/array/shim.js.map +1 -1
- package/build/cjs/array/shuffle/index.js +6 -0
- package/build/cjs/array/shuffle/index.js.map +1 -1
- package/build/cjs/array/shuffle/shim.js +0 -9
- package/build/cjs/array/shuffle/shim.js.map +1 -1
- package/build/cjs/array/skip/index.js +7 -0
- package/build/cjs/array/skip/index.js.map +1 -1
- package/build/cjs/array/skip/shim.js +1 -20
- package/build/cjs/array/skip/shim.js.map +1 -1
- package/build/cjs/array/sortBy/index.js +10 -0
- package/build/cjs/array/sortBy/index.js.map +1 -1
- package/build/cjs/array/sortBy/shim.js +0 -11
- package/build/cjs/array/sortBy/shim.js.map +1 -1
- package/build/cjs/array/sum/index.js +17 -7
- package/build/cjs/array/sum/index.js.map +1 -1
- package/build/cjs/array/sum/shim.js +0 -11
- package/build/cjs/array/sum/shim.js.map +1 -1
- package/build/cjs/array/tail/index.js +5 -0
- package/build/cjs/array/tail/index.js.map +1 -1
- package/build/cjs/array/tail/shim.js +1 -9
- package/build/cjs/array/tail/shim.js.map +1 -1
- package/build/cjs/array/toCSV/index.js +9 -0
- package/build/cjs/array/toCSV/index.js.map +1 -1
- package/build/cjs/array/toCSV/shim.js +1 -11
- package/build/cjs/array/toCSV/shim.js.map +1 -1
- package/build/cjs/array/union/index.js +7 -0
- package/build/cjs/array/union/index.js.map +1 -1
- package/build/cjs/array/union/shim.js +1 -10
- package/build/cjs/array/union/shim.js.map +1 -1
- package/build/cjs/array/unwind/index.js +12 -1
- package/build/cjs/array/unwind/index.js.map +1 -1
- package/build/cjs/array/unwind/shim.js +1 -11
- package/build/cjs/array/unwind/shim.js.map +1 -1
- package/build/cjs/array/where/index.js +35 -29
- package/build/cjs/array/where/index.js.map +1 -1
- package/build/cjs/array/where/shim.js +1 -15
- package/build/cjs/array/where/shim.js.map +1 -1
- package/build/cjs/array/whereBetween/index.js +10 -5
- package/build/cjs/array/whereBetween/index.js.map +1 -1
- package/build/cjs/array/whereBetween/shim.js +1 -13
- package/build/cjs/array/whereBetween/shim.js.map +1 -1
- package/build/cjs/array/whereIn/index.js +4 -4
- package/build/cjs/array/whereIn/index.js.map +1 -1
- package/build/cjs/array/whereIn/shim.js +1 -12
- package/build/cjs/array/whereIn/shim.js.map +1 -1
- package/build/cjs/array/whereLike/index.js +4 -4
- package/build/cjs/array/whereLike/index.js.map +1 -1
- package/build/cjs/array/whereLike/shim.js +1 -13
- package/build/cjs/array/whereLike/shim.js.map +1 -1
- package/build/cjs/array/whereNotBetween/index.js +10 -5
- package/build/cjs/array/whereNotBetween/index.js.map +1 -1
- package/build/cjs/array/whereNotBetween/shim.js +1 -13
- package/build/cjs/array/whereNotBetween/shim.js.map +1 -1
- package/build/cjs/array/whereNotIn/index.js +4 -4
- package/build/cjs/array/whereNotIn/index.js.map +1 -1
- package/build/cjs/array/whereNotIn/shim.js +1 -12
- package/build/cjs/array/whereNotIn/shim.js.map +1 -1
- package/build/cjs/array/whereNotLike/index.js +4 -4
- package/build/cjs/array/whereNotLike/index.js.map +1 -1
- package/build/cjs/array/whereNotLike/shim.js +1 -12
- package/build/cjs/array/whereNotLike/shim.js.map +1 -1
- package/build/cjs/array/whereNotNull/index.js +10 -2
- package/build/cjs/array/whereNotNull/index.js.map +1 -1
- package/build/cjs/array/whereNotNull/shim.js +1 -11
- package/build/cjs/array/whereNotNull/shim.js.map +1 -1
- package/build/cjs/array/whereNull/index.js +10 -2
- package/build/cjs/array/whereNull/index.js.map +1 -1
- package/build/cjs/array/whereNull/shim.js +1 -11
- package/build/cjs/array/whereNull/shim.js.map +1 -1
- package/build/cjs/array/zip/index.js +10 -3
- package/build/cjs/array/zip/index.js.map +1 -1
- package/build/cjs/array/zip/shim.js +1 -11
- package/build/cjs/array/zip/shim.js.map +1 -1
- package/build/cjs/array/zipObject/index.js +14 -1
- package/build/cjs/array/zipObject/index.js.map +1 -1
- package/build/cjs/array/zipObject/shim.js +1 -12
- package/build/cjs/array/zipObject/shim.js.map +1 -1
- package/build/cjs/boolean/isBoolean/index.js +8 -0
- package/build/cjs/boolean/isBoolean/index.js.map +1 -1
- package/build/cjs/boolean/isBoolean/shim.js +0 -10
- package/build/cjs/boolean/isBoolean/shim.js.map +1 -1
- package/build/cjs/boolean/shim.js +0 -1
- package/build/cjs/boolean/shim.js.map +1 -1
- package/build/cjs/date/equals/index.js +7 -0
- package/build/cjs/date/equals/index.js.map +1 -1
- package/build/cjs/date/equals/shim.js +1 -10
- package/build/cjs/date/equals/shim.js.map +1 -1
- package/build/cjs/date/isDate/index.js +10 -2
- package/build/cjs/date/isDate/index.js.map +1 -1
- package/build/cjs/date/isDate/shim.js +0 -10
- package/build/cjs/date/isDate/shim.js.map +1 -1
- package/build/cjs/date/shim.js +0 -1
- package/build/cjs/date/shim.js.map +1 -1
- package/build/cjs/date/today/index.js +8 -2
- package/build/cjs/date/today/index.js.map +1 -1
- package/build/cjs/date/today/shim.js +0 -8
- package/build/cjs/date/today/shim.js.map +1 -1
- package/build/cjs/date/tomorrow/index.js +8 -2
- package/build/cjs/date/tomorrow/index.js.map +1 -1
- package/build/cjs/date/tomorrow/shim.js +0 -8
- package/build/cjs/date/tomorrow/shim.js.map +1 -1
- package/build/cjs/date/yesterday/index.js +8 -2
- package/build/cjs/date/yesterday/index.js.map +1 -1
- package/build/cjs/date/yesterday/shim.js +0 -8
- package/build/cjs/date/yesterday/shim.js.map +1 -1
- package/build/cjs/function/cache/index.js +9 -1
- package/build/cjs/function/cache/index.js.map +1 -1
- package/build/cjs/function/cache/shim.js +0 -11
- package/build/cjs/function/cache/shim.js.map +1 -1
- package/build/cjs/function/defer/index.js +8 -0
- package/build/cjs/function/defer/index.js.map +1 -1
- package/build/cjs/function/defer/shim.js +1 -11
- package/build/cjs/function/defer/shim.js.map +1 -1
- package/build/cjs/function/isFunction/index.js +8 -0
- package/build/cjs/function/isFunction/index.js.map +1 -1
- package/build/cjs/function/isFunction/shim.js +0 -10
- package/build/cjs/function/isFunction/shim.js.map +1 -1
- package/build/cjs/function/once/index.js +9 -0
- package/build/cjs/function/once/index.js.map +1 -1
- package/build/cjs/function/once/shim.js +1 -12
- package/build/cjs/function/once/shim.js.map +1 -1
- package/build/cjs/function/shim.js +0 -1
- package/build/cjs/function/shim.js.map +1 -1
- package/build/cjs/globals/isBrowser/index.js +6 -0
- package/build/cjs/globals/isBrowser/index.js.map +1 -1
- package/build/cjs/globals/isBrowser/shim.js +0 -9
- package/build/cjs/globals/isBrowser/shim.js.map +1 -1
- package/build/cjs/globals/shim.js +0 -1
- package/build/cjs/globals/shim.js.map +1 -1
- package/build/cjs/index.js +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/math/average/index.js +8 -0
- package/build/cjs/math/average/index.js.map +1 -1
- package/build/cjs/math/average/shim.js +1 -22
- package/build/cjs/math/average/shim.js.map +1 -1
- package/build/cjs/math/degreesToRads/index.js +8 -2
- package/build/cjs/math/degreesToRads/index.js.map +1 -1
- package/build/cjs/math/degreesToRads/shim.js +0 -9
- package/build/cjs/math/degreesToRads/shim.js.map +1 -1
- package/build/cjs/math/factorial/index.js +6 -0
- package/build/cjs/math/factorial/index.js.map +1 -1
- package/build/cjs/math/factorial/shim.js +0 -9
- package/build/cjs/math/factorial/shim.js.map +1 -1
- package/build/cjs/math/fibonacci/index.js +6 -0
- package/build/cjs/math/fibonacci/index.js.map +1 -1
- package/build/cjs/math/fibonacci/shim.js +0 -9
- package/build/cjs/math/fibonacci/shim.js.map +1 -1
- package/build/cjs/math/gcd/index.js +10 -2
- package/build/cjs/math/gcd/index.js.map +1 -1
- package/build/cjs/math/gcd/shim.js +0 -10
- package/build/cjs/math/gcd/shim.js.map +1 -1
- package/build/cjs/math/isDivisible/index.js +7 -0
- package/build/cjs/math/isDivisible/index.js.map +1 -1
- package/build/cjs/math/isDivisible/shim.js +0 -10
- package/build/cjs/math/isDivisible/shim.js.map +1 -1
- package/build/cjs/math/isEven/index.js +6 -0
- package/build/cjs/math/isEven/index.js.map +1 -1
- package/build/cjs/math/isEven/shim.js +0 -9
- package/build/cjs/math/isEven/shim.js.map +1 -1
- package/build/cjs/math/isPrime/index.js +6 -0
- package/build/cjs/math/isPrime/index.js.map +1 -1
- package/build/cjs/math/isPrime/shim.js +0 -9
- package/build/cjs/math/isPrime/shim.js.map +1 -1
- package/build/cjs/math/lcm/index.js +13 -3
- package/build/cjs/math/lcm/index.js.map +1 -1
- package/build/cjs/math/lcm/shim.js +0 -10
- package/build/cjs/math/lcm/shim.js.map +1 -1
- package/build/cjs/math/primes/index.js +7 -1
- package/build/cjs/math/primes/index.js.map +1 -1
- package/build/cjs/math/primes/shim.js +0 -9
- package/build/cjs/math/primes/shim.js.map +1 -1
- package/build/cjs/math/radsToDegrees/index.js +8 -2
- package/build/cjs/math/radsToDegrees/index.js.map +1 -1
- package/build/cjs/math/radsToDegrees/shim.js +0 -9
- package/build/cjs/math/radsToDegrees/shim.js.map +1 -1
- package/build/cjs/math/shim.js +0 -1
- package/build/cjs/math/shim.js.map +1 -1
- package/build/cjs/number/digitize/index.js +6 -1
- package/build/cjs/number/digitize/index.js.map +1 -1
- package/build/cjs/number/digitize/shim.js +1 -9
- package/build/cjs/number/digitize/shim.js.map +1 -1
- package/build/cjs/number/equals/index.js +7 -0
- package/build/cjs/number/equals/index.js.map +1 -1
- package/build/cjs/number/equals/shim.js +1 -10
- package/build/cjs/number/equals/shim.js.map +1 -1
- package/build/cjs/number/inRange/index.js +8 -0
- package/build/cjs/number/inRange/index.js.map +1 -1
- package/build/cjs/number/inRange/shim.js +1 -11
- package/build/cjs/number/inRange/shim.js.map +1 -1
- package/build/cjs/number/isNumber/index.js +8 -0
- package/build/cjs/number/isNumber/index.js.map +1 -1
- package/build/cjs/number/isNumber/shim.js +0 -10
- package/build/cjs/number/isNumber/shim.js.map +1 -1
- package/build/cjs/number/shim.js +0 -1
- package/build/cjs/number/shim.js.map +1 -1
- package/build/cjs/object/assign/index.js +7 -0
- package/build/cjs/object/assign/index.js.map +1 -1
- package/build/cjs/object/assign/shim.js +1 -10
- package/build/cjs/object/assign/shim.js.map +1 -1
- package/build/cjs/object/camelCaseKeys/index.js +7 -0
- package/build/cjs/object/camelCaseKeys/index.js.map +1 -1
- package/build/cjs/object/camelCaseKeys/shim.js +1 -10
- package/build/cjs/object/camelCaseKeys/shim.js.map +1 -1
- package/build/cjs/object/clone/index.js +9 -1
- package/build/cjs/object/clone/index.js.map +1 -1
- package/build/cjs/object/clone/shim.js +1 -11
- package/build/cjs/object/clone/shim.js.map +1 -1
- package/build/cjs/object/defaults/index.js +8 -1
- package/build/cjs/object/defaults/index.js.map +1 -1
- package/build/cjs/object/defaults/shim.js +1 -10
- package/build/cjs/object/defaults/shim.js.map +1 -1
- package/build/cjs/object/dig/index.js +17 -1
- package/build/cjs/object/dig/index.js.map +1 -1
- package/build/cjs/object/dig/shim.js +1 -18
- package/build/cjs/object/dig/shim.js.map +1 -1
- package/build/cjs/object/empty/index.js +10 -3
- package/build/cjs/object/empty/index.js.map +1 -1
- package/build/cjs/object/empty/shim.js +1 -10
- package/build/cjs/object/empty/shim.js.map +1 -1
- package/build/cjs/object/equals/index.js +9 -1
- package/build/cjs/object/equals/index.js.map +1 -1
- package/build/cjs/object/equals/shim.js +1 -10
- package/build/cjs/object/equals/shim.js.map +1 -1
- package/build/cjs/object/flatten/index.js +7 -1
- package/build/cjs/object/flatten/index.js.map +1 -1
- package/build/cjs/object/flatten/shim.js +1 -9
- package/build/cjs/object/flatten/shim.js.map +1 -1
- package/build/cjs/object/forEach/index.js +12 -1
- package/build/cjs/object/forEach/index.js.map +1 -1
- package/build/cjs/object/forEach/shim.js +1 -13
- package/build/cjs/object/forEach/shim.js.map +1 -1
- package/build/cjs/object/get/index.js +7 -0
- package/build/cjs/object/get/index.js.map +1 -1
- package/build/cjs/object/get/shim.js +1 -10
- package/build/cjs/object/get/shim.js.map +1 -1
- package/build/cjs/object/invert/index.js +6 -0
- package/build/cjs/object/invert/index.js.map +1 -1
- package/build/cjs/object/invert/shim.js +1 -9
- package/build/cjs/object/invert/shim.js.map +1 -1
- package/build/cjs/object/isEmpty/index.js +8 -0
- package/build/cjs/object/isEmpty/index.js.map +1 -1
- package/build/cjs/object/isEmpty/shim.js +1 -10
- package/build/cjs/object/isEmpty/shim.js.map +1 -1
- package/build/cjs/object/isObject/index.js +8 -0
- package/build/cjs/object/isObject/index.js.map +1 -1
- package/build/cjs/object/isObject/shim.js +0 -10
- package/build/cjs/object/isObject/shim.js.map +1 -1
- package/build/cjs/object/isObjectLike/index.js +8 -0
- package/build/cjs/object/isObjectLike/index.js.map +1 -1
- package/build/cjs/object/isObjectLike/shim.js +0 -10
- package/build/cjs/object/isObjectLike/shim.js.map +1 -1
- package/build/cjs/object/isPlainObject/index.js +9 -2
- package/build/cjs/object/isPlainObject/index.js.map +1 -1
- package/build/cjs/object/isPlainObject/shim.js +0 -10
- package/build/cjs/object/isPlainObject/shim.js.map +1 -1
- package/build/cjs/object/kebabCaseKeys/index.js +7 -0
- package/build/cjs/object/kebabCaseKeys/index.js.map +1 -1
- package/build/cjs/object/kebabCaseKeys/shim.js +1 -10
- package/build/cjs/object/kebabCaseKeys/shim.js.map +1 -1
- package/build/cjs/object/keys/index.js +6 -0
- package/build/cjs/object/keys/index.js.map +1 -1
- package/build/cjs/object/keys/shim.js +1 -9
- package/build/cjs/object/keys/shim.js.map +1 -1
- package/build/cjs/object/lowerCaseKeys/index.js +6 -0
- package/build/cjs/object/lowerCaseKeys/index.js.map +1 -1
- package/build/cjs/object/lowerCaseKeys/shim.js +1 -10
- package/build/cjs/object/lowerCaseKeys/shim.js.map +1 -1
- package/build/cjs/object/map/index.js +12 -0
- package/build/cjs/object/map/index.js.map +1 -1
- package/build/cjs/object/map/shim.js +0 -14
- package/build/cjs/object/map/shim.js.map +1 -1
- package/build/cjs/object/mapKeys/index.js +8 -0
- package/build/cjs/object/mapKeys/index.js.map +1 -1
- package/build/cjs/object/mapKeys/shim.js +1 -11
- package/build/cjs/object/mapKeys/shim.js.map +1 -1
- package/build/cjs/object/mapValues/index.js +12 -0
- package/build/cjs/object/mapValues/index.js.map +1 -1
- package/build/cjs/object/mapValues/shim.js +1 -15
- package/build/cjs/object/mapValues/shim.js.map +1 -1
- package/build/cjs/object/merge/index.js +18 -2
- package/build/cjs/object/merge/index.js.map +1 -1
- package/build/cjs/object/merge/shim.js +1 -19
- package/build/cjs/object/merge/shim.js.map +1 -1
- package/build/cjs/object/omit/index.js +17 -3
- package/build/cjs/object/omit/index.js.map +1 -1
- package/build/cjs/object/omit/shim.js +1 -13
- package/build/cjs/object/omit/shim.js.map +1 -1
- package/build/cjs/object/reduce/index.js +11 -1
- package/build/cjs/object/reduce/index.js.map +1 -1
- package/build/cjs/object/reduce/shim.js +1 -12
- package/build/cjs/object/reduce/shim.js.map +1 -1
- package/build/cjs/object/set/index.js +11 -2
- package/build/cjs/object/set/index.js.map +1 -1
- package/build/cjs/object/set/shim.js +1 -12
- package/build/cjs/object/set/shim.js.map +1 -1
- package/build/cjs/object/shim.js +0 -1
- package/build/cjs/object/shim.js.map +1 -1
- package/build/cjs/object/size/index.js +5 -0
- package/build/cjs/object/size/index.js.map +1 -1
- package/build/cjs/object/size/shim.js +1 -9
- package/build/cjs/object/size/shim.js.map +1 -1
- package/build/cjs/object/snakeCaseKeys/index.js +7 -0
- package/build/cjs/object/snakeCaseKeys/index.js.map +1 -1
- package/build/cjs/object/snakeCaseKeys/shim.js +1 -10
- package/build/cjs/object/snakeCaseKeys/shim.js.map +1 -1
- package/build/cjs/object/values/index.js +5 -0
- package/build/cjs/object/values/index.js.map +1 -1
- package/build/cjs/object/values/shim.js +1 -9
- package/build/cjs/object/values/shim.js.map +1 -1
- package/build/cjs/string/base64/index.js +5 -0
- package/build/cjs/string/base64/index.js.map +1 -1
- package/build/cjs/string/base64/shim.js +1 -9
- package/build/cjs/string/base64/shim.js.map +1 -1
- package/build/cjs/string/base64Decode/index.js +5 -0
- package/build/cjs/string/base64Decode/index.js.map +1 -1
- package/build/cjs/string/base64Decode/shim.js +1 -9
- package/build/cjs/string/base64Decode/shim.js.map +1 -1
- package/build/cjs/string/camelCase/index.js +14 -2
- package/build/cjs/string/camelCase/index.js.map +1 -1
- package/build/cjs/string/camelCase/shim.js +1 -13
- package/build/cjs/string/camelCase/shim.js.map +1 -1
- package/build/cjs/string/capitalize/index.js +11 -2
- package/build/cjs/string/capitalize/index.js.map +1 -1
- package/build/cjs/string/capitalize/shim.js +1 -11
- package/build/cjs/string/capitalize/shim.js.map +1 -1
- package/build/cjs/string/chars/index.js +5 -0
- package/build/cjs/string/chars/index.js.map +1 -1
- package/build/cjs/string/chars/shim.js +1 -9
- package/build/cjs/string/chars/shim.js.map +1 -1
- package/build/cjs/string/contains/index.js +12 -2
- package/build/cjs/string/contains/index.js.map +1 -1
- package/build/cjs/string/contains/shim.js +1 -12
- package/build/cjs/string/contains/shim.js.map +1 -1
- package/build/cjs/string/decapitalize/index.js +11 -2
- package/build/cjs/string/decapitalize/index.js.map +1 -1
- package/build/cjs/string/decapitalize/shim.js +1 -11
- package/build/cjs/string/decapitalize/shim.js.map +1 -1
- package/build/cjs/string/equals/index.js +7 -0
- package/build/cjs/string/equals/index.js.map +1 -1
- package/build/cjs/string/equals/shim.js +1 -10
- package/build/cjs/string/equals/shim.js.map +1 -1
- package/build/cjs/string/forEach/index.js +8 -1
- package/build/cjs/string/forEach/index.js.map +1 -1
- package/build/cjs/string/forEach/shim.js +1 -10
- package/build/cjs/string/forEach/shim.js.map +1 -1
- package/build/cjs/string/humanize/index.js +11 -3
- package/build/cjs/string/humanize/index.js.map +1 -1
- package/build/cjs/string/humanize/shim.js +1 -11
- package/build/cjs/string/humanize/shim.js.map +1 -1
- package/build/cjs/string/isEmpty/index.js +8 -0
- package/build/cjs/string/isEmpty/index.js.map +1 -1
- package/build/cjs/string/isEmpty/shim.js +1 -10
- package/build/cjs/string/isEmpty/shim.js.map +1 -1
- package/build/cjs/string/isString/index.js +8 -0
- package/build/cjs/string/isString/index.js.map +1 -1
- package/build/cjs/string/isString/shim.js +0 -10
- package/build/cjs/string/isString/shim.js.map +1 -1
- package/build/cjs/string/kebabCase/index.js +18 -2
- package/build/cjs/string/kebabCase/index.js.map +1 -1
- package/build/cjs/string/kebabCase/shim.js +1 -15
- package/build/cjs/string/kebabCase/shim.js.map +1 -1
- package/build/cjs/string/lines/index.js +6 -0
- package/build/cjs/string/lines/index.js.map +1 -1
- package/build/cjs/string/lines/shim.js +1 -9
- package/build/cjs/string/lines/shim.js.map +1 -1
- package/build/cjs/string/map/index.js +9 -1
- package/build/cjs/string/map/index.js.map +1 -1
- package/build/cjs/string/map/shim.js +1 -10
- package/build/cjs/string/map/shim.js.map +1 -1
- package/build/cjs/string/mask/index.js +14 -2
- package/build/cjs/string/mask/index.js.map +1 -1
- package/build/cjs/string/mask/shim.js +1 -13
- package/build/cjs/string/mask/shim.js.map +1 -1
- package/build/cjs/string/pad/index.js +10 -0
- package/build/cjs/string/pad/index.js.map +1 -1
- package/build/cjs/string/pad/shim.js +1 -12
- package/build/cjs/string/pad/shim.js.map +1 -1
- package/build/cjs/string/parseInt/index.js +7 -0
- package/build/cjs/string/parseInt/index.js.map +1 -1
- package/build/cjs/string/parseInt/shim.js +1 -10
- package/build/cjs/string/parseInt/shim.js.map +1 -1
- package/build/cjs/string/pluralize/index.js +54 -32
- package/build/cjs/string/pluralize/index.js.map +1 -1
- package/build/cjs/string/pluralize/shim.js +1 -15
- package/build/cjs/string/pluralize/shim.js.map +1 -1
- package/build/cjs/string/reduce/index.js +11 -1
- package/build/cjs/string/reduce/index.js.map +1 -1
- package/build/cjs/string/reduce/shim.js +1 -11
- package/build/cjs/string/reduce/shim.js.map +1 -1
- package/build/cjs/string/repeat/index.js +7 -0
- package/build/cjs/string/repeat/index.js.map +1 -1
- package/build/cjs/string/repeat/shim.js +0 -10
- package/build/cjs/string/repeat/shim.js.map +1 -1
- package/build/cjs/string/reverse/index.js +6 -0
- package/build/cjs/string/reverse/index.js.map +1 -1
- package/build/cjs/string/reverse/shim.js +1 -9
- package/build/cjs/string/reverse/shim.js.map +1 -1
- package/build/cjs/string/shim.js +0 -1
- package/build/cjs/string/shim.js.map +1 -1
- package/build/cjs/string/snakeCase/index.js +18 -2
- package/build/cjs/string/snakeCase/index.js.map +1 -1
- package/build/cjs/string/snakeCase/shim.js +1 -15
- package/build/cjs/string/snakeCase/shim.js.map +1 -1
- package/build/cjs/string/swapCase/index.js +7 -1
- package/build/cjs/string/swapCase/index.js.map +1 -1
- package/build/cjs/string/swapCase/shim.js +1 -9
- package/build/cjs/string/swapCase/shim.js.map +1 -1
- package/build/cjs/string/truncate/index.js +10 -0
- package/build/cjs/string/truncate/index.js.map +1 -1
- package/build/cjs/string/truncate/shim.js +1 -12
- package/build/cjs/string/truncate/shim.js.map +1 -1
- package/build/cjs/string/words/index.js +9 -0
- package/build/cjs/string/words/index.js.map +1 -1
- package/build/cjs/string/words/shim.js +1 -11
- package/build/cjs/string/words/shim.js.map +1 -1
- package/build/cjs/utils.js +38 -25
- package/build/cjs/utils.js.map +1 -1
- package/build/esm/array/all/index.js +10 -0
- package/build/esm/array/all/index.js.map +1 -1
- package/build/esm/array/all/shim.js +1 -12
- package/build/esm/array/all/shim.js.map +1 -1
- package/build/esm/array/any/index.js +11 -0
- package/build/esm/array/any/index.js.map +1 -1
- package/build/esm/array/any/shim.js +1 -13
- package/build/esm/array/any/shim.js.map +1 -1
- package/build/esm/array/append/index.js +8 -0
- package/build/esm/array/append/index.js.map +1 -1
- package/build/esm/array/append/shim.js +1 -11
- package/build/esm/array/append/shim.js.map +1 -1
- package/build/esm/array/average/index.js +12 -3
- package/build/esm/array/average/index.js.map +1 -1
- package/build/esm/array/average/shim.js +2 -25
- package/build/esm/array/average/shim.js.map +1 -1
- package/build/esm/array/chunk/index.js +8 -1
- package/build/esm/array/chunk/index.js.map +1 -1
- package/build/esm/array/chunk/shim.js +1 -10
- package/build/esm/array/chunk/shim.js.map +1 -1
- package/build/esm/array/clone/index.js +7 -0
- package/build/esm/array/clone/index.js.map +1 -1
- package/build/esm/array/clone/shim.js +1 -10
- package/build/esm/array/clone/shim.js.map +1 -1
- package/build/esm/array/compact/index.js +6 -0
- package/build/esm/array/compact/index.js.map +1 -1
- package/build/esm/array/compact/shim.js +1 -9
- package/build/esm/array/compact/shim.js.map +1 -1
- package/build/esm/array/contains/index.js +10 -0
- package/build/esm/array/contains/index.js.map +1 -1
- package/build/esm/array/contains/shim.js +1 -10
- package/build/esm/array/contains/shim.js.map +1 -1
- package/build/esm/array/count/index.js +12 -3
- package/build/esm/array/count/index.js.map +1 -1
- package/build/esm/array/count/shim.js +1 -11
- package/build/esm/array/count/shim.js.map +1 -1
- package/build/esm/array/countBy/index.js +10 -0
- package/build/esm/array/countBy/index.js.map +1 -1
- package/build/esm/array/countBy/shim.js +1 -12
- package/build/esm/array/countBy/shim.js.map +1 -1
- package/build/esm/array/crossJoin/index.js +9 -1
- package/build/esm/array/crossJoin/index.js.map +1 -1
- package/build/esm/array/crossJoin/shim.js +1 -11
- package/build/esm/array/crossJoin/shim.js.map +1 -1
- package/build/esm/array/deepFlatten/index.js +7 -1
- package/build/esm/array/deepFlatten/index.js.map +1 -1
- package/build/esm/array/deepFlatten/shim.js +1 -9
- package/build/esm/array/deepFlatten/shim.js.map +1 -1
- package/build/esm/array/diff/index.js +14 -2
- package/build/esm/array/diff/index.js.map +1 -1
- package/build/esm/array/diff/shim.js +1 -14
- package/build/esm/array/diff/shim.js.map +1 -1
- package/build/esm/array/distinct/index.js +16 -4
- package/build/esm/array/distinct/index.js.map +1 -1
- package/build/esm/array/distinct/shim.js +1 -12
- package/build/esm/array/distinct/shim.js.map +1 -1
- package/build/esm/array/distinctBy/index.js +12 -5
- package/build/esm/array/distinctBy/index.js.map +1 -1
- package/build/esm/array/distinctBy/shim.js +1 -10
- package/build/esm/array/distinctBy/shim.js.map +1 -1
- package/build/esm/array/empty/index.js +8 -0
- package/build/esm/array/empty/index.js.map +1 -1
- package/build/esm/array/empty/shim.js +1 -10
- package/build/esm/array/empty/shim.js.map +1 -1
- package/build/esm/array/equals/index.js +8 -1
- package/build/esm/array/equals/index.js.map +1 -1
- package/build/esm/array/equals/shim.js +1 -10
- package/build/esm/array/equals/shim.js.map +1 -1
- package/build/esm/array/everyNth/index.js +7 -0
- package/build/esm/array/everyNth/index.js.map +1 -1
- package/build/esm/array/everyNth/shim.js +1 -9
- package/build/esm/array/everyNth/shim.js.map +1 -1
- package/build/esm/array/first/index.js +6 -0
- package/build/esm/array/first/index.js.map +1 -1
- package/build/esm/array/first/shim.js +1 -9
- package/build/esm/array/first/shim.js.map +1 -1
- package/build/esm/array/flatten/index.js +10 -2
- package/build/esm/array/flatten/index.js.map +1 -1
- package/build/esm/array/flatten/shim.js +1 -11
- package/build/esm/array/flatten/shim.js.map +1 -1
- package/build/esm/array/get/index.js +10 -0
- package/build/esm/array/get/index.js.map +1 -1
- package/build/esm/array/get/shim.js +1 -12
- package/build/esm/array/get/shim.js.map +1 -1
- package/build/esm/array/groupBy/index.js +11 -1
- package/build/esm/array/groupBy/index.js.map +1 -1
- package/build/esm/array/groupBy/shim.js +1 -11
- package/build/esm/array/groupBy/shim.js.map +1 -1
- package/build/esm/array/implode/index.js +4 -2
- package/build/esm/array/implode/index.js.map +1 -1
- package/build/esm/array/implode/shim.js +1 -12
- package/build/esm/array/implode/shim.js.map +1 -1
- package/build/esm/array/index.js.map +1 -1
- package/build/esm/array/indexOfAll/index.js +9 -0
- package/build/esm/array/indexOfAll/index.js.map +1 -1
- package/build/esm/array/indexOfAll/shim.js +1 -11
- package/build/esm/array/indexOfAll/shim.js.map +1 -1
- package/build/esm/array/initial/index.js +5 -0
- package/build/esm/array/initial/index.js.map +1 -1
- package/build/esm/array/initial/shim.js +1 -9
- package/build/esm/array/initial/shim.js.map +1 -1
- package/build/esm/array/intersect/index.js +8 -1
- package/build/esm/array/intersect/index.js.map +1 -1
- package/build/esm/array/intersect/shim.js +1 -10
- package/build/esm/array/intersect/shim.js.map +1 -1
- package/build/esm/array/isEmpty/index.js +7 -0
- package/build/esm/array/isEmpty/index.js.map +1 -1
- package/build/esm/array/isEmpty/shim.js +1 -10
- package/build/esm/array/isEmpty/shim.js.map +1 -1
- package/build/esm/array/last/index.js +6 -0
- package/build/esm/array/last/index.js.map +1 -1
- package/build/esm/array/last/shim.js +1 -9
- package/build/esm/array/last/shim.js.map +1 -1
- package/build/esm/array/limit/index.js +9 -2
- package/build/esm/array/limit/index.js.map +1 -1
- package/build/esm/array/limit/shim.js +2 -21
- package/build/esm/array/limit/shim.js.map +1 -1
- package/build/esm/array/max/index.js +1 -1
- package/build/esm/array/max/index.js.map +1 -1
- package/build/esm/array/max/shim.js +1 -12
- package/build/esm/array/max/shim.js.map +1 -1
- package/build/esm/array/median/index.js +1 -1
- package/build/esm/array/median/index.js.map +1 -1
- package/build/esm/array/median/shim.js +1 -11
- package/build/esm/array/median/shim.js.map +1 -1
- package/build/esm/array/merge/index.js +8 -0
- package/build/esm/array/merge/index.js.map +1 -1
- package/build/esm/array/merge/shim.js +1 -10
- package/build/esm/array/merge/shim.js.map +1 -1
- package/build/esm/array/min/index.js +1 -1
- package/build/esm/array/min/index.js.map +1 -1
- package/build/esm/array/min/shim.js +1 -12
- package/build/esm/array/min/shim.js.map +1 -1
- package/build/esm/array/nest/index.js +24 -5
- package/build/esm/array/nest/index.js.map +1 -1
- package/build/esm/array/nest/shim.js +1 -18
- package/build/esm/array/nest/shim.js.map +1 -1
- package/build/esm/array/orderBy/index.js +11 -9
- package/build/esm/array/orderBy/index.js.map +1 -1
- package/build/esm/array/orderBy/shim.js +1 -13
- package/build/esm/array/orderBy/shim.js.map +1 -1
- package/build/esm/array/pad/index.js +10 -0
- package/build/esm/array/pad/index.js.map +1 -1
- package/build/esm/array/pad/shim.js +1 -12
- package/build/esm/array/pad/shim.js.map +1 -1
- package/build/esm/array/partition/index.js +17 -1
- package/build/esm/array/partition/index.js.map +1 -1
- package/build/esm/array/partition/shim.js +1 -17
- package/build/esm/array/partition/shim.js.map +1 -1
- package/build/esm/array/pluck/index.js +11 -1
- package/build/esm/array/pluck/index.js.map +1 -1
- package/build/esm/array/pluck/shim.js +1 -11
- package/build/esm/array/pluck/shim.js.map +1 -1
- package/build/esm/array/prepend/index.js +8 -0
- package/build/esm/array/prepend/index.js.map +1 -1
- package/build/esm/array/prepend/shim.js +1 -10
- package/build/esm/array/prepend/shim.js.map +1 -1
- package/build/esm/array/pull/index.js +10 -2
- package/build/esm/array/pull/index.js.map +1 -1
- package/build/esm/array/pull/shim.js +1 -10
- package/build/esm/array/pull/shim.js.map +1 -1
- package/build/esm/array/range/index.js +14 -1
- package/build/esm/array/range/index.js.map +1 -1
- package/build/esm/array/range/shim.js +0 -14
- package/build/esm/array/range/shim.js.map +1 -1
- package/build/esm/array/repeat/index.js +7 -0
- package/build/esm/array/repeat/index.js.map +1 -1
- package/build/esm/array/repeat/shim.js +0 -10
- package/build/esm/array/repeat/shim.js.map +1 -1
- package/build/esm/array/sample/index.js +5 -0
- package/build/esm/array/sample/index.js.map +1 -1
- package/build/esm/array/sample/shim.js +1 -9
- package/build/esm/array/sample/shim.js.map +1 -1
- package/build/esm/array/shim.js +0 -1
- package/build/esm/array/shim.js.map +1 -1
- package/build/esm/array/shuffle/index.js +6 -0
- package/build/esm/array/shuffle/index.js.map +1 -1
- package/build/esm/array/shuffle/shim.js +0 -9
- package/build/esm/array/shuffle/shim.js.map +1 -1
- package/build/esm/array/skip/index.js +7 -0
- package/build/esm/array/skip/index.js.map +1 -1
- package/build/esm/array/skip/shim.js +1 -20
- package/build/esm/array/skip/shim.js.map +1 -1
- package/build/esm/array/sortBy/index.js +10 -0
- package/build/esm/array/sortBy/index.js.map +1 -1
- package/build/esm/array/sortBy/shim.js +0 -11
- package/build/esm/array/sortBy/shim.js.map +1 -1
- package/build/esm/array/sum/index.js +17 -8
- package/build/esm/array/sum/index.js.map +1 -1
- package/build/esm/array/sum/shim.js +0 -11
- package/build/esm/array/sum/shim.js.map +1 -1
- package/build/esm/array/tail/index.js +5 -0
- package/build/esm/array/tail/index.js.map +1 -1
- package/build/esm/array/tail/shim.js +1 -9
- package/build/esm/array/tail/shim.js.map +1 -1
- package/build/esm/array/toCSV/index.js +9 -0
- package/build/esm/array/toCSV/index.js.map +1 -1
- package/build/esm/array/toCSV/shim.js +1 -11
- package/build/esm/array/toCSV/shim.js.map +1 -1
- package/build/esm/array/union/index.js +7 -0
- package/build/esm/array/union/index.js.map +1 -1
- package/build/esm/array/union/shim.js +1 -10
- package/build/esm/array/union/shim.js.map +1 -1
- package/build/esm/array/unwind/index.js +12 -1
- package/build/esm/array/unwind/index.js.map +1 -1
- package/build/esm/array/unwind/shim.js +1 -11
- package/build/esm/array/unwind/shim.js.map +1 -1
- package/build/esm/array/where/index.js +35 -29
- package/build/esm/array/where/index.js.map +1 -1
- package/build/esm/array/where/shim.js +1 -15
- package/build/esm/array/where/shim.js.map +1 -1
- package/build/esm/array/whereBetween/index.js +10 -5
- package/build/esm/array/whereBetween/index.js.map +1 -1
- package/build/esm/array/whereBetween/shim.js +1 -13
- package/build/esm/array/whereBetween/shim.js.map +1 -1
- package/build/esm/array/whereIn/index.js +4 -4
- package/build/esm/array/whereIn/index.js.map +1 -1
- package/build/esm/array/whereIn/shim.js +1 -12
- package/build/esm/array/whereIn/shim.js.map +1 -1
- package/build/esm/array/whereLike/index.js +4 -4
- package/build/esm/array/whereLike/index.js.map +1 -1
- package/build/esm/array/whereLike/shim.js +1 -13
- package/build/esm/array/whereLike/shim.js.map +1 -1
- package/build/esm/array/whereNotBetween/index.js +10 -5
- package/build/esm/array/whereNotBetween/index.js.map +1 -1
- package/build/esm/array/whereNotBetween/shim.js +1 -13
- package/build/esm/array/whereNotBetween/shim.js.map +1 -1
- package/build/esm/array/whereNotIn/index.js +4 -4
- package/build/esm/array/whereNotIn/index.js.map +1 -1
- package/build/esm/array/whereNotIn/shim.js +1 -12
- package/build/esm/array/whereNotIn/shim.js.map +1 -1
- package/build/esm/array/whereNotLike/index.js +4 -4
- package/build/esm/array/whereNotLike/index.js.map +1 -1
- package/build/esm/array/whereNotLike/shim.js +1 -12
- package/build/esm/array/whereNotLike/shim.js.map +1 -1
- package/build/esm/array/whereNotNull/index.js +10 -2
- package/build/esm/array/whereNotNull/index.js.map +1 -1
- package/build/esm/array/whereNotNull/shim.js +1 -11
- package/build/esm/array/whereNotNull/shim.js.map +1 -1
- package/build/esm/array/whereNull/index.js +10 -2
- package/build/esm/array/whereNull/index.js.map +1 -1
- package/build/esm/array/whereNull/shim.js +1 -11
- package/build/esm/array/whereNull/shim.js.map +1 -1
- package/build/esm/array/zip/index.js +10 -3
- package/build/esm/array/zip/index.js.map +1 -1
- package/build/esm/array/zip/shim.js +1 -11
- package/build/esm/array/zip/shim.js.map +1 -1
- package/build/esm/array/zipObject/index.js +14 -1
- package/build/esm/array/zipObject/index.js.map +1 -1
- package/build/esm/array/zipObject/shim.js +1 -12
- package/build/esm/array/zipObject/shim.js.map +1 -1
- package/build/esm/boolean/isBoolean/index.js +8 -0
- package/build/esm/boolean/isBoolean/index.js.map +1 -1
- package/build/esm/boolean/isBoolean/shim.js +0 -10
- package/build/esm/boolean/isBoolean/shim.js.map +1 -1
- package/build/esm/boolean/shim.js +0 -1
- package/build/esm/boolean/shim.js.map +1 -1
- package/build/esm/date/equals/index.js +7 -0
- package/build/esm/date/equals/index.js.map +1 -1
- package/build/esm/date/equals/shim.js +1 -10
- package/build/esm/date/equals/shim.js.map +1 -1
- package/build/esm/date/isDate/index.js +10 -2
- package/build/esm/date/isDate/index.js.map +1 -1
- package/build/esm/date/isDate/shim.js +0 -10
- package/build/esm/date/isDate/shim.js.map +1 -1
- package/build/esm/date/shim.js +0 -1
- package/build/esm/date/shim.js.map +1 -1
- package/build/esm/date/today/index.js +8 -2
- package/build/esm/date/today/index.js.map +1 -1
- package/build/esm/date/today/shim.js +0 -8
- package/build/esm/date/today/shim.js.map +1 -1
- package/build/esm/date/tomorrow/index.js +8 -2
- package/build/esm/date/tomorrow/index.js.map +1 -1
- package/build/esm/date/tomorrow/shim.js +0 -8
- package/build/esm/date/tomorrow/shim.js.map +1 -1
- package/build/esm/date/yesterday/index.js +8 -2
- package/build/esm/date/yesterday/index.js.map +1 -1
- package/build/esm/date/yesterday/shim.js +0 -8
- package/build/esm/date/yesterday/shim.js.map +1 -1
- package/build/esm/function/cache/index.js +9 -1
- package/build/esm/function/cache/index.js.map +1 -1
- package/build/esm/function/cache/shim.js +0 -11
- package/build/esm/function/cache/shim.js.map +1 -1
- package/build/esm/function/defer/index.js +8 -0
- package/build/esm/function/defer/index.js.map +1 -1
- package/build/esm/function/defer/shim.js +1 -11
- package/build/esm/function/defer/shim.js.map +1 -1
- package/build/esm/function/isFunction/index.js +8 -0
- package/build/esm/function/isFunction/index.js.map +1 -1
- package/build/esm/function/isFunction/shim.js +0 -10
- package/build/esm/function/isFunction/shim.js.map +1 -1
- package/build/esm/function/once/index.js +9 -0
- package/build/esm/function/once/index.js.map +1 -1
- package/build/esm/function/once/shim.js +1 -12
- package/build/esm/function/once/shim.js.map +1 -1
- package/build/esm/function/shim.js +0 -1
- package/build/esm/function/shim.js.map +1 -1
- package/build/esm/globals/isBrowser/index.js +6 -0
- package/build/esm/globals/isBrowser/index.js.map +1 -1
- package/build/esm/globals/isBrowser/shim.js +0 -9
- package/build/esm/globals/isBrowser/shim.js.map +1 -1
- package/build/esm/globals/shim.js +0 -1
- package/build/esm/globals/shim.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/math/average/index.js +8 -0
- package/build/esm/math/average/index.js.map +1 -1
- package/build/esm/math/average/shim.js +1 -22
- package/build/esm/math/average/shim.js.map +1 -1
- package/build/esm/math/degreesToRads/index.js +8 -2
- package/build/esm/math/degreesToRads/index.js.map +1 -1
- package/build/esm/math/degreesToRads/shim.js +0 -9
- package/build/esm/math/degreesToRads/shim.js.map +1 -1
- package/build/esm/math/factorial/index.js +6 -0
- package/build/esm/math/factorial/index.js.map +1 -1
- package/build/esm/math/factorial/shim.js +0 -9
- package/build/esm/math/factorial/shim.js.map +1 -1
- package/build/esm/math/fibonacci/index.js +6 -0
- package/build/esm/math/fibonacci/index.js.map +1 -1
- package/build/esm/math/fibonacci/shim.js +0 -9
- package/build/esm/math/fibonacci/shim.js.map +1 -1
- package/build/esm/math/gcd/index.js +10 -2
- package/build/esm/math/gcd/index.js.map +1 -1
- package/build/esm/math/gcd/shim.js +0 -10
- package/build/esm/math/gcd/shim.js.map +1 -1
- package/build/esm/math/isDivisible/index.js +7 -0
- package/build/esm/math/isDivisible/index.js.map +1 -1
- package/build/esm/math/isDivisible/shim.js +0 -10
- package/build/esm/math/isDivisible/shim.js.map +1 -1
- package/build/esm/math/isEven/index.js +6 -0
- package/build/esm/math/isEven/index.js.map +1 -1
- package/build/esm/math/isEven/shim.js +0 -9
- package/build/esm/math/isEven/shim.js.map +1 -1
- package/build/esm/math/isPrime/index.js +6 -0
- package/build/esm/math/isPrime/index.js.map +1 -1
- package/build/esm/math/isPrime/shim.js +0 -9
- package/build/esm/math/isPrime/shim.js.map +1 -1
- package/build/esm/math/lcm/index.js +10 -3
- package/build/esm/math/lcm/index.js.map +1 -1
- package/build/esm/math/lcm/shim.js +0 -10
- package/build/esm/math/lcm/shim.js.map +1 -1
- package/build/esm/math/primes/index.js +7 -1
- package/build/esm/math/primes/index.js.map +1 -1
- package/build/esm/math/primes/shim.js +0 -9
- package/build/esm/math/primes/shim.js.map +1 -1
- package/build/esm/math/radsToDegrees/index.js +8 -2
- package/build/esm/math/radsToDegrees/index.js.map +1 -1
- package/build/esm/math/radsToDegrees/shim.js +0 -9
- package/build/esm/math/radsToDegrees/shim.js.map +1 -1
- package/build/esm/math/shim.js +0 -1
- package/build/esm/math/shim.js.map +1 -1
- package/build/esm/number/digitize/index.js +6 -1
- package/build/esm/number/digitize/index.js.map +1 -1
- package/build/esm/number/digitize/shim.js +1 -9
- package/build/esm/number/digitize/shim.js.map +1 -1
- package/build/esm/number/equals/index.js +7 -0
- package/build/esm/number/equals/index.js.map +1 -1
- package/build/esm/number/equals/shim.js +1 -10
- package/build/esm/number/equals/shim.js.map +1 -1
- package/build/esm/number/inRange/index.js +8 -0
- package/build/esm/number/inRange/index.js.map +1 -1
- package/build/esm/number/inRange/shim.js +1 -11
- package/build/esm/number/inRange/shim.js.map +1 -1
- package/build/esm/number/isNumber/index.js +8 -0
- package/build/esm/number/isNumber/index.js.map +1 -1
- package/build/esm/number/isNumber/shim.js +0 -10
- package/build/esm/number/isNumber/shim.js.map +1 -1
- package/build/esm/number/shim.js +0 -1
- package/build/esm/number/shim.js.map +1 -1
- package/build/esm/object/assign/index.js +7 -0
- package/build/esm/object/assign/index.js.map +1 -1
- package/build/esm/object/assign/shim.js +1 -10
- package/build/esm/object/assign/shim.js.map +1 -1
- package/build/esm/object/camelCaseKeys/index.js +7 -0
- package/build/esm/object/camelCaseKeys/index.js.map +1 -1
- package/build/esm/object/camelCaseKeys/shim.js +1 -10
- package/build/esm/object/camelCaseKeys/shim.js.map +1 -1
- package/build/esm/object/clone/index.js +9 -1
- package/build/esm/object/clone/index.js.map +1 -1
- package/build/esm/object/clone/shim.js +1 -11
- package/build/esm/object/clone/shim.js.map +1 -1
- package/build/esm/object/defaults/index.js +8 -1
- package/build/esm/object/defaults/index.js.map +1 -1
- package/build/esm/object/defaults/shim.js +1 -10
- package/build/esm/object/defaults/shim.js.map +1 -1
- package/build/esm/object/dig/index.js +17 -1
- package/build/esm/object/dig/index.js.map +1 -1
- package/build/esm/object/dig/shim.js +1 -18
- package/build/esm/object/dig/shim.js.map +1 -1
- package/build/esm/object/empty/index.js +12 -5
- package/build/esm/object/empty/index.js.map +1 -1
- package/build/esm/object/empty/shim.js +1 -10
- package/build/esm/object/empty/shim.js.map +1 -1
- package/build/esm/object/equals/index.js +12 -4
- package/build/esm/object/equals/index.js.map +1 -1
- package/build/esm/object/equals/shim.js +1 -10
- package/build/esm/object/equals/shim.js.map +1 -1
- package/build/esm/object/flatten/index.js +7 -1
- package/build/esm/object/flatten/index.js.map +1 -1
- package/build/esm/object/flatten/shim.js +1 -9
- package/build/esm/object/flatten/shim.js.map +1 -1
- package/build/esm/object/forEach/index.js +12 -1
- package/build/esm/object/forEach/index.js.map +1 -1
- package/build/esm/object/forEach/shim.js +1 -13
- package/build/esm/object/forEach/shim.js.map +1 -1
- package/build/esm/object/get/index.js +7 -0
- package/build/esm/object/get/index.js.map +1 -1
- package/build/esm/object/get/shim.js +1 -10
- package/build/esm/object/get/shim.js.map +1 -1
- package/build/esm/object/invert/index.js +6 -0
- package/build/esm/object/invert/index.js.map +1 -1
- package/build/esm/object/invert/shim.js +1 -9
- package/build/esm/object/invert/shim.js.map +1 -1
- package/build/esm/object/isEmpty/index.js +8 -0
- package/build/esm/object/isEmpty/index.js.map +1 -1
- package/build/esm/object/isEmpty/shim.js +1 -10
- package/build/esm/object/isEmpty/shim.js.map +1 -1
- package/build/esm/object/isObject/index.js +8 -0
- package/build/esm/object/isObject/index.js.map +1 -1
- package/build/esm/object/isObject/shim.js +0 -10
- package/build/esm/object/isObject/shim.js.map +1 -1
- package/build/esm/object/isObjectLike/index.js +8 -0
- package/build/esm/object/isObjectLike/index.js.map +1 -1
- package/build/esm/object/isObjectLike/shim.js +0 -10
- package/build/esm/object/isObjectLike/shim.js.map +1 -1
- package/build/esm/object/isPlainObject/index.js +9 -2
- package/build/esm/object/isPlainObject/index.js.map +1 -1
- package/build/esm/object/isPlainObject/shim.js +0 -10
- package/build/esm/object/isPlainObject/shim.js.map +1 -1
- package/build/esm/object/kebabCaseKeys/index.js +7 -0
- package/build/esm/object/kebabCaseKeys/index.js.map +1 -1
- package/build/esm/object/kebabCaseKeys/shim.js +1 -10
- package/build/esm/object/kebabCaseKeys/shim.js.map +1 -1
- package/build/esm/object/keys/index.js +6 -0
- package/build/esm/object/keys/index.js.map +1 -1
- package/build/esm/object/keys/shim.js +1 -9
- package/build/esm/object/keys/shim.js.map +1 -1
- package/build/esm/object/lowerCaseKeys/index.js +6 -0
- package/build/esm/object/lowerCaseKeys/index.js.map +1 -1
- package/build/esm/object/lowerCaseKeys/shim.js +1 -10
- package/build/esm/object/lowerCaseKeys/shim.js.map +1 -1
- package/build/esm/object/map/index.js +12 -0
- package/build/esm/object/map/index.js.map +1 -1
- package/build/esm/object/map/shim.js +0 -14
- package/build/esm/object/map/shim.js.map +1 -1
- package/build/esm/object/mapKeys/index.js +8 -0
- package/build/esm/object/mapKeys/index.js.map +1 -1
- package/build/esm/object/mapKeys/shim.js +1 -11
- package/build/esm/object/mapKeys/shim.js.map +1 -1
- package/build/esm/object/mapValues/index.js +12 -0
- package/build/esm/object/mapValues/index.js.map +1 -1
- package/build/esm/object/mapValues/shim.js +1 -15
- package/build/esm/object/mapValues/shim.js.map +1 -1
- package/build/esm/object/merge/index.js +17 -1
- package/build/esm/object/merge/index.js.map +1 -1
- package/build/esm/object/merge/shim.js +1 -19
- package/build/esm/object/merge/shim.js.map +1 -1
- package/build/esm/object/omit/index.js +17 -3
- package/build/esm/object/omit/index.js.map +1 -1
- package/build/esm/object/omit/shim.js +1 -13
- package/build/esm/object/omit/shim.js.map +1 -1
- package/build/esm/object/reduce/index.js +11 -1
- package/build/esm/object/reduce/index.js.map +1 -1
- package/build/esm/object/reduce/shim.js +1 -12
- package/build/esm/object/reduce/shim.js.map +1 -1
- package/build/esm/object/set/index.js +11 -2
- package/build/esm/object/set/index.js.map +1 -1
- package/build/esm/object/set/shim.js +1 -12
- package/build/esm/object/set/shim.js.map +1 -1
- package/build/esm/object/shim.js +0 -1
- package/build/esm/object/shim.js.map +1 -1
- package/build/esm/object/size/index.js +5 -0
- package/build/esm/object/size/index.js.map +1 -1
- package/build/esm/object/size/shim.js +1 -9
- package/build/esm/object/size/shim.js.map +1 -1
- package/build/esm/object/snakeCaseKeys/index.js +7 -0
- package/build/esm/object/snakeCaseKeys/index.js.map +1 -1
- package/build/esm/object/snakeCaseKeys/shim.js +1 -10
- package/build/esm/object/snakeCaseKeys/shim.js.map +1 -1
- package/build/esm/object/values/index.js +5 -0
- package/build/esm/object/values/index.js.map +1 -1
- package/build/esm/object/values/shim.js +1 -9
- package/build/esm/object/values/shim.js.map +1 -1
- package/build/esm/string/base64/index.js +5 -0
- package/build/esm/string/base64/index.js.map +1 -1
- package/build/esm/string/base64/shim.js +1 -9
- package/build/esm/string/base64/shim.js.map +1 -1
- package/build/esm/string/base64Decode/index.js +5 -0
- package/build/esm/string/base64Decode/index.js.map +1 -1
- package/build/esm/string/base64Decode/shim.js +1 -9
- package/build/esm/string/base64Decode/shim.js.map +1 -1
- package/build/esm/string/camelCase/index.js +14 -2
- package/build/esm/string/camelCase/index.js.map +1 -1
- package/build/esm/string/camelCase/shim.js +1 -13
- package/build/esm/string/camelCase/shim.js.map +1 -1
- package/build/esm/string/capitalize/index.js +11 -2
- package/build/esm/string/capitalize/index.js.map +1 -1
- package/build/esm/string/capitalize/shim.js +1 -11
- package/build/esm/string/capitalize/shim.js.map +1 -1
- package/build/esm/string/chars/index.js +5 -0
- package/build/esm/string/chars/index.js.map +1 -1
- package/build/esm/string/chars/shim.js +1 -9
- package/build/esm/string/chars/shim.js.map +1 -1
- package/build/esm/string/contains/index.js +12 -2
- package/build/esm/string/contains/index.js.map +1 -1
- package/build/esm/string/contains/shim.js +1 -12
- package/build/esm/string/contains/shim.js.map +1 -1
- package/build/esm/string/decapitalize/index.js +11 -2
- package/build/esm/string/decapitalize/index.js.map +1 -1
- package/build/esm/string/decapitalize/shim.js +1 -11
- package/build/esm/string/decapitalize/shim.js.map +1 -1
- package/build/esm/string/equals/index.js +7 -0
- package/build/esm/string/equals/index.js.map +1 -1
- package/build/esm/string/equals/shim.js +1 -10
- package/build/esm/string/equals/shim.js.map +1 -1
- package/build/esm/string/forEach/index.js +8 -1
- package/build/esm/string/forEach/index.js.map +1 -1
- package/build/esm/string/forEach/shim.js +1 -10
- package/build/esm/string/forEach/shim.js.map +1 -1
- package/build/esm/string/humanize/index.js +11 -3
- package/build/esm/string/humanize/index.js.map +1 -1
- package/build/esm/string/humanize/shim.js +1 -11
- package/build/esm/string/humanize/shim.js.map +1 -1
- package/build/esm/string/isEmpty/index.js +8 -0
- package/build/esm/string/isEmpty/index.js.map +1 -1
- package/build/esm/string/isEmpty/shim.js +1 -10
- package/build/esm/string/isEmpty/shim.js.map +1 -1
- package/build/esm/string/isString/index.js +8 -0
- package/build/esm/string/isString/index.js.map +1 -1
- package/build/esm/string/isString/shim.js +0 -10
- package/build/esm/string/isString/shim.js.map +1 -1
- package/build/esm/string/kebabCase/index.js +18 -2
- package/build/esm/string/kebabCase/index.js.map +1 -1
- package/build/esm/string/kebabCase/shim.js +1 -15
- package/build/esm/string/kebabCase/shim.js.map +1 -1
- package/build/esm/string/lines/index.js +6 -0
- package/build/esm/string/lines/index.js.map +1 -1
- package/build/esm/string/lines/shim.js +1 -9
- package/build/esm/string/lines/shim.js.map +1 -1
- package/build/esm/string/map/index.js +9 -1
- package/build/esm/string/map/index.js.map +1 -1
- package/build/esm/string/map/shim.js +1 -10
- package/build/esm/string/map/shim.js.map +1 -1
- package/build/esm/string/mask/index.js +14 -2
- package/build/esm/string/mask/index.js.map +1 -1
- package/build/esm/string/mask/shim.js +1 -13
- package/build/esm/string/mask/shim.js.map +1 -1
- package/build/esm/string/pad/index.js +10 -0
- package/build/esm/string/pad/index.js.map +1 -1
- package/build/esm/string/pad/shim.js +1 -12
- package/build/esm/string/pad/shim.js.map +1 -1
- package/build/esm/string/parseInt/index.js +7 -0
- package/build/esm/string/parseInt/index.js.map +1 -1
- package/build/esm/string/parseInt/shim.js +1 -10
- package/build/esm/string/parseInt/shim.js.map +1 -1
- package/build/esm/string/pluralize/index.js +51 -29
- package/build/esm/string/pluralize/index.js.map +1 -1
- package/build/esm/string/pluralize/shim.js +1 -15
- package/build/esm/string/pluralize/shim.js.map +1 -1
- package/build/esm/string/reduce/index.js +11 -1
- package/build/esm/string/reduce/index.js.map +1 -1
- package/build/esm/string/reduce/shim.js +1 -11
- package/build/esm/string/reduce/shim.js.map +1 -1
- package/build/esm/string/repeat/index.js +7 -0
- package/build/esm/string/repeat/index.js.map +1 -1
- package/build/esm/string/repeat/shim.js +0 -10
- package/build/esm/string/repeat/shim.js.map +1 -1
- package/build/esm/string/reverse/index.js +6 -0
- package/build/esm/string/reverse/index.js.map +1 -1
- package/build/esm/string/reverse/shim.js +1 -9
- package/build/esm/string/reverse/shim.js.map +1 -1
- package/build/esm/string/shim.js +0 -1
- package/build/esm/string/shim.js.map +1 -1
- package/build/esm/string/snakeCase/index.js +18 -2
- package/build/esm/string/snakeCase/index.js.map +1 -1
- package/build/esm/string/snakeCase/shim.js +1 -15
- package/build/esm/string/snakeCase/shim.js.map +1 -1
- package/build/esm/string/swapCase/index.js +7 -1
- package/build/esm/string/swapCase/index.js.map +1 -1
- package/build/esm/string/swapCase/shim.js +1 -9
- package/build/esm/string/swapCase/shim.js.map +1 -1
- package/build/esm/string/truncate/index.js +10 -0
- package/build/esm/string/truncate/index.js.map +1 -1
- package/build/esm/string/truncate/shim.js +1 -12
- package/build/esm/string/truncate/shim.js.map +1 -1
- package/build/esm/string/words/index.js +9 -0
- package/build/esm/string/words/index.js.map +1 -1
- package/build/esm/string/words/shim.js +1 -11
- package/build/esm/string/words/shim.js.map +1 -1
- package/build/esm/utils.js +37 -24
- package/build/esm/utils.js.map +1 -1
- package/build/types/array/all/index.d.ts +10 -0
- package/build/types/array/all/shim.d.ts +9 -0
- package/build/types/array/any/index.d.ts +11 -0
- package/build/types/array/any/shim.d.ts +10 -0
- package/build/types/array/append/index.d.ts +8 -0
- package/build/types/array/append/shim.d.ts +7 -0
- package/build/types/array/average/index.d.ts +12 -3
- package/build/types/array/average/shim.d.ts +20 -0
- package/build/types/array/chunk/index.d.ts +7 -0
- package/build/types/array/chunk/shim.d.ts +6 -0
- package/build/types/array/clone/index.d.ts +7 -0
- package/build/types/array/clone/shim.d.ts +6 -0
- package/build/types/array/compact/index.d.ts +7 -1
- package/build/types/array/compact/shim.d.ts +6 -1
- package/build/types/array/contains/index.d.ts +10 -0
- package/build/types/array/contains/shim.d.ts +9 -0
- package/build/types/array/count/index.d.ts +9 -0
- package/build/types/array/count/shim.d.ts +8 -0
- package/build/types/array/countBy/index.d.ts +11 -3
- package/build/types/array/countBy/shim.d.ts +10 -3
- package/build/types/array/crossJoin/index.d.ts +9 -1
- package/build/types/array/crossJoin/shim.d.ts +8 -1
- package/build/types/array/deepFlatten/index.d.ts +7 -1
- package/build/types/array/deepFlatten/shim.d.ts +5 -0
- package/build/types/array/diff/index.d.ts +12 -0
- package/build/types/array/diff/shim.d.ts +11 -0
- package/build/types/array/distinct/index.d.ts +11 -0
- package/build/types/array/distinct/shim.d.ts +10 -0
- package/build/types/array/distinctBy/index.d.ts +7 -0
- package/build/types/array/distinctBy/shim.d.ts +6 -0
- package/build/types/array/empty/index.d.ts +8 -0
- package/build/types/array/empty/shim.d.ts +7 -0
- package/build/types/array/equals/index.d.ts +7 -0
- package/build/types/array/equals/shim.d.ts +6 -0
- package/build/types/array/everyNth/index.d.ts +7 -0
- package/build/types/array/everyNth/shim.d.ts +6 -0
- package/build/types/array/first/index.d.ts +6 -0
- package/build/types/array/first/shim.d.ts +5 -0
- package/build/types/array/flatten/index.d.ts +9 -0
- package/build/types/array/flatten/shim.d.ts +8 -0
- package/build/types/array/get/index.d.ts +11 -1
- package/build/types/array/get/shim.d.ts +10 -1
- package/build/types/array/groupBy/index.d.ts +10 -3
- package/build/types/array/groupBy/shim.d.ts +9 -3
- package/build/types/array/implode/index.d.ts +10 -1
- package/build/types/array/implode/shim.d.ts +8 -0
- package/build/types/array/index.d.ts +3 -3
- package/build/types/array/indexOfAll/index.d.ts +9 -0
- package/build/types/array/indexOfAll/shim.d.ts +8 -0
- package/build/types/array/initial/index.d.ts +5 -0
- package/build/types/array/initial/shim.d.ts +5 -0
- package/build/types/array/intersect/index.d.ts +7 -0
- package/build/types/array/intersect/shim.d.ts +6 -0
- package/build/types/array/isEmpty/index.d.ts +7 -0
- package/build/types/array/isEmpty/shim.d.ts +7 -0
- package/build/types/array/last/index.d.ts +5 -0
- package/build/types/array/last/shim.d.ts +5 -0
- package/build/types/array/limit/index.d.ts +8 -1
- package/build/types/array/limit/shim.d.ts +16 -2
- package/build/types/array/max/index.d.ts +16 -1
- package/build/types/array/max/shim.d.ts +10 -0
- package/build/types/array/median/index.d.ts +14 -1
- package/build/types/array/median/shim.d.ts +8 -0
- package/build/types/array/merge/index.d.ts +8 -0
- package/build/types/array/merge/shim.d.ts +7 -0
- package/build/types/array/min/index.d.ts +16 -1
- package/build/types/array/min/shim.d.ts +10 -0
- package/build/types/array/nest/index.d.ts +16 -1
- package/build/types/array/nest/shim.d.ts +15 -1
- package/build/types/array/orderBy/index.d.ts +22 -4
- package/build/types/array/orderBy/shim.d.ts +16 -1
- package/build/types/array/pad/index.d.ts +10 -0
- package/build/types/array/pad/shim.d.ts +9 -0
- package/build/types/array/partition/index.d.ts +14 -0
- package/build/types/array/partition/shim.d.ts +13 -0
- package/build/types/array/pluck/index.d.ts +9 -0
- package/build/types/array/pluck/shim.d.ts +8 -0
- package/build/types/array/prepend/index.d.ts +8 -0
- package/build/types/array/prepend/shim.d.ts +7 -0
- package/build/types/array/pull/index.d.ts +8 -0
- package/build/types/array/pull/shim.d.ts +7 -0
- package/build/types/array/range/index.d.ts +13 -0
- package/build/types/array/range/shim.d.ts +13 -0
- package/build/types/array/repeat/index.d.ts +7 -0
- package/build/types/array/repeat/shim.d.ts +7 -0
- package/build/types/array/sample/index.d.ts +5 -0
- package/build/types/array/sample/shim.d.ts +5 -0
- package/build/types/array/shim.d.ts +0 -1
- package/build/types/array/shuffle/index.d.ts +6 -0
- package/build/types/array/shuffle/shim.d.ts +6 -0
- package/build/types/array/skip/index.d.ts +7 -0
- package/build/types/array/skip/shim.d.ts +15 -1
- package/build/types/array/sortBy/index.d.ts +10 -0
- package/build/types/array/sortBy/shim.d.ts +9 -0
- package/build/types/array/sum/index.d.ts +12 -3
- package/build/types/array/sum/shim.d.ts +10 -0
- package/build/types/array/tail/index.d.ts +5 -0
- package/build/types/array/tail/shim.d.ts +5 -0
- package/build/types/array/toCSV/index.d.ts +9 -0
- package/build/types/array/toCSV/shim.d.ts +8 -0
- package/build/types/array/union/index.d.ts +7 -0
- package/build/types/array/union/shim.d.ts +7 -1
- package/build/types/array/unwind/index.d.ts +8 -0
- package/build/types/array/unwind/shim.d.ts +7 -0
- package/build/types/array/where/index.d.ts +36 -4
- package/build/types/array/where/shim.d.ts +31 -3
- package/build/types/array/whereBetween/index.d.ts +18 -1
- package/build/types/array/whereBetween/shim.d.ts +15 -0
- package/build/types/array/whereIn/index.d.ts +16 -1
- package/build/types/array/whereIn/shim.d.ts +13 -0
- package/build/types/array/whereLike/index.d.ts +17 -2
- package/build/types/array/whereLike/shim.d.ts +15 -2
- package/build/types/array/whereNotBetween/index.d.ts +18 -1
- package/build/types/array/whereNotBetween/shim.d.ts +15 -0
- package/build/types/array/whereNotIn/index.d.ts +16 -1
- package/build/types/array/whereNotIn/shim.d.ts +13 -0
- package/build/types/array/whereNotLike/index.d.ts +17 -2
- package/build/types/array/whereNotLike/shim.d.ts +15 -2
- package/build/types/array/whereNotNull/index.d.ts +9 -0
- package/build/types/array/whereNotNull/shim.d.ts +8 -0
- package/build/types/array/whereNull/index.d.ts +9 -0
- package/build/types/array/whereNull/shim.d.ts +11 -0
- package/build/types/array/zip/index.d.ts +9 -0
- package/build/types/array/zip/shim.d.ts +8 -0
- package/build/types/array/zipObject/index.d.ts +10 -0
- package/build/types/array/zipObject/shim.d.ts +9 -0
- package/build/types/boolean/isBoolean/index.d.ts +8 -0
- package/build/types/boolean/isBoolean/shim.d.ts +8 -0
- package/build/types/boolean/shim.d.ts +0 -1
- package/build/types/date/equals/index.d.ts +7 -0
- package/build/types/date/equals/shim.d.ts +6 -0
- package/build/types/date/isDate/index.d.ts +8 -0
- package/build/types/date/isDate/shim.d.ts +8 -0
- package/build/types/date/shim.d.ts +0 -1
- package/build/types/date/today/index.d.ts +5 -0
- package/build/types/date/today/shim.d.ts +5 -0
- package/build/types/date/tomorrow/index.d.ts +5 -0
- package/build/types/date/tomorrow/shim.d.ts +5 -0
- package/build/types/date/yesterday/index.d.ts +5 -0
- package/build/types/date/yesterday/shim.d.ts +5 -0
- package/build/types/function/cache/index.d.ts +8 -0
- package/build/types/function/cache/shim.d.ts +8 -0
- package/build/types/function/defer/index.d.ts +9 -1
- package/build/types/function/defer/shim.d.ts +7 -0
- package/build/types/function/isFunction/index.d.ts +8 -0
- package/build/types/function/isFunction/shim.d.ts +8 -0
- package/build/types/function/once/index.d.ts +10 -1
- package/build/types/function/once/shim.d.ts +8 -0
- package/build/types/function/shim.d.ts +0 -1
- package/build/types/globals/isBrowser/index.d.ts +6 -0
- package/build/types/globals/isBrowser/shim.d.ts +6 -0
- package/build/types/globals/shim.d.ts +0 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/math/average/index.d.ts +8 -0
- package/build/types/math/average/shim.d.ts +18 -0
- package/build/types/math/degreesToRads/index.d.ts +6 -0
- package/build/types/math/degreesToRads/shim.d.ts +6 -0
- package/build/types/math/factorial/index.d.ts +6 -0
- package/build/types/math/factorial/shim.d.ts +6 -0
- package/build/types/math/fibonacci/index.d.ts +6 -0
- package/build/types/math/fibonacci/shim.d.ts +6 -0
- package/build/types/math/gcd/index.d.ts +8 -0
- package/build/types/math/gcd/shim.d.ts +8 -0
- package/build/types/math/isDivisible/index.d.ts +7 -0
- package/build/types/math/isDivisible/shim.d.ts +7 -0
- package/build/types/math/isEven/index.d.ts +6 -0
- package/build/types/math/isEven/shim.d.ts +6 -0
- package/build/types/math/isPrime/index.d.ts +6 -0
- package/build/types/math/isPrime/shim.d.ts +6 -0
- package/build/types/math/lcm/index.d.ts +8 -0
- package/build/types/math/lcm/shim.d.ts +8 -0
- package/build/types/math/primes/index.d.ts +6 -0
- package/build/types/math/primes/shim.d.ts +6 -0
- package/build/types/math/radsToDegrees/index.d.ts +6 -0
- package/build/types/math/radsToDegrees/shim.d.ts +6 -0
- package/build/types/math/shim.d.ts +0 -1
- package/build/types/number/digitize/index.d.ts +5 -0
- package/build/types/number/digitize/shim.d.ts +5 -0
- package/build/types/number/equals/index.d.ts +7 -0
- package/build/types/number/equals/shim.d.ts +6 -0
- package/build/types/number/inRange/index.d.ts +8 -0
- package/build/types/number/inRange/shim.d.ts +7 -0
- package/build/types/number/isNumber/index.d.ts +8 -0
- package/build/types/number/isNumber/shim.d.ts +8 -0
- package/build/types/number/shim.d.ts +0 -1
- package/build/types/object/assign/index.d.ts +8 -1
- package/build/types/object/assign/shim.d.ts +7 -1
- package/build/types/object/camelCaseKeys/index.d.ts +7 -0
- package/build/types/object/camelCaseKeys/shim.d.ts +6 -0
- package/build/types/object/clone/index.d.ts +8 -0
- package/build/types/object/clone/shim.d.ts +7 -0
- package/build/types/object/defaults/index.d.ts +8 -1
- package/build/types/object/defaults/shim.d.ts +7 -1
- package/build/types/object/dig/index.d.ts +15 -0
- package/build/types/object/dig/shim.d.ts +14 -0
- package/build/types/object/empty/index.d.ts +8 -0
- package/build/types/object/empty/shim.d.ts +7 -0
- package/build/types/object/equals/index.d.ts +7 -0
- package/build/types/object/equals/shim.d.ts +6 -0
- package/build/types/object/flatten/index.d.ts +6 -0
- package/build/types/object/flatten/shim.d.ts +5 -0
- package/build/types/object/forEach/index.d.ts +11 -0
- package/build/types/object/forEach/shim.d.ts +10 -0
- package/build/types/object/get/index.d.ts +7 -0
- package/build/types/object/get/shim.d.ts +6 -0
- package/build/types/object/invert/index.d.ts +6 -0
- package/build/types/object/invert/shim.d.ts +5 -0
- package/build/types/object/isEmpty/index.d.ts +8 -0
- package/build/types/object/isEmpty/shim.d.ts +7 -0
- package/build/types/object/isObject/index.d.ts +8 -0
- package/build/types/object/isObject/shim.d.ts +8 -0
- package/build/types/object/isObjectLike/index.d.ts +8 -0
- package/build/types/object/isObjectLike/shim.d.ts +8 -0
- package/build/types/object/isPlainObject/index.d.ts +8 -0
- package/build/types/object/isPlainObject/shim.d.ts +8 -0
- package/build/types/object/kebabCaseKeys/index.d.ts +7 -0
- package/build/types/object/kebabCaseKeys/shim.d.ts +6 -0
- package/build/types/object/keys/index.d.ts +6 -0
- package/build/types/object/keys/shim.d.ts +5 -0
- package/build/types/object/lowerCaseKeys/index.d.ts +6 -0
- package/build/types/object/lowerCaseKeys/shim.d.ts +6 -0
- package/build/types/object/map/index.d.ts +12 -0
- package/build/types/object/map/shim.d.ts +11 -0
- package/build/types/object/mapKeys/index.d.ts +8 -0
- package/build/types/object/mapKeys/shim.d.ts +7 -0
- package/build/types/object/mapValues/index.d.ts +12 -0
- package/build/types/object/mapValues/shim.d.ts +11 -0
- package/build/types/object/merge/index.d.ts +17 -1
- package/build/types/object/merge/shim.d.ts +16 -1
- package/build/types/object/omit/index.d.ts +11 -0
- package/build/types/object/omit/shim.d.ts +10 -0
- package/build/types/object/reduce/index.d.ts +8 -0
- package/build/types/object/reduce/shim.d.ts +7 -0
- package/build/types/object/set/index.d.ts +10 -0
- package/build/types/object/set/shim.d.ts +9 -0
- package/build/types/object/shim.d.ts +0 -1
- package/build/types/object/size/index.d.ts +5 -0
- package/build/types/object/size/shim.d.ts +5 -0
- package/build/types/object/snakeCaseKeys/index.d.ts +7 -0
- package/build/types/object/snakeCaseKeys/shim.d.ts +6 -0
- package/build/types/object/values/index.d.ts +6 -1
- package/build/types/object/values/shim.d.ts +5 -0
- package/build/types/string/base64/index.d.ts +5 -0
- package/build/types/string/base64/shim.d.ts +5 -0
- package/build/types/string/base64Decode/index.d.ts +5 -0
- package/build/types/string/base64Decode/shim.d.ts +5 -0
- package/build/types/string/camelCase/index.d.ts +12 -0
- package/build/types/string/camelCase/shim.d.ts +12 -0
- package/build/types/string/capitalize/index.d.ts +9 -0
- package/build/types/string/capitalize/shim.d.ts +8 -0
- package/build/types/string/chars/index.d.ts +5 -0
- package/build/types/string/chars/shim.d.ts +5 -0
- package/build/types/string/contains/index.d.ts +10 -0
- package/build/types/string/contains/shim.d.ts +9 -0
- package/build/types/string/decapitalize/index.d.ts +9 -0
- package/build/types/string/decapitalize/shim.d.ts +8 -0
- package/build/types/string/equals/index.d.ts +7 -0
- package/build/types/string/equals/shim.d.ts +6 -0
- package/build/types/string/forEach/index.d.ts +7 -0
- package/build/types/string/forEach/shim.d.ts +6 -0
- package/build/types/string/humanize/index.d.ts +8 -0
- package/build/types/string/humanize/shim.d.ts +7 -0
- package/build/types/string/isEmpty/index.d.ts +8 -0
- package/build/types/string/isEmpty/shim.d.ts +7 -0
- package/build/types/string/isString/index.d.ts +8 -0
- package/build/types/string/isString/shim.d.ts +8 -0
- package/build/types/string/kebabCase/index.d.ts +16 -0
- package/build/types/string/kebabCase/shim.d.ts +15 -0
- package/build/types/string/lines/index.d.ts +6 -0
- package/build/types/string/lines/shim.d.ts +5 -0
- package/build/types/string/map/index.d.ts +7 -0
- package/build/types/string/map/shim.d.ts +7 -1
- package/build/types/string/mask/index.d.ts +13 -1
- package/build/types/string/mask/shim.d.ts +11 -0
- package/build/types/string/pad/index.d.ts +10 -0
- package/build/types/string/pad/shim.d.ts +9 -0
- package/build/types/string/parseInt/index.d.ts +7 -0
- package/build/types/string/parseInt/shim.d.ts +6 -0
- package/build/types/string/pluralize/index.d.ts +17 -0
- package/build/types/string/pluralize/shim.d.ts +16 -0
- package/build/types/string/reduce/index.d.ts +8 -0
- package/build/types/string/reduce/shim.d.ts +7 -0
- package/build/types/string/repeat/index.d.ts +7 -0
- package/build/types/string/repeat/shim.d.ts +7 -0
- package/build/types/string/reverse/index.d.ts +6 -0
- package/build/types/string/reverse/shim.d.ts +5 -0
- package/build/types/string/shim.d.ts +0 -1
- package/build/types/string/snakeCase/index.d.ts +16 -0
- package/build/types/string/snakeCase/shim.d.ts +15 -0
- package/build/types/string/swapCase/index.d.ts +6 -0
- package/build/types/string/swapCase/shim.d.ts +5 -0
- package/build/types/string/truncate/index.d.ts +10 -0
- package/build/types/string/truncate/shim.d.ts +9 -0
- package/build/types/string/words/index.d.ts +9 -0
- package/build/types/string/words/shim.d.ts +8 -0
- package/build/types/utils.d.ts +18 -17
- package/docs/assets/highlight.css +31 -3
- package/docs/assets/main.js +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +430 -619
- package/docs/enums/OPERATOR.html +107 -0
- package/docs/functions/array.all.html +160 -0
- package/docs/functions/array.any.html +161 -0
- package/docs/functions/array.append.html +141 -0
- package/docs/functions/array.average.html +149 -0
- package/docs/functions/array.chunk.html +141 -0
- package/docs/functions/array.clone.html +141 -0
- package/docs/functions/array.compact.html +139 -0
- package/docs/functions/array.contains.html +146 -0
- package/docs/functions/array.count.html +144 -0
- package/docs/functions/array.countBy.html +148 -0
- package/docs/functions/array.crossJoin.html +144 -0
- package/docs/functions/array.deepFlatten.html +139 -0
- package/docs/functions/array.diff.html +163 -0
- package/docs/functions/array.distinct.html +147 -0
- package/docs/functions/array.distinctBy.html +154 -0
- package/docs/functions/array.empty.html +139 -0
- package/docs/functions/array.equals.html +141 -0
- package/docs/functions/array.everyNth.html +141 -0
- package/docs/functions/array.first.html +139 -0
- package/docs/functions/array.flatten.html +144 -0
- package/docs/functions/array.get.html +150 -0
- package/docs/functions/array.groupBy.html +147 -0
- package/docs/functions/array.implode.html +145 -0
- package/docs/functions/array.indexOfAll.html +144 -0
- package/docs/functions/array.initial.html +139 -0
- package/docs/functions/array.intersect.html +141 -0
- package/docs/functions/array.isEmpty.html +142 -0
- package/docs/functions/array.last.html +139 -0
- package/docs/functions/array.limit.html +141 -0
- package/docs/functions/array.max.html +164 -0
- package/docs/functions/array.median.html +161 -0
- package/docs/functions/array.merge.html +141 -0
- package/docs/functions/array.min.html +164 -0
- package/docs/functions/array.nest.html +143 -0
- package/docs/functions/array.orderBy.html +168 -0
- package/docs/functions/array.pad.html +146 -0
- package/docs/functions/array.partition.html +157 -0
- package/docs/functions/array.pluck.html +146 -0
- package/docs/functions/array.prepend.html +141 -0
- package/docs/functions/array.pull.html +141 -0
- package/docs/functions/array.range.html +145 -0
- package/docs/functions/array.repeat.html +141 -0
- package/docs/functions/array.sample.html +139 -0
- package/docs/functions/array.shuffle.html +139 -0
- package/docs/functions/array.skip.html +141 -0
- package/docs/functions/array.sortBy.html +145 -0
- package/docs/functions/array.sum.html +149 -0
- package/docs/functions/array.tail.html +139 -0
- package/docs/functions/array.toCSV.html +144 -0
- package/docs/functions/array.union.html +143 -0
- package/docs/functions/array.unwind.html +141 -0
- package/docs/functions/array.where.html +209 -0
- package/docs/functions/array.whereBetween.html +167 -0
- package/docs/functions/array.whereIn.html +163 -0
- package/docs/functions/array.whereLike.html +163 -0
- package/docs/functions/array.whereNotBetween.html +167 -0
- package/docs/functions/array.whereNotIn.html +163 -0
- package/docs/functions/array.whereNotLike.html +163 -0
- package/docs/functions/array.whereNotNull.html +144 -0
- package/docs/functions/array.whereNull.html +144 -0
- package/docs/functions/array.zip.html +144 -0
- package/docs/functions/array.zipObject.html +145 -0
- package/docs/functions/boolean.isBoolean.html +73 -0
- package/docs/functions/date.equals.html +76 -0
- package/docs/functions/date.isDate.html +77 -0
- package/docs/functions/date.today.html +69 -0
- package/docs/functions/date.tomorrow.html +69 -0
- package/docs/functions/date.yesterday.html +69 -0
- package/docs/functions/func.cache.html +79 -0
- package/docs/functions/func.defer.html +82 -0
- package/docs/functions/func.isFunction.html +76 -0
- package/docs/functions/func.once.html +84 -0
- package/docs/functions/globals.isBrowser.html +66 -0
- package/docs/functions/math.average.html +83 -0
- package/docs/functions/math.degreesToRads.html +80 -0
- package/docs/functions/math.factorial.html +80 -0
- package/docs/functions/math.fibonacci.html +80 -0
- package/docs/functions/math.gcd.html +83 -0
- package/docs/functions/math.isDivisible.html +82 -0
- package/docs/functions/math.isEven.html +80 -0
- package/docs/functions/math.isPrime.html +80 -0
- package/docs/functions/math.lcm.html +83 -0
- package/docs/functions/math.primes.html +80 -0
- package/docs/functions/math.radsToDegrees.html +80 -0
- package/docs/functions/number.digitize.html +73 -0
- package/docs/functions/number.equals.html +75 -0
- package/docs/functions/number.inRange.html +77 -0
- package/docs/functions/number.isNumber.html +76 -0
- package/docs/functions/object.assign.html +99 -0
- package/docs/functions/object.camelCaseKeys.html +97 -0
- package/docs/functions/object.clone.html +104 -0
- package/docs/functions/object.defaults.html +99 -0
- package/docs/functions/object.dig.html +99 -0
- package/docs/functions/object.empty.html +97 -0
- package/docs/functions/object.equals.html +99 -0
- package/docs/functions/object.flatten.html +97 -0
- package/docs/functions/object.forEach.html +121 -0
- package/docs/functions/object.get.html +106 -0
- package/docs/functions/object.invert.html +97 -0
- package/docs/functions/object.isEmpty.html +100 -0
- package/docs/functions/object.isObject.html +100 -0
- package/docs/functions/object.isObjectLike.html +100 -0
- package/docs/functions/object.isPlainObject.html +100 -0
- package/docs/functions/object.kebabCaseKeys.html +97 -0
- package/docs/functions/object.keys.html +102 -0
- package/docs/functions/object.lowerCaseKeys.html +97 -0
- package/docs/functions/object.map.html +122 -0
- package/docs/functions/object.mapKeys.html +122 -0
- package/docs/functions/object.mapValues.html +122 -0
- package/docs/functions/object.merge.html +99 -0
- package/docs/functions/object.omit.html +104 -0
- package/docs/functions/object.reduce.html +127 -0
- package/docs/functions/object.set.html +101 -0
- package/docs/functions/object.size.html +97 -0
- package/docs/functions/object.snakeCaseKeys.html +97 -0
- package/docs/functions/object.values.html +104 -0
- package/docs/functions/string.base64.html +95 -0
- package/docs/functions/string.base64Decode.html +95 -0
- package/docs/functions/string.camelCase.html +104 -0
- package/docs/functions/string.capitalize.html +100 -0
- package/docs/functions/string.chars.html +95 -0
- package/docs/functions/string.contains.html +102 -0
- package/docs/functions/string.decapitalize.html +100 -0
- package/docs/functions/string.equals.html +97 -0
- package/docs/functions/string.forEach.html +112 -0
- package/docs/functions/string.humanize.html +96 -0
- package/docs/functions/string.isEmpty.html +98 -0
- package/docs/functions/string.isString.html +98 -0
- package/docs/functions/string.kebabCase.html +107 -0
- package/docs/functions/string.lines.html +95 -0
- package/docs/functions/string.map.html +112 -0
- package/docs/functions/string.mask.html +105 -0
- package/docs/functions/string.pad.html +102 -0
- package/docs/functions/string.parseInt.html +97 -0
- package/docs/functions/string.pluralize.html +112 -0
- package/docs/functions/string.reduce.html +121 -0
- package/docs/functions/string.repeat.html +97 -0
- package/docs/functions/string.reverse.html +95 -0
- package/docs/functions/string.snakeCase.html +107 -0
- package/docs/functions/string.swapCase.html +95 -0
- package/docs/functions/string.truncate.html +102 -0
- package/docs/functions/string.words.html +100 -0
- package/docs/index.html +58 -2
- package/docs/modules/array.html +192 -1
- package/docs/modules/boolean.html +61 -1
- package/docs/modules/date.html +69 -1
- package/docs/modules/func.html +67 -0
- package/docs/modules/globals.html +61 -1
- package/docs/modules/math.html +81 -1
- package/docs/modules/number.html +67 -1
- package/docs/modules/object.html +115 -1
- package/docs/modules/string.html +111 -1
- package/docs/modules.html +83 -1
- package/docs/types/JoinT.html +66 -0
- package/docs/types/OperatorT.html +62 -0
- package/docs/types/PathT.html +66 -0
- package/docs/types/PathsToStringPropsT.html +66 -0
- package/docs/types/RecordT.html +62 -0
- package/docs/types/array.CompactT.html +126 -0
- package/docs/types/array.NestedArrayT.html +126 -0
- package/docs/types/array.OrderT.html +122 -0
- package/jest.config.js +8 -6
- package/package.json +17 -17
- package/src/array/all/index.ts +10 -0
- package/src/array/all/shim.ts +11 -12
- package/src/array/any/index.ts +11 -0
- package/src/array/any/shim.ts +12 -13
- package/src/array/append/index.ts +8 -0
- package/src/array/append/shim.ts +9 -11
- package/src/array/average/index.ts +13 -10
- package/src/array/average/shim.ts +23 -26
- package/src/array/chunk/index.ts +8 -1
- package/src/array/chunk/shim.ts +8 -10
- package/src/array/clone/index.ts +7 -0
- package/src/array/clone/shim.ts +8 -10
- package/src/array/compact/index.ts +8 -2
- package/src/array/compact/shim.ts +8 -10
- package/src/array/contains/index.ts +10 -0
- package/src/array/contains/shim.ts +11 -10
- package/src/array/count/index.ts +12 -3
- package/src/array/count/shim.ts +10 -11
- package/src/array/countBy/index.ts +12 -2
- package/src/array/countBy/shim.ts +12 -13
- package/src/array/crossJoin/index.ts +11 -5
- package/src/array/crossJoin/shim.ts +10 -12
- package/src/array/deepFlatten/index.ts +9 -9
- package/src/array/deepFlatten/shim.ts +7 -9
- package/src/array/diff/index.ts +14 -3
- package/src/array/diff/shim.ts +13 -14
- package/src/array/distinct/index.ts +17 -5
- package/src/array/distinct/shim.ts +12 -12
- package/src/array/distinctBy/index.ts +12 -5
- package/src/array/distinctBy/shim.ts +8 -10
- package/src/array/empty/index.ts +8 -0
- package/src/array/empty/shim.ts +9 -10
- package/src/array/equals/index.ts +8 -3
- package/src/array/equals/shim.ts +8 -10
- package/src/array/everyNth/index.ts +7 -0
- package/src/array/everyNth/shim.ts +8 -9
- package/src/array/first/index.ts +6 -0
- package/src/array/first/shim.ts +7 -9
- package/src/array/flatten/index.ts +14 -7
- package/src/array/flatten/shim.ts +11 -11
- package/src/array/get/index.ts +11 -1
- package/src/array/get/shim.ts +12 -13
- package/src/array/groupBy/index.ts +12 -2
- package/src/array/groupBy/shim.ts +11 -12
- package/src/array/implode/index.ts +16 -8
- package/src/array/implode/shim.ts +10 -12
- package/src/array/index.ts +3 -3
- package/src/array/indexOfAll/index.ts +9 -0
- package/src/array/indexOfAll/shim.ts +10 -11
- package/src/array/initial/index.ts +6 -3
- package/src/array/initial/shim.ts +7 -9
- package/src/array/intersect/index.ts +8 -1
- package/src/array/intersect/shim.ts +8 -10
- package/src/array/isEmpty/index.ts +7 -0
- package/src/array/isEmpty/shim.ts +9 -10
- package/src/array/last/index.ts +8 -3
- package/src/array/last/shim.ts +7 -9
- package/src/array/limit/index.ts +9 -2
- package/src/array/limit/shim.ts +19 -24
- package/src/array/max/index.ts +22 -7
- package/src/array/max/shim.ts +12 -12
- package/src/array/median/index.ts +17 -4
- package/src/array/median/shim.ts +10 -11
- package/src/array/merge/index.ts +8 -0
- package/src/array/merge/shim.ts +9 -10
- package/src/array/min/index.ts +22 -7
- package/src/array/min/shim.ts +12 -12
- package/src/array/nest/index.ts +31 -12
- package/src/array/nest/shim.ts +17 -19
- package/src/array/orderBy/index.ts +31 -10
- package/src/array/orderBy/shim.ts +17 -13
- package/src/array/pad/index.ts +10 -0
- package/src/array/pad/shim.ts +11 -12
- package/src/array/partition/index.ts +17 -2
- package/src/array/partition/shim.ts +15 -17
- package/src/array/pluck/index.ts +11 -3
- package/src/array/pluck/shim.ts +10 -11
- package/src/array/prepend/index.ts +8 -0
- package/src/array/prepend/shim.ts +9 -10
- package/src/array/pull/index.ts +10 -2
- package/src/array/pull/shim.ts +9 -10
- package/src/array/range/index.ts +14 -1
- package/src/array/range/shim.ts +14 -14
- package/src/array/repeat/index.ts +7 -0
- package/src/array/repeat/shim.ts +8 -10
- package/src/array/sample/index.ts +5 -0
- package/src/array/sample/shim.ts +7 -9
- package/src/array/shim.ts +0 -2
- package/src/array/shuffle/index.ts +6 -0
- package/src/array/shuffle/shim.ts +7 -9
- package/src/array/skip/index.ts +7 -0
- package/src/array/skip/shim.ts +17 -22
- package/src/array/sortBy/index.ts +11 -2
- package/src/array/sortBy/shim.ts +10 -11
- package/src/array/sum/index.ts +19 -18
- package/src/array/sum/shim.ts +12 -12
- package/src/array/tail/index.ts +6 -3
- package/src/array/tail/shim.ts +7 -9
- package/src/array/toCSV/index.ts +10 -1
- package/src/array/toCSV/shim.ts +10 -11
- package/src/array/union/index.ts +7 -0
- package/src/array/union/shim.ts +9 -11
- package/src/array/unwind/index.ts +14 -5
- package/src/array/unwind/shim.ts +9 -11
- package/src/array/where/index.ts +67 -29
- package/src/array/where/shim.ts +32 -17
- package/src/array/whereBetween/index.ts +27 -7
- package/src/array/whereBetween/shim.ts +17 -13
- package/src/array/whereIn/index.ts +22 -7
- package/src/array/whereIn/shim.ts +15 -12
- package/src/array/whereLike/index.ts +25 -10
- package/src/array/whereLike/shim.ts +17 -15
- package/src/array/whereNotBetween/index.ts +27 -7
- package/src/array/whereNotBetween/shim.ts +17 -13
- package/src/array/whereNotIn/index.ts +22 -7
- package/src/array/whereNotIn/shim.ts +15 -12
- package/src/array/whereNotLike/index.ts +25 -10
- package/src/array/whereNotLike/shim.ts +17 -14
- package/src/array/whereNotNull/index.ts +10 -3
- package/src/array/whereNotNull/shim.ts +10 -11
- package/src/array/whereNull/index.ts +10 -3
- package/src/array/whereNull/shim.ts +13 -11
- package/src/array/zip/index.ts +15 -4
- package/src/array/zip/shim.ts +10 -11
- package/src/array/zipObject/index.ts +15 -1
- package/src/array/zipObject/shim.ts +11 -12
- package/src/boolean/isBoolean/index.ts +8 -0
- package/src/boolean/isBoolean/shim.ts +9 -10
- package/src/boolean/shim.ts +0 -2
- package/src/date/equals/index.ts +7 -0
- package/src/date/equals/shim.ts +8 -10
- package/src/date/isDate/index.ts +10 -2
- package/src/date/isDate/shim.ts +9 -10
- package/src/date/shim.ts +0 -2
- package/src/date/today/index.ts +12 -5
- package/src/date/today/shim.ts +6 -8
- package/src/date/tomorrow/index.ts +12 -5
- package/src/date/tomorrow/shim.ts +6 -8
- package/src/date/yesterday/index.ts +12 -5
- package/src/date/yesterday/shim.ts +6 -8
- package/src/function/cache/index.ts +12 -5
- package/src/function/cache/shim.ts +9 -12
- package/src/function/defer/index.ts +9 -1
- package/src/function/defer/shim.ts +9 -11
- package/src/function/isFunction/index.ts +9 -3
- package/src/function/isFunction/shim.ts +9 -10
- package/src/function/once/index.ts +11 -1
- package/src/function/once/shim.ts +9 -12
- package/src/function/shim.ts +0 -2
- package/src/globals/isBrowser/index.ts +6 -0
- package/src/globals/isBrowser/shim.ts +7 -9
- package/src/globals/shim.ts +0 -2
- package/src/index.ts +2 -0
- package/src/math/average/index.ts +8 -0
- package/src/math/average/shim.ts +20 -23
- package/src/math/degreesToRads/index.ts +8 -2
- package/src/math/degreesToRads/shim.ts +7 -9
- package/src/math/factorial/index.ts +6 -0
- package/src/math/factorial/shim.ts +7 -9
- package/src/math/fibonacci/index.ts +9 -4
- package/src/math/fibonacci/shim.ts +7 -9
- package/src/math/gcd/index.ts +10 -3
- package/src/math/gcd/shim.ts +9 -10
- package/src/math/isDivisible/index.ts +7 -0
- package/src/math/isDivisible/shim.ts +8 -10
- package/src/math/isEven/index.ts +6 -0
- package/src/math/isEven/shim.ts +7 -9
- package/src/math/isPrime/index.ts +6 -0
- package/src/math/isPrime/shim.ts +7 -9
- package/src/math/lcm/index.ts +11 -6
- package/src/math/lcm/shim.ts +9 -10
- package/src/math/primes/index.ts +7 -3
- package/src/math/primes/shim.ts +7 -9
- package/src/math/radsToDegrees/index.ts +8 -2
- package/src/math/radsToDegrees/shim.ts +7 -9
- package/src/math/shim.ts +0 -2
- package/src/number/digitize/index.ts +6 -1
- package/src/number/digitize/shim.ts +7 -9
- package/src/number/equals/index.ts +7 -0
- package/src/number/equals/shim.ts +8 -10
- package/src/number/inRange/index.ts +8 -0
- package/src/number/inRange/shim.ts +9 -11
- package/src/number/isNumber/index.ts +8 -0
- package/src/number/isNumber/shim.ts +9 -10
- package/src/number/shim.ts +0 -2
- package/src/object/assign/index.ts +8 -1
- package/src/object/assign/shim.ts +9 -11
- package/src/object/camelCaseKeys/index.ts +8 -3
- package/src/object/camelCaseKeys/shim.ts +8 -10
- package/src/object/clone/index.ts +9 -1
- package/src/object/clone/shim.ts +9 -11
- package/src/object/defaults/index.ts +9 -2
- package/src/object/defaults/shim.ts +9 -11
- package/src/object/dig/index.ts +18 -3
- package/src/object/dig/shim.ts +16 -18
- package/src/object/empty/index.ts +11 -5
- package/src/object/empty/shim.ts +9 -10
- package/src/object/equals/index.ts +12 -4
- package/src/object/equals/shim.ts +8 -10
- package/src/object/flatten/index.ts +10 -6
- package/src/object/flatten/shim.ts +7 -9
- package/src/object/forEach/index.ts +12 -1
- package/src/object/forEach/shim.ts +12 -13
- package/src/object/get/index.ts +7 -0
- package/src/object/get/shim.ts +8 -10
- package/src/object/invert/index.ts +9 -5
- package/src/object/invert/shim.ts +7 -9
- package/src/object/isEmpty/index.ts +8 -0
- package/src/object/isEmpty/shim.ts +9 -10
- package/src/object/isObject/index.ts +8 -0
- package/src/object/isObject/shim.ts +9 -10
- package/src/object/isObjectLike/index.ts +9 -3
- package/src/object/isObjectLike/shim.ts +9 -10
- package/src/object/isPlainObject/index.ts +11 -6
- package/src/object/isPlainObject/shim.ts +9 -10
- package/src/object/kebabCaseKeys/index.ts +8 -3
- package/src/object/kebabCaseKeys/shim.ts +8 -10
- package/src/object/keys/index.ts +7 -3
- package/src/object/keys/shim.ts +7 -9
- package/src/object/lowerCaseKeys/index.ts +7 -3
- package/src/object/lowerCaseKeys/shim.ts +8 -10
- package/src/object/map/index.ts +14 -2
- package/src/object/map/shim.ts +12 -14
- package/src/object/mapKeys/index.ts +8 -0
- package/src/object/mapKeys/shim.ts +9 -11
- package/src/object/mapValues/index.ts +13 -1
- package/src/object/mapValues/shim.ts +13 -15
- package/src/object/merge/index.ts +24 -10
- package/src/object/merge/shim.ts +18 -20
- package/src/object/omit/index.ts +21 -6
- package/src/object/omit/shim.ts +12 -13
- package/src/object/reduce/index.ts +9 -0
- package/src/object/reduce/shim.ts +9 -12
- package/src/object/set/index.ts +12 -3
- package/src/object/set/shim.ts +11 -12
- package/src/object/shim.ts +0 -2
- package/src/object/size/index.ts +5 -0
- package/src/object/size/shim.ts +7 -9
- package/src/object/snakeCaseKeys/index.ts +8 -3
- package/src/object/snakeCaseKeys/shim.ts +8 -10
- package/src/object/values/index.ts +6 -1
- package/src/object/values/shim.ts +7 -9
- package/src/string/base64/index.ts +5 -0
- package/src/string/base64/shim.ts +7 -9
- package/src/string/base64Decode/index.ts +5 -0
- package/src/string/base64Decode/shim.ts +7 -9
- package/src/string/camelCase/index.ts +14 -4
- package/src/string/camelCase/shim.ts +14 -13
- package/src/string/capitalize/index.ts +11 -2
- package/src/string/capitalize/shim.ts +10 -11
- package/src/string/chars/index.ts +5 -0
- package/src/string/chars/shim.ts +7 -9
- package/src/string/contains/index.ts +12 -2
- package/src/string/contains/shim.ts +11 -12
- package/src/string/decapitalize/index.ts +11 -2
- package/src/string/decapitalize/shim.ts +10 -11
- package/src/string/equals/index.ts +7 -0
- package/src/string/equals/shim.ts +8 -10
- package/src/string/forEach/index.ts +8 -1
- package/src/string/forEach/shim.ts +8 -10
- package/src/string/humanize/index.ts +11 -5
- package/src/string/humanize/shim.ts +9 -11
- package/src/string/isEmpty/index.ts +8 -0
- package/src/string/isEmpty/shim.ts +9 -10
- package/src/string/isString/index.ts +8 -0
- package/src/string/isString/shim.ts +9 -10
- package/src/string/kebabCase/index.ts +18 -4
- package/src/string/kebabCase/shim.ts +17 -15
- package/src/string/lines/index.ts +6 -0
- package/src/string/lines/shim.ts +7 -9
- package/src/string/map/index.ts +9 -1
- package/src/string/map/shim.ts +8 -12
- package/src/string/mask/index.ts +14 -2
- package/src/string/mask/shim.ts +13 -13
- package/src/string/pad/index.ts +12 -2
- package/src/string/pad/shim.ts +11 -12
- package/src/string/parseInt/index.ts +7 -0
- package/src/string/parseInt/shim.ts +8 -10
- package/src/string/pluralize/index.ts +76 -48
- package/src/string/pluralize/shim.ts +18 -15
- package/src/string/reduce/index.ts +9 -0
- package/src/string/reduce/shim.ts +9 -11
- package/src/string/repeat/index.ts +7 -0
- package/src/string/repeat/shim.ts +8 -10
- package/src/string/reverse/index.ts +6 -0
- package/src/string/reverse/shim.ts +7 -9
- package/src/string/shim.ts +0 -2
- package/src/string/snakeCase/index.ts +18 -4
- package/src/string/snakeCase/shim.ts +17 -15
- package/src/string/swapCase/index.ts +7 -3
- package/src/string/swapCase/shim.ts +7 -9
- package/src/string/truncate/index.ts +10 -0
- package/src/string/truncate/shim.ts +11 -12
- package/src/string/words/index.ts +9 -0
- package/src/string/words/shim.ts +10 -11
- package/src/utils.ts +59 -47
- package/tsconfig.eslint.json +4 -0
- package/tsconfig.json +1 -1
- package/typedoc.json +8 -3
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/enums/array_orderBy.ORDER.html +0 -1
- package/docs/enums/utils.OPERATOR.html +0 -1
- package/docs/modules/array_all.html +0 -1
- package/docs/modules/array_any.html +0 -1
- package/docs/modules/array_append.html +0 -1
- package/docs/modules/array_average.html +0 -1
- package/docs/modules/array_chunk.html +0 -1
- package/docs/modules/array_clone.html +0 -1
- package/docs/modules/array_compact.html +0 -1
- package/docs/modules/array_contains.html +0 -1
- package/docs/modules/array_count.html +0 -1
- package/docs/modules/array_countBy.html +0 -1
- package/docs/modules/array_crossJoin.html +0 -1
- package/docs/modules/array_deepFlatten.html +0 -1
- package/docs/modules/array_diff.html +0 -1
- package/docs/modules/array_distinct.html +0 -1
- package/docs/modules/array_distinctBy.html +0 -1
- package/docs/modules/array_empty.html +0 -1
- package/docs/modules/array_equals.html +0 -1
- package/docs/modules/array_everyNth.html +0 -1
- package/docs/modules/array_first.html +0 -1
- package/docs/modules/array_flatten.html +0 -1
- package/docs/modules/array_get.html +0 -1
- package/docs/modules/array_groupBy.html +0 -1
- package/docs/modules/array_implode.html +0 -1
- package/docs/modules/array_indexOfAll.html +0 -1
- package/docs/modules/array_initial.html +0 -1
- package/docs/modules/array_intersect.html +0 -1
- package/docs/modules/array_isEmpty.html +0 -1
- package/docs/modules/array_last.html +0 -1
- package/docs/modules/array_limit.html +0 -1
- package/docs/modules/array_max.html +0 -1
- package/docs/modules/array_median.html +0 -1
- package/docs/modules/array_merge.html +0 -1
- package/docs/modules/array_min.html +0 -1
- package/docs/modules/array_nest.html +0 -1
- package/docs/modules/array_orderBy.html +0 -1
- package/docs/modules/array_pad.html +0 -1
- package/docs/modules/array_partition.html +0 -1
- package/docs/modules/array_pluck.html +0 -1
- package/docs/modules/array_prepend.html +0 -1
- package/docs/modules/array_pull.html +0 -1
- package/docs/modules/array_range.html +0 -1
- package/docs/modules/array_repeat.html +0 -1
- package/docs/modules/array_sample.html +0 -1
- package/docs/modules/array_shuffle.html +0 -1
- package/docs/modules/array_skip.html +0 -1
- package/docs/modules/array_sortBy.html +0 -1
- package/docs/modules/array_sum.html +0 -1
- package/docs/modules/array_tail.html +0 -1
- package/docs/modules/array_toCSV.html +0 -1
- package/docs/modules/array_union.html +0 -1
- package/docs/modules/array_unwind.html +0 -1
- package/docs/modules/array_where.html +0 -1
- package/docs/modules/array_whereBetween.html +0 -1
- package/docs/modules/array_whereIn.html +0 -1
- package/docs/modules/array_whereLike.html +0 -1
- package/docs/modules/array_whereNotBetween.html +0 -1
- package/docs/modules/array_whereNotIn.html +0 -1
- package/docs/modules/array_whereNotLike.html +0 -1
- package/docs/modules/array_whereNotNull.html +0 -1
- package/docs/modules/array_whereNull.html +0 -1
- package/docs/modules/array_zip.html +0 -1
- package/docs/modules/array_zipObject.html +0 -1
- package/docs/modules/boolean_isBoolean.html +0 -1
- package/docs/modules/date_equals.html +0 -1
- package/docs/modules/date_isDate.html +0 -1
- package/docs/modules/date_today.html +0 -1
- package/docs/modules/date_tomorrow.html +0 -1
- package/docs/modules/date_yesterday.html +0 -1
- package/docs/modules/function.html +0 -1
- package/docs/modules/function_cache.html +0 -1
- package/docs/modules/function_defer.html +0 -1
- package/docs/modules/function_isFunction.html +0 -1
- package/docs/modules/function_once.html +0 -1
- package/docs/modules/globals_isBrowser.html +0 -1
- package/docs/modules/index.html +0 -1
- package/docs/modules/math_average.html +0 -1
- package/docs/modules/math_degreesToRads.html +0 -1
- package/docs/modules/math_factorial.html +0 -1
- package/docs/modules/math_fibonacci.html +0 -1
- package/docs/modules/math_gcd.html +0 -1
- package/docs/modules/math_isDivisible.html +0 -1
- package/docs/modules/math_isEven.html +0 -1
- package/docs/modules/math_isPrime.html +0 -1
- package/docs/modules/math_lcm.html +0 -1
- package/docs/modules/math_primes.html +0 -1
- package/docs/modules/math_radsToDegrees.html +0 -1
- package/docs/modules/number_digitize.html +0 -1
- package/docs/modules/number_equals.html +0 -1
- package/docs/modules/number_inRange.html +0 -1
- package/docs/modules/number_isNumber.html +0 -1
- package/docs/modules/object_assign.html +0 -1
- package/docs/modules/object_camelCaseKeys.html +0 -1
- package/docs/modules/object_clone.html +0 -1
- package/docs/modules/object_defaults.html +0 -1
- package/docs/modules/object_dig.html +0 -1
- package/docs/modules/object_empty.html +0 -1
- package/docs/modules/object_equals.html +0 -1
- package/docs/modules/object_flatten.html +0 -1
- package/docs/modules/object_forEach.html +0 -1
- package/docs/modules/object_get.html +0 -1
- package/docs/modules/object_invert.html +0 -1
- package/docs/modules/object_isEmpty.html +0 -1
- package/docs/modules/object_isObject.html +0 -1
- package/docs/modules/object_isObjectLike.html +0 -1
- package/docs/modules/object_isPlainObject.html +0 -1
- package/docs/modules/object_kebabCaseKeys.html +0 -1
- package/docs/modules/object_keys.html +0 -1
- package/docs/modules/object_lowerCaseKeys.html +0 -1
- package/docs/modules/object_map.html +0 -1
- package/docs/modules/object_mapKeys.html +0 -1
- package/docs/modules/object_mapValues.html +0 -1
- package/docs/modules/object_merge.html +0 -1
- package/docs/modules/object_omit.html +0 -1
- package/docs/modules/object_reduce.html +0 -1
- package/docs/modules/object_set.html +0 -1
- package/docs/modules/object_size.html +0 -1
- package/docs/modules/object_snakeCaseKeys.html +0 -1
- package/docs/modules/object_values.html +0 -1
- package/docs/modules/string_base64.html +0 -1
- package/docs/modules/string_base64Decode.html +0 -1
- package/docs/modules/string_camelCase.html +0 -1
- package/docs/modules/string_capitalize.html +0 -1
- package/docs/modules/string_chars.html +0 -1
- package/docs/modules/string_contains.html +0 -1
- package/docs/modules/string_decapitalize.html +0 -1
- package/docs/modules/string_equals.html +0 -1
- package/docs/modules/string_forEach.html +0 -1
- package/docs/modules/string_humanize.html +0 -1
- package/docs/modules/string_isEmpty.html +0 -1
- package/docs/modules/string_isString.html +0 -1
- package/docs/modules/string_kebabCase.html +0 -1
- package/docs/modules/string_lines.html +0 -1
- package/docs/modules/string_map.html +0 -1
- package/docs/modules/string_mask.html +0 -1
- package/docs/modules/string_pad.html +0 -1
- package/docs/modules/string_parseInt.html +0 -1
- package/docs/modules/string_pluralize.html +0 -1
- package/docs/modules/string_reduce.html +0 -1
- package/docs/modules/string_repeat.html +0 -1
- package/docs/modules/string_reverse.html +0 -1
- package/docs/modules/string_snakeCase.html +0 -1
- package/docs/modules/string_swapCase.html +0 -1
- package/docs/modules/string_truncate.html +0 -1
- package/docs/modules/string_words.html +0 -1
- package/docs/modules/utils.html +0 -7
- package/scripts/docs.js +0 -11
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Groups the elements of an array based on the given function and
|
|
3
|
+
* returns the count of elements in each group
|
|
4
|
+
* @param array
|
|
5
|
+
* @param fn
|
|
6
|
+
* @example
|
|
7
|
+
* countBy([6.1, 4.2, 6.3], Math.floor); // { 4: 1, 6: 2 }
|
|
8
|
+
* @example
|
|
9
|
+
* countBy(['one', 'two', 'three'], 'length'); // { 3: 2, 5: 1 }
|
|
10
|
+
*/
|
|
1
11
|
export default function countBy(array, fn) {
|
|
2
12
|
return array
|
|
3
13
|
.map(typeof fn === "function" ? fn : (value) => value[fn])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/countBy/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAc,EACd,EAAmE;IAEnE,OAAO,KAAK;SACT,GAAG,CAAC,OAAO,EAAE,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/countBy/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAc,EACd,EAAmE;IAEnE,OAAO,KAAK;SACT,GAAG,CAAC,OAAO,EAAE,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAU,EAAO,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;SACnE,MAAM,CAAC,CAAC,IAAI,EAAE,KAAa,EAAE,EAAE;QAC9B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QAErC,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC","sourcesContent":["/**\n * Groups the elements of an array based on the given function and\n * returns the count of elements in each group\n * @param array\n * @param fn\n * @example\n * countBy([6.1, 4.2, 6.3], Math.floor); // { 4: 1, 6: 2 }\n * @example\n * countBy(['one', 'two', 'three'], 'length'); // { 3: 2, 5: 1 }\n */\nexport default function countBy<Value>(\n array: Value[],\n fn: string | ((value: Value, index: number, array: Value[]) => any),\n): Record<string, number> {\n return array\n .map(typeof fn === \"function\" ? fn : (value: any): any => value[fn])\n .reduce((prev, value: string) => {\n prev[value] = (prev[value] || 0) + 1;\n\n return prev;\n }, {});\n}\n"]}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import countBy from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Groups the elements of an array based on the given function and
|
|
5
|
-
* returns the count of elements in each group
|
|
6
|
-
* @memberof Array.prototype
|
|
7
|
-
* @function countBy
|
|
8
|
-
* @param {String|Function} fn
|
|
9
|
-
* @returns {Object}
|
|
10
|
-
* @example
|
|
11
|
-
* [6.1, 4.2, 6.3].countBy(Math.floor); // {4: 1, 6: 2}
|
|
12
|
-
* ['one', 'two', 'three'].countBy('length'); // {3: 2, 5: 1}
|
|
13
|
-
*/
|
|
2
|
+
import countBy from "./index.js";
|
|
14
3
|
addPrototype(Array, "countBy", countBy);
|
|
15
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/countBy/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/countBy/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,OAAO,MAAM,YAAY,CAAC;AAoBjC,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport countBy from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Groups the elements of an array based on the given function and\n * returns the count of elements in each group\n * @param fn\n * @example\n * [6.1, 4.2, 6.3].countBy(Math.floor); // { 4: 1, 6: 2 }\n * @example\n * ['one', 'two', 'three'].countBy('length'); // { 3: 2, 5: 1 }\n */\n countBy(\n fn: string | ((value: T, index: number, arr: T[]) => any),\n ): Record<string, number>;\n }\n}\n\naddPrototype(Array, \"countBy\", countBy);\n"]}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross joins the array's values among the given arrays,
|
|
3
|
+
* returning a Cartesian product with all possible permutations
|
|
4
|
+
* @param array1
|
|
5
|
+
* @param array2
|
|
6
|
+
* @example
|
|
7
|
+
* crossJoin([1, 2], ['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]
|
|
8
|
+
*/
|
|
1
9
|
export default function crossJoin(array1, array2) {
|
|
2
10
|
const joined = [];
|
|
3
|
-
array1.forEach(
|
|
11
|
+
array1.forEach(item => array2.forEach(value => joined.push([item, value])));
|
|
4
12
|
return joined;
|
|
5
13
|
}
|
|
6
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/crossJoin/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAO,MAAW,EAAE,MAAW;IAC9D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/crossJoin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAO,MAAW,EAAE,MAAW;IAC9D,MAAM,MAAM,GAAkB,EAAE,CAAC;IAEjC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE5E,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * Cross joins the array's values among the given arrays,\n * returning a Cartesian product with all possible permutations\n * @param array1\n * @param array2\n * @example\n * crossJoin([1, 2], ['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]\n */\nexport default function crossJoin<T, P>(array1: T[], array2: P[]): Array<[T, P]> {\n const joined: Array<[T, P]> = [];\n\n array1.forEach(item => array2.forEach(value => joined.push([item, value])));\n\n return joined;\n}\n"]}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import crossJoin from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Cross joins the array's values among the given arrays,
|
|
5
|
-
* returning a Cartesian product with all possible permutations
|
|
6
|
-
* @memberof Array.prototype
|
|
7
|
-
* @function crossJoin
|
|
8
|
-
* @param {Array} array
|
|
9
|
-
* @returns {Array[]}
|
|
10
|
-
* @example
|
|
11
|
-
* [1, 2].crossJoin(['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]
|
|
12
|
-
*/
|
|
2
|
+
import crossJoin from "./index.js";
|
|
13
3
|
addPrototype(Array, "crossJoin", crossJoin);
|
|
14
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/crossJoin/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/crossJoin/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,SAAS,MAAM,YAAY,CAAC;AAgBnC,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport crossJoin from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Cross joins the array's values among the given arrays,\n * returning a Cartesian product with all possible permutations\n * @param array\n * @example\n * [1, 2].crossJoin(['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]\n */\n crossJoin<P>(array: P[]): Array<[T, P]>;\n }\n}\n\naddPrototype(Array, \"crossJoin\", crossJoin);\n"]}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep flattens an array
|
|
3
|
+
* @param array
|
|
4
|
+
* @example
|
|
5
|
+
* deepFlatten([1, [2], [[3], 4], 5]); // [1,2,3,4,5]
|
|
6
|
+
*/
|
|
1
7
|
export default function deepFlatten(array) {
|
|
2
|
-
return [].concat(...array.map(
|
|
8
|
+
return [].concat(...array.map(value => (Array.isArray(value) ? deepFlatten(value) : value)));
|
|
3
9
|
}
|
|
4
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/deepFlatten/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/deepFlatten/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAQ,KAA0B;IACnE,OAAQ,EAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC5G,CAAC","sourcesContent":["/**\n * Deep flattens an array\n * @param array\n * @example\n * deepFlatten([1, [2], [[3], 4], 5]); // [1,2,3,4,5]\n */\nexport default function deepFlatten<Value>(array: NestedArrayT<Value>): Value[] {\n return ([] as Value[]).concat(...array.map(value => (Array.isArray(value) ? deepFlatten(value) : value)));\n}\n\nexport type NestedArrayT<Value> = Array<NestedArrayT<Value> | Value>;\n"]}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import deepFlatten from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Deep flattens an array
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function deepFlatten
|
|
7
|
-
* @returns {Array}
|
|
8
|
-
* @example
|
|
9
|
-
* [1, [2], [[3], 4], 5].deepFlatten(); // [1,2,3,4,5]
|
|
10
|
-
*/
|
|
2
|
+
import deepFlatten from "./index.js";
|
|
11
3
|
addPrototype(Array, "deepFlatten", deepFlatten);
|
|
12
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/deepFlatten/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/deepFlatten/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,WAA6B,MAAM,YAAY,CAAC;AAcvD,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport deepFlatten, { NestedArrayT } from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Deep flattens an array\n * @example\n * [1, [2], [[3], 4], 5].deepFlatten(); // [1,2,3,4,5]\n */\n deepFlatten(): T[] extends NestedArrayT<infer U> ? U[] : T[];\n }\n}\n\naddPrototype(Array, \"deepFlatten\", deepFlatten);\n"]}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the difference between this and another array
|
|
3
|
+
* if `comp` is given, filters out all values from an array for which the comparator function
|
|
4
|
+
* does not return true
|
|
5
|
+
* @param array1
|
|
6
|
+
* @param array2
|
|
7
|
+
* @param [comp]
|
|
8
|
+
* @example
|
|
9
|
+
* diff([1, 2, 3], [1, 2, 4]); // [3]
|
|
10
|
+
* @example
|
|
11
|
+
* diff([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2]
|
|
12
|
+
*/
|
|
1
13
|
export default function diff(array1, array2, comp) {
|
|
2
14
|
if (comp)
|
|
3
|
-
return array1.filter(
|
|
15
|
+
return array1.filter(a => array2.findIndex(b => comp(a, b)) === -1);
|
|
4
16
|
const set = new Set(array2);
|
|
5
|
-
return array1.filter(
|
|
17
|
+
return array1.filter(item => !set.has(item));
|
|
6
18
|
}
|
|
7
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/diff/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,IAAI,CAC1B,MAAW,EACX,MAAW,EACX,IAA8B;IAE9B,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/diff/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAC1B,MAAW,EACX,MAAW,EACX,IAA8B;IAE9B,IAAI,IAAI;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAE9E,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAE5B,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,IAAa,CAAC,CAAC,CAAC;AACxD,CAAC","sourcesContent":["/**\n * Returns the difference between this and another array\n * if `comp` is given, filters out all values from an array for which the comparator function\n * does not return true\n * @param array1\n * @param array2\n * @param [comp]\n * @example\n * diff([1, 2, 3], [1, 2, 4]); // [3]\n * @example\n * diff([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2]\n */\nexport default function diff<T, P>(\n array1: T[],\n array2: P[],\n comp?: (a: T, b: P) => boolean,\n): T[] {\n if (comp) return array1.filter(a => array2.findIndex(b => comp(a, b)) === -1);\n\n const set = new Set(array2);\n\n return array1.filter(item => !set.has(item as never));\n}\n"]}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import diff from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Returns the difference between this and another array
|
|
5
|
-
* if `comp` is given, filters out all values from an array for which the comparator function
|
|
6
|
-
* does not return true
|
|
7
|
-
* @memberof Array.prototype
|
|
8
|
-
* @function diff
|
|
9
|
-
* @param {Array} array
|
|
10
|
-
* @param {Function} [comp]
|
|
11
|
-
* @returns {Array}
|
|
12
|
-
* @example
|
|
13
|
-
* [1, 2, 3].diff([1, 2, 4]); // [3]
|
|
14
|
-
* [1, 1.2, 1.5, 3, 0].diff([1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2]
|
|
15
|
-
*/
|
|
2
|
+
import diff from "./index.js";
|
|
16
3
|
addPrototype(Array, "diff", diff);
|
|
17
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/diff/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/diff/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,IAAI,MAAM,YAAY,CAAC;AAoB9B,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport diff from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns the difference between this and another array\n * if `comp` is given, filters out all values from an array for which the comparator function\n * does not return true\n * @param array\n * @param [comp]\n * @example\n * [1, 2, 3].diff([1, 2, 4]); // [3]\n * @example\n * [1, 1.2, 1.5, 3, 0].diff([1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2]\n */\n diff<P>(array: P[], comp?: (a: T, b: P) => boolean): T[];\n }\n}\n\naddPrototype(Array, \"diff\", diff);\n"]}
|
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
import isString from "../../string/isString/index.js";
|
|
2
2
|
import { pathToKeys } from "../../utils.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns all the distinct values of an array
|
|
5
|
+
* @param array
|
|
6
|
+
* @param [fn]
|
|
7
|
+
* @example
|
|
8
|
+
* distinct([1, 2, 2, 3, 4, 4, 5]); // [1,2,3,4,5]
|
|
9
|
+
* @example
|
|
10
|
+
* distinct([{foo:{bar:[0,1]}}, {foo:{bar:[4,1]}}], "foo.bar[1]"); // [{foo:{bar:[0,1]}}]
|
|
11
|
+
* @example
|
|
12
|
+
* distinct([1, 2, 2.2, 3, 4.9, 4, 5], Math.floor); // [1,2,3,4.9,5]
|
|
13
|
+
*/
|
|
3
14
|
export default function distinct(array, fn) {
|
|
4
15
|
if (!fn)
|
|
5
16
|
return [...new Set(array)];
|
|
6
17
|
if (isString(fn)) {
|
|
7
18
|
const keys = pathToKeys(fn);
|
|
8
|
-
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
20
|
+
fn = value => keys.reduce((prev, cur) => prev[cur], value);
|
|
9
21
|
}
|
|
10
22
|
const length = array.length;
|
|
11
23
|
const found = {};
|
|
12
|
-
const
|
|
24
|
+
const result = [];
|
|
13
25
|
for (let i = 0; i < length; i++) {
|
|
14
26
|
const value = array[i];
|
|
15
27
|
const generatedValue = fn(value, i, array);
|
|
16
28
|
if (found[generatedValue])
|
|
17
29
|
continue;
|
|
18
30
|
found[generatedValue] = true;
|
|
19
|
-
|
|
31
|
+
result.push(value);
|
|
20
32
|
}
|
|
21
|
-
return
|
|
33
|
+
return result;
|
|
22
34
|
}
|
|
23
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/distinct/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,KAAU,EACV,EAA4D;IAE5D,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpC,IAAI,QAAQ,CAAC,EAAE,CAAC,EAAE;QAChB,MAAM,IAAI,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;QAE5B,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/distinct/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,KAAU,EACV,EAA4D;IAE5D,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpC,IAAI,QAAQ,CAAC,EAAE,CAAC,EAAE;QAChB,MAAM,IAAI,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;QAE5B,4EAA4E;QAC5E,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;KACjE;IAED,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC5B,MAAM,KAAK,GAAqC,EAAE,CAAC;IACnD,MAAM,MAAM,GAAQ,EAAE,CAAC;IAEvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,cAAc,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QAE3C,IAAI,KAAK,CAAC,cAAc,CAAC;YAAE,SAAS;QAEpC,KAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;QAE7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpB;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import isString from \"../../string/isString/index.js\";\nimport { pathToKeys } from \"../../utils.js\";\n\n/**\n * Returns all the distinct values of an array\n * @param array\n * @param [fn]\n * @example\n * distinct([1, 2, 2, 3, 4, 4, 5]); // [1,2,3,4,5]\n * @example\n * distinct([{foo:{bar:[0,1]}}, {foo:{bar:[4,1]}}], \"foo.bar[1]\"); // [{foo:{bar:[0,1]}}]\n * @example\n * distinct([1, 2, 2.2, 3, 4.9, 4, 5], Math.floor); // [1,2,3,4.9,5]\n */\nexport default function distinct<T>(\n array: T[],\n fn?: string | ((value: T, index: number, array: T[]) => any),\n): T[] {\n if (!fn) return [...new Set(array)];\n\n if (isString(fn)) {\n const keys = pathToKeys(fn);\n\n // eslint-disable-next-line @typescript-eslint/explicit-function-return-type\n fn = value => keys.reduce((prev: any, cur) => prev[cur], value);\n }\n\n const length = array.length;\n const found: Record<string, true | undefined> = {};\n const result: T[] = [];\n\n for (let i = 0; i < length; i++) {\n const value = array[i];\n const generatedValue = fn(value, i, array);\n\n if (found[generatedValue]) continue;\n\n found[generatedValue] = true;\n\n result.push(value);\n }\n\n return result;\n}\n"]}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import distinct from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Returns all the distinct values of an array
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function distinct
|
|
7
|
-
* @param {String|Function} [fn]
|
|
8
|
-
* @returns {Array}
|
|
9
|
-
* @example
|
|
10
|
-
* [1, 2, 2, 3, 4, 4, 5].distinct(); // [1,2,3,4,5]
|
|
11
|
-
* [{foo:{bar:[0,1]}}, {foo:{bar:[4,1]}}].distinct("foo.bar[1]"); // [{foo:{bar:[0,1]}}]
|
|
12
|
-
* [1, 2, 2.2, 3, 4.9, 4, 5].distinct(Math.floor); // [1,2,3,4.9,5]
|
|
13
|
-
*/
|
|
2
|
+
import distinct from "./index.js";
|
|
14
3
|
addPrototype(Array, "distinct", distinct);
|
|
15
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/distinct/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/distinct/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAmBlC,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport distinct from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns all the distinct values of an array\n * @param [fn]\n * @example\n * [1, 2, 2, 3, 4, 4, 5].distinct(); // [1,2,3,4,5]\n * @example\n * [{foo:{bar:[0,1]}}, {foo:{bar:[4,1]}}].distinct(\"foo.bar[1]\"); // [{foo:{bar:[0,1]}}]\n * @example\n * [1, 2, 2.2, 3, 4.9, 4, 5].distinct(Math.floor); // [1,2,3,4.9,5]\n */\n distinct(fn?: string | ((value: T, index: number, array: T[]) => any)): T[];\n }\n}\n\naddPrototype(Array, \"distinct\", distinct);\n"]}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns all the distinct values of an array
|
|
3
|
+
* @param array
|
|
4
|
+
* @param fn
|
|
5
|
+
* @example
|
|
6
|
+
* distinctBy([1, 2, 2, 3, 4, 4, 5], (a, b) => a === b); // [1,2,3,4,5]
|
|
7
|
+
*/
|
|
1
8
|
export default function distinctBy(array, fn) {
|
|
2
9
|
const distinct = [];
|
|
3
10
|
array.forEach((a) => {
|
|
4
11
|
let had = false;
|
|
5
|
-
for (
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
12
|
+
for (const d of distinct) {
|
|
13
|
+
if (fn(a, d)) {
|
|
14
|
+
had = true;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
10
17
|
}
|
|
11
18
|
if (!had)
|
|
12
19
|
distinct.push(a);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/distinctBy/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,KAAU,EACV,EAA2B;IAE3B,MAAM,QAAQ,GAAQ,EAAE,CAAC;IAEzB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAClB,IAAI,GAAG,GAAG,KAAK,CAAC;QAEhB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/distinctBy/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,KAAU,EACV,EAA2B;IAE3B,MAAM,QAAQ,GAAQ,EAAE,CAAC;IAEzB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAClB,IAAI,GAAG,GAAG,KAAK,CAAC;QAEhB,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE;YACxB,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;gBACZ,GAAG,GAAG,IAAI,CAAC;gBAEX,MAAM;aACP;SACF;QAED,IAAI,CAAC,GAAG;YAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/**\n * Returns all the distinct values of an array\n * @param array\n * @param fn\n * @example\n * distinctBy([1, 2, 2, 3, 4, 4, 5], (a, b) => a === b); // [1,2,3,4,5]\n */\nexport default function distinctBy<T>(\n array: T[],\n fn: (a: T, b: T) => boolean,\n): T[] {\n const distinct: T[] = [];\n\n array.forEach((a) => {\n let had = false;\n\n for (const d of distinct) {\n if (fn(a, d)) {\n had = true;\n\n break;\n }\n }\n\n if (!had) distinct.push(a);\n });\n\n return distinct;\n}\n"]}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import distinctBy from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Returns all the distinct values of an array
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function distinctBy
|
|
7
|
-
* @param {Function} fn
|
|
8
|
-
* @returns {Array}
|
|
9
|
-
* @example
|
|
10
|
-
* [1, 2, 2, 3, 4, 4, 5].distinctBy((a, b) => a === b); // [1,2,3,4,5]
|
|
11
|
-
*/
|
|
2
|
+
import distinctBy from "./index.js";
|
|
12
3
|
addPrototype(Array, "distinctBy", distinctBy);
|
|
13
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/distinctBy/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/distinctBy/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AAepC,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport distinctBy from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns all the distinct values of an array\n * @param fn\n * @example\n * [1, 2, 2, 3, 4, 4, 5].distinctBy((a, b) => a === b); // [1,2,3,4,5]\n */\n distinctBy(fn: (a: T, b: T) => boolean): T[];\n }\n}\n\naddPrototype(Array, \"distinctBy\", distinctBy);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/empty/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAI,GAAQ;IACvC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;AACjB,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/empty/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAI,GAAQ;IACvC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;AACjB,CAAC","sourcesContent":["/**\n * Empty the array\n * @param arr\n * @example\n * const arr = [1,3];\n * empty(arr);\n * // arr = []\n */\nexport default function empty<T>(arr: T[]): void {\n arr.length = 0;\n}\n"]}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import empty from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Empty the array
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function empty
|
|
7
|
-
* @example
|
|
8
|
-
* const arr = [1,3];
|
|
9
|
-
* arr.empty();
|
|
10
|
-
* // arr = []
|
|
11
|
-
*/
|
|
2
|
+
import empty from "./index.js";
|
|
12
3
|
addPrototype(Array, "empty", empty);
|
|
13
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/empty/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/empty/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,MAAM,YAAY,CAAC;AAiB/B,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport empty from \"./index.js\";\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface Array<T> {\n\n /**\n * Empty the array\n * @example\n * const arr = [1,3];\n * arr.empty();\n * // arr = []\n */\n empty(): void;\n }\n}\n\naddPrototype(Array, \"empty\", empty);\n"]}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import objectEquals from "../../object/equals/index.js";
|
|
2
2
|
import range from "../range/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the array is equal to the given value
|
|
5
|
+
* @param arr
|
|
6
|
+
* @param value
|
|
7
|
+
* @example
|
|
8
|
+
* equals([1,2,3], [2,1,3]); // false
|
|
9
|
+
*/
|
|
3
10
|
export default function equals(arr, value) {
|
|
4
11
|
if (!Array.isArray(value))
|
|
5
12
|
return false;
|
|
6
13
|
if (arr.length !== value.length)
|
|
7
14
|
return false;
|
|
8
|
-
return range(arr.length - 1).every(
|
|
15
|
+
return range(arr.length - 1).every(key => objectEquals(arr[key], value[key]));
|
|
9
16
|
}
|
|
10
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/equals/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC,MAAM,CAAC,OAAO,UAAU,MAAM,CAAI,GAAQ,EAAE,KAAc;IACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAExC,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAE9C,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/equals/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,8BAA8B,CAAC;AACxD,OAAO,KAAK,MAAM,mBAAmB,CAAC;AAEtC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAI,GAAQ,EAAE,KAAc;IACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAExC,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAE9C,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAA4B,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC","sourcesContent":["import objectEquals from \"../../object/equals/index.js\";\nimport range from \"../range/index.js\";\n\n/**\n * Checks if the array is equal to the given value\n * @param arr\n * @param value\n * @example\n * equals([1,2,3], [2,1,3]); // false\n */\nexport default function equals<T>(arr: T[], value: unknown): value is T[] {\n if (!Array.isArray(value)) return false;\n\n if (arr.length !== value.length) return false;\n\n return range(arr.length - 1).every(key => objectEquals(arr[key] as Record<string, unknown>, value[key]));\n}\n"]}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import equals from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Checks if the array is equal to the given value
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function equals
|
|
7
|
-
* @param {*} value
|
|
8
|
-
* @returns {Boolean}
|
|
9
|
-
* @example
|
|
10
|
-
* [1,2,3].equals([2,1,3]); // false
|
|
11
|
-
*/
|
|
2
|
+
import equals from "./index.js";
|
|
12
3
|
addPrototype(Array, "equals", equals);
|
|
13
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/equals/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/equals/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,MAAM,MAAM,YAAY,CAAC;AAehC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport equals from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Checks if the array is equal to the given value\n * @param value\n * @example\n * [1,2,3].equals([2,1,3]); // false\n */\n equals(value: unknown): value is T[];\n }\n}\n\naddPrototype(Array, \"equals\", equals);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/everyNth/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAI,KAAU,EAAE,CAAS;IACvD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/everyNth/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAI,KAAU,EAAE,CAAS;IACvD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC","sourcesContent":["/**\n * Returns every nth element in an array\n * @param array\n * @param n\n * @example\n * everyNth([1, 2, 3, 4, 5, 6], 2); // [ 2, 4, 6 ]\n */\nexport default function everyNth<T>(array: T[], n: number): T[] {\n return array.filter((e, i) => i % n === n - 1);\n}\n"]}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import everyNth from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Returns every nth element in an array
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function everyNth
|
|
7
|
-
* @returns {Array}
|
|
8
|
-
* @example
|
|
9
|
-
* [1, 2, 3, 4, 5, 6].everyNth(2); // [ 2, 4, 6 ]
|
|
10
|
-
*/
|
|
2
|
+
import everyNth from "./index.js";
|
|
11
3
|
addPrototype(Array, "everyNth", everyNth);
|
|
12
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/everyNth/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/everyNth/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,QAAQ,MAAM,YAAY,CAAC;AAelC,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport everyNth from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns every nth element in an array\n * @param n\n * @example\n * [1, 2, 3, 4, 5, 6].everyNth(2); // [ 2, 4, 6 ]\n */\n everyNth(n: number): T[];\n }\n}\n\naddPrototype(Array, \"everyNth\", everyNth);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/first/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAI,KAAwB;IACvD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/first/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAI,KAAwB;IACvD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC","sourcesContent":["/**\n * Returns the first item of the array\n * @param array\n * @example\n * first([1, 2, 3]); // 1\n */\nexport default function first<T>(array: [T, ...unknown[]]): T {\n return array[0];\n}\n"]}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import first from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Returns the first item of the array
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function first
|
|
7
|
-
* @returns {*}
|
|
8
|
-
* @example
|
|
9
|
-
* [1, 2, 3].first(); // 1
|
|
10
|
-
*/
|
|
2
|
+
import first from "./index.js";
|
|
11
3
|
addPrototype(Array, "first", first);
|
|
12
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/first/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/first/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,MAAM,YAAY,CAAC;AAc/B,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport first from \"./index.js\";\n\ndeclare global {\n interface Array<T> {\n\n /**\n * Returns the first item of the array\n * @example\n * [1, 2, 3].first(); // 1\n */\n first(): T[] extends [infer U, ...unknown[]] ? U : T;\n }\n}\n\naddPrototype(Array, \"first\", first);\n"]}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flattens an array up to the specified depth
|
|
3
|
+
* @param arr
|
|
4
|
+
* @param [depth=1]
|
|
5
|
+
* @example
|
|
6
|
+
* flatten([1, [2], 3, 4]); // [1, 2, 3, 4]
|
|
7
|
+
* @example
|
|
8
|
+
* flatten([1, [2, [3, [4, 5], 6], 7], 8], 2); // [1, 2, 3, [4, 5], 6, 7, 8]
|
|
9
|
+
*/
|
|
1
10
|
export default function flatten(arr, depth = 1) {
|
|
2
|
-
if (depth === 1)
|
|
11
|
+
if (depth === 1)
|
|
3
12
|
return arr.reduce((prev, value) => prev.concat(value), []);
|
|
4
|
-
}
|
|
5
13
|
return arr.reduce((prev, value) => prev.concat(Array.isArray(value) ? flatten(value, depth - 1) : value), []);
|
|
6
14
|
}
|
|
7
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/flatten/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAI,GAAQ,EAAE,KAAK,GAAG,CAAC;IACpD,IAAI,KAAK,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/flatten/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAI,GAAQ,EAAE,KAAK,GAAG,CAAC;IACpD,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC,MAAM,CAAY,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAGvF,OAAO,GAAG,CAAC,MAAM,CACf,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EACtF,EAAE,CACH,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Flattens an array up to the specified depth\n * @param arr\n * @param [depth=1]\n * @example\n * flatten([1, [2], 3, 4]); // [1, 2, 3, 4]\n * @example\n * flatten([1, [2, [3, [4, 5], 6], 7], 8], 2); // [1, 2, 3, [4, 5], 6, 7, 8]\n */\nexport default function flatten<T>(arr: T[], depth = 1): unknown[] {\n if (depth === 1) return arr.reduce<unknown[]>((prev, value) => prev.concat(value), []);\n\n\n return arr.reduce<unknown[]>(\n (prev, value) => prev.concat(Array.isArray(value) ? flatten(value, depth - 1) : value),\n [],\n );\n}\n"]}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import flatten from "./index.js";
|
|
2
1
|
import { addPrototype } from "../../utils.js";
|
|
3
|
-
|
|
4
|
-
* Flattens an array up to the specified depth
|
|
5
|
-
* @memberof Array.prototype
|
|
6
|
-
* @function flatten
|
|
7
|
-
* @param {Number} [depth=1]
|
|
8
|
-
* @returns {Array}
|
|
9
|
-
* @example
|
|
10
|
-
* [1, [2], 3, 4].flatten(); // [1, 2, 3, 4]
|
|
11
|
-
* [1, [2, [3, [4, 5], 6], 7], 8].flatten(2); // [1, 2, 3, [4, 5], 6, 7, 8]
|
|
12
|
-
*/
|
|
2
|
+
import flatten from "./index.js";
|
|
13
3
|
addPrototype(Array, "flatten", flatten);
|
|
14
4
|
//# sourceMappingURL=shim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/flatten/shim.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"shim.js","sourceRoot":"","sources":["../../../../src/array/flatten/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,OAAO,MAAM,YAAY,CAAC;AAkBjC,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC","sourcesContent":["import { addPrototype } from \"../../utils.js\";\nimport flatten from \"./index.js\";\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n interface Array<T> {\n\n /**\n * Flattens an array up to the specified depth\n * @param [depth=1]\n * @example\n * [1, [2], 3, 4].flatten(); // [1, 2, 3, 4]\n * @example\n * [1, [2, [3, [4, 5], 6], 7], 8].flatten(2); // [1, 2, 3, [4, 5], 6, 7, 8]\n */\n flatten(depth?: number): unknown[];\n }\n}\n\naddPrototype(Array, \"flatten\", flatten);\n"]}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the item at a given index. If the index does not exist, def is returned
|
|
3
|
+
* @param array
|
|
4
|
+
* @param index
|
|
5
|
+
* @param [fallback=null]
|
|
6
|
+
* @example
|
|
7
|
+
* get([1, 2, 3], 0, 'default value'); // 1
|
|
8
|
+
* @example
|
|
9
|
+
* get([1, 2, 3], 4, 0); // 0
|
|
10
|
+
*/
|
|
1
11
|
export default function get(array, index, fallback = null) {
|
|
2
12
|
return index >= array.length ? fallback : array[index];
|
|
3
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/get/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,GAAG,CACzB,KAAQ,EACR,KAAQ,EACR,WAAc,IAAa;IAE3B,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACzD,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/array/get/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,GAAG,CACzB,KAAQ,EACR,KAAQ,EACR,WAAc,IAAa;IAE3B,OAAO,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACzD,CAAC","sourcesContent":["/**\n * Returns the item at a given index. If the index does not exist, def is returned\n * @param array\n * @param index\n * @param [fallback=null]\n * @example\n * get([1, 2, 3], 0, 'default value'); // 1\n * @example\n * get([1, 2, 3], 4, 0); // 0\n */\nexport default function get<T extends unknown[], I extends number, F = null>(\n array: T,\n index: I,\n fallback: F = null as never,\n): F | T[I] {\n return index >= array.length ? fallback : array[index];\n}\n"]}
|