prototyped.js 3.0.0 → 3.0.3
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 +1 -1
- package/.github/dependabot.yml +26 -0
- package/.github/workflows/release.yml +29 -66
- package/.github/workflows/test.yml +24 -13
- package/LICENSE +1 -1
- package/{cjs → build/cjs}/array/all/index.js +0 -0
- package/build/cjs/array/all/index.js.map +1 -0
- package/{cjs → build/cjs}/array/all/shim.js +0 -0
- package/build/cjs/array/all/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/any/index.js +0 -0
- package/build/cjs/array/any/index.js.map +1 -0
- package/{cjs → build/cjs}/array/any/shim.js +0 -0
- package/build/cjs/array/any/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/append/index.js +0 -0
- package/build/cjs/array/append/index.js.map +1 -0
- package/{cjs → build/cjs}/array/append/shim.js +0 -0
- package/build/cjs/array/append/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/average/index.js +0 -0
- package/build/cjs/array/average/index.js.map +1 -0
- package/{cjs → build/cjs}/array/average/shim.js +0 -0
- package/build/cjs/array/average/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/chunk/index.js +0 -0
- package/build/cjs/array/chunk/index.js.map +1 -0
- package/{cjs → build/cjs}/array/chunk/shim.js +0 -0
- package/build/cjs/array/chunk/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/clone/index.js +0 -0
- package/build/cjs/array/clone/index.js.map +1 -0
- package/{cjs → build/cjs}/array/clone/shim.js +0 -0
- package/build/cjs/array/clone/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/compact/index.js +0 -0
- package/build/cjs/array/compact/index.js.map +1 -0
- package/{cjs → build/cjs}/array/compact/shim.js +0 -0
- package/build/cjs/array/compact/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/contains/index.js +0 -0
- package/build/cjs/array/contains/index.js.map +1 -0
- package/{cjs → build/cjs}/array/contains/shim.js +0 -0
- package/build/cjs/array/contains/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/count/index.js +0 -0
- package/build/cjs/array/count/index.js.map +1 -0
- package/{cjs → build/cjs}/array/count/shim.js +0 -0
- package/build/cjs/array/count/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/countBy/index.js +0 -0
- package/build/cjs/array/countBy/index.js.map +1 -0
- package/{cjs → build/cjs}/array/countBy/shim.js +0 -0
- package/build/cjs/array/countBy/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/crossJoin/index.js +0 -0
- package/build/cjs/array/crossJoin/index.js.map +1 -0
- package/{cjs → build/cjs}/array/crossJoin/shim.js +0 -0
- package/build/cjs/array/crossJoin/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/deepFlatten/index.js +0 -0
- package/build/cjs/array/deepFlatten/index.js.map +1 -0
- package/{cjs → build/cjs}/array/deepFlatten/shim.js +0 -0
- package/build/cjs/array/deepFlatten/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/diff/index.js +0 -0
- package/build/cjs/array/diff/index.js.map +1 -0
- package/{cjs → build/cjs}/array/diff/shim.js +0 -0
- package/build/cjs/array/diff/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/distinct/index.js +0 -0
- package/build/cjs/array/distinct/index.js.map +1 -0
- package/{cjs → build/cjs}/array/distinct/shim.js +0 -0
- package/build/cjs/array/distinct/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/distinctBy/index.js +0 -0
- package/build/cjs/array/distinctBy/index.js.map +1 -0
- package/{cjs → build/cjs}/array/distinctBy/shim.js +0 -0
- package/build/cjs/array/distinctBy/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/empty/index.js +0 -0
- package/build/cjs/array/empty/index.js.map +1 -0
- package/{cjs → build/cjs}/array/empty/shim.js +0 -0
- package/build/cjs/array/empty/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/equals/index.js +0 -0
- package/build/cjs/array/equals/index.js.map +1 -0
- package/{cjs → build/cjs}/array/equals/shim.js +0 -0
- package/build/cjs/array/equals/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/everyNth/index.js +0 -0
- package/build/cjs/array/everyNth/index.js.map +1 -0
- package/{cjs → build/cjs}/array/everyNth/shim.js +0 -0
- package/build/cjs/array/everyNth/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/first/index.js +0 -0
- package/build/cjs/array/first/index.js.map +1 -0
- package/{cjs → build/cjs}/array/first/shim.js +0 -0
- package/build/cjs/array/first/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/flatten/index.js +0 -0
- package/build/cjs/array/flatten/index.js.map +1 -0
- package/{cjs → build/cjs}/array/flatten/shim.js +0 -0
- package/build/cjs/array/flatten/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/get/index.js +0 -0
- package/build/cjs/array/get/index.js.map +1 -0
- package/{cjs → build/cjs}/array/get/shim.js +0 -0
- package/build/cjs/array/get/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/groupBy/index.js +0 -0
- package/build/cjs/array/groupBy/index.js.map +1 -0
- package/{cjs → build/cjs}/array/groupBy/shim.js +0 -0
- package/build/cjs/array/groupBy/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/implode/index.js +0 -0
- package/build/cjs/array/implode/index.js.map +1 -0
- package/{cjs → build/cjs}/array/implode/shim.js +0 -0
- package/build/cjs/array/implode/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/index.js +0 -0
- package/build/cjs/array/index.js.map +1 -0
- package/{cjs → build/cjs}/array/indexOfAll/index.js +0 -0
- package/build/cjs/array/indexOfAll/index.js.map +1 -0
- package/{cjs → build/cjs}/array/indexOfAll/shim.js +0 -0
- package/build/cjs/array/indexOfAll/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/initial/index.js +0 -0
- package/build/cjs/array/initial/index.js.map +1 -0
- package/{cjs → build/cjs}/array/initial/shim.js +0 -0
- package/build/cjs/array/initial/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/intersect/index.js +0 -0
- package/build/cjs/array/intersect/index.js.map +1 -0
- package/{cjs → build/cjs}/array/intersect/shim.js +0 -0
- package/build/cjs/array/intersect/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/isEmpty/index.js +0 -0
- package/build/cjs/array/isEmpty/index.js.map +1 -0
- package/{cjs → build/cjs}/array/isEmpty/shim.js +0 -0
- package/build/cjs/array/isEmpty/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/last/index.js +0 -0
- package/build/cjs/array/last/index.js.map +1 -0
- package/{cjs → build/cjs}/array/last/shim.js +0 -0
- package/build/cjs/array/last/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/limit/index.js +0 -0
- package/build/cjs/array/limit/index.js.map +1 -0
- package/{cjs → build/cjs}/array/limit/shim.js +0 -0
- package/build/cjs/array/limit/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/max/index.js +0 -0
- package/build/cjs/array/max/index.js.map +1 -0
- package/{cjs → build/cjs}/array/max/shim.js +0 -0
- package/build/cjs/array/max/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/median/index.js +0 -0
- package/build/cjs/array/median/index.js.map +1 -0
- package/{cjs → build/cjs}/array/median/shim.js +0 -0
- package/build/cjs/array/median/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/merge/index.js +0 -0
- package/build/cjs/array/merge/index.js.map +1 -0
- package/{cjs → build/cjs}/array/merge/shim.js +0 -0
- package/build/cjs/array/merge/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/min/index.js +0 -0
- package/build/cjs/array/min/index.js.map +1 -0
- package/{cjs → build/cjs}/array/min/shim.js +0 -0
- package/build/cjs/array/min/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/nest/index.js +0 -0
- package/build/cjs/array/nest/index.js.map +1 -0
- package/{cjs → build/cjs}/array/nest/shim.js +0 -0
- package/build/cjs/array/nest/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/orderBy/index.js +0 -0
- package/build/cjs/array/orderBy/index.js.map +1 -0
- package/{cjs → build/cjs}/array/orderBy/shim.js +0 -0
- package/build/cjs/array/orderBy/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/pad/index.js +0 -0
- package/build/cjs/array/pad/index.js.map +1 -0
- package/{cjs → build/cjs}/array/pad/shim.js +0 -0
- package/build/cjs/array/pad/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/partition/index.js +0 -0
- package/build/cjs/array/partition/index.js.map +1 -0
- package/{cjs → build/cjs}/array/partition/shim.js +0 -0
- package/build/cjs/array/partition/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/pluck/index.js +0 -0
- package/build/cjs/array/pluck/index.js.map +1 -0
- package/{cjs → build/cjs}/array/pluck/shim.js +0 -0
- package/build/cjs/array/pluck/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/prepend/index.js +0 -0
- package/build/cjs/array/prepend/index.js.map +1 -0
- package/{cjs → build/cjs}/array/prepend/shim.js +0 -0
- package/build/cjs/array/prepend/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/pull/index.js +0 -0
- package/build/cjs/array/pull/index.js.map +1 -0
- package/{cjs → build/cjs}/array/pull/shim.js +0 -0
- package/build/cjs/array/pull/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/range/index.js +0 -0
- package/build/cjs/array/range/index.js.map +1 -0
- package/{cjs → build/cjs}/array/range/shim.js +0 -0
- package/build/cjs/array/range/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/repeat/index.js +0 -0
- package/build/cjs/array/repeat/index.js.map +1 -0
- package/{cjs → build/cjs}/array/repeat/shim.js +0 -0
- package/build/cjs/array/repeat/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/sample/index.js +0 -0
- package/build/cjs/array/sample/index.js.map +1 -0
- package/{cjs → build/cjs}/array/sample/shim.js +0 -0
- package/build/cjs/array/sample/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/shim.js +0 -0
- package/build/cjs/array/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/shuffle/index.js +0 -0
- package/build/cjs/array/shuffle/index.js.map +1 -0
- package/{cjs → build/cjs}/array/shuffle/shim.js +0 -0
- package/build/cjs/array/shuffle/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/skip/index.js +0 -0
- package/build/cjs/array/skip/index.js.map +1 -0
- package/{cjs → build/cjs}/array/skip/shim.js +0 -0
- package/build/cjs/array/skip/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/sortBy/index.js +0 -0
- package/build/cjs/array/sortBy/index.js.map +1 -0
- package/{cjs → build/cjs}/array/sortBy/shim.js +0 -0
- package/build/cjs/array/sortBy/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/sum/index.js +0 -0
- package/build/cjs/array/sum/index.js.map +1 -0
- package/{cjs → build/cjs}/array/sum/shim.js +0 -0
- package/build/cjs/array/sum/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/tail/index.js +0 -0
- package/build/cjs/array/tail/index.js.map +1 -0
- package/{cjs → build/cjs}/array/tail/shim.js +0 -0
- package/build/cjs/array/tail/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/toCSV/index.js +0 -0
- package/build/cjs/array/toCSV/index.js.map +1 -0
- package/{cjs → build/cjs}/array/toCSV/shim.js +0 -0
- package/build/cjs/array/toCSV/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/union/index.js +0 -0
- package/build/cjs/array/union/index.js.map +1 -0
- package/{cjs → build/cjs}/array/union/shim.js +0 -0
- package/build/cjs/array/union/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/unwind/index.js +0 -0
- package/build/cjs/array/unwind/index.js.map +1 -0
- package/{cjs → build/cjs}/array/unwind/shim.js +0 -0
- package/build/cjs/array/unwind/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/where/index.js +0 -0
- package/build/cjs/array/where/index.js.map +1 -0
- package/{cjs → build/cjs}/array/where/shim.js +0 -0
- package/build/cjs/array/where/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereBetween/index.js +0 -0
- package/build/cjs/array/whereBetween/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereBetween/shim.js +0 -0
- package/build/cjs/array/whereBetween/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereIn/index.js +0 -0
- package/build/cjs/array/whereIn/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereIn/shim.js +0 -0
- package/build/cjs/array/whereIn/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereLike/index.js +0 -0
- package/build/cjs/array/whereLike/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereLike/shim.js +0 -0
- package/build/cjs/array/whereLike/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotBetween/index.js +0 -0
- package/build/cjs/array/whereNotBetween/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotBetween/shim.js +0 -0
- package/build/cjs/array/whereNotBetween/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotIn/index.js +0 -0
- package/build/cjs/array/whereNotIn/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotIn/shim.js +0 -0
- package/build/cjs/array/whereNotIn/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotLike/index.js +0 -0
- package/build/cjs/array/whereNotLike/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotLike/shim.js +0 -0
- package/build/cjs/array/whereNotLike/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotNull/index.js +0 -0
- package/build/cjs/array/whereNotNull/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNotNull/shim.js +0 -0
- package/build/cjs/array/whereNotNull/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNull/index.js +0 -0
- package/build/cjs/array/whereNull/index.js.map +1 -0
- package/{cjs → build/cjs}/array/whereNull/shim.js +0 -0
- package/build/cjs/array/whereNull/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/zip/index.js +0 -0
- package/build/cjs/array/zip/index.js.map +1 -0
- package/{cjs → build/cjs}/array/zip/shim.js +0 -0
- package/build/cjs/array/zip/shim.js.map +1 -0
- package/{cjs → build/cjs}/array/zipObject/index.js +0 -0
- package/build/cjs/array/zipObject/index.js.map +1 -0
- package/{cjs → build/cjs}/array/zipObject/shim.js +0 -0
- package/build/cjs/array/zipObject/shim.js.map +1 -0
- package/{cjs → build/cjs}/boolean/index.js +0 -0
- package/build/cjs/boolean/index.js.map +1 -0
- package/{cjs → build/cjs}/boolean/isBoolean/index.js +0 -0
- package/build/cjs/boolean/isBoolean/index.js.map +1 -0
- package/build/cjs/boolean/isBoolean/shim.js +18 -0
- package/build/cjs/boolean/isBoolean/shim.js.map +1 -0
- package/{cjs → build/cjs}/boolean/shim.js +0 -0
- package/build/cjs/boolean/shim.js.map +1 -0
- package/{cjs → build/cjs}/date/equals/index.js +0 -0
- package/build/cjs/date/equals/index.js.map +1 -0
- package/{cjs → build/cjs}/date/equals/shim.js +0 -0
- package/build/cjs/date/equals/shim.js.map +1 -0
- package/{cjs → build/cjs}/date/index.js +0 -0
- package/build/cjs/date/index.js.map +1 -0
- package/{cjs → build/cjs}/date/isDate/index.js +0 -0
- package/build/cjs/date/isDate/index.js.map +1 -0
- package/{cjs → build/cjs}/date/isDate/shim.js +0 -0
- package/build/cjs/date/isDate/shim.js.map +1 -0
- package/{cjs → build/cjs}/date/shim.js +0 -0
- package/build/cjs/date/shim.js.map +1 -0
- package/{cjs → build/cjs}/date/today/index.js +0 -0
- package/build/cjs/date/today/index.js.map +1 -0
- package/{cjs → build/cjs}/date/today/shim.js +0 -0
- package/build/cjs/date/today/shim.js.map +1 -0
- package/{cjs → build/cjs}/date/tomorrow/index.js +0 -0
- package/build/cjs/date/tomorrow/index.js.map +1 -0
- package/{cjs → build/cjs}/date/tomorrow/shim.js +0 -0
- package/build/cjs/date/tomorrow/shim.js.map +1 -0
- package/{cjs → build/cjs}/date/yesterday/index.js +0 -0
- package/build/cjs/date/yesterday/index.js.map +1 -0
- package/{cjs → build/cjs}/date/yesterday/shim.js +0 -0
- package/build/cjs/date/yesterday/shim.js.map +1 -0
- package/{cjs → build/cjs}/function/cache/index.js +0 -0
- package/build/cjs/function/cache/index.js.map +1 -0
- package/{cjs → build/cjs}/function/cache/shim.js +0 -0
- package/build/cjs/function/cache/shim.js.map +1 -0
- package/{cjs → build/cjs}/function/defer/index.js +0 -0
- package/build/cjs/function/defer/index.js.map +1 -0
- package/{cjs → build/cjs}/function/defer/shim.js +0 -0
- package/build/cjs/function/defer/shim.js.map +1 -0
- package/{cjs → build/cjs}/function/index.js +0 -0
- package/build/cjs/function/index.js.map +1 -0
- package/{cjs → build/cjs}/function/isFunction/index.js +0 -0
- package/build/cjs/function/isFunction/index.js.map +1 -0
- package/{cjs → build/cjs}/function/isFunction/shim.js +0 -0
- package/build/cjs/function/isFunction/shim.js.map +1 -0
- package/{cjs → build/cjs}/function/once/index.js +0 -0
- package/build/cjs/function/once/index.js.map +1 -0
- package/{cjs → build/cjs}/function/once/shim.js +0 -0
- package/build/cjs/function/once/shim.js.map +1 -0
- package/{cjs → build/cjs}/function/shim.js +0 -0
- package/build/cjs/function/shim.js.map +1 -0
- package/{cjs → build/cjs}/globals/index.js +0 -0
- package/build/cjs/globals/index.js.map +1 -0
- package/{cjs → build/cjs}/globals/isBrowser/index.js +0 -0
- package/build/cjs/globals/isBrowser/index.js.map +1 -0
- package/{cjs → build/cjs}/globals/isBrowser/shim.js +0 -0
- package/build/cjs/globals/isBrowser/shim.js.map +1 -0
- package/{cjs → build/cjs}/globals/shim.js +0 -0
- package/build/cjs/globals/shim.js.map +1 -0
- package/build/cjs/index.js +36 -0
- package/build/cjs/index.js.map +1 -0
- package/{cjs → build/cjs}/math/average/index.js +0 -0
- package/build/cjs/math/average/index.js.map +1 -0
- package/{cjs → build/cjs}/math/average/shim.js +0 -0
- package/build/cjs/math/average/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/degreesToRads/index.js +0 -0
- package/build/cjs/math/degreesToRads/index.js.map +1 -0
- package/{cjs → build/cjs}/math/degreesToRads/shim.js +0 -0
- package/build/cjs/math/degreesToRads/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/factorial/index.js +0 -0
- package/build/cjs/math/factorial/index.js.map +1 -0
- package/{cjs → build/cjs}/math/factorial/shim.js +0 -0
- package/build/cjs/math/factorial/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/fibonacci/index.js +0 -0
- package/build/cjs/math/fibonacci/index.js.map +1 -0
- package/{cjs → build/cjs}/math/fibonacci/shim.js +0 -0
- package/build/cjs/math/fibonacci/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/gcd/index.js +0 -0
- package/build/cjs/math/gcd/index.js.map +1 -0
- package/{cjs → build/cjs}/math/gcd/shim.js +0 -0
- package/build/cjs/math/gcd/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/index.js +0 -0
- package/build/cjs/math/index.js.map +1 -0
- package/{cjs → build/cjs}/math/isDivisible/index.js +0 -0
- package/build/cjs/math/isDivisible/index.js.map +1 -0
- package/{cjs → build/cjs}/math/isDivisible/shim.js +0 -0
- package/build/cjs/math/isDivisible/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/isEven/index.js +0 -0
- package/build/cjs/math/isEven/index.js.map +1 -0
- package/{cjs → build/cjs}/math/isEven/shim.js +0 -0
- package/build/cjs/math/isEven/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/isPrime/index.js +0 -0
- package/build/cjs/math/isPrime/index.js.map +1 -0
- package/{cjs → build/cjs}/math/isPrime/shim.js +0 -0
- package/build/cjs/math/isPrime/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/lcm/index.js +0 -0
- package/build/cjs/math/lcm/index.js.map +1 -0
- package/{cjs → build/cjs}/math/lcm/shim.js +0 -0
- package/build/cjs/math/lcm/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/primes/index.js +0 -0
- package/build/cjs/math/primes/index.js.map +1 -0
- package/{cjs → build/cjs}/math/primes/shim.js +0 -0
- package/build/cjs/math/primes/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/radsToDegrees/index.js +0 -0
- package/build/cjs/math/radsToDegrees/index.js.map +1 -0
- package/{cjs → build/cjs}/math/radsToDegrees/shim.js +0 -0
- package/build/cjs/math/radsToDegrees/shim.js.map +1 -0
- package/{cjs → build/cjs}/math/shim.js +0 -0
- package/build/cjs/math/shim.js.map +1 -0
- package/{cjs → build/cjs}/number/digitize/index.js +0 -0
- package/build/cjs/number/digitize/index.js.map +1 -0
- package/{cjs → build/cjs}/number/digitize/shim.js +0 -0
- package/build/cjs/number/digitize/shim.js.map +1 -0
- package/{cjs → build/cjs}/number/equals/index.js +0 -0
- package/build/cjs/number/equals/index.js.map +1 -0
- package/{cjs → build/cjs}/number/equals/shim.js +0 -0
- package/build/cjs/number/equals/shim.js.map +1 -0
- package/{cjs → build/cjs}/number/inRange/index.js +0 -0
- package/build/cjs/number/inRange/index.js.map +1 -0
- package/{cjs → build/cjs}/number/inRange/shim.js +0 -0
- package/build/cjs/number/inRange/shim.js.map +1 -0
- package/{cjs → build/cjs}/number/index.js +0 -0
- package/build/cjs/number/index.js.map +1 -0
- package/{cjs → build/cjs}/number/isNumber/index.js +0 -0
- package/build/cjs/number/isNumber/index.js.map +1 -0
- package/{cjs → build/cjs}/number/isNumber/shim.js +0 -0
- package/build/cjs/number/isNumber/shim.js.map +1 -0
- package/{cjs → build/cjs}/number/shim.js +0 -0
- package/build/cjs/number/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/assign/index.js +0 -0
- package/build/cjs/object/assign/index.js.map +1 -0
- package/{cjs → build/cjs}/object/assign/shim.js +0 -0
- package/build/cjs/object/assign/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/camelCaseKeys/index.js +0 -0
- package/build/cjs/object/camelCaseKeys/index.js.map +1 -0
- package/{cjs → build/cjs}/object/camelCaseKeys/shim.js +0 -0
- package/build/cjs/object/camelCaseKeys/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/clone/index.js +0 -0
- package/build/cjs/object/clone/index.js.map +1 -0
- package/{cjs → build/cjs}/object/clone/shim.js +0 -0
- package/build/cjs/object/clone/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/defaults/index.js +0 -0
- package/build/cjs/object/defaults/index.js.map +1 -0
- package/{cjs → build/cjs}/object/defaults/shim.js +0 -0
- package/build/cjs/object/defaults/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/dig/index.js +0 -0
- package/build/cjs/object/dig/index.js.map +1 -0
- package/{cjs → build/cjs}/object/dig/shim.js +0 -0
- package/build/cjs/object/dig/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/empty/index.js +0 -0
- package/build/cjs/object/empty/index.js.map +1 -0
- package/{cjs → build/cjs}/object/empty/shim.js +0 -0
- package/build/cjs/object/empty/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/equals/index.js +0 -0
- package/build/cjs/object/equals/index.js.map +1 -0
- package/{cjs → build/cjs}/object/equals/shim.js +0 -0
- package/build/cjs/object/equals/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/flatten/index.js +0 -0
- package/build/cjs/object/flatten/index.js.map +1 -0
- package/{cjs → build/cjs}/object/flatten/shim.js +0 -0
- package/build/cjs/object/flatten/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/forEach/index.js +0 -0
- package/build/cjs/object/forEach/index.js.map +1 -0
- package/{cjs → build/cjs}/object/forEach/shim.js +0 -0
- package/build/cjs/object/forEach/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/get/index.js +0 -0
- package/build/cjs/object/get/index.js.map +1 -0
- package/{cjs → build/cjs}/object/get/shim.js +0 -0
- package/build/cjs/object/get/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/index.js +0 -0
- package/build/cjs/object/index.js.map +1 -0
- package/{cjs → build/cjs}/object/invert/index.js +0 -0
- package/build/cjs/object/invert/index.js.map +1 -0
- package/{cjs → build/cjs}/object/invert/shim.js +0 -0
- package/build/cjs/object/invert/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/isEmpty/index.js +0 -0
- package/build/cjs/object/isEmpty/index.js.map +1 -0
- package/{cjs → build/cjs}/object/isEmpty/shim.js +0 -0
- package/build/cjs/object/isEmpty/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/isObject/index.js +0 -0
- package/build/cjs/object/isObject/index.js.map +1 -0
- package/{cjs → build/cjs}/object/isObject/shim.js +0 -0
- package/build/cjs/object/isObject/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/isObjectLike/index.js +0 -0
- package/build/cjs/object/isObjectLike/index.js.map +1 -0
- package/{cjs → build/cjs}/object/isObjectLike/shim.js +0 -0
- package/build/cjs/object/isObjectLike/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/isPlainObject/index.js +0 -0
- package/build/cjs/object/isPlainObject/index.js.map +1 -0
- package/{cjs → build/cjs}/object/isPlainObject/shim.js +0 -0
- package/build/cjs/object/isPlainObject/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/kebabCaseKeys/index.js +0 -0
- package/build/cjs/object/kebabCaseKeys/index.js.map +1 -0
- package/{cjs → build/cjs}/object/kebabCaseKeys/shim.js +0 -0
- package/build/cjs/object/kebabCaseKeys/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/keys/index.js +0 -0
- package/build/cjs/object/keys/index.js.map +1 -0
- package/{cjs → build/cjs}/object/keys/shim.js +0 -0
- package/build/cjs/object/keys/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/lowerCaseKeys/index.js +0 -0
- package/build/cjs/object/lowerCaseKeys/index.js.map +1 -0
- package/{cjs → build/cjs}/object/lowerCaseKeys/shim.js +0 -0
- package/build/cjs/object/lowerCaseKeys/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/map/index.js +0 -0
- package/build/cjs/object/map/index.js.map +1 -0
- package/{cjs → build/cjs}/object/map/shim.js +0 -0
- package/build/cjs/object/map/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/mapKeys/index.js +0 -0
- package/build/cjs/object/mapKeys/index.js.map +1 -0
- package/{cjs → build/cjs}/object/mapKeys/shim.js +0 -0
- package/build/cjs/object/mapKeys/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/mapValues/index.js +0 -0
- package/build/cjs/object/mapValues/index.js.map +1 -0
- package/{cjs → build/cjs}/object/mapValues/shim.js +0 -0
- package/build/cjs/object/mapValues/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/merge/index.js +0 -0
- package/build/cjs/object/merge/index.js.map +1 -0
- package/{cjs → build/cjs}/object/merge/shim.js +0 -0
- package/build/cjs/object/merge/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/omit/index.js +0 -0
- package/build/cjs/object/omit/index.js.map +1 -0
- package/{cjs → build/cjs}/object/omit/shim.js +0 -0
- package/build/cjs/object/omit/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/reduce/index.js +0 -0
- package/build/cjs/object/reduce/index.js.map +1 -0
- package/{cjs → build/cjs}/object/reduce/shim.js +0 -0
- package/build/cjs/object/reduce/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/set/index.js +0 -0
- package/build/cjs/object/set/index.js.map +1 -0
- package/{cjs → build/cjs}/object/set/shim.js +0 -0
- package/build/cjs/object/set/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/shim.js +0 -0
- package/build/cjs/object/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/size/index.js +0 -0
- package/build/cjs/object/size/index.js.map +1 -0
- package/{cjs → build/cjs}/object/size/shim.js +0 -0
- package/build/cjs/object/size/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/snakeCaseKeys/index.js +0 -0
- package/build/cjs/object/snakeCaseKeys/index.js.map +1 -0
- package/{cjs → build/cjs}/object/snakeCaseKeys/shim.js +0 -0
- package/build/cjs/object/snakeCaseKeys/shim.js.map +1 -0
- package/{cjs → build/cjs}/object/values/index.js +0 -0
- package/build/cjs/object/values/index.js.map +1 -0
- package/{cjs → build/cjs}/object/values/shim.js +0 -0
- package/build/cjs/object/values/shim.js.map +1 -0
- package/{cjs → build/cjs}/package.json +0 -0
- package/{cjs → build/cjs}/shim.js +0 -0
- package/build/cjs/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/base64/index.js +0 -0
- package/build/cjs/string/base64/index.js.map +1 -0
- package/{cjs → build/cjs}/string/base64/shim.js +0 -0
- package/build/cjs/string/base64/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/base64Decode/index.js +0 -0
- package/build/cjs/string/base64Decode/index.js.map +1 -0
- package/{cjs → build/cjs}/string/base64Decode/shim.js +0 -0
- package/build/cjs/string/base64Decode/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/camelCase/index.js +0 -0
- package/build/cjs/string/camelCase/index.js.map +1 -0
- package/{cjs → build/cjs}/string/camelCase/shim.js +0 -0
- package/build/cjs/string/camelCase/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/capitalize/index.js +0 -0
- package/build/cjs/string/capitalize/index.js.map +1 -0
- package/{cjs → build/cjs}/string/capitalize/shim.js +0 -0
- package/build/cjs/string/capitalize/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/chars/index.js +0 -0
- package/build/cjs/string/chars/index.js.map +1 -0
- package/{cjs → build/cjs}/string/chars/shim.js +0 -0
- package/build/cjs/string/chars/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/contains/index.js +0 -0
- package/build/cjs/string/contains/index.js.map +1 -0
- package/{cjs → build/cjs}/string/contains/shim.js +0 -0
- package/build/cjs/string/contains/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/decapitalize/index.js +0 -0
- package/build/cjs/string/decapitalize/index.js.map +1 -0
- package/{cjs → build/cjs}/string/decapitalize/shim.js +0 -0
- package/build/cjs/string/decapitalize/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/equals/index.js +0 -0
- package/build/cjs/string/equals/index.js.map +1 -0
- package/{cjs → build/cjs}/string/equals/shim.js +0 -0
- package/build/cjs/string/equals/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/forEach/index.js +0 -0
- package/build/cjs/string/forEach/index.js.map +1 -0
- package/{cjs → build/cjs}/string/forEach/shim.js +0 -0
- package/build/cjs/string/forEach/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/humanize/index.js +0 -0
- package/build/cjs/string/humanize/index.js.map +1 -0
- package/{cjs → build/cjs}/string/humanize/shim.js +0 -0
- package/build/cjs/string/humanize/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/index.js +0 -0
- package/build/cjs/string/index.js.map +1 -0
- package/{cjs → build/cjs}/string/isEmpty/index.js +0 -0
- package/build/cjs/string/isEmpty/index.js.map +1 -0
- package/{cjs → build/cjs}/string/isEmpty/shim.js +0 -0
- package/build/cjs/string/isEmpty/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/isString/index.js +0 -0
- package/build/cjs/string/isString/index.js.map +1 -0
- package/{cjs → build/cjs}/string/isString/shim.js +0 -0
- package/build/cjs/string/isString/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/kebabCase/index.js +0 -0
- package/build/cjs/string/kebabCase/index.js.map +1 -0
- package/{cjs → build/cjs}/string/kebabCase/shim.js +0 -0
- package/build/cjs/string/kebabCase/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/lines/index.js +0 -0
- package/build/cjs/string/lines/index.js.map +1 -0
- package/{cjs → build/cjs}/string/lines/shim.js +0 -0
- package/build/cjs/string/lines/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/map/index.js +0 -0
- package/build/cjs/string/map/index.js.map +1 -0
- package/{cjs → build/cjs}/string/map/shim.js +0 -0
- package/build/cjs/string/map/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/mask/index.js +0 -0
- package/build/cjs/string/mask/index.js.map +1 -0
- package/{cjs → build/cjs}/string/mask/shim.js +0 -0
- package/build/cjs/string/mask/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/pad/index.js +0 -0
- package/build/cjs/string/pad/index.js.map +1 -0
- package/{cjs → build/cjs}/string/pad/shim.js +0 -0
- package/build/cjs/string/pad/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/parseInt/index.js +0 -0
- package/build/cjs/string/parseInt/index.js.map +1 -0
- package/{cjs → build/cjs}/string/parseInt/shim.js +0 -0
- package/build/cjs/string/parseInt/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/pluralize/index.js +0 -0
- package/build/cjs/string/pluralize/index.js.map +1 -0
- package/{cjs → build/cjs}/string/pluralize/shim.js +0 -0
- package/build/cjs/string/pluralize/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/reduce/index.js +0 -0
- package/build/cjs/string/reduce/index.js.map +1 -0
- package/{cjs → build/cjs}/string/reduce/shim.js +0 -0
- package/build/cjs/string/reduce/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/repeat/index.js +0 -0
- package/build/cjs/string/repeat/index.js.map +1 -0
- package/{cjs → build/cjs}/string/repeat/shim.js +0 -0
- package/build/cjs/string/repeat/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/reverse/index.js +0 -0
- package/build/cjs/string/reverse/index.js.map +1 -0
- package/{cjs → build/cjs}/string/reverse/shim.js +0 -0
- package/build/cjs/string/reverse/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/shim.js +0 -0
- package/build/cjs/string/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/snakeCase/index.js +0 -0
- package/build/cjs/string/snakeCase/index.js.map +1 -0
- package/{cjs → build/cjs}/string/snakeCase/shim.js +0 -0
- package/build/cjs/string/snakeCase/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/swapCase/index.js +0 -0
- package/build/cjs/string/swapCase/index.js.map +1 -0
- package/{cjs → build/cjs}/string/swapCase/shim.js +0 -0
- package/build/cjs/string/swapCase/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/truncate/index.js +0 -0
- package/build/cjs/string/truncate/index.js.map +1 -0
- package/{cjs → build/cjs}/string/truncate/shim.js +0 -0
- package/build/cjs/string/truncate/shim.js.map +1 -0
- package/{cjs → build/cjs}/string/words/index.js +0 -0
- package/build/cjs/string/words/index.js.map +1 -0
- package/{cjs → build/cjs}/string/words/shim.js +0 -0
- package/build/cjs/string/words/shim.js.map +1 -0
- package/{cjs → build/cjs}/utils.js +0 -0
- package/build/cjs/utils.js.map +1 -0
- package/build/esm/array/all/index.js +4 -0
- package/build/esm/array/all/index.js.map +1 -0
- package/build/esm/array/all/shim.js +15 -0
- package/build/esm/array/all/shim.js.map +1 -0
- package/build/esm/array/any/index.js +4 -0
- package/build/esm/array/any/index.js.map +1 -0
- package/build/esm/array/any/shim.js +16 -0
- package/build/esm/array/any/shim.js.map +1 -0
- package/build/esm/array/append/index.js +6 -0
- package/build/esm/array/append/index.js.map +1 -0
- package/build/esm/array/append/shim.js +14 -0
- package/build/esm/array/append/shim.js.map +1 -0
- package/build/esm/array/average/index.js +7 -0
- package/build/esm/array/average/index.js.map +1 -0
- package/build/esm/array/average/shim.js +27 -0
- package/build/esm/array/average/shim.js.map +1 -0
- package/build/esm/array/chunk/index.js +6 -0
- package/build/esm/array/chunk/index.js.map +1 -0
- package/build/esm/array/chunk/shim.js +13 -0
- package/build/esm/array/chunk/shim.js.map +1 -0
- package/build/esm/array/clone/index.js +5 -0
- package/build/esm/array/clone/index.js.map +1 -0
- package/build/esm/array/clone/shim.js +13 -0
- package/build/esm/array/clone/shim.js.map +1 -0
- package/build/esm/array/compact/index.js +4 -0
- package/build/esm/array/compact/index.js.map +1 -0
- package/build/esm/array/compact/shim.js +12 -0
- package/build/esm/array/compact/shim.js.map +1 -0
- package/build/esm/array/contains/index.js +4 -0
- package/build/esm/array/contains/index.js.map +1 -0
- package/build/esm/array/contains/shim.js +13 -0
- package/build/esm/array/contains/shim.js.map +1 -0
- package/build/esm/array/count/index.js +6 -0
- package/build/esm/array/count/index.js.map +1 -0
- package/build/esm/array/count/shim.js +14 -0
- package/build/esm/array/count/shim.js.map +1 -0
- package/build/esm/array/countBy/index.js +9 -0
- package/build/esm/array/countBy/index.js.map +1 -0
- package/build/esm/array/countBy/shim.js +15 -0
- package/build/esm/array/countBy/shim.js.map +1 -0
- package/build/esm/array/crossJoin/index.js +6 -0
- package/build/esm/array/crossJoin/index.js.map +1 -0
- package/build/esm/array/crossJoin/shim.js +14 -0
- package/build/esm/array/crossJoin/shim.js.map +1 -0
- package/build/esm/array/deepFlatten/index.js +4 -0
- package/build/esm/array/deepFlatten/index.js.map +1 -0
- package/build/esm/array/deepFlatten/shim.js +12 -0
- package/build/esm/array/deepFlatten/shim.js.map +1 -0
- package/build/esm/array/diff/index.js +7 -0
- package/build/esm/array/diff/index.js.map +1 -0
- package/build/esm/array/diff/shim.js +17 -0
- package/build/esm/array/diff/shim.js.map +1 -0
- package/build/esm/array/distinct/index.js +23 -0
- package/build/esm/array/distinct/index.js.map +1 -0
- package/build/esm/array/distinct/shim.js +15 -0
- package/build/esm/array/distinct/shim.js.map +1 -0
- package/build/esm/array/distinctBy/index.js +16 -0
- package/build/esm/array/distinctBy/index.js.map +1 -0
- package/build/esm/array/distinctBy/shim.js +13 -0
- package/build/esm/array/distinctBy/shim.js.map +1 -0
- package/build/esm/array/empty/index.js +4 -0
- package/build/esm/array/empty/index.js.map +1 -0
- package/build/esm/array/empty/shim.js +13 -0
- package/build/esm/array/empty/shim.js.map +1 -0
- package/build/esm/array/equals/index.js +10 -0
- package/build/esm/array/equals/index.js.map +1 -0
- package/build/esm/array/equals/shim.js +13 -0
- package/build/esm/array/equals/shim.js.map +1 -0
- package/build/esm/array/everyNth/index.js +4 -0
- package/build/esm/array/everyNth/index.js.map +1 -0
- package/build/esm/array/everyNth/shim.js +12 -0
- package/build/esm/array/everyNth/shim.js.map +1 -0
- package/build/esm/array/first/index.js +4 -0
- package/build/esm/array/first/index.js.map +1 -0
- package/build/esm/array/first/shim.js +12 -0
- package/build/esm/array/first/shim.js.map +1 -0
- package/build/esm/array/flatten/index.js +7 -0
- package/build/esm/array/flatten/index.js.map +1 -0
- package/build/esm/array/flatten/shim.js +14 -0
- package/build/esm/array/flatten/shim.js.map +1 -0
- package/build/esm/array/get/index.js +4 -0
- package/build/esm/array/get/index.js.map +1 -0
- package/build/esm/array/get/shim.js +15 -0
- package/build/esm/array/get/shim.js.map +1 -0
- package/build/esm/array/groupBy/index.js +9 -0
- package/build/esm/array/groupBy/index.js.map +1 -0
- package/build/esm/array/groupBy/shim.js +14 -0
- package/build/esm/array/groupBy/shim.js.map +1 -0
- package/build/esm/array/implode/index.js +10 -0
- package/build/esm/array/implode/index.js.map +1 -0
- package/build/esm/array/implode/shim.js +15 -0
- package/build/esm/array/implode/shim.js.map +1 -0
- package/build/esm/array/index.js +63 -0
- package/build/esm/array/index.js.map +1 -0
- package/build/esm/array/indexOfAll/index.js +6 -0
- package/build/esm/array/indexOfAll/index.js.map +1 -0
- package/build/esm/array/indexOfAll/shim.js +14 -0
- package/build/esm/array/indexOfAll/shim.js.map +1 -0
- package/build/esm/array/initial/index.js +4 -0
- package/build/esm/array/initial/index.js.map +1 -0
- package/build/esm/array/initial/shim.js +12 -0
- package/build/esm/array/initial/shim.js.map +1 -0
- package/build/esm/array/intersect/index.js +5 -0
- package/build/esm/array/intersect/index.js.map +1 -0
- package/build/esm/array/intersect/shim.js +13 -0
- package/build/esm/array/intersect/shim.js.map +1 -0
- package/build/esm/array/isEmpty/index.js +4 -0
- package/build/esm/array/isEmpty/index.js.map +1 -0
- package/build/esm/array/isEmpty/shim.js +13 -0
- package/build/esm/array/isEmpty/shim.js.map +1 -0
- package/build/esm/array/last/index.js +4 -0
- package/build/esm/array/last/index.js.map +1 -0
- package/build/esm/array/last/shim.js +12 -0
- package/build/esm/array/last/shim.js.map +1 -0
- package/build/esm/array/limit/index.js +4 -0
- package/build/esm/array/limit/index.js.map +1 -0
- package/build/esm/array/limit/shim.js +23 -0
- package/build/esm/array/limit/shim.js.map +1 -0
- package/build/esm/array/max/index.js +11 -0
- package/build/esm/array/max/index.js.map +1 -0
- package/build/esm/array/max/shim.js +15 -0
- package/build/esm/array/max/shim.js.map +1 -0
- package/build/esm/array/median/index.js +15 -0
- package/build/esm/array/median/index.js.map +1 -0
- package/build/esm/array/median/shim.js +14 -0
- package/build/esm/array/median/shim.js.map +1 -0
- package/build/esm/array/merge/index.js +4 -0
- package/build/esm/array/merge/index.js.map +1 -0
- package/build/esm/array/merge/shim.js +13 -0
- package/build/esm/array/merge/shim.js.map +1 -0
- package/build/esm/array/min/index.js +11 -0
- package/build/esm/array/min/index.js.map +1 -0
- package/build/esm/array/min/shim.js +15 -0
- package/build/esm/array/min/shim.js.map +1 -0
- package/build/esm/array/nest/index.js +9 -0
- package/build/esm/array/nest/index.js.map +1 -0
- package/build/esm/array/nest/shim.js +21 -0
- package/build/esm/array/nest/shim.js.map +1 -0
- package/build/esm/array/orderBy/index.js +24 -0
- package/build/esm/array/orderBy/index.js.map +1 -0
- package/build/esm/array/orderBy/shim.js +16 -0
- package/build/esm/array/orderBy/shim.js.map +1 -0
- package/build/esm/array/pad/index.js +11 -0
- package/build/esm/array/pad/index.js.map +1 -0
- package/build/esm/array/pad/shim.js +15 -0
- package/build/esm/array/pad/shim.js.map +1 -0
- package/build/esm/array/partition/index.js +7 -0
- package/build/esm/array/partition/index.js.map +1 -0
- package/build/esm/array/partition/shim.js +20 -0
- package/build/esm/array/partition/shim.js.map +1 -0
- package/build/esm/array/pluck/index.js +6 -0
- package/build/esm/array/pluck/index.js.map +1 -0
- package/build/esm/array/pluck/shim.js +14 -0
- package/build/esm/array/pluck/shim.js.map +1 -0
- package/build/esm/array/prepend/index.js +6 -0
- package/build/esm/array/prepend/index.js.map +1 -0
- package/build/esm/array/prepend/shim.js +13 -0
- package/build/esm/array/prepend/shim.js.map +1 -0
- package/build/esm/array/pull/index.js +6 -0
- package/build/esm/array/pull/index.js.map +1 -0
- package/build/esm/array/pull/shim.js +13 -0
- package/build/esm/array/pull/shim.js.map +1 -0
- package/build/esm/array/range/index.js +6 -0
- package/build/esm/array/range/index.js.map +1 -0
- package/build/esm/array/range/shim.js +17 -0
- package/build/esm/array/range/shim.js.map +1 -0
- package/build/esm/array/repeat/index.js +4 -0
- package/build/esm/array/repeat/index.js.map +1 -0
- package/build/esm/array/repeat/shim.js +13 -0
- package/build/esm/array/repeat/shim.js.map +1 -0
- package/build/esm/array/sample/index.js +4 -0
- package/build/esm/array/sample/index.js.map +1 -0
- package/build/esm/array/sample/shim.js +12 -0
- package/build/esm/array/sample/shim.js.map +1 -0
- package/build/esm/array/shim.js +64 -0
- package/build/esm/array/shim.js.map +1 -0
- package/build/esm/array/shuffle/index.js +9 -0
- package/build/esm/array/shuffle/index.js.map +1 -0
- package/build/esm/array/shuffle/shim.js +13 -0
- package/build/esm/array/shuffle/shim.js.map +1 -0
- package/build/esm/array/skip/index.js +4 -0
- package/build/esm/array/skip/index.js.map +1 -0
- package/build/esm/array/skip/shim.js +23 -0
- package/build/esm/array/skip/shim.js.map +1 -0
- package/build/esm/array/sortBy/index.js +11 -0
- package/build/esm/array/sortBy/index.js.map +1 -0
- package/build/esm/array/sortBy/shim.js +15 -0
- package/build/esm/array/sortBy/shim.js.map +1 -0
- package/build/esm/array/sum/index.js +11 -0
- package/build/esm/array/sum/index.js.map +1 -0
- package/build/esm/array/sum/shim.js +15 -0
- package/build/esm/array/sum/shim.js.map +1 -0
- package/build/esm/array/tail/index.js +4 -0
- package/build/esm/array/tail/index.js.map +1 -0
- package/build/esm/array/tail/shim.js +12 -0
- package/build/esm/array/tail/shim.js.map +1 -0
- package/build/esm/array/toCSV/index.js +6 -0
- package/build/esm/array/toCSV/index.js.map +1 -0
- package/build/esm/array/toCSV/shim.js +14 -0
- package/build/esm/array/toCSV/shim.js.map +1 -0
- package/build/esm/array/union/index.js +4 -0
- package/build/esm/array/union/index.js.map +1 -0
- package/build/esm/array/union/shim.js +13 -0
- package/build/esm/array/union/shim.js.map +1 -0
- package/build/esm/array/unwind/index.js +8 -0
- package/build/esm/array/unwind/index.js.map +1 -0
- package/build/esm/array/unwind/shim.js +14 -0
- package/build/esm/array/unwind/shim.js.map +1 -0
- package/build/esm/array/where/index.js +54 -0
- package/build/esm/array/where/index.js.map +1 -0
- package/build/esm/array/where/shim.js +18 -0
- package/build/esm/array/where/shim.js.map +1 -0
- package/build/esm/array/whereBetween/index.js +12 -0
- package/build/esm/array/whereBetween/index.js.map +1 -0
- package/build/esm/array/whereBetween/shim.js +16 -0
- package/build/esm/array/whereBetween/shim.js.map +1 -0
- package/build/esm/array/whereIn/index.js +11 -0
- package/build/esm/array/whereIn/index.js.map +1 -0
- package/build/esm/array/whereIn/shim.js +15 -0
- package/build/esm/array/whereIn/shim.js.map +1 -0
- package/build/esm/array/whereLike/index.js +14 -0
- package/build/esm/array/whereLike/index.js.map +1 -0
- package/build/esm/array/whereLike/shim.js +16 -0
- package/build/esm/array/whereLike/shim.js.map +1 -0
- package/build/esm/array/whereNotBetween/index.js +12 -0
- package/build/esm/array/whereNotBetween/index.js.map +1 -0
- package/build/esm/array/whereNotBetween/shim.js +16 -0
- package/build/esm/array/whereNotBetween/shim.js.map +1 -0
- package/build/esm/array/whereNotIn/index.js +11 -0
- package/build/esm/array/whereNotIn/index.js.map +1 -0
- package/build/esm/array/whereNotIn/shim.js +15 -0
- package/build/esm/array/whereNotIn/shim.js.map +1 -0
- package/build/esm/array/whereNotLike/index.js +14 -0
- package/build/esm/array/whereNotLike/index.js.map +1 -0
- package/build/esm/array/whereNotLike/shim.js +15 -0
- package/build/esm/array/whereNotLike/shim.js.map +1 -0
- package/build/esm/array/whereNotNull/index.js +6 -0
- package/build/esm/array/whereNotNull/index.js.map +1 -0
- package/build/esm/array/whereNotNull/shim.js +14 -0
- package/build/esm/array/whereNotNull/shim.js.map +1 -0
- package/build/esm/array/whereNull/index.js +6 -0
- package/build/esm/array/whereNull/index.js.map +1 -0
- package/build/esm/array/whereNull/shim.js +14 -0
- package/build/esm/array/whereNull/shim.js.map +1 -0
- package/build/esm/array/zip/index.js +7 -0
- package/build/esm/array/zip/index.js.map +1 -0
- package/build/esm/array/zip/shim.js +14 -0
- package/build/esm/array/zip/shim.js.map +1 -0
- package/build/esm/array/zipObject/index.js +4 -0
- package/build/esm/array/zipObject/index.js.map +1 -0
- package/build/esm/array/zipObject/shim.js +15 -0
- package/build/esm/array/zipObject/shim.js.map +1 -0
- package/build/esm/boolean/index.js +2 -0
- package/build/esm/boolean/index.js.map +1 -0
- package/build/esm/boolean/isBoolean/index.js +4 -0
- package/build/esm/boolean/isBoolean/index.js.map +1 -0
- package/build/esm/boolean/isBoolean/shim.js +13 -0
- package/build/esm/boolean/isBoolean/shim.js.map +1 -0
- package/build/esm/boolean/shim.js +3 -0
- package/build/esm/boolean/shim.js.map +1 -0
- package/build/esm/date/equals/index.js +5 -0
- package/build/esm/date/equals/index.js.map +1 -0
- package/build/esm/date/equals/shim.js +13 -0
- package/build/esm/date/equals/shim.js.map +1 -0
- package/build/esm/date/index.js +6 -0
- package/build/esm/date/index.js.map +1 -0
- package/build/esm/date/isDate/index.js +5 -0
- package/build/esm/date/isDate/index.js.map +1 -0
- package/build/esm/date/isDate/shim.js +13 -0
- package/build/esm/date/isDate/shim.js.map +1 -0
- package/build/esm/date/shim.js +7 -0
- package/build/esm/date/shim.js.map +1 -0
- package/build/esm/date/today/index.js +6 -0
- package/build/esm/date/today/index.js.map +1 -0
- package/build/esm/date/today/shim.js +11 -0
- package/build/esm/date/today/shim.js.map +1 -0
- package/build/esm/date/tomorrow/index.js +7 -0
- package/build/esm/date/tomorrow/index.js.map +1 -0
- package/build/esm/date/tomorrow/shim.js +11 -0
- package/build/esm/date/tomorrow/shim.js.map +1 -0
- package/build/esm/date/yesterday/index.js +7 -0
- package/build/esm/date/yesterday/index.js.map +1 -0
- package/build/esm/date/yesterday/shim.js +11 -0
- package/build/esm/date/yesterday/shim.js.map +1 -0
- package/build/esm/function/cache/index.js +13 -0
- package/build/esm/function/cache/index.js.map +1 -0
- package/build/esm/function/cache/shim.js +16 -0
- package/build/esm/function/cache/shim.js.map +1 -0
- package/build/esm/function/defer/index.js +4 -0
- package/build/esm/function/defer/index.js.map +1 -0
- package/build/esm/function/defer/shim.js +14 -0
- package/build/esm/function/defer/shim.js.map +1 -0
- package/build/esm/function/index.js +5 -0
- package/build/esm/function/index.js.map +1 -0
- package/build/esm/function/isFunction/index.js +4 -0
- package/build/esm/function/isFunction/index.js.map +1 -0
- package/build/esm/function/isFunction/shim.js +13 -0
- package/build/esm/function/isFunction/shim.js.map +1 -0
- package/build/esm/function/once/index.js +7 -0
- package/build/esm/function/once/index.js.map +1 -0
- package/build/esm/function/once/shim.js +15 -0
- package/build/esm/function/once/shim.js.map +1 -0
- package/build/esm/function/shim.js +6 -0
- package/build/esm/function/shim.js.map +1 -0
- package/build/esm/globals/index.js +2 -0
- package/build/esm/globals/index.js.map +1 -0
- package/build/esm/globals/isBrowser/index.js +5 -0
- package/build/esm/globals/isBrowser/index.js.map +1 -0
- package/build/esm/globals/isBrowser/shim.js +12 -0
- package/build/esm/globals/isBrowser/shim.js.map +1 -0
- package/build/esm/globals/shim.js +3 -0
- package/build/esm/globals/shim.js.map +1 -0
- package/build/esm/index.js +10 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/math/average/index.js +5 -0
- package/build/esm/math/average/index.js.map +1 -0
- package/build/esm/math/average/shim.js +24 -0
- package/build/esm/math/average/shim.js.map +1 -0
- package/build/esm/math/degreesToRads/index.js +5 -0
- package/build/esm/math/degreesToRads/index.js.map +1 -0
- package/build/esm/math/degreesToRads/shim.js +12 -0
- package/build/esm/math/degreesToRads/shim.js.map +1 -0
- package/build/esm/math/factorial/index.js +4 -0
- package/build/esm/math/factorial/index.js.map +1 -0
- package/build/esm/math/factorial/shim.js +12 -0
- package/build/esm/math/factorial/shim.js.map +1 -0
- package/build/esm/math/fibonacci/index.js +4 -0
- package/build/esm/math/fibonacci/index.js.map +1 -0
- package/build/esm/math/fibonacci/shim.js +12 -0
- package/build/esm/math/fibonacci/shim.js.map +1 -0
- package/build/esm/math/gcd/index.js +5 -0
- package/build/esm/math/gcd/index.js.map +1 -0
- package/build/esm/math/gcd/shim.js +13 -0
- package/build/esm/math/gcd/shim.js.map +1 -0
- package/build/esm/math/index.js +12 -0
- package/build/esm/math/index.js.map +1 -0
- package/build/esm/math/isDivisible/index.js +4 -0
- package/build/esm/math/isDivisible/index.js.map +1 -0
- package/build/esm/math/isDivisible/shim.js +13 -0
- package/build/esm/math/isDivisible/shim.js.map +1 -0
- package/build/esm/math/isEven/index.js +4 -0
- package/build/esm/math/isEven/index.js.map +1 -0
- package/build/esm/math/isEven/shim.js +12 -0
- package/build/esm/math/isEven/shim.js.map +1 -0
- package/build/esm/math/isPrime/index.js +8 -0
- package/build/esm/math/isPrime/index.js.map +1 -0
- package/build/esm/math/isPrime/shim.js +12 -0
- package/build/esm/math/isPrime/shim.js.map +1 -0
- package/build/esm/math/lcm/index.js +6 -0
- package/build/esm/math/lcm/index.js.map +1 -0
- package/build/esm/math/lcm/shim.js +13 -0
- package/build/esm/math/lcm/shim.js.map +1 -0
- package/build/esm/math/primes/index.js +7 -0
- package/build/esm/math/primes/index.js.map +1 -0
- package/build/esm/math/primes/shim.js +12 -0
- package/build/esm/math/primes/shim.js.map +1 -0
- package/build/esm/math/radsToDegrees/index.js +5 -0
- package/build/esm/math/radsToDegrees/index.js.map +1 -0
- package/build/esm/math/radsToDegrees/shim.js +12 -0
- package/build/esm/math/radsToDegrees/shim.js.map +1 -0
- package/build/esm/math/shim.js +13 -0
- package/build/esm/math/shim.js.map +1 -0
- package/build/esm/number/digitize/index.js +4 -0
- package/build/esm/number/digitize/index.js.map +1 -0
- package/build/esm/number/digitize/shim.js +12 -0
- package/build/esm/number/digitize/shim.js.map +1 -0
- package/build/esm/number/equals/index.js +4 -0
- package/build/esm/number/equals/index.js.map +1 -0
- package/build/esm/number/equals/shim.js +13 -0
- package/build/esm/number/equals/shim.js.map +1 -0
- package/build/esm/number/inRange/index.js +4 -0
- package/build/esm/number/inRange/index.js.map +1 -0
- package/build/esm/number/inRange/shim.js +14 -0
- package/build/esm/number/inRange/shim.js.map +1 -0
- package/build/esm/number/index.js +5 -0
- package/build/esm/number/index.js.map +1 -0
- package/build/esm/number/isNumber/index.js +4 -0
- package/build/esm/number/isNumber/index.js.map +1 -0
- package/build/esm/number/isNumber/shim.js +13 -0
- package/build/esm/number/isNumber/shim.js.map +1 -0
- package/build/esm/number/shim.js +6 -0
- package/build/esm/number/shim.js.map +1 -0
- package/build/esm/object/assign/index.js +4 -0
- package/build/esm/object/assign/index.js.map +1 -0
- package/build/esm/object/assign/shim.js +13 -0
- package/build/esm/object/assign/shim.js.map +1 -0
- package/build/esm/object/camelCaseKeys/index.js +8 -0
- package/build/esm/object/camelCaseKeys/index.js.map +1 -0
- package/build/esm/object/camelCaseKeys/shim.js +13 -0
- package/build/esm/object/camelCaseKeys/shim.js.map +1 -0
- package/build/esm/object/clone/index.js +5 -0
- package/build/esm/object/clone/index.js.map +1 -0
- package/build/esm/object/clone/shim.js +14 -0
- package/build/esm/object/clone/shim.js.map +1 -0
- package/build/esm/object/defaults/index.js +4 -0
- package/build/esm/object/defaults/index.js.map +1 -0
- package/build/esm/object/defaults/shim.js +13 -0
- package/build/esm/object/defaults/shim.js.map +1 -0
- package/build/esm/object/dig/index.js +12 -0
- package/build/esm/object/dig/index.js.map +1 -0
- package/build/esm/object/dig/shim.js +21 -0
- package/build/esm/object/dig/shim.js.map +1 -0
- package/build/esm/object/empty/index.js +8 -0
- package/build/esm/object/empty/index.js.map +1 -0
- package/build/esm/object/empty/shim.js +13 -0
- package/build/esm/object/empty/shim.js.map +1 -0
- package/build/esm/object/equals/index.js +19 -0
- package/build/esm/object/equals/index.js.map +1 -0
- package/build/esm/object/equals/shim.js +13 -0
- package/build/esm/object/equals/shim.js.map +1 -0
- package/build/esm/object/flatten/index.js +25 -0
- package/build/esm/object/flatten/index.js.map +1 -0
- package/build/esm/object/flatten/shim.js +12 -0
- package/build/esm/object/flatten/shim.js.map +1 -0
- package/build/esm/object/forEach/index.js +5 -0
- package/build/esm/object/forEach/index.js.map +1 -0
- package/build/esm/object/forEach/shim.js +16 -0
- package/build/esm/object/forEach/shim.js.map +1 -0
- package/build/esm/object/get/index.js +5 -0
- package/build/esm/object/get/index.js.map +1 -0
- package/build/esm/object/get/shim.js +13 -0
- package/build/esm/object/get/shim.js.map +1 -0
- package/build/esm/object/index.js +29 -0
- package/build/esm/object/index.js.map +1 -0
- package/build/esm/object/invert/index.js +8 -0
- package/build/esm/object/invert/index.js.map +1 -0
- package/build/esm/object/invert/shim.js +12 -0
- package/build/esm/object/invert/shim.js.map +1 -0
- package/build/esm/object/isEmpty/index.js +5 -0
- package/build/esm/object/isEmpty/index.js.map +1 -0
- package/build/esm/object/isEmpty/shim.js +13 -0
- package/build/esm/object/isEmpty/shim.js.map +1 -0
- package/build/esm/object/isObject/index.js +4 -0
- package/build/esm/object/isObject/index.js.map +1 -0
- package/build/esm/object/isObject/shim.js +13 -0
- package/build/esm/object/isObject/shim.js.map +1 -0
- package/build/esm/object/isObjectLike/index.js +7 -0
- package/build/esm/object/isObjectLike/index.js.map +1 -0
- package/build/esm/object/isObjectLike/shim.js +13 -0
- package/build/esm/object/isObjectLike/shim.js.map +1 -0
- package/build/esm/object/isPlainObject/index.js +11 -0
- package/build/esm/object/isPlainObject/index.js.map +1 -0
- package/build/esm/object/isPlainObject/shim.js +13 -0
- package/build/esm/object/isPlainObject/shim.js.map +1 -0
- package/build/esm/object/kebabCaseKeys/index.js +8 -0
- package/build/esm/object/kebabCaseKeys/index.js.map +1 -0
- package/build/esm/object/kebabCaseKeys/shim.js +13 -0
- package/build/esm/object/kebabCaseKeys/shim.js.map +1 -0
- package/build/esm/object/keys/index.js +4 -0
- package/build/esm/object/keys/index.js.map +1 -0
- package/build/esm/object/keys/shim.js +12 -0
- package/build/esm/object/keys/shim.js.map +1 -0
- package/build/esm/object/lowerCaseKeys/index.js +7 -0
- package/build/esm/object/lowerCaseKeys/index.js.map +1 -0
- package/build/esm/object/lowerCaseKeys/shim.js +13 -0
- package/build/esm/object/lowerCaseKeys/shim.js.map +1 -0
- package/build/esm/object/map/index.js +9 -0
- package/build/esm/object/map/index.js.map +1 -0
- package/build/esm/object/map/shim.js +18 -0
- package/build/esm/object/map/shim.js.map +1 -0
- package/build/esm/object/mapKeys/index.js +7 -0
- package/build/esm/object/mapKeys/index.js.map +1 -0
- package/build/esm/object/mapKeys/shim.js +14 -0
- package/build/esm/object/mapKeys/shim.js.map +1 -0
- package/build/esm/object/mapValues/index.js +7 -0
- package/build/esm/object/mapValues/index.js.map +1 -0
- package/build/esm/object/mapValues/shim.js +18 -0
- package/build/esm/object/mapValues/shim.js.map +1 -0
- package/build/esm/object/merge/index.js +11 -0
- package/build/esm/object/merge/index.js.map +1 -0
- package/build/esm/object/merge/shim.js +22 -0
- package/build/esm/object/merge/shim.js.map +1 -0
- package/build/esm/object/omit/index.js +10 -0
- package/build/esm/object/omit/index.js.map +1 -0
- package/build/esm/object/omit/shim.js +16 -0
- package/build/esm/object/omit/shim.js.map +1 -0
- package/build/esm/object/reduce/index.js +7 -0
- package/build/esm/object/reduce/index.js.map +1 -0
- package/build/esm/object/reduce/shim.js +15 -0
- package/build/esm/object/reduce/shim.js.map +1 -0
- package/build/esm/object/set/index.js +15 -0
- package/build/esm/object/set/index.js.map +1 -0
- package/build/esm/object/set/shim.js +15 -0
- package/build/esm/object/set/shim.js.map +1 -0
- package/build/esm/object/shim.js +30 -0
- package/build/esm/object/shim.js.map +1 -0
- package/build/esm/object/size/index.js +5 -0
- package/build/esm/object/size/index.js.map +1 -0
- package/build/esm/object/size/shim.js +12 -0
- package/build/esm/object/size/shim.js.map +1 -0
- package/build/esm/object/snakeCaseKeys/index.js +8 -0
- package/build/esm/object/snakeCaseKeys/index.js.map +1 -0
- package/build/esm/object/snakeCaseKeys/shim.js +13 -0
- package/build/esm/object/snakeCaseKeys/shim.js.map +1 -0
- package/build/esm/object/values/index.js +4 -0
- package/build/esm/object/values/index.js.map +1 -0
- package/build/esm/object/values/shim.js +12 -0
- package/build/esm/object/values/shim.js.map +1 -0
- package/build/esm/package.json +3 -0
- package/build/esm/shim.js +10 -0
- package/build/esm/shim.js.map +1 -0
- package/build/esm/string/base64/index.js +4 -0
- package/build/esm/string/base64/index.js.map +1 -0
- package/build/esm/string/base64/shim.js +12 -0
- package/build/esm/string/base64/shim.js.map +1 -0
- package/build/esm/string/base64Decode/index.js +4 -0
- package/build/esm/string/base64Decode/index.js.map +1 -0
- package/build/esm/string/base64Decode/shim.js +12 -0
- package/build/esm/string/base64Decode/shim.js.map +1 -0
- package/build/esm/string/camelCase/index.js +7 -0
- package/build/esm/string/camelCase/index.js.map +1 -0
- package/build/esm/string/camelCase/shim.js +16 -0
- package/build/esm/string/camelCase/shim.js.map +1 -0
- package/build/esm/string/capitalize/index.js +6 -0
- package/build/esm/string/capitalize/index.js.map +1 -0
- package/build/esm/string/capitalize/shim.js +14 -0
- package/build/esm/string/capitalize/shim.js.map +1 -0
- package/build/esm/string/chars/index.js +4 -0
- package/build/esm/string/chars/index.js.map +1 -0
- package/build/esm/string/chars/shim.js +12 -0
- package/build/esm/string/chars/shim.js.map +1 -0
- package/build/esm/string/contains/index.js +6 -0
- package/build/esm/string/contains/index.js.map +1 -0
- package/build/esm/string/contains/shim.js +15 -0
- package/build/esm/string/contains/shim.js.map +1 -0
- package/build/esm/string/decapitalize/index.js +6 -0
- package/build/esm/string/decapitalize/index.js.map +1 -0
- package/build/esm/string/decapitalize/shim.js +14 -0
- package/build/esm/string/decapitalize/shim.js.map +1 -0
- package/build/esm/string/equals/index.js +4 -0
- package/build/esm/string/equals/index.js.map +1 -0
- package/build/esm/string/equals/shim.js +13 -0
- package/build/esm/string/equals/shim.js.map +1 -0
- package/build/esm/string/forEach/index.js +4 -0
- package/build/esm/string/forEach/index.js.map +1 -0
- package/build/esm/string/forEach/shim.js +13 -0
- package/build/esm/string/forEach/shim.js.map +1 -0
- package/build/esm/string/humanize/index.js +7 -0
- package/build/esm/string/humanize/index.js.map +1 -0
- package/build/esm/string/humanize/shim.js +14 -0
- package/build/esm/string/humanize/shim.js.map +1 -0
- package/build/esm/string/index.js +27 -0
- package/build/esm/string/index.js.map +1 -0
- package/build/esm/string/isEmpty/index.js +4 -0
- package/build/esm/string/isEmpty/index.js.map +1 -0
- package/build/esm/string/isEmpty/shim.js +13 -0
- package/build/esm/string/isEmpty/shim.js.map +1 -0
- package/build/esm/string/isString/index.js +4 -0
- package/build/esm/string/isString/index.js.map +1 -0
- package/build/esm/string/isString/shim.js +13 -0
- package/build/esm/string/isString/shim.js.map +1 -0
- package/build/esm/string/kebabCase/index.js +6 -0
- package/build/esm/string/kebabCase/index.js.map +1 -0
- package/build/esm/string/kebabCase/shim.js +18 -0
- package/build/esm/string/kebabCase/shim.js.map +1 -0
- package/build/esm/string/lines/index.js +4 -0
- package/build/esm/string/lines/index.js.map +1 -0
- package/build/esm/string/lines/shim.js +12 -0
- package/build/esm/string/lines/shim.js.map +1 -0
- package/build/esm/string/map/index.js +4 -0
- package/build/esm/string/map/index.js.map +1 -0
- package/build/esm/string/map/shim.js +13 -0
- package/build/esm/string/map/shim.js.map +1 -0
- package/build/esm/string/mask/index.js +4 -0
- package/build/esm/string/mask/index.js.map +1 -0
- package/build/esm/string/mask/shim.js +16 -0
- package/build/esm/string/mask/shim.js.map +1 -0
- package/build/esm/string/pad/index.js +11 -0
- package/build/esm/string/pad/index.js.map +1 -0
- package/build/esm/string/pad/shim.js +15 -0
- package/build/esm/string/pad/shim.js.map +1 -0
- package/build/esm/string/parseInt/index.js +4 -0
- package/build/esm/string/parseInt/index.js.map +1 -0
- package/build/esm/string/parseInt/shim.js +13 -0
- package/build/esm/string/parseInt/shim.js.map +1 -0
- package/build/esm/string/pluralize/index.js +364 -0
- package/build/esm/string/pluralize/index.js.map +1 -0
- package/build/esm/string/pluralize/shim.js +18 -0
- package/build/esm/string/pluralize/shim.js.map +1 -0
- package/build/esm/string/reduce/index.js +4 -0
- package/build/esm/string/reduce/index.js.map +1 -0
- package/build/esm/string/reduce/shim.js +14 -0
- package/build/esm/string/reduce/shim.js.map +1 -0
- package/build/esm/string/repeat/index.js +5 -0
- package/build/esm/string/repeat/index.js.map +1 -0
- package/build/esm/string/repeat/shim.js +13 -0
- package/build/esm/string/repeat/shim.js.map +1 -0
- package/build/esm/string/reverse/index.js +4 -0
- package/build/esm/string/reverse/index.js.map +1 -0
- package/build/esm/string/reverse/shim.js +12 -0
- package/build/esm/string/reverse/shim.js.map +1 -0
- package/build/esm/string/shim.js +28 -0
- package/build/esm/string/shim.js.map +1 -0
- package/build/esm/string/snakeCase/index.js +6 -0
- package/build/esm/string/snakeCase/index.js.map +1 -0
- package/build/esm/string/snakeCase/shim.js +18 -0
- package/build/esm/string/snakeCase/shim.js.map +1 -0
- package/build/esm/string/swapCase/index.js +4 -0
- package/build/esm/string/swapCase/index.js.map +1 -0
- package/build/esm/string/swapCase/shim.js +12 -0
- package/build/esm/string/swapCase/shim.js.map +1 -0
- package/build/esm/string/truncate/index.js +7 -0
- package/build/esm/string/truncate/index.js.map +1 -0
- package/build/esm/string/truncate/shim.js +15 -0
- package/build/esm/string/truncate/shim.js.map +1 -0
- package/build/esm/string/words/index.js +4 -0
- package/build/esm/string/words/index.js.map +1 -0
- package/build/esm/string/words/shim.js +14 -0
- package/build/esm/string/words/shim.js.map +1 -0
- package/build/esm/utils.js +90 -0
- package/build/esm/utils.js.map +1 -0
- package/{cjs → build/types}/array/all/index.d.ts +0 -0
- package/{cjs → build/types}/array/all/shim.d.ts +0 -0
- package/{cjs → build/types}/array/any/index.d.ts +0 -0
- package/{cjs → build/types}/array/any/shim.d.ts +0 -0
- package/{cjs → build/types}/array/append/index.d.ts +0 -0
- package/{cjs → build/types}/array/append/shim.d.ts +0 -0
- package/{cjs → build/types}/array/average/index.d.ts +0 -0
- package/{cjs → build/types}/array/average/shim.d.ts +0 -0
- package/{cjs → build/types}/array/chunk/index.d.ts +0 -0
- package/{cjs → build/types}/array/chunk/shim.d.ts +0 -0
- package/{cjs → build/types}/array/clone/index.d.ts +0 -0
- package/{cjs → build/types}/array/clone/shim.d.ts +0 -0
- package/{cjs → build/types}/array/compact/index.d.ts +0 -0
- package/{cjs → build/types}/array/compact/shim.d.ts +0 -0
- package/{cjs → build/types}/array/contains/index.d.ts +0 -0
- package/{cjs → build/types}/array/contains/shim.d.ts +0 -0
- package/{cjs → build/types}/array/count/index.d.ts +0 -0
- package/{cjs → build/types}/array/count/shim.d.ts +0 -0
- package/{cjs → build/types}/array/countBy/index.d.ts +0 -0
- package/{cjs → build/types}/array/countBy/shim.d.ts +0 -0
- package/{cjs → build/types}/array/crossJoin/index.d.ts +0 -0
- package/{cjs → build/types}/array/crossJoin/shim.d.ts +0 -0
- package/{cjs → build/types}/array/deepFlatten/index.d.ts +0 -0
- package/{cjs → build/types}/array/deepFlatten/shim.d.ts +0 -0
- package/{cjs → build/types}/array/diff/index.d.ts +0 -0
- package/{cjs → build/types}/array/diff/shim.d.ts +0 -0
- package/{cjs → build/types}/array/distinct/index.d.ts +0 -0
- package/{cjs → build/types}/array/distinct/shim.d.ts +0 -0
- package/{cjs → build/types}/array/distinctBy/index.d.ts +0 -0
- package/{cjs → build/types}/array/distinctBy/shim.d.ts +0 -0
- package/{cjs → build/types}/array/empty/index.d.ts +0 -0
- package/{cjs → build/types}/array/empty/shim.d.ts +0 -0
- package/{cjs → build/types}/array/equals/index.d.ts +0 -0
- package/{cjs → build/types}/array/equals/shim.d.ts +0 -0
- package/{cjs → build/types}/array/everyNth/index.d.ts +0 -0
- package/{cjs → build/types}/array/everyNth/shim.d.ts +0 -0
- package/{cjs → build/types}/array/first/index.d.ts +0 -0
- package/{cjs → build/types}/array/first/shim.d.ts +0 -0
- package/{cjs → build/types}/array/flatten/index.d.ts +0 -0
- package/{cjs → build/types}/array/flatten/shim.d.ts +0 -0
- package/{cjs → build/types}/array/get/index.d.ts +0 -0
- package/{cjs → build/types}/array/get/shim.d.ts +0 -0
- package/{cjs → build/types}/array/groupBy/index.d.ts +0 -0
- package/{cjs → build/types}/array/groupBy/shim.d.ts +0 -0
- package/{cjs → build/types}/array/implode/index.d.ts +0 -0
- package/{cjs → build/types}/array/implode/shim.d.ts +0 -0
- package/{cjs → build/types}/array/index.d.ts +0 -0
- package/{cjs → build/types}/array/indexOfAll/index.d.ts +0 -0
- package/{cjs → build/types}/array/indexOfAll/shim.d.ts +0 -0
- package/{cjs → build/types}/array/initial/index.d.ts +0 -0
- package/{cjs → build/types}/array/initial/shim.d.ts +0 -0
- package/{cjs → build/types}/array/intersect/index.d.ts +0 -0
- package/{cjs → build/types}/array/intersect/shim.d.ts +0 -0
- package/{cjs → build/types}/array/isEmpty/index.d.ts +0 -0
- package/{cjs → build/types}/array/isEmpty/shim.d.ts +0 -0
- package/{cjs → build/types}/array/last/index.d.ts +0 -0
- package/{cjs → build/types}/array/last/shim.d.ts +0 -0
- package/{cjs → build/types}/array/limit/index.d.ts +0 -0
- package/{cjs → build/types}/array/limit/shim.d.ts +0 -0
- package/{cjs → build/types}/array/max/index.d.ts +0 -0
- package/{cjs → build/types}/array/max/shim.d.ts +0 -0
- package/{cjs → build/types}/array/median/index.d.ts +0 -0
- package/{cjs → build/types}/array/median/shim.d.ts +0 -0
- package/{cjs → build/types}/array/merge/index.d.ts +0 -0
- package/{cjs → build/types}/array/merge/shim.d.ts +0 -0
- package/{cjs → build/types}/array/min/index.d.ts +0 -0
- package/{cjs → build/types}/array/min/shim.d.ts +0 -0
- package/{cjs → build/types}/array/nest/index.d.ts +0 -0
- package/{cjs → build/types}/array/nest/shim.d.ts +0 -0
- package/{cjs → build/types}/array/orderBy/index.d.ts +0 -0
- package/{cjs → build/types}/array/orderBy/shim.d.ts +0 -0
- package/{cjs → build/types}/array/pad/index.d.ts +0 -0
- package/{cjs → build/types}/array/pad/shim.d.ts +0 -0
- package/{cjs → build/types}/array/partition/index.d.ts +0 -0
- package/{cjs → build/types}/array/partition/shim.d.ts +0 -0
- package/{cjs → build/types}/array/pluck/index.d.ts +0 -0
- package/{cjs → build/types}/array/pluck/shim.d.ts +0 -0
- package/{cjs → build/types}/array/prepend/index.d.ts +0 -0
- package/{cjs → build/types}/array/prepend/shim.d.ts +0 -0
- package/{cjs → build/types}/array/pull/index.d.ts +0 -0
- package/{cjs → build/types}/array/pull/shim.d.ts +0 -0
- package/{cjs → build/types}/array/range/index.d.ts +0 -0
- package/{cjs → build/types}/array/range/shim.d.ts +0 -0
- package/{cjs → build/types}/array/repeat/index.d.ts +0 -0
- package/{cjs → build/types}/array/repeat/shim.d.ts +0 -0
- package/{cjs → build/types}/array/sample/index.d.ts +0 -0
- package/{cjs → build/types}/array/sample/shim.d.ts +0 -0
- package/{cjs → build/types}/array/shim.d.ts +0 -0
- package/{cjs → build/types}/array/shuffle/index.d.ts +0 -0
- package/{cjs → build/types}/array/shuffle/shim.d.ts +0 -0
- package/{cjs → build/types}/array/skip/index.d.ts +0 -0
- package/{cjs → build/types}/array/skip/shim.d.ts +0 -0
- package/{cjs → build/types}/array/sortBy/index.d.ts +0 -0
- package/{cjs → build/types}/array/sortBy/shim.d.ts +0 -0
- package/{cjs → build/types}/array/sum/index.d.ts +0 -0
- package/{cjs → build/types}/array/sum/shim.d.ts +0 -0
- package/{cjs → build/types}/array/tail/index.d.ts +0 -0
- package/{cjs → build/types}/array/tail/shim.d.ts +0 -0
- package/{cjs → build/types}/array/toCSV/index.d.ts +0 -0
- package/{cjs → build/types}/array/toCSV/shim.d.ts +0 -0
- package/{cjs → build/types}/array/union/index.d.ts +0 -0
- package/{cjs → build/types}/array/union/shim.d.ts +0 -0
- package/{cjs → build/types}/array/unwind/index.d.ts +0 -0
- package/{cjs → build/types}/array/unwind/shim.d.ts +0 -0
- package/{cjs → build/types}/array/where/index.d.ts +0 -0
- package/{cjs → build/types}/array/where/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereBetween/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereBetween/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereIn/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereIn/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereLike/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereLike/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotBetween/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotBetween/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotIn/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotIn/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotLike/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotLike/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotNull/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereNotNull/shim.d.ts +0 -0
- package/{cjs → build/types}/array/whereNull/index.d.ts +0 -0
- package/{cjs → build/types}/array/whereNull/shim.d.ts +0 -0
- package/{cjs → build/types}/array/zip/index.d.ts +0 -0
- package/{cjs → build/types}/array/zip/shim.d.ts +0 -0
- package/{cjs → build/types}/array/zipObject/index.d.ts +0 -0
- package/{cjs → build/types}/array/zipObject/shim.d.ts +0 -0
- package/{cjs → build/types}/boolean/index.d.ts +0 -0
- package/{cjs → build/types}/boolean/isBoolean/index.d.ts +0 -0
- package/{cjs → build/types}/boolean/isBoolean/shim.d.ts +0 -0
- package/{cjs → build/types}/boolean/shim.d.ts +0 -0
- package/{cjs → build/types}/date/equals/index.d.ts +0 -0
- package/{cjs → build/types}/date/equals/shim.d.ts +0 -0
- package/{cjs → build/types}/date/index.d.ts +0 -0
- package/{cjs → build/types}/date/isDate/index.d.ts +0 -0
- package/{cjs → build/types}/date/isDate/shim.d.ts +0 -0
- package/{cjs → build/types}/date/shim.d.ts +0 -0
- package/{cjs → build/types}/date/today/index.d.ts +0 -0
- package/{cjs → build/types}/date/today/shim.d.ts +0 -0
- package/{cjs → build/types}/date/tomorrow/index.d.ts +0 -0
- package/{cjs → build/types}/date/tomorrow/shim.d.ts +0 -0
- package/{cjs → build/types}/date/yesterday/index.d.ts +0 -0
- package/{cjs → build/types}/date/yesterday/shim.d.ts +0 -0
- package/{cjs → build/types}/function/cache/index.d.ts +0 -0
- package/{cjs → build/types}/function/cache/shim.d.ts +0 -0
- package/{cjs → build/types}/function/defer/index.d.ts +0 -0
- package/{cjs → build/types}/function/defer/shim.d.ts +0 -0
- package/{cjs → build/types}/function/index.d.ts +0 -0
- package/{cjs → build/types}/function/isFunction/index.d.ts +0 -0
- package/{cjs → build/types}/function/isFunction/shim.d.ts +0 -0
- package/{cjs → build/types}/function/once/index.d.ts +0 -0
- package/{cjs → build/types}/function/once/shim.d.ts +0 -0
- package/{cjs → build/types}/function/shim.d.ts +0 -0
- package/{cjs → build/types}/globals/index.d.ts +0 -0
- package/{cjs → build/types}/globals/isBrowser/index.d.ts +0 -0
- package/{cjs → build/types}/globals/isBrowser/shim.d.ts +0 -0
- package/{cjs → build/types}/globals/shim.d.ts +0 -0
- package/{cjs → build/types}/index.d.ts +0 -0
- package/{cjs → build/types}/math/average/index.d.ts +0 -0
- package/{cjs → build/types}/math/average/shim.d.ts +0 -0
- package/{cjs → build/types}/math/degreesToRads/index.d.ts +0 -0
- package/{cjs → build/types}/math/degreesToRads/shim.d.ts +0 -0
- package/{cjs → build/types}/math/factorial/index.d.ts +0 -0
- package/{cjs → build/types}/math/factorial/shim.d.ts +0 -0
- package/{cjs → build/types}/math/fibonacci/index.d.ts +0 -0
- package/{cjs → build/types}/math/fibonacci/shim.d.ts +0 -0
- package/{cjs → build/types}/math/gcd/index.d.ts +0 -0
- package/{cjs → build/types}/math/gcd/shim.d.ts +0 -0
- package/{cjs → build/types}/math/index.d.ts +0 -0
- package/{cjs → build/types}/math/isDivisible/index.d.ts +0 -0
- package/{cjs → build/types}/math/isDivisible/shim.d.ts +0 -0
- package/{cjs → build/types}/math/isEven/index.d.ts +0 -0
- package/{cjs → build/types}/math/isEven/shim.d.ts +0 -0
- package/{cjs → build/types}/math/isPrime/index.d.ts +0 -0
- package/{cjs → build/types}/math/isPrime/shim.d.ts +0 -0
- package/{cjs → build/types}/math/lcm/index.d.ts +0 -0
- package/{cjs → build/types}/math/lcm/shim.d.ts +0 -0
- package/{cjs → build/types}/math/primes/index.d.ts +0 -0
- package/{cjs → build/types}/math/primes/shim.d.ts +0 -0
- package/{cjs → build/types}/math/radsToDegrees/index.d.ts +0 -0
- package/{cjs → build/types}/math/radsToDegrees/shim.d.ts +0 -0
- package/{cjs → build/types}/math/shim.d.ts +0 -0
- package/{cjs → build/types}/number/digitize/index.d.ts +0 -0
- package/{cjs → build/types}/number/digitize/shim.d.ts +0 -0
- package/{cjs → build/types}/number/equals/index.d.ts +0 -0
- package/{cjs → build/types}/number/equals/shim.d.ts +0 -0
- package/{cjs → build/types}/number/inRange/index.d.ts +0 -0
- package/{cjs → build/types}/number/inRange/shim.d.ts +0 -0
- package/{cjs → build/types}/number/index.d.ts +0 -0
- package/{cjs → build/types}/number/isNumber/index.d.ts +0 -0
- package/{cjs → build/types}/number/isNumber/shim.d.ts +0 -0
- package/{cjs → build/types}/number/shim.d.ts +0 -0
- package/{cjs → build/types}/object/assign/index.d.ts +0 -0
- package/{cjs → build/types}/object/assign/shim.d.ts +0 -0
- package/{cjs → build/types}/object/camelCaseKeys/index.d.ts +0 -0
- package/{cjs → build/types}/object/camelCaseKeys/shim.d.ts +0 -0
- package/{cjs → build/types}/object/clone/index.d.ts +0 -0
- package/{cjs → build/types}/object/clone/shim.d.ts +0 -0
- package/{cjs → build/types}/object/defaults/index.d.ts +0 -0
- package/{cjs → build/types}/object/defaults/shim.d.ts +0 -0
- package/{cjs → build/types}/object/dig/index.d.ts +0 -0
- package/{cjs → build/types}/object/dig/shim.d.ts +0 -0
- package/{cjs → build/types}/object/empty/index.d.ts +0 -0
- package/{cjs → build/types}/object/empty/shim.d.ts +0 -0
- package/{cjs → build/types}/object/equals/index.d.ts +0 -0
- package/{cjs → build/types}/object/equals/shim.d.ts +0 -0
- package/{cjs → build/types}/object/flatten/index.d.ts +0 -0
- package/{cjs → build/types}/object/flatten/shim.d.ts +0 -0
- package/{cjs → build/types}/object/forEach/index.d.ts +0 -0
- package/{cjs → build/types}/object/forEach/shim.d.ts +0 -0
- package/{cjs → build/types}/object/get/index.d.ts +0 -0
- package/{cjs → build/types}/object/get/shim.d.ts +0 -0
- package/{cjs → build/types}/object/index.d.ts +0 -0
- package/{cjs → build/types}/object/invert/index.d.ts +0 -0
- package/{cjs → build/types}/object/invert/shim.d.ts +0 -0
- package/{cjs → build/types}/object/isEmpty/index.d.ts +0 -0
- package/{cjs → build/types}/object/isEmpty/shim.d.ts +0 -0
- package/{cjs → build/types}/object/isObject/index.d.ts +0 -0
- package/{cjs → build/types}/object/isObject/shim.d.ts +0 -0
- package/{cjs → build/types}/object/isObjectLike/index.d.ts +0 -0
- package/{cjs → build/types}/object/isObjectLike/shim.d.ts +0 -0
- package/{cjs → build/types}/object/isPlainObject/index.d.ts +0 -0
- package/{cjs → build/types}/object/isPlainObject/shim.d.ts +0 -0
- package/{cjs → build/types}/object/kebabCaseKeys/index.d.ts +0 -0
- package/{cjs → build/types}/object/kebabCaseKeys/shim.d.ts +0 -0
- package/{cjs → build/types}/object/keys/index.d.ts +0 -0
- package/{cjs → build/types}/object/keys/shim.d.ts +0 -0
- package/{cjs → build/types}/object/lowerCaseKeys/index.d.ts +0 -0
- package/{cjs → build/types}/object/lowerCaseKeys/shim.d.ts +0 -0
- package/{cjs → build/types}/object/map/index.d.ts +0 -0
- package/{cjs → build/types}/object/map/shim.d.ts +0 -0
- package/{cjs → build/types}/object/mapKeys/index.d.ts +0 -0
- package/{cjs → build/types}/object/mapKeys/shim.d.ts +0 -0
- package/{cjs → build/types}/object/mapValues/index.d.ts +0 -0
- package/{cjs → build/types}/object/mapValues/shim.d.ts +0 -0
- package/{cjs → build/types}/object/merge/index.d.ts +0 -0
- package/{cjs → build/types}/object/merge/shim.d.ts +0 -0
- package/{cjs → build/types}/object/omit/index.d.ts +0 -0
- package/{cjs → build/types}/object/omit/shim.d.ts +0 -0
- package/{cjs → build/types}/object/reduce/index.d.ts +0 -0
- package/{cjs → build/types}/object/reduce/shim.d.ts +0 -0
- package/{cjs → build/types}/object/set/index.d.ts +0 -0
- package/{cjs → build/types}/object/set/shim.d.ts +0 -0
- package/{cjs → build/types}/object/shim.d.ts +0 -0
- package/{cjs → build/types}/object/size/index.d.ts +0 -0
- package/{cjs → build/types}/object/size/shim.d.ts +0 -0
- package/{cjs → build/types}/object/snakeCaseKeys/index.d.ts +0 -0
- package/{cjs → build/types}/object/snakeCaseKeys/shim.d.ts +0 -0
- package/{cjs → build/types}/object/values/index.d.ts +0 -0
- package/{cjs → build/types}/object/values/shim.d.ts +0 -0
- package/{cjs → build/types}/shim.d.ts +0 -0
- package/{cjs → build/types}/string/base64/index.d.ts +0 -0
- package/{cjs → build/types}/string/base64/shim.d.ts +0 -0
- package/{cjs → build/types}/string/base64Decode/index.d.ts +0 -0
- package/{cjs → build/types}/string/base64Decode/shim.d.ts +0 -0
- package/{cjs → build/types}/string/camelCase/index.d.ts +0 -0
- package/{cjs → build/types}/string/camelCase/shim.d.ts +0 -0
- package/{cjs → build/types}/string/capitalize/index.d.ts +0 -0
- package/{cjs → build/types}/string/capitalize/shim.d.ts +0 -0
- package/{cjs → build/types}/string/chars/index.d.ts +0 -0
- package/{cjs → build/types}/string/chars/shim.d.ts +0 -0
- package/{cjs → build/types}/string/contains/index.d.ts +0 -0
- package/{cjs → build/types}/string/contains/shim.d.ts +0 -0
- package/{cjs → build/types}/string/decapitalize/index.d.ts +0 -0
- package/{cjs → build/types}/string/decapitalize/shim.d.ts +0 -0
- package/{cjs → build/types}/string/equals/index.d.ts +0 -0
- package/{cjs → build/types}/string/equals/shim.d.ts +0 -0
- package/{cjs → build/types}/string/forEach/index.d.ts +0 -0
- package/{cjs → build/types}/string/forEach/shim.d.ts +0 -0
- package/{cjs → build/types}/string/humanize/index.d.ts +0 -0
- package/{cjs → build/types}/string/humanize/shim.d.ts +0 -0
- package/{cjs → build/types}/string/index.d.ts +0 -0
- package/{cjs → build/types}/string/isEmpty/index.d.ts +0 -0
- package/{cjs → build/types}/string/isEmpty/shim.d.ts +0 -0
- package/{cjs → build/types}/string/isString/index.d.ts +0 -0
- package/{cjs → build/types}/string/isString/shim.d.ts +0 -0
- package/{cjs → build/types}/string/kebabCase/index.d.ts +0 -0
- package/{cjs → build/types}/string/kebabCase/shim.d.ts +0 -0
- package/{cjs → build/types}/string/lines/index.d.ts +0 -0
- package/{cjs → build/types}/string/lines/shim.d.ts +0 -0
- package/{cjs → build/types}/string/map/index.d.ts +0 -0
- package/{cjs → build/types}/string/map/shim.d.ts +0 -0
- package/{cjs → build/types}/string/mask/index.d.ts +0 -0
- package/{cjs → build/types}/string/mask/shim.d.ts +0 -0
- package/{cjs → build/types}/string/pad/index.d.ts +0 -0
- package/{cjs → build/types}/string/pad/shim.d.ts +0 -0
- package/{cjs → build/types}/string/parseInt/index.d.ts +0 -0
- package/{cjs → build/types}/string/parseInt/shim.d.ts +0 -0
- package/{cjs → build/types}/string/pluralize/index.d.ts +0 -0
- package/{cjs → build/types}/string/pluralize/shim.d.ts +0 -0
- package/{cjs → build/types}/string/reduce/index.d.ts +0 -0
- package/{cjs → build/types}/string/reduce/shim.d.ts +0 -0
- package/{cjs → build/types}/string/repeat/index.d.ts +0 -0
- package/{cjs → build/types}/string/repeat/shim.d.ts +0 -0
- package/{cjs → build/types}/string/reverse/index.d.ts +0 -0
- package/{cjs → build/types}/string/reverse/shim.d.ts +0 -0
- package/{cjs → build/types}/string/shim.d.ts +0 -0
- package/{cjs → build/types}/string/snakeCase/index.d.ts +0 -0
- package/{cjs → build/types}/string/snakeCase/shim.d.ts +0 -0
- package/{cjs → build/types}/string/swapCase/index.d.ts +0 -0
- package/{cjs → build/types}/string/swapCase/shim.d.ts +0 -0
- package/{cjs → build/types}/string/truncate/index.d.ts +0 -0
- package/{cjs → build/types}/string/truncate/shim.d.ts +0 -0
- package/{cjs → build/types}/string/words/index.d.ts +0 -0
- package/{cjs → build/types}/string/words/shim.d.ts +0 -0
- package/{cjs → build/types}/utils.d.ts +0 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1413 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/enums/array_orderBy.ORDER.html +1 -0
- package/docs/enums/utils.OPERATOR.html +1 -0
- package/docs/index.html +85 -0
- package/docs/modules/array.html +1 -0
- package/docs/modules/array_all.html +1 -0
- package/docs/modules/array_any.html +1 -0
- package/docs/modules/array_append.html +1 -0
- package/docs/modules/array_average.html +1 -0
- package/docs/modules/array_chunk.html +1 -0
- package/docs/modules/array_clone.html +1 -0
- package/docs/modules/array_compact.html +1 -0
- package/docs/modules/array_contains.html +1 -0
- package/docs/modules/array_count.html +1 -0
- package/docs/modules/array_countBy.html +1 -0
- package/docs/modules/array_crossJoin.html +1 -0
- package/docs/modules/array_deepFlatten.html +1 -0
- package/docs/modules/array_diff.html +1 -0
- package/docs/modules/array_distinct.html +1 -0
- package/docs/modules/array_distinctBy.html +1 -0
- package/docs/modules/array_empty.html +1 -0
- package/docs/modules/array_equals.html +1 -0
- package/docs/modules/array_everyNth.html +1 -0
- package/docs/modules/array_first.html +1 -0
- package/docs/modules/array_flatten.html +1 -0
- package/docs/modules/array_get.html +1 -0
- package/docs/modules/array_groupBy.html +1 -0
- package/docs/modules/array_implode.html +1 -0
- package/docs/modules/array_indexOfAll.html +1 -0
- package/docs/modules/array_initial.html +1 -0
- package/docs/modules/array_intersect.html +1 -0
- package/docs/modules/array_isEmpty.html +1 -0
- package/docs/modules/array_last.html +1 -0
- package/docs/modules/array_limit.html +1 -0
- package/docs/modules/array_max.html +1 -0
- package/docs/modules/array_median.html +1 -0
- package/docs/modules/array_merge.html +1 -0
- package/docs/modules/array_min.html +1 -0
- package/docs/modules/array_nest.html +1 -0
- package/docs/modules/array_orderBy.html +1 -0
- package/docs/modules/array_pad.html +1 -0
- package/docs/modules/array_partition.html +1 -0
- package/docs/modules/array_pluck.html +1 -0
- package/docs/modules/array_prepend.html +1 -0
- package/docs/modules/array_pull.html +1 -0
- package/docs/modules/array_range.html +1 -0
- package/docs/modules/array_repeat.html +1 -0
- package/docs/modules/array_sample.html +1 -0
- package/docs/modules/array_shuffle.html +1 -0
- package/docs/modules/array_skip.html +1 -0
- package/docs/modules/array_sortBy.html +1 -0
- package/docs/modules/array_sum.html +1 -0
- package/docs/modules/array_tail.html +1 -0
- package/docs/modules/array_toCSV.html +1 -0
- package/docs/modules/array_union.html +1 -0
- package/docs/modules/array_unwind.html +1 -0
- package/docs/modules/array_where.html +1 -0
- package/docs/modules/array_whereBetween.html +1 -0
- package/docs/modules/array_whereIn.html +1 -0
- package/docs/modules/array_whereLike.html +1 -0
- package/docs/modules/array_whereNotBetween.html +1 -0
- package/docs/modules/array_whereNotIn.html +1 -0
- package/docs/modules/array_whereNotLike.html +1 -0
- package/docs/modules/array_whereNotNull.html +1 -0
- package/docs/modules/array_whereNull.html +1 -0
- package/docs/modules/array_zip.html +1 -0
- package/docs/modules/array_zipObject.html +1 -0
- package/docs/modules/boolean.html +1 -0
- package/docs/modules/boolean_isBoolean.html +1 -0
- package/docs/modules/date.html +1 -0
- package/docs/modules/date_equals.html +1 -0
- package/docs/modules/date_isDate.html +1 -0
- package/docs/modules/date_today.html +1 -0
- package/docs/modules/date_tomorrow.html +1 -0
- package/docs/modules/date_yesterday.html +1 -0
- package/docs/modules/function.html +1 -0
- package/docs/modules/function_cache.html +1 -0
- package/docs/modules/function_defer.html +1 -0
- package/docs/modules/function_isFunction.html +1 -0
- package/docs/modules/function_once.html +1 -0
- package/docs/modules/globals.html +1 -0
- package/docs/modules/globals_isBrowser.html +1 -0
- package/docs/modules/index.html +1 -0
- package/docs/modules/math.html +1 -0
- package/docs/modules/math_average.html +1 -0
- package/docs/modules/math_degreesToRads.html +1 -0
- package/docs/modules/math_factorial.html +1 -0
- package/docs/modules/math_fibonacci.html +1 -0
- package/docs/modules/math_gcd.html +1 -0
- package/docs/modules/math_isDivisible.html +1 -0
- package/docs/modules/math_isEven.html +1 -0
- package/docs/modules/math_isPrime.html +1 -0
- package/docs/modules/math_lcm.html +1 -0
- package/docs/modules/math_primes.html +1 -0
- package/docs/modules/math_radsToDegrees.html +1 -0
- package/docs/modules/number.html +1 -0
- package/docs/modules/number_digitize.html +1 -0
- package/docs/modules/number_equals.html +1 -0
- package/docs/modules/number_inRange.html +1 -0
- package/docs/modules/number_isNumber.html +1 -0
- package/docs/modules/object.html +1 -0
- package/docs/modules/object_assign.html +1 -0
- package/docs/modules/object_camelCaseKeys.html +1 -0
- package/docs/modules/object_clone.html +1 -0
- package/docs/modules/object_defaults.html +1 -0
- package/docs/modules/object_dig.html +1 -0
- package/docs/modules/object_empty.html +1 -0
- package/docs/modules/object_equals.html +1 -0
- package/docs/modules/object_flatten.html +1 -0
- package/docs/modules/object_forEach.html +1 -0
- package/docs/modules/object_get.html +1 -0
- package/docs/modules/object_invert.html +1 -0
- package/docs/modules/object_isEmpty.html +1 -0
- package/docs/modules/object_isObject.html +1 -0
- package/docs/modules/object_isObjectLike.html +1 -0
- package/docs/modules/object_isPlainObject.html +1 -0
- package/docs/modules/object_kebabCaseKeys.html +1 -0
- package/docs/modules/object_keys.html +1 -0
- package/docs/modules/object_lowerCaseKeys.html +1 -0
- package/docs/modules/object_map.html +1 -0
- package/docs/modules/object_mapKeys.html +1 -0
- package/docs/modules/object_mapValues.html +1 -0
- package/docs/modules/object_merge.html +1 -0
- package/docs/modules/object_omit.html +1 -0
- package/docs/modules/object_reduce.html +1 -0
- package/docs/modules/object_set.html +1 -0
- package/docs/modules/object_size.html +1 -0
- package/docs/modules/object_snakeCaseKeys.html +1 -0
- package/docs/modules/object_values.html +1 -0
- package/docs/modules/string.html +1 -0
- package/docs/modules/string_base64.html +1 -0
- package/docs/modules/string_base64Decode.html +1 -0
- package/docs/modules/string_camelCase.html +1 -0
- package/docs/modules/string_capitalize.html +1 -0
- package/docs/modules/string_chars.html +1 -0
- package/docs/modules/string_contains.html +1 -0
- package/docs/modules/string_decapitalize.html +1 -0
- package/docs/modules/string_equals.html +1 -0
- package/docs/modules/string_forEach.html +1 -0
- package/docs/modules/string_humanize.html +1 -0
- package/docs/modules/string_isEmpty.html +1 -0
- package/docs/modules/string_isString.html +1 -0
- package/docs/modules/string_kebabCase.html +1 -0
- package/docs/modules/string_lines.html +1 -0
- package/docs/modules/string_map.html +1 -0
- package/docs/modules/string_mask.html +1 -0
- package/docs/modules/string_pad.html +1 -0
- package/docs/modules/string_parseInt.html +1 -0
- package/docs/modules/string_pluralize.html +1 -0
- package/docs/modules/string_reduce.html +1 -0
- package/docs/modules/string_repeat.html +1 -0
- package/docs/modules/string_reverse.html +1 -0
- package/docs/modules/string_snakeCase.html +1 -0
- package/docs/modules/string_swapCase.html +1 -0
- package/docs/modules/string_truncate.html +1 -0
- package/docs/modules/string_words.html +1 -0
- package/docs/modules/utils.html +7 -0
- package/docs/modules.html +1 -0
- package/package.json +704 -630
- package/scripts/docs.js +11 -0
- package/scripts/post-build.sh +2 -2
- package/scripts/pre-build.sh +2 -3
- package/scripts/regenerate-package-json.js +35 -14
- package/src/boolean/isBoolean/shim.ts +1 -1
- package/tsconfig.esm.json +11 -0
- package/tsconfig.json +2 -2
- package/typedoc.json +7 -0
- package/cjs/array/all/index.js.map +0 -1
- package/cjs/array/all/shim.js.map +0 -1
- package/cjs/array/any/index.js.map +0 -1
- package/cjs/array/any/shim.js.map +0 -1
- package/cjs/array/append/index.js.map +0 -1
- package/cjs/array/append/shim.js.map +0 -1
- package/cjs/array/average/index.js.map +0 -1
- package/cjs/array/average/shim.js.map +0 -1
- package/cjs/array/chunk/index.js.map +0 -1
- package/cjs/array/chunk/shim.js.map +0 -1
- package/cjs/array/clone/index.js.map +0 -1
- package/cjs/array/clone/shim.js.map +0 -1
- package/cjs/array/compact/index.js.map +0 -1
- package/cjs/array/compact/shim.js.map +0 -1
- package/cjs/array/contains/index.js.map +0 -1
- package/cjs/array/contains/shim.js.map +0 -1
- package/cjs/array/count/index.js.map +0 -1
- package/cjs/array/count/shim.js.map +0 -1
- package/cjs/array/countBy/index.js.map +0 -1
- package/cjs/array/countBy/shim.js.map +0 -1
- package/cjs/array/crossJoin/index.js.map +0 -1
- package/cjs/array/crossJoin/shim.js.map +0 -1
- package/cjs/array/deepFlatten/index.js.map +0 -1
- package/cjs/array/deepFlatten/shim.js.map +0 -1
- package/cjs/array/diff/index.js.map +0 -1
- package/cjs/array/diff/shim.js.map +0 -1
- package/cjs/array/distinct/index.js.map +0 -1
- package/cjs/array/distinct/shim.js.map +0 -1
- package/cjs/array/distinctBy/index.js.map +0 -1
- package/cjs/array/distinctBy/shim.js.map +0 -1
- package/cjs/array/empty/index.js.map +0 -1
- package/cjs/array/empty/shim.js.map +0 -1
- package/cjs/array/equals/index.js.map +0 -1
- package/cjs/array/equals/shim.js.map +0 -1
- package/cjs/array/everyNth/index.js.map +0 -1
- package/cjs/array/everyNth/shim.js.map +0 -1
- package/cjs/array/first/index.js.map +0 -1
- package/cjs/array/first/shim.js.map +0 -1
- package/cjs/array/flatten/index.js.map +0 -1
- package/cjs/array/flatten/shim.js.map +0 -1
- package/cjs/array/get/index.js.map +0 -1
- package/cjs/array/get/shim.js.map +0 -1
- package/cjs/array/groupBy/index.js.map +0 -1
- package/cjs/array/groupBy/shim.js.map +0 -1
- package/cjs/array/implode/index.js.map +0 -1
- package/cjs/array/implode/shim.js.map +0 -1
- package/cjs/array/index.js.map +0 -1
- package/cjs/array/indexOfAll/index.js.map +0 -1
- package/cjs/array/indexOfAll/shim.js.map +0 -1
- package/cjs/array/initial/index.js.map +0 -1
- package/cjs/array/initial/shim.js.map +0 -1
- package/cjs/array/intersect/index.js.map +0 -1
- package/cjs/array/intersect/shim.js.map +0 -1
- package/cjs/array/isEmpty/index.js.map +0 -1
- package/cjs/array/isEmpty/shim.js.map +0 -1
- package/cjs/array/last/index.js.map +0 -1
- package/cjs/array/last/shim.js.map +0 -1
- package/cjs/array/limit/index.js.map +0 -1
- package/cjs/array/limit/shim.js.map +0 -1
- package/cjs/array/max/index.js.map +0 -1
- package/cjs/array/max/shim.js.map +0 -1
- package/cjs/array/median/index.js.map +0 -1
- package/cjs/array/median/shim.js.map +0 -1
- package/cjs/array/merge/index.js.map +0 -1
- package/cjs/array/merge/shim.js.map +0 -1
- package/cjs/array/min/index.js.map +0 -1
- package/cjs/array/min/shim.js.map +0 -1
- package/cjs/array/nest/index.js.map +0 -1
- package/cjs/array/nest/shim.js.map +0 -1
- package/cjs/array/orderBy/index.js.map +0 -1
- package/cjs/array/orderBy/shim.js.map +0 -1
- package/cjs/array/pad/index.js.map +0 -1
- package/cjs/array/pad/shim.js.map +0 -1
- package/cjs/array/partition/index.js.map +0 -1
- package/cjs/array/partition/shim.js.map +0 -1
- package/cjs/array/pluck/index.js.map +0 -1
- package/cjs/array/pluck/shim.js.map +0 -1
- package/cjs/array/prepend/index.js.map +0 -1
- package/cjs/array/prepend/shim.js.map +0 -1
- package/cjs/array/pull/index.js.map +0 -1
- package/cjs/array/pull/shim.js.map +0 -1
- package/cjs/array/range/index.js.map +0 -1
- package/cjs/array/range/shim.js.map +0 -1
- package/cjs/array/repeat/index.js.map +0 -1
- package/cjs/array/repeat/shim.js.map +0 -1
- package/cjs/array/sample/index.js.map +0 -1
- package/cjs/array/sample/shim.js.map +0 -1
- package/cjs/array/shim.js.map +0 -1
- package/cjs/array/shuffle/index.js.map +0 -1
- package/cjs/array/shuffle/shim.js.map +0 -1
- package/cjs/array/skip/index.js.map +0 -1
- package/cjs/array/skip/shim.js.map +0 -1
- package/cjs/array/sortBy/index.js.map +0 -1
- package/cjs/array/sortBy/shim.js.map +0 -1
- package/cjs/array/sum/index.js.map +0 -1
- package/cjs/array/sum/shim.js.map +0 -1
- package/cjs/array/tail/index.js.map +0 -1
- package/cjs/array/tail/shim.js.map +0 -1
- package/cjs/array/toCSV/index.js.map +0 -1
- package/cjs/array/toCSV/shim.js.map +0 -1
- package/cjs/array/union/index.js.map +0 -1
- package/cjs/array/union/shim.js.map +0 -1
- package/cjs/array/unwind/index.js.map +0 -1
- package/cjs/array/unwind/shim.js.map +0 -1
- package/cjs/array/where/index.js.map +0 -1
- package/cjs/array/where/shim.js.map +0 -1
- package/cjs/array/whereBetween/index.js.map +0 -1
- package/cjs/array/whereBetween/shim.js.map +0 -1
- package/cjs/array/whereIn/index.js.map +0 -1
- package/cjs/array/whereIn/shim.js.map +0 -1
- package/cjs/array/whereLike/index.js.map +0 -1
- package/cjs/array/whereLike/shim.js.map +0 -1
- package/cjs/array/whereNotBetween/index.js.map +0 -1
- package/cjs/array/whereNotBetween/shim.js.map +0 -1
- package/cjs/array/whereNotIn/index.js.map +0 -1
- package/cjs/array/whereNotIn/shim.js.map +0 -1
- package/cjs/array/whereNotLike/index.js.map +0 -1
- package/cjs/array/whereNotLike/shim.js.map +0 -1
- package/cjs/array/whereNotNull/index.js.map +0 -1
- package/cjs/array/whereNotNull/shim.js.map +0 -1
- package/cjs/array/whereNull/index.js.map +0 -1
- package/cjs/array/whereNull/shim.js.map +0 -1
- package/cjs/array/zip/index.js.map +0 -1
- package/cjs/array/zip/shim.js.map +0 -1
- package/cjs/array/zipObject/index.js.map +0 -1
- package/cjs/array/zipObject/shim.js.map +0 -1
- package/cjs/boolean/index.js.map +0 -1
- package/cjs/boolean/isBoolean/index.js.map +0 -1
- package/cjs/boolean/isBoolean/shim.js +0 -18
- package/cjs/boolean/isBoolean/shim.js.map +0 -1
- package/cjs/boolean/shim.js.map +0 -1
- package/cjs/date/equals/index.js.map +0 -1
- package/cjs/date/equals/shim.js.map +0 -1
- package/cjs/date/index.js.map +0 -1
- package/cjs/date/isDate/index.js.map +0 -1
- package/cjs/date/isDate/shim.js.map +0 -1
- package/cjs/date/shim.js.map +0 -1
- package/cjs/date/today/index.js.map +0 -1
- package/cjs/date/today/shim.js.map +0 -1
- package/cjs/date/tomorrow/index.js.map +0 -1
- package/cjs/date/tomorrow/shim.js.map +0 -1
- package/cjs/date/yesterday/index.js.map +0 -1
- package/cjs/date/yesterday/shim.js.map +0 -1
- package/cjs/function/cache/index.js.map +0 -1
- package/cjs/function/cache/shim.js.map +0 -1
- package/cjs/function/defer/index.js.map +0 -1
- package/cjs/function/defer/shim.js.map +0 -1
- package/cjs/function/index.js.map +0 -1
- package/cjs/function/isFunction/index.js.map +0 -1
- package/cjs/function/isFunction/shim.js.map +0 -1
- package/cjs/function/once/index.js.map +0 -1
- package/cjs/function/once/shim.js.map +0 -1
- package/cjs/function/shim.js.map +0 -1
- package/cjs/globals/index.js.map +0 -1
- package/cjs/globals/isBrowser/index.js.map +0 -1
- package/cjs/globals/isBrowser/shim.js.map +0 -1
- package/cjs/globals/shim.js.map +0 -1
- package/cjs/index.js +0 -32
- package/cjs/index.js.map +0 -1
- package/cjs/math/average/index.js.map +0 -1
- package/cjs/math/average/shim.js.map +0 -1
- package/cjs/math/degreesToRads/index.js.map +0 -1
- package/cjs/math/degreesToRads/shim.js.map +0 -1
- package/cjs/math/factorial/index.js.map +0 -1
- package/cjs/math/factorial/shim.js.map +0 -1
- package/cjs/math/fibonacci/index.js.map +0 -1
- package/cjs/math/fibonacci/shim.js.map +0 -1
- package/cjs/math/gcd/index.js.map +0 -1
- package/cjs/math/gcd/shim.js.map +0 -1
- package/cjs/math/index.js.map +0 -1
- package/cjs/math/isDivisible/index.js.map +0 -1
- package/cjs/math/isDivisible/shim.js.map +0 -1
- package/cjs/math/isEven/index.js.map +0 -1
- package/cjs/math/isEven/shim.js.map +0 -1
- package/cjs/math/isPrime/index.js.map +0 -1
- package/cjs/math/isPrime/shim.js.map +0 -1
- package/cjs/math/lcm/index.js.map +0 -1
- package/cjs/math/lcm/shim.js.map +0 -1
- package/cjs/math/primes/index.js.map +0 -1
- package/cjs/math/primes/shim.js.map +0 -1
- package/cjs/math/radsToDegrees/index.js.map +0 -1
- package/cjs/math/radsToDegrees/shim.js.map +0 -1
- package/cjs/math/shim.js.map +0 -1
- package/cjs/number/digitize/index.js.map +0 -1
- package/cjs/number/digitize/shim.js.map +0 -1
- package/cjs/number/equals/index.js.map +0 -1
- package/cjs/number/equals/shim.js.map +0 -1
- package/cjs/number/inRange/index.js.map +0 -1
- package/cjs/number/inRange/shim.js.map +0 -1
- package/cjs/number/index.js.map +0 -1
- package/cjs/number/isNumber/index.js.map +0 -1
- package/cjs/number/isNumber/shim.js.map +0 -1
- package/cjs/number/shim.js.map +0 -1
- package/cjs/object/assign/index.js.map +0 -1
- package/cjs/object/assign/shim.js.map +0 -1
- package/cjs/object/camelCaseKeys/index.js.map +0 -1
- package/cjs/object/camelCaseKeys/shim.js.map +0 -1
- package/cjs/object/clone/index.js.map +0 -1
- package/cjs/object/clone/shim.js.map +0 -1
- package/cjs/object/defaults/index.js.map +0 -1
- package/cjs/object/defaults/shim.js.map +0 -1
- package/cjs/object/dig/index.js.map +0 -1
- package/cjs/object/dig/shim.js.map +0 -1
- package/cjs/object/empty/index.js.map +0 -1
- package/cjs/object/empty/shim.js.map +0 -1
- package/cjs/object/equals/index.js.map +0 -1
- package/cjs/object/equals/shim.js.map +0 -1
- package/cjs/object/flatten/index.js.map +0 -1
- package/cjs/object/flatten/shim.js.map +0 -1
- package/cjs/object/forEach/index.js.map +0 -1
- package/cjs/object/forEach/shim.js.map +0 -1
- package/cjs/object/get/index.js.map +0 -1
- package/cjs/object/get/shim.js.map +0 -1
- package/cjs/object/index.js.map +0 -1
- package/cjs/object/invert/index.js.map +0 -1
- package/cjs/object/invert/shim.js.map +0 -1
- package/cjs/object/isEmpty/index.js.map +0 -1
- package/cjs/object/isEmpty/shim.js.map +0 -1
- package/cjs/object/isObject/index.js.map +0 -1
- package/cjs/object/isObject/shim.js.map +0 -1
- package/cjs/object/isObjectLike/index.js.map +0 -1
- package/cjs/object/isObjectLike/shim.js.map +0 -1
- package/cjs/object/isPlainObject/index.js.map +0 -1
- package/cjs/object/isPlainObject/shim.js.map +0 -1
- package/cjs/object/kebabCaseKeys/index.js.map +0 -1
- package/cjs/object/kebabCaseKeys/shim.js.map +0 -1
- package/cjs/object/keys/index.js.map +0 -1
- package/cjs/object/keys/shim.js.map +0 -1
- package/cjs/object/lowerCaseKeys/index.js.map +0 -1
- package/cjs/object/lowerCaseKeys/shim.js.map +0 -1
- package/cjs/object/map/index.js.map +0 -1
- package/cjs/object/map/shim.js.map +0 -1
- package/cjs/object/mapKeys/index.js.map +0 -1
- package/cjs/object/mapKeys/shim.js.map +0 -1
- package/cjs/object/mapValues/index.js.map +0 -1
- package/cjs/object/mapValues/shim.js.map +0 -1
- package/cjs/object/merge/index.js.map +0 -1
- package/cjs/object/merge/shim.js.map +0 -1
- package/cjs/object/omit/index.js.map +0 -1
- package/cjs/object/omit/shim.js.map +0 -1
- package/cjs/object/reduce/index.js.map +0 -1
- package/cjs/object/reduce/shim.js.map +0 -1
- package/cjs/object/set/index.js.map +0 -1
- package/cjs/object/set/shim.js.map +0 -1
- package/cjs/object/shim.js.map +0 -1
- package/cjs/object/size/index.js.map +0 -1
- package/cjs/object/size/shim.js.map +0 -1
- package/cjs/object/snakeCaseKeys/index.js.map +0 -1
- package/cjs/object/snakeCaseKeys/shim.js.map +0 -1
- package/cjs/object/values/index.js.map +0 -1
- package/cjs/object/values/shim.js.map +0 -1
- package/cjs/shim.js.map +0 -1
- package/cjs/string/base64/index.js.map +0 -1
- package/cjs/string/base64/shim.js.map +0 -1
- package/cjs/string/base64Decode/index.js.map +0 -1
- package/cjs/string/base64Decode/shim.js.map +0 -1
- package/cjs/string/camelCase/index.js.map +0 -1
- package/cjs/string/camelCase/shim.js.map +0 -1
- package/cjs/string/capitalize/index.js.map +0 -1
- package/cjs/string/capitalize/shim.js.map +0 -1
- package/cjs/string/chars/index.js.map +0 -1
- package/cjs/string/chars/shim.js.map +0 -1
- package/cjs/string/contains/index.js.map +0 -1
- package/cjs/string/contains/shim.js.map +0 -1
- package/cjs/string/decapitalize/index.js.map +0 -1
- package/cjs/string/decapitalize/shim.js.map +0 -1
- package/cjs/string/equals/index.js.map +0 -1
- package/cjs/string/equals/shim.js.map +0 -1
- package/cjs/string/forEach/index.js.map +0 -1
- package/cjs/string/forEach/shim.js.map +0 -1
- package/cjs/string/humanize/index.js.map +0 -1
- package/cjs/string/humanize/shim.js.map +0 -1
- package/cjs/string/index.js.map +0 -1
- package/cjs/string/isEmpty/index.js.map +0 -1
- package/cjs/string/isEmpty/shim.js.map +0 -1
- package/cjs/string/isString/index.js.map +0 -1
- package/cjs/string/isString/shim.js.map +0 -1
- package/cjs/string/kebabCase/index.js.map +0 -1
- package/cjs/string/kebabCase/shim.js.map +0 -1
- package/cjs/string/lines/index.js.map +0 -1
- package/cjs/string/lines/shim.js.map +0 -1
- package/cjs/string/map/index.js.map +0 -1
- package/cjs/string/map/shim.js.map +0 -1
- package/cjs/string/mask/index.js.map +0 -1
- package/cjs/string/mask/shim.js.map +0 -1
- package/cjs/string/pad/index.js.map +0 -1
- package/cjs/string/pad/shim.js.map +0 -1
- package/cjs/string/parseInt/index.js.map +0 -1
- package/cjs/string/parseInt/shim.js.map +0 -1
- package/cjs/string/pluralize/index.js.map +0 -1
- package/cjs/string/pluralize/shim.js.map +0 -1
- package/cjs/string/reduce/index.js.map +0 -1
- package/cjs/string/reduce/shim.js.map +0 -1
- package/cjs/string/repeat/index.js.map +0 -1
- package/cjs/string/repeat/shim.js.map +0 -1
- package/cjs/string/reverse/index.js.map +0 -1
- package/cjs/string/reverse/shim.js.map +0 -1
- package/cjs/string/shim.js.map +0 -1
- package/cjs/string/snakeCase/index.js.map +0 -1
- package/cjs/string/snakeCase/shim.js.map +0 -1
- package/cjs/string/swapCase/index.js.map +0 -1
- package/cjs/string/swapCase/shim.js.map +0 -1
- package/cjs/string/truncate/index.js.map +0 -1
- package/cjs/string/truncate/shim.js.map +0 -1
- package/cjs/string/words/index.js.map +0 -1
- package/cjs/string/words/shim.js.map +0 -1
- package/cjs/utils.js.map +0 -1
- package/docs/README.md +0 -2441
- package/docs/_config.yml +0 -1
- package/scripts/doc.js +0 -21
- package/tsconfig.es.json +0 -9
package/docs/README.md
DELETED
|
@@ -1,2441 +0,0 @@
|
|
|
1
|
-
# Documents
|
|
2
|
-
|
|
3
|
-
## Objects
|
|
4
|
-
|
|
5
|
-
<dl>
|
|
6
|
-
<dt><a href="#Array">Array</a> : <code>object</code></dt>
|
|
7
|
-
<dd></dd>
|
|
8
|
-
<dt><a href="#Boolean">Boolean</a> : <code>object</code></dt>
|
|
9
|
-
<dd></dd>
|
|
10
|
-
<dt><a href="#Date">Date</a> : <code>object</code></dt>
|
|
11
|
-
<dd></dd>
|
|
12
|
-
<dt><a href="#Function">Function</a> : <code>object</code></dt>
|
|
13
|
-
<dd></dd>
|
|
14
|
-
<dt><a href="#global">global</a> : <code>object</code></dt>
|
|
15
|
-
<dd></dd>
|
|
16
|
-
<dt><a href="#Math">Math</a> : <code>object</code></dt>
|
|
17
|
-
<dd></dd>
|
|
18
|
-
<dt><a href="#Number">Number</a> : <code>object</code></dt>
|
|
19
|
-
<dd></dd>
|
|
20
|
-
<dt><a href="#Object">Object</a> : <code>object</code></dt>
|
|
21
|
-
<dd></dd>
|
|
22
|
-
<dt><a href="#String">String</a> : <code>object</code></dt>
|
|
23
|
-
<dd></dd>
|
|
24
|
-
</dl>
|
|
25
|
-
|
|
26
|
-
<a name="Array"></a>
|
|
27
|
-
|
|
28
|
-
## Array : <code>object</code>
|
|
29
|
-
**Kind**: global namespace
|
|
30
|
-
|
|
31
|
-
* [Array](#Array) : <code>object</code>
|
|
32
|
-
* _instance_
|
|
33
|
-
* [.all([fn])](#Array+all) ⇒ [<code>Boolean</code>](#Boolean)
|
|
34
|
-
* [.any([fn])](#Array+any) ⇒ [<code>Boolean</code>](#Boolean)
|
|
35
|
-
* [.append(value)](#Array+append) ⇒ [<code>Number</code>](#Number)
|
|
36
|
-
* [.average([path])](#Array+average) ⇒ [<code>Number</code>](#Number)
|
|
37
|
-
* [.avg([path])](#Array+avg) ⇒ [<code>Number</code>](#Number)
|
|
38
|
-
* [.chunk(size)](#Array+chunk) ⇒ [<code>Array.<Array></code>](#Array)
|
|
39
|
-
* [.clone([deep])](#Array+clone) ⇒ [<code>Array</code>](#Array)
|
|
40
|
-
* [.compact()](#Array+compact) ⇒ [<code>Array</code>](#Array)
|
|
41
|
-
* [.contains(value)](#Array+contains) ⇒ [<code>Boolean</code>](#Boolean)
|
|
42
|
-
* [.count([value])](#Array+count) ⇒ [<code>Number</code>](#Number)
|
|
43
|
-
* [.countBy(fn)](#Array+countBy) ⇒ [<code>Object</code>](#Object)
|
|
44
|
-
* [.crossJoin(array)](#Array+crossJoin) ⇒ [<code>Array.<Array></code>](#Array)
|
|
45
|
-
* [.deepFlatten()](#Array+deepFlatten) ⇒ [<code>Array</code>](#Array)
|
|
46
|
-
* [.diff(array, [comp])](#Array+diff) ⇒ [<code>Array</code>](#Array)
|
|
47
|
-
* [.distinct([fn])](#Array+distinct) ⇒ [<code>Array</code>](#Array)
|
|
48
|
-
* [.distinctBy(fn)](#Array+distinctBy) ⇒ [<code>Array</code>](#Array)
|
|
49
|
-
* [.empty()](#Array+empty)
|
|
50
|
-
* [.equals(value)](#Array+equals) ⇒ [<code>Boolean</code>](#Boolean)
|
|
51
|
-
* [.everyNth()](#Array+everyNth) ⇒ [<code>Array</code>](#Array)
|
|
52
|
-
* [.first()](#Array+first) ⇒ <code>\*</code>
|
|
53
|
-
* [.flatten([depth])](#Array+flatten) ⇒ [<code>Array</code>](#Array)
|
|
54
|
-
* [.get(index, [def])](#Array+get) ⇒ <code>\*</code>
|
|
55
|
-
* [.groupBy(fn)](#Array+groupBy) ⇒ [<code>Object</code>](#Object)
|
|
56
|
-
* [.implode(path, [separator])](#Array+implode) ⇒ [<code>String</code>](#String)
|
|
57
|
-
* [.indexOfAll(value)](#Array+indexOfAll) ⇒ [<code>Array.<Number></code>](#Number)
|
|
58
|
-
* [.initial()](#Array+initial) ⇒ [<code>Array</code>](#Array)
|
|
59
|
-
* [.intersect(array)](#Array+intersect) ⇒ [<code>Array</code>](#Array)
|
|
60
|
-
* [.isEmpty()](#Array+isEmpty) ⇒ [<code>Boolean</code>](#Boolean)
|
|
61
|
-
* [.last()](#Array+last) ⇒ <code>\*</code>
|
|
62
|
-
* [.limit([limit])](#Array+limit) ⇒ [<code>Array</code>](#Array)
|
|
63
|
-
* [.take([limit])](#Array+take) ⇒ [<code>Array</code>](#Array)
|
|
64
|
-
* [.max([path])](#Array+max) ⇒ [<code>Number</code>](#Number)
|
|
65
|
-
* [.median([path])](#Array+median) ⇒ [<code>Number</code>](#Number)
|
|
66
|
-
* [.merge(value)](#Array+merge)
|
|
67
|
-
* [.min([path])](#Array+min) ⇒ [<code>Number</code>](#Number)
|
|
68
|
-
* [.nest(link, key)](#Array+nest) ⇒ [<code>Array.<Object></code>](#Object)
|
|
69
|
-
* [.orderBy([field], [order])](#Array+orderBy) ⇒ [<code>Array</code>](#Array)
|
|
70
|
-
* [.pad(size, [value])](#Array+pad) ⇒ [<code>Array</code>](#Array)
|
|
71
|
-
* [.partition(fn)](#Array+partition) ⇒ [<code>Array</code>](#Array)
|
|
72
|
-
* [.pluck(path)](#Array+pluck) ⇒ [<code>Array</code>](#Array)
|
|
73
|
-
* [.prepend(value)](#Array+prepend)
|
|
74
|
-
* [.pull(args)](#Array+pull)
|
|
75
|
-
* [.sample()](#Array+sample) ⇒ <code>\*</code>
|
|
76
|
-
* [.shuffle()](#Array+shuffle) ⇒ [<code>Array</code>](#Array)
|
|
77
|
-
* [.skip([offset])](#Array+skip) ⇒ [<code>Array</code>](#Array)
|
|
78
|
-
* [.offset([offset])](#Array+offset) ⇒ [<code>Array</code>](#Array)
|
|
79
|
-
* [.sortBy(fn)](#Array+sortBy) ⇒ [<code>Array</code>](#Array)
|
|
80
|
-
* [.sum([path])](#Array+sum) ⇒ [<code>Number</code>](#Number)
|
|
81
|
-
* [.tail()](#Array+tail) ⇒ [<code>Array</code>](#Array)
|
|
82
|
-
* [.delimiter([delimiter])](#Array+delimiter) ⇒ [<code>String</code>](#String)
|
|
83
|
-
* [.union(array)](#Array+union) ⇒ [<code>Array</code>](#Array)
|
|
84
|
-
* [.unwind(path)](#Array+unwind) ⇒ <code>\*</code>
|
|
85
|
-
* [.where(field, [operator], [value])](#Array+where) ⇒ [<code>Array</code>](#Array)
|
|
86
|
-
* [.whereBetween(field, start, [end])](#Array+whereBetween) ⇒ [<code>Array</code>](#Array)
|
|
87
|
-
* [.whereIn(field, [value])](#Array+whereIn) ⇒ [<code>Array</code>](#Array)
|
|
88
|
-
* [.whereLike(field, [value])](#Array+whereLike) ⇒ [<code>Array</code>](#Array)
|
|
89
|
-
* [.whereNotBetween(field, start, [end])](#Array+whereNotBetween) ⇒ [<code>Array</code>](#Array)
|
|
90
|
-
* [.whereNotIn(field, [value])](#Array+whereNotIn) ⇒ [<code>Array</code>](#Array)
|
|
91
|
-
* [.whereNotLike(field, [value])](#Array+whereNotLike) ⇒ [<code>Array</code>](#Array)
|
|
92
|
-
* [.whereNotNull([field])](#Array+whereNotNull) ⇒ [<code>Array</code>](#Array)
|
|
93
|
-
* [.whereNull([field])](#Array+whereNull) ⇒ [<code>Array</code>](#Array)
|
|
94
|
-
* [.zip(arrays)](#Array+zip) ⇒ [<code>Array</code>](#Array)
|
|
95
|
-
* [.zipObject(array)](#Array+zipObject) ⇒ [<code>Object</code>](#Object)
|
|
96
|
-
* _static_
|
|
97
|
-
* [.range(end, [start], [step])](#Array.range) ⇒ [<code>Array.<Number></code>](#Number)
|
|
98
|
-
* [.repeat(n, [value])](#Array.repeat) ⇒ [<code>Array</code>](#Array)
|
|
99
|
-
|
|
100
|
-
<a name="Array+all"></a>
|
|
101
|
-
|
|
102
|
-
### array.all([fn]) ⇒ [<code>Boolean</code>](#Boolean)
|
|
103
|
-
Returns `true` if the provided predicate function
|
|
104
|
-
returns `true` for all elements in a collection,`false` otherwise
|
|
105
|
-
|
|
106
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
107
|
-
|
|
108
|
-
| Param | Type | Default |
|
|
109
|
-
| --- | --- | --- |
|
|
110
|
-
| [fn] | <code>function</code> | <code>Boolean</code> |
|
|
111
|
-
|
|
112
|
-
**Example**
|
|
113
|
-
```javascript
|
|
114
|
-
[4, 2, 3].all((x) => x > 1); // true
|
|
115
|
-
[1, 2, 3].all(); // true
|
|
116
|
-
```
|
|
117
|
-
<a name="Array+any"></a>
|
|
118
|
-
|
|
119
|
-
### array.any([fn]) ⇒ [<code>Boolean</code>](#Boolean)
|
|
120
|
-
Returns `true` if the provided predicate function
|
|
121
|
-
returns `true` for at least one element in a collection,
|
|
122
|
-
`false` otherwise
|
|
123
|
-
|
|
124
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
125
|
-
|
|
126
|
-
| Param | Type | Default |
|
|
127
|
-
| --- | --- | --- |
|
|
128
|
-
| [fn] | <code>function</code> | <code>Boolean</code> |
|
|
129
|
-
|
|
130
|
-
**Example**
|
|
131
|
-
```javascript
|
|
132
|
-
[0, 1, 2, 0].any((x) => x >= 2); // true
|
|
133
|
-
[0, 0, 1, 0].any(); // true
|
|
134
|
-
```
|
|
135
|
-
<a name="Array+append"></a>
|
|
136
|
-
|
|
137
|
-
### array.append(value) ⇒ [<code>Number</code>](#Number)
|
|
138
|
-
Same as push but uses concat
|
|
139
|
-
|
|
140
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
141
|
-
|
|
142
|
-
| Param | Type |
|
|
143
|
-
| --- | --- |
|
|
144
|
-
| value | <code>\*</code> |
|
|
145
|
-
|
|
146
|
-
**Example**
|
|
147
|
-
```javascript
|
|
148
|
-
var myArray = [1, 2, 3]
|
|
149
|
-
myArray.append(0); // myArray => [1, 2, 3, 0]
|
|
150
|
-
```
|
|
151
|
-
<a name="Array+average"></a>
|
|
152
|
-
|
|
153
|
-
### array.average([path]) ⇒ [<code>Number</code>](#Number)
|
|
154
|
-
Returns the average value of a given path
|
|
155
|
-
|
|
156
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
157
|
-
|
|
158
|
-
| Param | Type |
|
|
159
|
-
| --- | --- |
|
|
160
|
-
| [path] | [<code>String</code>](#String) |
|
|
161
|
-
|
|
162
|
-
**Example**
|
|
163
|
-
```javascript
|
|
164
|
-
[1, 2, 3].average(); // 2
|
|
165
|
-
[{a: 1}, {a: 2}, {a: 3}].average("a"); // 2
|
|
166
|
-
[{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].average("a.b"); // 2
|
|
167
|
-
```
|
|
168
|
-
<a name="Array+avg"></a>
|
|
169
|
-
|
|
170
|
-
### array.avg([path]) ⇒ [<code>Number</code>](#Number)
|
|
171
|
-
An alias of Array.prototype.average
|
|
172
|
-
|
|
173
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
174
|
-
|
|
175
|
-
| Param | Type |
|
|
176
|
-
| --- | --- |
|
|
177
|
-
| [path] | [<code>String</code>](#String) |
|
|
178
|
-
|
|
179
|
-
**Example**
|
|
180
|
-
```javascript
|
|
181
|
-
[1, 2, 3].avg(); // 2
|
|
182
|
-
[{a: 1}, {a: 2}, {a: 3}].avg("a"); // 2
|
|
183
|
-
[{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].avg("a.b"); // 2
|
|
184
|
-
```
|
|
185
|
-
<a name="Array+chunk"></a>
|
|
186
|
-
|
|
187
|
-
### array.chunk(size) ⇒ [<code>Array.<Array></code>](#Array)
|
|
188
|
-
Chunks the array into smaller arrays of a specified size
|
|
189
|
-
|
|
190
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
191
|
-
|
|
192
|
-
| Param | Type |
|
|
193
|
-
| --- | --- |
|
|
194
|
-
| size | [<code>Number</code>](#Number) |
|
|
195
|
-
|
|
196
|
-
**Example**
|
|
197
|
-
```javascript
|
|
198
|
-
[1, 2, 3, 4, 5].chunk(2); // [[1,2],[3,4],[5]]
|
|
199
|
-
```
|
|
200
|
-
<a name="Array+clone"></a>
|
|
201
|
-
|
|
202
|
-
### array.clone([deep]) ⇒ [<code>Array</code>](#Array)
|
|
203
|
-
Returns the cloned array
|
|
204
|
-
|
|
205
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
206
|
-
|
|
207
|
-
| Param | Type | Default |
|
|
208
|
-
| --- | --- | --- |
|
|
209
|
-
| [deep] | [<code>Boolean</code>](#Boolean) | <code>false</code> |
|
|
210
|
-
|
|
211
|
-
**Example**
|
|
212
|
-
```javascript
|
|
213
|
-
[1, 2, 3].clone(); // [1, 2, 3]
|
|
214
|
-
```
|
|
215
|
-
<a name="Array+compact"></a>
|
|
216
|
-
|
|
217
|
-
### array.compact() ⇒ [<code>Array</code>](#Array)
|
|
218
|
-
Removes falsey values from the array
|
|
219
|
-
|
|
220
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
221
|
-
**Example**
|
|
222
|
-
```javascript
|
|
223
|
-
[0, 1, false, 2, '', 3, 'a', 'e' * 23, NaN, 's', 34].compact(); // [ 1, 2, 3, 'a', 's', 34 ]
|
|
224
|
-
```
|
|
225
|
-
<a name="Array+contains"></a>
|
|
226
|
-
|
|
227
|
-
### array.contains(value) ⇒ [<code>Boolean</code>](#Boolean)
|
|
228
|
-
Determines whether the collection contains a given item
|
|
229
|
-
|
|
230
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
231
|
-
|
|
232
|
-
| Param | Type |
|
|
233
|
-
| --- | --- |
|
|
234
|
-
| value | <code>\*</code> |
|
|
235
|
-
|
|
236
|
-
**Example**
|
|
237
|
-
```javascript
|
|
238
|
-
[1, 2, 3].contains(2); // true
|
|
239
|
-
```
|
|
240
|
-
<a name="Array+count"></a>
|
|
241
|
-
|
|
242
|
-
### array.count([value]) ⇒ [<code>Number</code>](#Number)
|
|
243
|
-
Counts the occurrences of a value in an array
|
|
244
|
-
|
|
245
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
246
|
-
|
|
247
|
-
| Param | Type |
|
|
248
|
-
| --- | --- |
|
|
249
|
-
| [value] | <code>\*</code> |
|
|
250
|
-
|
|
251
|
-
**Example**
|
|
252
|
-
```javascript
|
|
253
|
-
[1, 1, 2, 1, 2, 3].count(); // 6
|
|
254
|
-
[1, 1, 2, 1, 2, 3].count(1); // 3
|
|
255
|
-
```
|
|
256
|
-
<a name="Array+countBy"></a>
|
|
257
|
-
|
|
258
|
-
### array.countBy(fn) ⇒ [<code>Object</code>](#Object)
|
|
259
|
-
Groups the elements of an array based on the given function and
|
|
260
|
-
returns the count of elements in each group
|
|
261
|
-
|
|
262
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
263
|
-
|
|
264
|
-
| Param | Type |
|
|
265
|
-
| --- | --- |
|
|
266
|
-
| fn | [<code>String</code>](#String) \| <code>function</code> |
|
|
267
|
-
|
|
268
|
-
**Example**
|
|
269
|
-
```javascript
|
|
270
|
-
[6.1, 4.2, 6.3].countBy(Math.floor); // {4: 1, 6: 2}
|
|
271
|
-
['one', 'two', 'three'].countBy('length'); // {3: 2, 5: 1}
|
|
272
|
-
```
|
|
273
|
-
<a name="Array+crossJoin"></a>
|
|
274
|
-
|
|
275
|
-
### array.crossJoin(array) ⇒ [<code>Array.<Array></code>](#Array)
|
|
276
|
-
Cross joins the array's values among the given arrays,
|
|
277
|
-
returning a Cartesian product with all possible permutations
|
|
278
|
-
|
|
279
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
280
|
-
|
|
281
|
-
| Param | Type |
|
|
282
|
-
| --- | --- |
|
|
283
|
-
| array | [<code>Array</code>](#Array) |
|
|
284
|
-
|
|
285
|
-
**Example**
|
|
286
|
-
```javascript
|
|
287
|
-
[1, 2].crossJoin(['a', 'b']); // [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']]
|
|
288
|
-
```
|
|
289
|
-
<a name="Array+deepFlatten"></a>
|
|
290
|
-
|
|
291
|
-
### array.deepFlatten() ⇒ [<code>Array</code>](#Array)
|
|
292
|
-
Deep flattens an array
|
|
293
|
-
|
|
294
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
295
|
-
**Example**
|
|
296
|
-
```javascript
|
|
297
|
-
[1, [2], [[3], 4], 5].deepFlatten(); // [1,2,3,4,5]
|
|
298
|
-
```
|
|
299
|
-
<a name="Array+diff"></a>
|
|
300
|
-
|
|
301
|
-
### array.diff(array, [comp]) ⇒ [<code>Array</code>](#Array)
|
|
302
|
-
Returns the difference between this and another array
|
|
303
|
-
if `comp` is given, filters out all values from an array for which the comparator function
|
|
304
|
-
does not return true
|
|
305
|
-
|
|
306
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
307
|
-
|
|
308
|
-
| Param | Type |
|
|
309
|
-
| --- | --- |
|
|
310
|
-
| array | [<code>Array</code>](#Array) |
|
|
311
|
-
| [comp] | <code>function</code> |
|
|
312
|
-
|
|
313
|
-
**Example**
|
|
314
|
-
```javascript
|
|
315
|
-
[1, 2, 3].diff([1, 2, 4]); // [3]
|
|
316
|
-
[1, 1.2, 1.5, 3, 0].diff([1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2]
|
|
317
|
-
```
|
|
318
|
-
<a name="Array+distinct"></a>
|
|
319
|
-
|
|
320
|
-
### array.distinct([fn]) ⇒ [<code>Array</code>](#Array)
|
|
321
|
-
Returns all the distinct values of an array
|
|
322
|
-
|
|
323
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
324
|
-
|
|
325
|
-
| Param | Type |
|
|
326
|
-
| --- | --- |
|
|
327
|
-
| [fn] | [<code>String</code>](#String) \| <code>function</code> |
|
|
328
|
-
|
|
329
|
-
**Example**
|
|
330
|
-
```javascript
|
|
331
|
-
[1, 2, 2, 3, 4, 4, 5].distinct(); // [1,2,3,4,5]
|
|
332
|
-
[{foo:{bar:[0,1]}}, {foo:{bar:[4,1]}}].distinct("foo.bar[1]"); // [{foo:{bar:[0,1]}}]
|
|
333
|
-
[1, 2, 2.2, 3, 4.9, 4, 5].distinct(Math.floor); // [1,2,3,4.9,5]
|
|
334
|
-
```
|
|
335
|
-
<a name="Array+distinctBy"></a>
|
|
336
|
-
|
|
337
|
-
### array.distinctBy(fn) ⇒ [<code>Array</code>](#Array)
|
|
338
|
-
Returns all the distinct values of an array
|
|
339
|
-
|
|
340
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
341
|
-
|
|
342
|
-
| Param | Type |
|
|
343
|
-
| --- | --- |
|
|
344
|
-
| fn | <code>function</code> |
|
|
345
|
-
|
|
346
|
-
**Example**
|
|
347
|
-
```javascript
|
|
348
|
-
[1, 2, 2, 3, 4, 4, 5].distinctBy((a, b) => a === b); // [1,2,3,4,5]
|
|
349
|
-
```
|
|
350
|
-
<a name="Array+empty"></a>
|
|
351
|
-
|
|
352
|
-
### array.empty()
|
|
353
|
-
Empty the array
|
|
354
|
-
|
|
355
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
356
|
-
**Example**
|
|
357
|
-
```javascript
|
|
358
|
-
const arr = [1,3];
|
|
359
|
-
arr.empty();
|
|
360
|
-
// arr = []
|
|
361
|
-
```
|
|
362
|
-
<a name="Array+equals"></a>
|
|
363
|
-
|
|
364
|
-
### array.equals(value) ⇒ [<code>Boolean</code>](#Boolean)
|
|
365
|
-
Checks if the array is equal to the given value
|
|
366
|
-
|
|
367
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
368
|
-
|
|
369
|
-
| Param | Type |
|
|
370
|
-
| --- | --- |
|
|
371
|
-
| value | <code>\*</code> |
|
|
372
|
-
|
|
373
|
-
**Example**
|
|
374
|
-
```javascript
|
|
375
|
-
[1,2,3].equals([2,1,3]); // false
|
|
376
|
-
```
|
|
377
|
-
<a name="Array+everyNth"></a>
|
|
378
|
-
|
|
379
|
-
### array.everyNth() ⇒ [<code>Array</code>](#Array)
|
|
380
|
-
Returns every nth element in an array
|
|
381
|
-
|
|
382
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
383
|
-
**Example**
|
|
384
|
-
```javascript
|
|
385
|
-
[1, 2, 3, 4, 5, 6].everyNth(2); // [ 2, 4, 6 ]
|
|
386
|
-
```
|
|
387
|
-
<a name="Array+first"></a>
|
|
388
|
-
|
|
389
|
-
### array.first() ⇒ <code>\*</code>
|
|
390
|
-
Returns the first item of the array
|
|
391
|
-
|
|
392
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
393
|
-
**Example**
|
|
394
|
-
```javascript
|
|
395
|
-
[1, 2, 3].first(); // 1
|
|
396
|
-
```
|
|
397
|
-
<a name="Array+flatten"></a>
|
|
398
|
-
|
|
399
|
-
### array.flatten([depth]) ⇒ [<code>Array</code>](#Array)
|
|
400
|
-
Flattens an array up to the specified depth
|
|
401
|
-
|
|
402
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
403
|
-
|
|
404
|
-
| Param | Type | Default |
|
|
405
|
-
| --- | --- | --- |
|
|
406
|
-
| [depth] | [<code>Number</code>](#Number) | <code>1</code> |
|
|
407
|
-
|
|
408
|
-
**Example**
|
|
409
|
-
```javascript
|
|
410
|
-
[1, [2], 3, 4].flatten(); // [1, 2, 3, 4]
|
|
411
|
-
[1, [2, [3, [4, 5], 6], 7], 8].flatten(2); // [1, 2, 3, [4, 5], 6, 7, 8]
|
|
412
|
-
```
|
|
413
|
-
<a name="Array+get"></a>
|
|
414
|
-
|
|
415
|
-
### array.get(index, [def]) ⇒ <code>\*</code>
|
|
416
|
-
Returns the item at a given index. If the index does not exist, def is returned
|
|
417
|
-
|
|
418
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
419
|
-
|
|
420
|
-
| Param | Type |
|
|
421
|
-
| --- | --- |
|
|
422
|
-
| index | [<code>Number</code>](#Number) |
|
|
423
|
-
| [def] | <code>\*</code> |
|
|
424
|
-
|
|
425
|
-
**Example**
|
|
426
|
-
```javascript
|
|
427
|
-
[1, 2, 3].get(0, 'default value'); // 1
|
|
428
|
-
[1, 2, 3].get(4, 0); // 0
|
|
429
|
-
```
|
|
430
|
-
<a name="Array+groupBy"></a>
|
|
431
|
-
|
|
432
|
-
### array.groupBy(fn) ⇒ [<code>Object</code>](#Object)
|
|
433
|
-
Groups the elements of an array based on the given function
|
|
434
|
-
|
|
435
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
436
|
-
|
|
437
|
-
| Param | Type |
|
|
438
|
-
| --- | --- |
|
|
439
|
-
| fn | [<code>String</code>](#String) \| <code>function</code> |
|
|
440
|
-
|
|
441
|
-
**Example**
|
|
442
|
-
```javascript
|
|
443
|
-
[6.1, 4.2, 6.3].groupBy(Math.floor); // {4: [4.2], 6: [6.1, 6.3]}
|
|
444
|
-
['one', 'two', 'three'].groupBy('length'); // {3: ['one', 'two'], 5: ['three']}
|
|
445
|
-
```
|
|
446
|
-
<a name="Array+implode"></a>
|
|
447
|
-
|
|
448
|
-
### array.implode(path, [separator]) ⇒ [<code>String</code>](#String)
|
|
449
|
-
It's like join but u get to tell it which keys to join
|
|
450
|
-
|
|
451
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
452
|
-
|
|
453
|
-
| Param | Type | Default |
|
|
454
|
-
| --- | --- | --- |
|
|
455
|
-
| path | [<code>String</code>](#String) | |
|
|
456
|
-
| [separator] | [<code>String</code>](#String) | <code>", "</code> |
|
|
457
|
-
|
|
458
|
-
**Example**
|
|
459
|
-
```javascript
|
|
460
|
-
[{a: {b: 'first'}}, {a: {b: 'second'}}, {a: {b: 'third'}}].implode('a.b', ', ');
|
|
461
|
-
// 'first, second, third'
|
|
462
|
-
```
|
|
463
|
-
<a name="Array+indexOfAll"></a>
|
|
464
|
-
|
|
465
|
-
### array.indexOfAll(value) ⇒ [<code>Array.<Number></code>](#Number)
|
|
466
|
-
Returns all indices of value in the array. If value never occurs, returns []
|
|
467
|
-
|
|
468
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
469
|
-
|
|
470
|
-
| Param | Type |
|
|
471
|
-
| --- | --- |
|
|
472
|
-
| value | <code>\*</code> |
|
|
473
|
-
|
|
474
|
-
**Example**
|
|
475
|
-
```javascript
|
|
476
|
-
[1, 2, 3, 1, 2, 3].indexOfAll(1); // [0,3]
|
|
477
|
-
[1, 2, 3].indexOfAll(4); // []
|
|
478
|
-
```
|
|
479
|
-
<a name="Array+initial"></a>
|
|
480
|
-
|
|
481
|
-
### array.initial() ⇒ [<code>Array</code>](#Array)
|
|
482
|
-
Returns all the elements of an array except the last one
|
|
483
|
-
|
|
484
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
485
|
-
**Example**
|
|
486
|
-
```javascript
|
|
487
|
-
[1, 2, 3].initial(); // [1, 2]
|
|
488
|
-
```
|
|
489
|
-
<a name="Array+intersect"></a>
|
|
490
|
-
|
|
491
|
-
### array.intersect(array) ⇒ [<code>Array</code>](#Array)
|
|
492
|
-
Returns a list of elements that exist in both arrays
|
|
493
|
-
|
|
494
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
495
|
-
|
|
496
|
-
| Param | Type |
|
|
497
|
-
| --- | --- |
|
|
498
|
-
| array | [<code>Array</code>](#Array) |
|
|
499
|
-
|
|
500
|
-
**Example**
|
|
501
|
-
```javascript
|
|
502
|
-
[1, 2, 3].intersect([4, 3, 2]); // [2,3]
|
|
503
|
-
```
|
|
504
|
-
<a name="Array+isEmpty"></a>
|
|
505
|
-
|
|
506
|
-
### array.isEmpty() ⇒ [<code>Boolean</code>](#Boolean)
|
|
507
|
-
Checks if the array is empty
|
|
508
|
-
|
|
509
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
510
|
-
**Example**
|
|
511
|
-
```javascript
|
|
512
|
-
[1,2].isEmpty(); // false
|
|
513
|
-
[].isEmpty(); // true
|
|
514
|
-
```
|
|
515
|
-
<a name="Array+last"></a>
|
|
516
|
-
|
|
517
|
-
### array.last() ⇒ <code>\*</code>
|
|
518
|
-
Returns the last item of the array
|
|
519
|
-
|
|
520
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
521
|
-
**Example**
|
|
522
|
-
```javascript
|
|
523
|
-
[1, 2, 3].last(); // 3
|
|
524
|
-
```
|
|
525
|
-
<a name="Array+limit"></a>
|
|
526
|
-
|
|
527
|
-
### array.limit([limit]) ⇒ [<code>Array</code>](#Array)
|
|
528
|
-
limits the array
|
|
529
|
-
|
|
530
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
531
|
-
|
|
532
|
-
| Param | Type |
|
|
533
|
-
| --- | --- |
|
|
534
|
-
| [limit] | [<code>Number</code>](#Number) |
|
|
535
|
-
|
|
536
|
-
**Example**
|
|
537
|
-
```javascript
|
|
538
|
-
[2, 1, 2, 5].limit(2); // [2,1]
|
|
539
|
-
```
|
|
540
|
-
<a name="Array+take"></a>
|
|
541
|
-
|
|
542
|
-
### array.take([limit]) ⇒ [<code>Array</code>](#Array)
|
|
543
|
-
An alias of Array.prototype.skip
|
|
544
|
-
|
|
545
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
546
|
-
|
|
547
|
-
| Param | Type |
|
|
548
|
-
| --- | --- |
|
|
549
|
-
| [limit] | [<code>Number</code>](#Number) |
|
|
550
|
-
|
|
551
|
-
**Example**
|
|
552
|
-
```javascript
|
|
553
|
-
[2, 1, 2, 5].take(2); // [2,1]
|
|
554
|
-
```
|
|
555
|
-
<a name="Array+max"></a>
|
|
556
|
-
|
|
557
|
-
### array.max([path]) ⇒ [<code>Number</code>](#Number)
|
|
558
|
-
Returns the maximum value of a given path
|
|
559
|
-
|
|
560
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
561
|
-
|
|
562
|
-
| Param | Type |
|
|
563
|
-
| --- | --- |
|
|
564
|
-
| [path] | [<code>String</code>](#String) |
|
|
565
|
-
|
|
566
|
-
**Example**
|
|
567
|
-
```javascript
|
|
568
|
-
[1, 2, 3].max(); // 3
|
|
569
|
-
[{a: 1}, {a: 2}, {a: 3}].max('a'); // 3
|
|
570
|
-
[{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].max('a.b'); // 3
|
|
571
|
-
```
|
|
572
|
-
<a name="Array+median"></a>
|
|
573
|
-
|
|
574
|
-
### array.median([path]) ⇒ [<code>Number</code>](#Number)
|
|
575
|
-
Returns the median value of a given path
|
|
576
|
-
|
|
577
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
578
|
-
|
|
579
|
-
| Param | Type |
|
|
580
|
-
| --- | --- |
|
|
581
|
-
| [path] | [<code>String</code>](#String) |
|
|
582
|
-
|
|
583
|
-
**Example**
|
|
584
|
-
```javascript
|
|
585
|
-
[1, 1, 2, 4].median(); // 1.5
|
|
586
|
-
[{foo: 10}, {foo: 10}, {foo: 20}, {foo: 40}].median('foo'); // 15
|
|
587
|
-
```
|
|
588
|
-
<a name="Array+merge"></a>
|
|
589
|
-
|
|
590
|
-
### array.merge(value)
|
|
591
|
-
Merges array with the given array
|
|
592
|
-
|
|
593
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
594
|
-
|
|
595
|
-
| Param | Type |
|
|
596
|
-
| --- | --- |
|
|
597
|
-
| value | <code>\*</code> |
|
|
598
|
-
|
|
599
|
-
**Example**
|
|
600
|
-
```javascript
|
|
601
|
-
var myArray = [1, 2, 3]
|
|
602
|
-
myArray.merge([0, 6 , 2]); // myArray => [1, 2, 3, 0, 6, 2]
|
|
603
|
-
```
|
|
604
|
-
<a name="Array+min"></a>
|
|
605
|
-
|
|
606
|
-
### array.min([path]) ⇒ [<code>Number</code>](#Number)
|
|
607
|
-
Returns the minimum value of a given path
|
|
608
|
-
|
|
609
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
610
|
-
|
|
611
|
-
| Param | Type |
|
|
612
|
-
| --- | --- |
|
|
613
|
-
| [path] | [<code>String</code>](#String) |
|
|
614
|
-
|
|
615
|
-
**Example**
|
|
616
|
-
```javascript
|
|
617
|
-
[1, 2, 3].min(); // 1
|
|
618
|
-
[{a: 1}, {a: 2}, {a: 3}].min('a'); // 1
|
|
619
|
-
[{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].min('a.b'); // 1
|
|
620
|
-
```
|
|
621
|
-
<a name="Array+nest"></a>
|
|
622
|
-
|
|
623
|
-
### array.nest(link, key) ⇒ [<code>Array.<Object></code>](#Object)
|
|
624
|
-
Given a flat array of objects linked to one another, it will nest them recursively
|
|
625
|
-
|
|
626
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
627
|
-
|
|
628
|
-
| Param | Type |
|
|
629
|
-
| --- | --- |
|
|
630
|
-
| link | [<code>String</code>](#String) |
|
|
631
|
-
| key | [<code>String</code>](#String) |
|
|
632
|
-
|
|
633
|
-
**Example**
|
|
634
|
-
```javascript
|
|
635
|
-
const comments = [
|
|
636
|
-
{ id: 1, comment_id: null },
|
|
637
|
-
{ id: 2, comment_id: 1 },
|
|
638
|
-
{ id: 3, comment_id: 1 },
|
|
639
|
-
{ id: 4, comment_id: 2 },
|
|
640
|
-
{ id: 5, comment_id: 4 }
|
|
641
|
-
];
|
|
642
|
-
comments.nest("comment_id"); // [{ id: 1, comment_id: null, children: [...] }]
|
|
643
|
-
```
|
|
644
|
-
<a name="Array+orderBy"></a>
|
|
645
|
-
|
|
646
|
-
### array.orderBy([field], [order]) ⇒ [<code>Array</code>](#Array)
|
|
647
|
-
sorts the array
|
|
648
|
-
|
|
649
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
650
|
-
|
|
651
|
-
| Param | Type | Default |
|
|
652
|
-
| --- | --- | --- |
|
|
653
|
-
| [field] | [<code>String</code>](#String) | |
|
|
654
|
-
| [order] | <code>"asc"</code> \| <code>"desc"</code> | <code>"asc"</code> |
|
|
655
|
-
|
|
656
|
-
**Example**
|
|
657
|
-
```javascript
|
|
658
|
-
[2, 1, 2, 5].orderBy(); // [1,2,2,5]
|
|
659
|
-
[2, 1, 2, 5].orderBy("desc"); // [5,2,2,1]
|
|
660
|
-
[{count:1}, {count:20}, {count:15}].orderBy("count", "asc"); // [{count:1},{count:15},{count:20}]
|
|
661
|
-
```
|
|
662
|
-
<a name="Array+pad"></a>
|
|
663
|
-
|
|
664
|
-
### array.pad(size, [value]) ⇒ [<code>Array</code>](#Array)
|
|
665
|
-
FillS the array with the given value until the array reaches the specified size
|
|
666
|
-
|
|
667
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
668
|
-
|
|
669
|
-
| Param | Type | Default |
|
|
670
|
-
| --- | --- | --- |
|
|
671
|
-
| size | [<code>Number</code>](#Number) | |
|
|
672
|
-
| [value] | <code>\*</code> | <code>0</code> |
|
|
673
|
-
|
|
674
|
-
**Example**
|
|
675
|
-
```javascript
|
|
676
|
-
[1, 2, 3].pad(5, 0); // [1, 2, 3, 0, 0]
|
|
677
|
-
[1, 2, 3].pad(-5, 0); // [0, 0, 1, 2, 3]
|
|
678
|
-
```
|
|
679
|
-
<a name="Array+partition"></a>
|
|
680
|
-
|
|
681
|
-
### array.partition(fn) ⇒ [<code>Array</code>](#Array)
|
|
682
|
-
Groups the elements into two arrays,
|
|
683
|
-
depending on the provided function's truthiness for each element
|
|
684
|
-
|
|
685
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
686
|
-
|
|
687
|
-
| Param | Type |
|
|
688
|
-
| --- | --- |
|
|
689
|
-
| fn | <code>function</code> |
|
|
690
|
-
|
|
691
|
-
**Example**
|
|
692
|
-
```javascript
|
|
693
|
-
const users = [
|
|
694
|
-
{ user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }
|
|
695
|
-
];
|
|
696
|
-
users.partition(o => o.active); // [
|
|
697
|
-
[{ 'user': 'fred', 'age': 40, 'active': true }],
|
|
698
|
-
[{ 'user': 'barney', 'age': 36, 'active': false }]
|
|
699
|
-
]
|
|
700
|
-
```
|
|
701
|
-
<a name="Array+pluck"></a>
|
|
702
|
-
|
|
703
|
-
### array.pluck(path) ⇒ [<code>Array</code>](#Array)
|
|
704
|
-
Returns all of the values for the given path
|
|
705
|
-
|
|
706
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
707
|
-
|
|
708
|
-
| Param | Type |
|
|
709
|
-
| --- | --- |
|
|
710
|
-
| path | [<code>String</code>](#String) |
|
|
711
|
-
|
|
712
|
-
**Example**
|
|
713
|
-
```javascript
|
|
714
|
-
[{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a'); // [{b: 1}, {b: 2}, {b: 3}]
|
|
715
|
-
[{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].pluck('a.b'); // [1, 2, 3]
|
|
716
|
-
```
|
|
717
|
-
<a name="Array+prepend"></a>
|
|
718
|
-
|
|
719
|
-
### array.prepend(value)
|
|
720
|
-
Adds an item to the beginning of the array
|
|
721
|
-
|
|
722
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
723
|
-
|
|
724
|
-
| Param | Type |
|
|
725
|
-
| --- | --- |
|
|
726
|
-
| value | <code>\*</code> |
|
|
727
|
-
|
|
728
|
-
**Example**
|
|
729
|
-
```javascript
|
|
730
|
-
var myArray = [1, 2, 3]
|
|
731
|
-
myArray.prepend(0); // myArray => [0, 1, 2, 3]
|
|
732
|
-
```
|
|
733
|
-
<a name="Array+pull"></a>
|
|
734
|
-
|
|
735
|
-
### array.pull(args)
|
|
736
|
-
Mutates the original array to filter out the values specified
|
|
737
|
-
|
|
738
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
739
|
-
|
|
740
|
-
| Param | Type |
|
|
741
|
-
| --- | --- |
|
|
742
|
-
| args | [<code>Array</code>](#Array) |
|
|
743
|
-
|
|
744
|
-
**Example**
|
|
745
|
-
```javascript
|
|
746
|
-
let myArray = ['a', 'b', 'c', 'a', 'b', 'c'];
|
|
747
|
-
myArray.pull('a', 'c'); // myArray = [ 'b', 'b' ];
|
|
748
|
-
```
|
|
749
|
-
<a name="Array+sample"></a>
|
|
750
|
-
|
|
751
|
-
### array.sample() ⇒ <code>\*</code>
|
|
752
|
-
Returns a random element from an array
|
|
753
|
-
|
|
754
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
755
|
-
**Example**
|
|
756
|
-
```javascript
|
|
757
|
-
[3, 7, 9, 11].sample(); // 9
|
|
758
|
-
```
|
|
759
|
-
<a name="Array+shuffle"></a>
|
|
760
|
-
|
|
761
|
-
### array.shuffle() ⇒ [<code>Array</code>](#Array)
|
|
762
|
-
Randomizes the order of the values of an array, returning a new array
|
|
763
|
-
|
|
764
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
765
|
-
**Example**
|
|
766
|
-
```javascript
|
|
767
|
-
const foo = [1, 2, 3];
|
|
768
|
-
foo.shuffle(); // [2,3,1], foo = [1,2,3]
|
|
769
|
-
```
|
|
770
|
-
<a name="Array+skip"></a>
|
|
771
|
-
|
|
772
|
-
### array.skip([offset]) ⇒ [<code>Array</code>](#Array)
|
|
773
|
-
skips the array
|
|
774
|
-
|
|
775
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
776
|
-
|
|
777
|
-
| Param | Type |
|
|
778
|
-
| --- | --- |
|
|
779
|
-
| [offset] | [<code>Number</code>](#Number) |
|
|
780
|
-
|
|
781
|
-
**Example**
|
|
782
|
-
```javascript
|
|
783
|
-
[2, 1, 2, 5].skip(1); // [1,2,5]
|
|
784
|
-
```
|
|
785
|
-
<a name="Array+offset"></a>
|
|
786
|
-
|
|
787
|
-
### array.offset([offset]) ⇒ [<code>Array</code>](#Array)
|
|
788
|
-
An alias of Array.prototype.skip
|
|
789
|
-
|
|
790
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
791
|
-
|
|
792
|
-
| Param | Type |
|
|
793
|
-
| --- | --- |
|
|
794
|
-
| [offset] | [<code>Number</code>](#Number) |
|
|
795
|
-
|
|
796
|
-
**Example**
|
|
797
|
-
```javascript
|
|
798
|
-
[2, 1, 2, 5].offset(1); // [1,2,5]
|
|
799
|
-
```
|
|
800
|
-
<a name="Array+sortBy"></a>
|
|
801
|
-
|
|
802
|
-
### array.sortBy(fn) ⇒ [<code>Array</code>](#Array)
|
|
803
|
-
Groups the elements of an array based on the given function and
|
|
804
|
-
returns the count of elements in each group
|
|
805
|
-
|
|
806
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
807
|
-
|
|
808
|
-
| Param | Type |
|
|
809
|
-
| --- | --- |
|
|
810
|
-
| fn | [<code>String</code>](#String) \| <code>function</code> |
|
|
811
|
-
|
|
812
|
-
**Example**
|
|
813
|
-
```javascript
|
|
814
|
-
['five', 'three', 'one'].sortBy('length'); // ['one', 'five', 'three']
|
|
815
|
-
['five', 'three', 'one'].sortBy((value) => -value.length); // ['three', 'five', 'one']
|
|
816
|
-
```
|
|
817
|
-
<a name="Array+sum"></a>
|
|
818
|
-
|
|
819
|
-
### array.sum([path]) ⇒ [<code>Number</code>](#Number)
|
|
820
|
-
Returns the minimum value of a given path
|
|
821
|
-
|
|
822
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
823
|
-
|
|
824
|
-
| Param | Type |
|
|
825
|
-
| --- | --- |
|
|
826
|
-
| [path] | [<code>String</code>](#String) |
|
|
827
|
-
|
|
828
|
-
**Example**
|
|
829
|
-
```javascript
|
|
830
|
-
[1, 2, 3].sum(); // 6
|
|
831
|
-
[{a: 1}, {a: 2}, {a: 3}].sum('a'); // 6
|
|
832
|
-
[{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}].sum('a.b'); // 6
|
|
833
|
-
```
|
|
834
|
-
<a name="Array+tail"></a>
|
|
835
|
-
|
|
836
|
-
### array.tail() ⇒ [<code>Array</code>](#Array)
|
|
837
|
-
Returns all elements in an array except for the first one
|
|
838
|
-
|
|
839
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
840
|
-
**Example**
|
|
841
|
-
```javascript
|
|
842
|
-
[1, 2, 3].tail(); // [2, 3]
|
|
843
|
-
```
|
|
844
|
-
<a name="Array+delimiter"></a>
|
|
845
|
-
|
|
846
|
-
### array.delimiter([delimiter]) ⇒ [<code>String</code>](#String)
|
|
847
|
-
Converts a 2D array to a comma-separated values (CSV) string
|
|
848
|
-
|
|
849
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
850
|
-
|
|
851
|
-
| Param | Type | Default |
|
|
852
|
-
| --- | --- | --- |
|
|
853
|
-
| [delimiter] | [<code>String</code>](#String) | <code>","</code> |
|
|
854
|
-
|
|
855
|
-
**Example**
|
|
856
|
-
```javascript
|
|
857
|
-
[['a', 'b'], ['c', 'd']].toCSV(); // '"a","b"\n"c","d"'
|
|
858
|
-
[['a', 'b'], ['c', 'd']].toCSV(';'); // '"a";"b"\n"c";"d"'
|
|
859
|
-
```
|
|
860
|
-
<a name="Array+union"></a>
|
|
861
|
-
|
|
862
|
-
### array.union(array) ⇒ [<code>Array</code>](#Array)
|
|
863
|
-
Returns every element that exists in any of the two arrays once
|
|
864
|
-
|
|
865
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
866
|
-
|
|
867
|
-
| Param | Type |
|
|
868
|
-
| --- | --- |
|
|
869
|
-
| array | [<code>Array</code>](#Array) |
|
|
870
|
-
|
|
871
|
-
**Example**
|
|
872
|
-
```javascript
|
|
873
|
-
[1, 2, 3].union([4, 3, 2]); // [1,2,3,4]
|
|
874
|
-
```
|
|
875
|
-
<a name="Array+unwind"></a>
|
|
876
|
-
|
|
877
|
-
### array.unwind(path) ⇒ <code>\*</code>
|
|
878
|
-
Returns the item at a given index. If the index does not exist, def is returned
|
|
879
|
-
|
|
880
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
881
|
-
|
|
882
|
-
| Param | Type |
|
|
883
|
-
| --- | --- |
|
|
884
|
-
| path | [<code>String</code>](#String) |
|
|
885
|
-
|
|
886
|
-
**Example**
|
|
887
|
-
```javascript
|
|
888
|
-
[{ foo: ["bar 1", "bar 2"] }, { foo: ["bar 3", "bar 4", "bar 5"] }].unwind("foo");
|
|
889
|
-
// [{ foo: "bar 1" }, { foo: "bar 2" }, { foo: "bar 3" }, { foo: "bar 4" }, { foo: "bar 5" }]
|
|
890
|
-
```
|
|
891
|
-
<a name="Array+where"></a>
|
|
892
|
-
|
|
893
|
-
### array.where(field, [operator], [value]) ⇒ [<code>Array</code>](#Array)
|
|
894
|
-
Filters the array
|
|
895
|
-
|
|
896
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
897
|
-
|
|
898
|
-
| Param | Type |
|
|
899
|
-
| --- | --- |
|
|
900
|
-
| field | [<code>String</code>](#String) \| <code>\*</code> |
|
|
901
|
-
| [operator] | [<code>String</code>](#String) \| <code>\*</code> |
|
|
902
|
-
| [value] | <code>\*</code> |
|
|
903
|
-
|
|
904
|
-
**Example**
|
|
905
|
-
```javascript
|
|
906
|
-
[1, 2, 2, 3, 4, 4, 5].where(4); // [4,4]
|
|
907
|
-
[{count:1}, {count:20}, {count:15}].where("count", 15); // [{count:15}]
|
|
908
|
-
[1, 2, 2, 3, 4, 4, 5].where("<", 4); // [1,2,2,3]
|
|
909
|
-
[{count:1}, {count:20}, {count:15}].where("count", ">=", 15); // [{count:20},{count:15}]
|
|
910
|
-
```
|
|
911
|
-
<a name="Array+whereBetween"></a>
|
|
912
|
-
|
|
913
|
-
### array.whereBetween(field, start, [end]) ⇒ [<code>Array</code>](#Array)
|
|
914
|
-
Filters the array
|
|
915
|
-
|
|
916
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
917
|
-
|
|
918
|
-
| Param | Type |
|
|
919
|
-
| --- | --- |
|
|
920
|
-
| field | [<code>String</code>](#String) \| <code>\*</code> |
|
|
921
|
-
| start | <code>\*</code> |
|
|
922
|
-
| [end] | <code>\*</code> |
|
|
923
|
-
|
|
924
|
-
**Example**
|
|
925
|
-
```javascript
|
|
926
|
-
[1, 2, 2, 3, 4, 4, 5].whereBetween(3,4); // [3,4,4]
|
|
927
|
-
[{count:1}, {count:20}, {count:15}].whereBetween("count", 1, 15); // [{count:1},{count:15}]
|
|
928
|
-
```
|
|
929
|
-
<a name="Array+whereIn"></a>
|
|
930
|
-
|
|
931
|
-
### array.whereIn(field, [value]) ⇒ [<code>Array</code>](#Array)
|
|
932
|
-
Filters the array
|
|
933
|
-
|
|
934
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
935
|
-
|
|
936
|
-
| Param | Type |
|
|
937
|
-
| --- | --- |
|
|
938
|
-
| field | [<code>String</code>](#String) \| [<code>Array</code>](#Array) |
|
|
939
|
-
| [value] | [<code>Array</code>](#Array) |
|
|
940
|
-
|
|
941
|
-
**Example**
|
|
942
|
-
```javascript
|
|
943
|
-
[1, 2, 2, 3, 4, 4, 5].whereIn([3,4]); // [3,4,4]
|
|
944
|
-
[{count:1}, {count:20}, {count:15}].whereIn("count", [1, 15]); // [{count:1},{count:15}]
|
|
945
|
-
```
|
|
946
|
-
<a name="Array+whereLike"></a>
|
|
947
|
-
|
|
948
|
-
### array.whereLike(field, [value]) ⇒ [<code>Array</code>](#Array)
|
|
949
|
-
Filters the array
|
|
950
|
-
|
|
951
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
952
|
-
|
|
953
|
-
| Param | Type |
|
|
954
|
-
| --- | --- |
|
|
955
|
-
| field | [<code>String</code>](#String) \| <code>RegExp</code> |
|
|
956
|
-
| [value] | [<code>String</code>](#String) \| <code>RegExp</code> |
|
|
957
|
-
|
|
958
|
-
**Example**
|
|
959
|
-
```javascript
|
|
960
|
-
["foo", "bar", "hello", "world"].whereLike("o"); // ["foo","hello","world"]
|
|
961
|
-
[{foo:"hello"}, {foo:"bar"}, {foo:"world"}]
|
|
962
|
-
.whereLike("foo", /o/i); // [{foo:"hello"},{foo:"world"}]
|
|
963
|
-
```
|
|
964
|
-
<a name="Array+whereNotBetween"></a>
|
|
965
|
-
|
|
966
|
-
### array.whereNotBetween(field, start, [end]) ⇒ [<code>Array</code>](#Array)
|
|
967
|
-
Filters the array
|
|
968
|
-
|
|
969
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
970
|
-
|
|
971
|
-
| Param | Type |
|
|
972
|
-
| --- | --- |
|
|
973
|
-
| field | [<code>String</code>](#String) \| <code>\*</code> |
|
|
974
|
-
| start | <code>\*</code> |
|
|
975
|
-
| [end] | <code>\*</code> |
|
|
976
|
-
|
|
977
|
-
**Example**
|
|
978
|
-
```javascript
|
|
979
|
-
[1, 2, 2, 3, 4, 4, 5].whereNotBetween(3,4); // [1,2,2,5]
|
|
980
|
-
[{count:1}, {count:20}, {count:15}].whereNotBetween("count", 1, 15); // [{count:20}]
|
|
981
|
-
```
|
|
982
|
-
<a name="Array+whereNotIn"></a>
|
|
983
|
-
|
|
984
|
-
### array.whereNotIn(field, [value]) ⇒ [<code>Array</code>](#Array)
|
|
985
|
-
Filters the array
|
|
986
|
-
|
|
987
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
988
|
-
|
|
989
|
-
| Param | Type |
|
|
990
|
-
| --- | --- |
|
|
991
|
-
| field | [<code>String</code>](#String) \| [<code>Array</code>](#Array) |
|
|
992
|
-
| [value] | [<code>Array</code>](#Array) |
|
|
993
|
-
|
|
994
|
-
**Example**
|
|
995
|
-
```javascript
|
|
996
|
-
[1, 2, 2, 3, 4, 4, 5].whereNotIn([3,4]); // [1,2,2,5]
|
|
997
|
-
[{count:1}, {count:20}, {count:15}].whereNotIn("count", [1, 15]); // [{count:20}]
|
|
998
|
-
```
|
|
999
|
-
<a name="Array+whereNotLike"></a>
|
|
1000
|
-
|
|
1001
|
-
### array.whereNotLike(field, [value]) ⇒ [<code>Array</code>](#Array)
|
|
1002
|
-
Filters the array
|
|
1003
|
-
|
|
1004
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
1005
|
-
|
|
1006
|
-
| Param | Type |
|
|
1007
|
-
| --- | --- |
|
|
1008
|
-
| field | [<code>String</code>](#String) \| <code>RegExp</code> |
|
|
1009
|
-
| [value] | [<code>String</code>](#String) \| <code>RegExp</code> |
|
|
1010
|
-
|
|
1011
|
-
**Example**
|
|
1012
|
-
```javascript
|
|
1013
|
-
["foo", "bar", "hello", "world"].whereNotLike("o"); // ["bar"]
|
|
1014
|
-
[{foo:"hello"}, {foo:"bar"}, {foo:"world"}].whereNotLike("foo", /o/i); // [{foo:"bar"}]
|
|
1015
|
-
```
|
|
1016
|
-
<a name="Array+whereNotNull"></a>
|
|
1017
|
-
|
|
1018
|
-
### array.whereNotNull([field]) ⇒ [<code>Array</code>](#Array)
|
|
1019
|
-
Filters the array
|
|
1020
|
-
|
|
1021
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
1022
|
-
|
|
1023
|
-
| Param | Type |
|
|
1024
|
-
| --- | --- |
|
|
1025
|
-
| [field] | [<code>String</code>](#String) |
|
|
1026
|
-
|
|
1027
|
-
**Example**
|
|
1028
|
-
```javascript
|
|
1029
|
-
[1, 2, 2, 3, null, undefined, 5].whereNotNull(); // [1,2,2,3,5]
|
|
1030
|
-
[{count:1}, {count:null}, {foo:15}].whereNotNull("count"); // [{count:1}]
|
|
1031
|
-
```
|
|
1032
|
-
<a name="Array+whereNull"></a>
|
|
1033
|
-
|
|
1034
|
-
### array.whereNull([field]) ⇒ [<code>Array</code>](#Array)
|
|
1035
|
-
Filters the array
|
|
1036
|
-
|
|
1037
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
1038
|
-
|
|
1039
|
-
| Param | Type |
|
|
1040
|
-
| --- | --- |
|
|
1041
|
-
| [field] | [<code>String</code>](#String) |
|
|
1042
|
-
|
|
1043
|
-
**Example**
|
|
1044
|
-
```javascript
|
|
1045
|
-
[1, 2, 2, 3, null, undefined, 5].whereNull(); // [null, undefined]
|
|
1046
|
-
[{count:1}, {count:null}, {foo:15}].whereNull("count"); // [{count:null},{foo:15}]
|
|
1047
|
-
```
|
|
1048
|
-
<a name="Array+zip"></a>
|
|
1049
|
-
|
|
1050
|
-
### array.zip(arrays) ⇒ [<code>Array</code>](#Array)
|
|
1051
|
-
Creates an array of elements, grouped based on the position in the original arrays
|
|
1052
|
-
|
|
1053
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
1054
|
-
|
|
1055
|
-
| Param | Type |
|
|
1056
|
-
| --- | --- |
|
|
1057
|
-
| arrays | [<code>Array.<Array></code>](#Array) |
|
|
1058
|
-
|
|
1059
|
-
**Example**
|
|
1060
|
-
```javascript
|
|
1061
|
-
['a', 'b'].zip([1, 2], [true, false]); // [['a', 1, true], ['b', 2, false]]
|
|
1062
|
-
['a'].zip([1, 2], [true, false]); // [['a', 1, true], [undefined, 2, false]]
|
|
1063
|
-
```
|
|
1064
|
-
<a name="Array+zipObject"></a>
|
|
1065
|
-
|
|
1066
|
-
### array.zipObject(array) ⇒ [<code>Object</code>](#Object)
|
|
1067
|
-
Given an array of valid property identifiers and an array of values,
|
|
1068
|
-
return an object associating the properties to the values
|
|
1069
|
-
|
|
1070
|
-
**Kind**: instance method of [<code>Array</code>](#Array)
|
|
1071
|
-
|
|
1072
|
-
| Param | Type |
|
|
1073
|
-
| --- | --- |
|
|
1074
|
-
| array | [<code>Array</code>](#Array) |
|
|
1075
|
-
|
|
1076
|
-
**Example**
|
|
1077
|
-
```javascript
|
|
1078
|
-
['a', 'b', 'c'].zipObject([1, 2]); // {a: 1, b: 2, c: undefined}
|
|
1079
|
-
['a', 'b'].zipObject([1, 2, 3]); // {a: 1, b: 2}
|
|
1080
|
-
```
|
|
1081
|
-
<a name="Array.range"></a>
|
|
1082
|
-
|
|
1083
|
-
### Array.range(end, [start], [step]) ⇒ [<code>Array.<Number></code>](#Number)
|
|
1084
|
-
Initializes an array containing the numbers in the specified range where start
|
|
1085
|
-
and end are inclusive with there common difference step
|
|
1086
|
-
|
|
1087
|
-
**Kind**: static method of [<code>Array</code>](#Array)
|
|
1088
|
-
|
|
1089
|
-
| Param | Type | Default |
|
|
1090
|
-
| --- | --- | --- |
|
|
1091
|
-
| end | [<code>Number</code>](#Number) | |
|
|
1092
|
-
| [start] | [<code>Number</code>](#Number) | <code>0</code> |
|
|
1093
|
-
| [step] | [<code>Number</code>](#Number) | <code>1</code> |
|
|
1094
|
-
|
|
1095
|
-
**Example**
|
|
1096
|
-
```javascript
|
|
1097
|
-
Array.range(5); // [0,1,2,3,4,5]
|
|
1098
|
-
Array.range(7, 3); // [3,4,5,6,7]
|
|
1099
|
-
Array.range(9, 0, 2); // [0,2,4,6,8]
|
|
1100
|
-
```
|
|
1101
|
-
<a name="Array.repeat"></a>
|
|
1102
|
-
|
|
1103
|
-
### Array.repeat(n, [value]) ⇒ [<code>Array</code>](#Array)
|
|
1104
|
-
Initializes and fills an array with the specified value
|
|
1105
|
-
|
|
1106
|
-
**Kind**: static method of [<code>Array</code>](#Array)
|
|
1107
|
-
|
|
1108
|
-
| Param | Type | Default |
|
|
1109
|
-
| --- | --- | --- |
|
|
1110
|
-
| n | [<code>Number</code>](#Number) | |
|
|
1111
|
-
| [value] | <code>\*</code> | <code>0</code> |
|
|
1112
|
-
|
|
1113
|
-
**Example**
|
|
1114
|
-
```javascript
|
|
1115
|
-
Array.repeat(5, 2); // [2,2,2,2,2]
|
|
1116
|
-
```
|
|
1117
|
-
<a name="Boolean"></a>
|
|
1118
|
-
|
|
1119
|
-
## Boolean : <code>object</code>
|
|
1120
|
-
**Kind**: global namespace
|
|
1121
|
-
<a name="Boolean.isBoolean"></a>
|
|
1122
|
-
|
|
1123
|
-
### Boolean.isBoolean(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1124
|
-
Returns true if the given argument is a boolean
|
|
1125
|
-
|
|
1126
|
-
**Kind**: static method of [<code>Boolean</code>](#Boolean)
|
|
1127
|
-
|
|
1128
|
-
| Param | Type |
|
|
1129
|
-
| --- | --- |
|
|
1130
|
-
| arg | <code>\*</code> |
|
|
1131
|
-
|
|
1132
|
-
**Example**
|
|
1133
|
-
```javascript
|
|
1134
|
-
Boolean.isBoolean('foo bar'); // false
|
|
1135
|
-
Boolean.isBoolean(flase); // true
|
|
1136
|
-
```
|
|
1137
|
-
<a name="Date"></a>
|
|
1138
|
-
|
|
1139
|
-
## Date : <code>object</code>
|
|
1140
|
-
**Kind**: global namespace
|
|
1141
|
-
|
|
1142
|
-
* [Date](#Date) : <code>object</code>
|
|
1143
|
-
* _instance_
|
|
1144
|
-
* [.equals(value)](#Date+equals) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1145
|
-
* _static_
|
|
1146
|
-
* [.isDate(arg)](#Date.isDate) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1147
|
-
* [.today()](#Date.today) ⇒ [<code>String</code>](#String)
|
|
1148
|
-
* [.tomorrow()](#Date.tomorrow) ⇒ [<code>String</code>](#String)
|
|
1149
|
-
* [.yesterday()](#Date.yesterday) ⇒ [<code>String</code>](#String)
|
|
1150
|
-
|
|
1151
|
-
<a name="Date+equals"></a>
|
|
1152
|
-
|
|
1153
|
-
### date.equals(value) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1154
|
-
Checks if the date is equal to the given value
|
|
1155
|
-
|
|
1156
|
-
**Kind**: instance method of [<code>Date</code>](#Date)
|
|
1157
|
-
|
|
1158
|
-
| Param | Type |
|
|
1159
|
-
| --- | --- |
|
|
1160
|
-
| value | <code>\*</code> |
|
|
1161
|
-
|
|
1162
|
-
**Example**
|
|
1163
|
-
```javascript
|
|
1164
|
-
(new Date()).equals(new Date()); // false
|
|
1165
|
-
```
|
|
1166
|
-
<a name="Date.isDate"></a>
|
|
1167
|
-
|
|
1168
|
-
### Date.isDate(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1169
|
-
Returns true if the given argument is an instance of Date
|
|
1170
|
-
|
|
1171
|
-
**Kind**: static method of [<code>Date</code>](#Date)
|
|
1172
|
-
|
|
1173
|
-
| Param | Type |
|
|
1174
|
-
| --- | --- |
|
|
1175
|
-
| arg | <code>\*</code> |
|
|
1176
|
-
|
|
1177
|
-
**Example**
|
|
1178
|
-
```javascript
|
|
1179
|
-
Date.isDate('foo bar'); // false
|
|
1180
|
-
Date.isDate(new Date()); // true
|
|
1181
|
-
```
|
|
1182
|
-
<a name="Date.today"></a>
|
|
1183
|
-
|
|
1184
|
-
### Date.today() ⇒ [<code>String</code>](#String)
|
|
1185
|
-
Returns today's date in `YYYY-MM-DD` format
|
|
1186
|
-
|
|
1187
|
-
**Kind**: static method of [<code>Date</code>](#Date)
|
|
1188
|
-
**Example**
|
|
1189
|
-
```javascript
|
|
1190
|
-
Date.today(); // "2018-08-10"
|
|
1191
|
-
```
|
|
1192
|
-
<a name="Date.tomorrow"></a>
|
|
1193
|
-
|
|
1194
|
-
### Date.tomorrow() ⇒ [<code>String</code>](#String)
|
|
1195
|
-
Returns tomorrow's date in `YYYY-MM-DD` format
|
|
1196
|
-
|
|
1197
|
-
**Kind**: static method of [<code>Date</code>](#Date)
|
|
1198
|
-
**Example**
|
|
1199
|
-
```javascript
|
|
1200
|
-
Date.tomorrow(); // "2018-08-11"
|
|
1201
|
-
```
|
|
1202
|
-
<a name="Date.yesterday"></a>
|
|
1203
|
-
|
|
1204
|
-
### Date.yesterday() ⇒ [<code>String</code>](#String)
|
|
1205
|
-
Returns yesterday's date in `YYYY-MM-DD` format
|
|
1206
|
-
|
|
1207
|
-
**Kind**: static method of [<code>Date</code>](#Date)
|
|
1208
|
-
**Example**
|
|
1209
|
-
```javascript
|
|
1210
|
-
Date.yesterday(); // "2018-08-11"
|
|
1211
|
-
```
|
|
1212
|
-
<a name="Function"></a>
|
|
1213
|
-
|
|
1214
|
-
## Function : <code>object</code>
|
|
1215
|
-
**Kind**: global namespace
|
|
1216
|
-
|
|
1217
|
-
* [Function](#Function) : <code>object</code>
|
|
1218
|
-
* _instance_
|
|
1219
|
-
* [.defer(args)](#Function+defer) ⇒ <code>\*</code>
|
|
1220
|
-
* [.once(args)](#Function+once) ⇒ <code>\*</code>
|
|
1221
|
-
* _static_
|
|
1222
|
-
* [.cache(args)](#Function.cache) ⇒ <code>\*</code>
|
|
1223
|
-
* [.isFunction(arg)](#Function.isFunction) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1224
|
-
|
|
1225
|
-
<a name="Function+defer"></a>
|
|
1226
|
-
|
|
1227
|
-
### function.defer(args) ⇒ <code>\*</code>
|
|
1228
|
-
Defers invoking the function until the current call stack has cleared
|
|
1229
|
-
|
|
1230
|
-
**Kind**: instance method of [<code>Function</code>](#Function)
|
|
1231
|
-
|
|
1232
|
-
| Param | Type |
|
|
1233
|
-
| --- | --- |
|
|
1234
|
-
| args | [<code>Array</code>](#Array) |
|
|
1235
|
-
|
|
1236
|
-
**Example**
|
|
1237
|
-
```javascript
|
|
1238
|
-
const test = (msg) => console.log(msg);
|
|
1239
|
-
test.defer('a'), test('b'); // logs 'b' then 'a'
|
|
1240
|
-
```
|
|
1241
|
-
<a name="Function+once"></a>
|
|
1242
|
-
|
|
1243
|
-
### function.once(args) ⇒ <code>\*</code>
|
|
1244
|
-
Ensures a function is called only once
|
|
1245
|
-
|
|
1246
|
-
**Kind**: instance method of [<code>Function</code>](#Function)
|
|
1247
|
-
|
|
1248
|
-
| Param | Type |
|
|
1249
|
-
| --- | --- |
|
|
1250
|
-
| args | [<code>Array</code>](#Array) |
|
|
1251
|
-
|
|
1252
|
-
**Example**
|
|
1253
|
-
```javascript
|
|
1254
|
-
const test = (msg) => console.log(msg);
|
|
1255
|
-
test.once('a'); // logs 'a'
|
|
1256
|
-
test.once('b'); // no log this time
|
|
1257
|
-
```
|
|
1258
|
-
<a name="Function.cache"></a>
|
|
1259
|
-
|
|
1260
|
-
### Function.cache(args) ⇒ <code>\*</code>
|
|
1261
|
-
Returns the cached function results if already runned with this method
|
|
1262
|
-
|
|
1263
|
-
**Kind**: static method of [<code>Function</code>](#Function)
|
|
1264
|
-
|
|
1265
|
-
| Param | Type |
|
|
1266
|
-
| --- | --- |
|
|
1267
|
-
| args | [<code>Array</code>](#Array) |
|
|
1268
|
-
|
|
1269
|
-
**Example**
|
|
1270
|
-
```javascript
|
|
1271
|
-
const test = () => setTimeout(console.log, 1000, `test`);
|
|
1272
|
-
test.cache(); // takes a second to log 'test'
|
|
1273
|
-
test.cache(); // instantly logs the second 'test'
|
|
1274
|
-
```
|
|
1275
|
-
<a name="Function.isFunction"></a>
|
|
1276
|
-
|
|
1277
|
-
### Function.isFunction(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1278
|
-
Returns true if the given argument is a function
|
|
1279
|
-
|
|
1280
|
-
**Kind**: static method of [<code>Function</code>](#Function)
|
|
1281
|
-
|
|
1282
|
-
| Param | Type |
|
|
1283
|
-
| --- | --- |
|
|
1284
|
-
| arg | <code>\*</code> |
|
|
1285
|
-
|
|
1286
|
-
**Example**
|
|
1287
|
-
```javascript
|
|
1288
|
-
Function.isFunction(2); // false
|
|
1289
|
-
Function.isFunction((() => {})); // true
|
|
1290
|
-
```
|
|
1291
|
-
<a name="global"></a>
|
|
1292
|
-
|
|
1293
|
-
## global : <code>object</code>
|
|
1294
|
-
**Kind**: global namespace
|
|
1295
|
-
<a name="global.isBrowser"></a>
|
|
1296
|
-
|
|
1297
|
-
### global.isBrowser() ⇒ [<code>Boolean</code>](#Boolean)
|
|
1298
|
-
Determines if the current runtime environment is a browser,
|
|
1299
|
-
so that front-end modules can run on the server (Node) without throwing errors
|
|
1300
|
-
|
|
1301
|
-
**Kind**: static method of [<code>global</code>](#global)
|
|
1302
|
-
**Example**
|
|
1303
|
-
```javascript
|
|
1304
|
-
isBrowser(); // false
|
|
1305
|
-
```
|
|
1306
|
-
<a name="Math"></a>
|
|
1307
|
-
|
|
1308
|
-
## Math : <code>object</code>
|
|
1309
|
-
**Kind**: global namespace
|
|
1310
|
-
|
|
1311
|
-
* [Math](#Math) : <code>object</code>
|
|
1312
|
-
* [.average(nums)](#Math.average) ⇒ [<code>Number</code>](#Number)
|
|
1313
|
-
* [.avg(nums)](#Math.avg) ⇒ [<code>Number</code>](#Number)
|
|
1314
|
-
* [.degreesToRads(num)](#Math.degreesToRads) ⇒ [<code>Number</code>](#Number)
|
|
1315
|
-
* [.factorial(num)](#Math.factorial) ⇒ [<code>Number</code>](#Number)
|
|
1316
|
-
* [.fibonacci(num)](#Math.fibonacci) ⇒ [<code>Array.<Number></code>](#Number)
|
|
1317
|
-
* [.gcd(nums)](#Math.gcd) ⇒ [<code>Number</code>](#Number)
|
|
1318
|
-
* [.isDivisible(dividend, divisor)](#Math.isDivisible) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1319
|
-
* [.isEven(num)](#Math.isEven) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1320
|
-
* [.isPrime(num)](#Math.isPrime) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1321
|
-
* [.lcm(nums)](#Math.lcm) ⇒ [<code>Number</code>](#Number)
|
|
1322
|
-
* [.primes(num)](#Math.primes) ⇒ [<code>Array.<Number></code>](#Number)
|
|
1323
|
-
* [.radsToDegrees(num)](#Math.radsToDegrees) ⇒ [<code>Number</code>](#Number)
|
|
1324
|
-
|
|
1325
|
-
<a name="Math.average"></a>
|
|
1326
|
-
|
|
1327
|
-
### Math.average(nums) ⇒ [<code>Number</code>](#Number)
|
|
1328
|
-
Returns the average of an of two or more numbers
|
|
1329
|
-
|
|
1330
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1331
|
-
|
|
1332
|
-
| Param | Type |
|
|
1333
|
-
| --- | --- |
|
|
1334
|
-
| nums | [<code>Array.<Number></code>](#Number) |
|
|
1335
|
-
|
|
1336
|
-
**Example**
|
|
1337
|
-
```javascript
|
|
1338
|
-
Math.average(...[1, 2, 3]); // 2
|
|
1339
|
-
Math.average(1, 2, 3); // 2
|
|
1340
|
-
```
|
|
1341
|
-
<a name="Math.avg"></a>
|
|
1342
|
-
|
|
1343
|
-
### Math.avg(nums) ⇒ [<code>Number</code>](#Number)
|
|
1344
|
-
Returns the average of an of two or more numbers
|
|
1345
|
-
|
|
1346
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1347
|
-
|
|
1348
|
-
| Param | Type |
|
|
1349
|
-
| --- | --- |
|
|
1350
|
-
| nums | [<code>Array.<Number></code>](#Number) |
|
|
1351
|
-
|
|
1352
|
-
**Example**
|
|
1353
|
-
```javascript
|
|
1354
|
-
Math.avg(...[1, 2, 3]); // 2
|
|
1355
|
-
Math.avg(1, 2, 3); // 2
|
|
1356
|
-
```
|
|
1357
|
-
<a name="Math.degreesToRads"></a>
|
|
1358
|
-
|
|
1359
|
-
### Math.degreesToRads(num) ⇒ [<code>Number</code>](#Number)
|
|
1360
|
-
Converts a decimal degree to radians
|
|
1361
|
-
|
|
1362
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1363
|
-
|
|
1364
|
-
| Param | Type |
|
|
1365
|
-
| --- | --- |
|
|
1366
|
-
| num | [<code>Number</code>](#Number) |
|
|
1367
|
-
|
|
1368
|
-
**Example**
|
|
1369
|
-
```javascript
|
|
1370
|
-
Math.degreesToRads(180); // 3.141592653589793
|
|
1371
|
-
```
|
|
1372
|
-
<a name="Math.factorial"></a>
|
|
1373
|
-
|
|
1374
|
-
### Math.factorial(num) ⇒ [<code>Number</code>](#Number)
|
|
1375
|
-
Calculates the factorial of a number
|
|
1376
|
-
|
|
1377
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1378
|
-
|
|
1379
|
-
| Param | Type |
|
|
1380
|
-
| --- | --- |
|
|
1381
|
-
| num | [<code>Number</code>](#Number) |
|
|
1382
|
-
|
|
1383
|
-
**Example**
|
|
1384
|
-
```javascript
|
|
1385
|
-
Math.factorial(6); // 720
|
|
1386
|
-
```
|
|
1387
|
-
<a name="Math.fibonacci"></a>
|
|
1388
|
-
|
|
1389
|
-
### Math.fibonacci(num) ⇒ [<code>Array.<Number></code>](#Number)
|
|
1390
|
-
Generates an array, containing the Fibonacci sequence, up until the nth term
|
|
1391
|
-
|
|
1392
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1393
|
-
|
|
1394
|
-
| Param | Type |
|
|
1395
|
-
| --- | --- |
|
|
1396
|
-
| num | [<code>Number</code>](#Number) |
|
|
1397
|
-
|
|
1398
|
-
**Example**
|
|
1399
|
-
```javascript
|
|
1400
|
-
Math.fibonacci(6); // [0, 1, 1, 2, 3, 5]
|
|
1401
|
-
```
|
|
1402
|
-
<a name="Math.gcd"></a>
|
|
1403
|
-
|
|
1404
|
-
### Math.gcd(nums) ⇒ [<code>Number</code>](#Number)
|
|
1405
|
-
Calculates the greatest common divisor between two or more numbers
|
|
1406
|
-
|
|
1407
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1408
|
-
|
|
1409
|
-
| Param | Type |
|
|
1410
|
-
| --- | --- |
|
|
1411
|
-
| nums | [<code>Array.<Number></code>](#Number) |
|
|
1412
|
-
|
|
1413
|
-
**Example**
|
|
1414
|
-
```javascript
|
|
1415
|
-
Math.gcd(8, 36); // 4
|
|
1416
|
-
Math.gcd(...[12, 8, 32]); // 4
|
|
1417
|
-
```
|
|
1418
|
-
<a name="Math.isDivisible"></a>
|
|
1419
|
-
|
|
1420
|
-
### Math.isDivisible(dividend, divisor) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1421
|
-
Checks if the first numeric argument is divisible by the second one
|
|
1422
|
-
|
|
1423
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1424
|
-
|
|
1425
|
-
| Param | Type |
|
|
1426
|
-
| --- | --- |
|
|
1427
|
-
| dividend | [<code>Number</code>](#Number) |
|
|
1428
|
-
| divisor | [<code>Number</code>](#Number) |
|
|
1429
|
-
|
|
1430
|
-
**Example**
|
|
1431
|
-
```javascript
|
|
1432
|
-
Math.isDivisible(6, 3); // true
|
|
1433
|
-
```
|
|
1434
|
-
<a name="Math.isEven"></a>
|
|
1435
|
-
|
|
1436
|
-
### Math.isEven(num) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1437
|
-
Returns true if the given number is even, false otherwise
|
|
1438
|
-
|
|
1439
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1440
|
-
|
|
1441
|
-
| Param | Type |
|
|
1442
|
-
| --- | --- |
|
|
1443
|
-
| num | [<code>Number</code>](#Number) |
|
|
1444
|
-
|
|
1445
|
-
**Example**
|
|
1446
|
-
```javascript
|
|
1447
|
-
Math.isEven(3); // false
|
|
1448
|
-
```
|
|
1449
|
-
<a name="Math.isPrime"></a>
|
|
1450
|
-
|
|
1451
|
-
### Math.isPrime(num) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1452
|
-
Checks if the provided integer is a prime number
|
|
1453
|
-
|
|
1454
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1455
|
-
|
|
1456
|
-
| Param | Type |
|
|
1457
|
-
| --- | --- |
|
|
1458
|
-
| num | [<code>Number</code>](#Number) |
|
|
1459
|
-
|
|
1460
|
-
**Example**
|
|
1461
|
-
```javascript
|
|
1462
|
-
Math.isPrime(11); // true
|
|
1463
|
-
```
|
|
1464
|
-
<a name="Math.lcm"></a>
|
|
1465
|
-
|
|
1466
|
-
### Math.lcm(nums) ⇒ [<code>Number</code>](#Number)
|
|
1467
|
-
Returns the least common multiple of two or more numbers
|
|
1468
|
-
|
|
1469
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1470
|
-
|
|
1471
|
-
| Param | Type |
|
|
1472
|
-
| --- | --- |
|
|
1473
|
-
| nums | [<code>Array.<Number></code>](#Number) |
|
|
1474
|
-
|
|
1475
|
-
**Example**
|
|
1476
|
-
```javascript
|
|
1477
|
-
Math.lcm(12, 7); // 84
|
|
1478
|
-
Math.lcm(...[1, 3, 4, 5]); // 60
|
|
1479
|
-
```
|
|
1480
|
-
<a name="Math.primes"></a>
|
|
1481
|
-
|
|
1482
|
-
### Math.primes(num) ⇒ [<code>Array.<Number></code>](#Number)
|
|
1483
|
-
Generates primes up to a given number, using the Sieve of Eratosthenes
|
|
1484
|
-
|
|
1485
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1486
|
-
|
|
1487
|
-
| Param | Type |
|
|
1488
|
-
| --- | --- |
|
|
1489
|
-
| num | [<code>Number</code>](#Number) |
|
|
1490
|
-
|
|
1491
|
-
**Example**
|
|
1492
|
-
```javascript
|
|
1493
|
-
Math.primes(10); // [2, 3, 5, 7]
|
|
1494
|
-
```
|
|
1495
|
-
<a name="Math.radsToDegrees"></a>
|
|
1496
|
-
|
|
1497
|
-
### Math.radsToDegrees(num) ⇒ [<code>Number</code>](#Number)
|
|
1498
|
-
Converts a radians to decimal degree
|
|
1499
|
-
|
|
1500
|
-
**Kind**: static method of [<code>Math</code>](#Math)
|
|
1501
|
-
|
|
1502
|
-
| Param | Type |
|
|
1503
|
-
| --- | --- |
|
|
1504
|
-
| num | [<code>Number</code>](#Number) |
|
|
1505
|
-
|
|
1506
|
-
**Example**
|
|
1507
|
-
```javascript
|
|
1508
|
-
Math.radsToDegrees(Math.PI / 2); // 90
|
|
1509
|
-
```
|
|
1510
|
-
<a name="Number"></a>
|
|
1511
|
-
|
|
1512
|
-
## Number : <code>object</code>
|
|
1513
|
-
**Kind**: global namespace
|
|
1514
|
-
|
|
1515
|
-
* [Number](#Number) : <code>object</code>
|
|
1516
|
-
* _instance_
|
|
1517
|
-
* [.digitize()](#Number+digitize) ⇒ [<code>Array.<Number></code>](#Number)
|
|
1518
|
-
* [.equals(value)](#Number+equals) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1519
|
-
* [.inRange(end, [start])](#Number+inRange) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1520
|
-
* _static_
|
|
1521
|
-
* [.isNumber(arg)](#Number.isNumber) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1522
|
-
|
|
1523
|
-
<a name="Number+digitize"></a>
|
|
1524
|
-
|
|
1525
|
-
### number.digitize() ⇒ [<code>Array.<Number></code>](#Number)
|
|
1526
|
-
Converts the number to an array of digits
|
|
1527
|
-
|
|
1528
|
-
**Kind**: instance method of [<code>Number</code>](#Number)
|
|
1529
|
-
**Example**
|
|
1530
|
-
```javascript
|
|
1531
|
-
(123).digitize(); // [1, 2, 3]
|
|
1532
|
-
```
|
|
1533
|
-
<a name="Number+equals"></a>
|
|
1534
|
-
|
|
1535
|
-
### number.equals(value) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1536
|
-
Checks if the number is equal to the given value
|
|
1537
|
-
|
|
1538
|
-
**Kind**: instance method of [<code>Number</code>](#Number)
|
|
1539
|
-
|
|
1540
|
-
| Param | Type |
|
|
1541
|
-
| --- | --- |
|
|
1542
|
-
| value | <code>\*</code> |
|
|
1543
|
-
|
|
1544
|
-
**Example**
|
|
1545
|
-
```javascript
|
|
1546
|
-
(22).equals("22"); // false
|
|
1547
|
-
```
|
|
1548
|
-
<a name="Number+inRange"></a>
|
|
1549
|
-
|
|
1550
|
-
### number.inRange(end, [start]) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1551
|
-
Checks if n is between start and up to end
|
|
1552
|
-
|
|
1553
|
-
**Kind**: instance method of [<code>Number</code>](#Number)
|
|
1554
|
-
|
|
1555
|
-
| Param | Type | Default |
|
|
1556
|
-
| --- | --- | --- |
|
|
1557
|
-
| end | [<code>Number</code>](#Number) | |
|
|
1558
|
-
| [start] | [<code>Number</code>](#Number) | <code>0</code> |
|
|
1559
|
-
|
|
1560
|
-
**Example**
|
|
1561
|
-
```javascript
|
|
1562
|
-
(4).inRange(8); // true
|
|
1563
|
-
```
|
|
1564
|
-
<a name="Number.isNumber"></a>
|
|
1565
|
-
|
|
1566
|
-
### Number.isNumber(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1567
|
-
Returns true if the given argument is a number
|
|
1568
|
-
|
|
1569
|
-
**Kind**: static method of [<code>Number</code>](#Number)
|
|
1570
|
-
|
|
1571
|
-
| Param | Type |
|
|
1572
|
-
| --- | --- |
|
|
1573
|
-
| arg | <code>\*</code> |
|
|
1574
|
-
|
|
1575
|
-
**Example**
|
|
1576
|
-
```javascript
|
|
1577
|
-
Number.isNumber('foo bar'); // false
|
|
1578
|
-
Number.isNumber(2); // true
|
|
1579
|
-
```
|
|
1580
|
-
<a name="Object"></a>
|
|
1581
|
-
|
|
1582
|
-
## Object : <code>object</code>
|
|
1583
|
-
**Kind**: global namespace
|
|
1584
|
-
|
|
1585
|
-
* [Object](#Object) : <code>object</code>
|
|
1586
|
-
* _instance_
|
|
1587
|
-
* [.$assign(...sources)](#Object+$assign) ⇒ [<code>Object</code>](#Object)
|
|
1588
|
-
* [.$camelCaseKeys()](#Object+$camelCaseKeys) ⇒ [<code>Object</code>](#Object)
|
|
1589
|
-
* [.$clone([deep])](#Object+$clone) ⇒ [<code>Object</code>](#Object)
|
|
1590
|
-
* [.$defaults(...sources)](#Object+$defaults) ⇒ [<code>Object</code>](#Object)
|
|
1591
|
-
* [.$dig(target)](#Object+$dig) ⇒ <code>\*</code>
|
|
1592
|
-
* [.$empty()](#Object+$empty)
|
|
1593
|
-
* [.$equals(obj)](#Object+$equals) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1594
|
-
* [.$flatten()](#Object+$flatten) ⇒ [<code>Object</code>](#Object)
|
|
1595
|
-
* [.$forEach(fn)](#Object+$forEach)
|
|
1596
|
-
* [.$get(key)](#Object+$get) ⇒ <code>\*</code>
|
|
1597
|
-
* [.$invert()](#Object+$invert) ⇒ [<code>Object</code>](#Object)
|
|
1598
|
-
* [.$isEmpty()](#Object+$isEmpty) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1599
|
-
* [.$kebabCaseKeys()](#Object+$kebabCaseKeys) ⇒ [<code>Object</code>](#Object)
|
|
1600
|
-
* [.$keys()](#Object+$keys) ⇒ [<code>Object</code>](#Object)
|
|
1601
|
-
* [.$lowerCaseKeys()](#Object+$lowerCaseKeys) ⇒ [<code>Object</code>](#Object)
|
|
1602
|
-
* [.$map(fn)](#Object+$map) ⇒ [<code>Object</code>](#Object)
|
|
1603
|
-
* [.$mapKeys(fn)](#Object+$mapKeys) ⇒ [<code>Object</code>](#Object)
|
|
1604
|
-
* [.$mapValues(fn)](#Object+$mapValues) ⇒ [<code>Object</code>](#Object)
|
|
1605
|
-
* [.$merge(...objects)](#Object+$merge) ⇒ [<code>Object</code>](#Object)
|
|
1606
|
-
* [.$omit(arr)](#Object+$omit) ⇒ [<code>Object</code>](#Object)
|
|
1607
|
-
* [.$reduce(fn, initialValue)](#Object+$reduce) ⇒ <code>\*</code>
|
|
1608
|
-
* [.$set(path, value)](#Object+$set)
|
|
1609
|
-
* [.$size()](#Object+$size) ⇒ [<code>Object</code>](#Object)
|
|
1610
|
-
* [.$snakeCaseKeys()](#Object+$snakeCaseKeys) ⇒ [<code>Object</code>](#Object)
|
|
1611
|
-
* [.$values()](#Object+$values) ⇒ [<code>Object</code>](#Object)
|
|
1612
|
-
* _static_
|
|
1613
|
-
* [.isObject(arg)](#Object.isObject) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1614
|
-
* [.isObjectLike(arg)](#Object.isObjectLike) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1615
|
-
* [.isPlainObject(arg)](#Object.isPlainObject) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1616
|
-
|
|
1617
|
-
<a name="Object+$assign"></a>
|
|
1618
|
-
|
|
1619
|
-
### object.$assign(...sources) ⇒ [<code>Object</code>](#Object)
|
|
1620
|
-
Assigns object like Object.assign
|
|
1621
|
-
|
|
1622
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1623
|
-
|
|
1624
|
-
| Param | Type |
|
|
1625
|
-
| --- | --- |
|
|
1626
|
-
| ...sources | [<code>Object</code>](#Object) |
|
|
1627
|
-
|
|
1628
|
-
**Example**
|
|
1629
|
-
```javascript
|
|
1630
|
-
({ a: 0 }).$assign({ a: 1 }, { b: 2 }); // { a: 1, b: 2 }
|
|
1631
|
-
```
|
|
1632
|
-
<a name="Object+$camelCaseKeys"></a>
|
|
1633
|
-
|
|
1634
|
-
### object.$camelCaseKeys() ⇒ [<code>Object</code>](#Object)
|
|
1635
|
-
Creates a new object from the specified object, where all the keys are in camel-case
|
|
1636
|
-
|
|
1637
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1638
|
-
**Example**
|
|
1639
|
-
```javascript
|
|
1640
|
-
const myObj = { First_name: "Adam", "last-name": "Smith" };
|
|
1641
|
-
const myObjLower = myObj.$camelCaseKeys(); // {firstName: "Adam", lastName: "Smith"}
|
|
1642
|
-
```
|
|
1643
|
-
<a name="Object+$clone"></a>
|
|
1644
|
-
|
|
1645
|
-
### object.$clone([deep]) ⇒ [<code>Object</code>](#Object)
|
|
1646
|
-
Creates a (deep) clone of the object
|
|
1647
|
-
|
|
1648
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1649
|
-
|
|
1650
|
-
| Param | Type | Default |
|
|
1651
|
-
| --- | --- | --- |
|
|
1652
|
-
| [deep] | [<code>Boolean</code>](#Boolean) | <code>false</code> |
|
|
1653
|
-
|
|
1654
|
-
**Example**
|
|
1655
|
-
```javascript
|
|
1656
|
-
const a = { foo: 'bar', obj: { a: 1, b: 2 } };
|
|
1657
|
-
const b = a.$clone(true); // a !== b, a.obj !== b.obj
|
|
1658
|
-
```
|
|
1659
|
-
<a name="Object+$defaults"></a>
|
|
1660
|
-
|
|
1661
|
-
### object.$defaults(...sources) ⇒ [<code>Object</code>](#Object)
|
|
1662
|
-
Assigns object in reverse by Object.assign
|
|
1663
|
-
|
|
1664
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1665
|
-
|
|
1666
|
-
| Param | Type |
|
|
1667
|
-
| --- | --- |
|
|
1668
|
-
| ...sources | [<code>Object</code>](#Object) |
|
|
1669
|
-
|
|
1670
|
-
**Example**
|
|
1671
|
-
```javascript
|
|
1672
|
-
({ a: 0 }).$defaults({ a: 1, b: 2 }, { b: 3 }); // { a: 0, b: 2 }
|
|
1673
|
-
```
|
|
1674
|
-
<a name="Object+$dig"></a>
|
|
1675
|
-
|
|
1676
|
-
### object.$dig(target) ⇒ <code>\*</code>
|
|
1677
|
-
Returns the target value in a nested JSON object, based on the given key
|
|
1678
|
-
|
|
1679
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1680
|
-
|
|
1681
|
-
| Param | Type |
|
|
1682
|
-
| --- | --- |
|
|
1683
|
-
| target | [<code>String</code>](#String) |
|
|
1684
|
-
|
|
1685
|
-
**Example**
|
|
1686
|
-
```javascript
|
|
1687
|
-
const data = {
|
|
1688
|
-
level1: {
|
|
1689
|
-
level2: {
|
|
1690
|
-
level3: 'some data'
|
|
1691
|
-
}
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
|
-
dig(data, 'level3'); // 'some data'
|
|
1695
|
-
dig(data, 'level4'); // undefined
|
|
1696
|
-
```
|
|
1697
|
-
<a name="Object+$empty"></a>
|
|
1698
|
-
|
|
1699
|
-
### object.$empty()
|
|
1700
|
-
Empty the object
|
|
1701
|
-
|
|
1702
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1703
|
-
**Example**
|
|
1704
|
-
```javascript
|
|
1705
|
-
const obj = { a: 1 };
|
|
1706
|
-
obj.$empty();
|
|
1707
|
-
// obj = {};
|
|
1708
|
-
```
|
|
1709
|
-
<a name="Object+$equals"></a>
|
|
1710
|
-
|
|
1711
|
-
### object.$equals(obj) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1712
|
-
Performs a deep comparison between two values to determine if they are equivalent
|
|
1713
|
-
|
|
1714
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1715
|
-
|
|
1716
|
-
| Param | Type |
|
|
1717
|
-
| --- | --- |
|
|
1718
|
-
| obj | <code>\*</code> |
|
|
1719
|
-
|
|
1720
|
-
**Example**
|
|
1721
|
-
```javascript
|
|
1722
|
-
({ a: [2, { e: 3 }], b: [4], c: 'foo' }).$equals({ a: [2, { e: 3 }], b: [4], c: 'foo' }); // true
|
|
1723
|
-
```
|
|
1724
|
-
<a name="Object+$flatten"></a>
|
|
1725
|
-
|
|
1726
|
-
### object.$flatten() ⇒ [<code>Object</code>](#Object)
|
|
1727
|
-
Flattens the object into a single-depth object
|
|
1728
|
-
|
|
1729
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1730
|
-
**Example**
|
|
1731
|
-
```javascript
|
|
1732
|
-
({ foo: 1, bar: { foo: 2 } }).$flatten(); // { foo: 1, "bar.foo": 2 }
|
|
1733
|
-
```
|
|
1734
|
-
<a name="Object+$forEach"></a>
|
|
1735
|
-
|
|
1736
|
-
### object.$forEach(fn)
|
|
1737
|
-
Iterates the object by keys
|
|
1738
|
-
|
|
1739
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1740
|
-
|
|
1741
|
-
| Param | Type |
|
|
1742
|
-
| --- | --- |
|
|
1743
|
-
| fn | <code>function</code> |
|
|
1744
|
-
|
|
1745
|
-
**Example**
|
|
1746
|
-
```javascript
|
|
1747
|
-
const users = {
|
|
1748
|
-
fred: { user: "fred", age: 40 },
|
|
1749
|
-
pebbles: { user: "pebbles", age: 1 }
|
|
1750
|
-
};
|
|
1751
|
-
users.$forEach(u => console.log(u.age)); // console logs 40 and 1
|
|
1752
|
-
```
|
|
1753
|
-
<a name="Object+$get"></a>
|
|
1754
|
-
|
|
1755
|
-
### object.$get(key) ⇒ <code>\*</code>
|
|
1756
|
-
Retrieve the property indicated by the given selector from the object
|
|
1757
|
-
|
|
1758
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1759
|
-
|
|
1760
|
-
| Param | Type |
|
|
1761
|
-
| --- | --- |
|
|
1762
|
-
| key | [<code>String</code>](#String) |
|
|
1763
|
-
|
|
1764
|
-
**Example**
|
|
1765
|
-
```javascript
|
|
1766
|
-
{ selector: { to: { val: 'val to select' } } }.$get('selector.to.val'); // 'val to select'
|
|
1767
|
-
```
|
|
1768
|
-
<a name="Object+$invert"></a>
|
|
1769
|
-
|
|
1770
|
-
### object.$invert() ⇒ [<code>Object</code>](#Object)
|
|
1771
|
-
Inverts the key-value pairs of the object, without mutating it
|
|
1772
|
-
|
|
1773
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1774
|
-
**Example**
|
|
1775
|
-
```javascript
|
|
1776
|
-
({ name: "John", age: 20 }).$invert(); // { 20: "age", John: "name" }
|
|
1777
|
-
```
|
|
1778
|
-
<a name="Object+$isEmpty"></a>
|
|
1779
|
-
|
|
1780
|
-
### object.$isEmpty() ⇒ [<code>Boolean</code>](#Boolean)
|
|
1781
|
-
Checks if the object is empty
|
|
1782
|
-
|
|
1783
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1784
|
-
**Example**
|
|
1785
|
-
```javascript
|
|
1786
|
-
({ a: 1 }).$isEmpty(); // false
|
|
1787
|
-
({}).$isEmpty(); // true
|
|
1788
|
-
```
|
|
1789
|
-
<a name="Object+$kebabCaseKeys"></a>
|
|
1790
|
-
|
|
1791
|
-
### object.$kebabCaseKeys() ⇒ [<code>Object</code>](#Object)
|
|
1792
|
-
Creates a new object from the specified object, where all the keys are in kebab-case
|
|
1793
|
-
|
|
1794
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1795
|
-
**Example**
|
|
1796
|
-
```javascript
|
|
1797
|
-
const myObj = { First_name: "Adam", lastName: "Smith" };
|
|
1798
|
-
const myObjLower = myObj.$kebabCaseKeys(); // {first-name: "Adam", last-name: "Smith"}
|
|
1799
|
-
```
|
|
1800
|
-
<a name="Object+$keys"></a>
|
|
1801
|
-
|
|
1802
|
-
### object.$keys() ⇒ [<code>Object</code>](#Object)
|
|
1803
|
-
Get keys of the object
|
|
1804
|
-
|
|
1805
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1806
|
-
**Example**
|
|
1807
|
-
```javascript
|
|
1808
|
-
({ one: 1, two: 2, three: 3 }).$keys(); // ["one", "two", "three"]
|
|
1809
|
-
```
|
|
1810
|
-
<a name="Object+$lowerCaseKeys"></a>
|
|
1811
|
-
|
|
1812
|
-
### object.$lowerCaseKeys() ⇒ [<code>Object</code>](#Object)
|
|
1813
|
-
Creates a new object from the specified object, where all the keys are in lowercase
|
|
1814
|
-
|
|
1815
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1816
|
-
**Example**
|
|
1817
|
-
```javascript
|
|
1818
|
-
const myObj = { Name: "Adam", sUrnAME: "Smith" };
|
|
1819
|
-
const myObjLower = myObj.$lowerCaseKeys(); // {name: "Adam", surname: "Smith"}
|
|
1820
|
-
```
|
|
1821
|
-
<a name="Object+$map"></a>
|
|
1822
|
-
|
|
1823
|
-
### object.$map(fn) ⇒ [<code>Object</code>](#Object)
|
|
1824
|
-
Creates an object with keys and values
|
|
1825
|
-
generated by running the provided function for each value
|
|
1826
|
-
|
|
1827
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1828
|
-
|
|
1829
|
-
| Param | Type |
|
|
1830
|
-
| --- | --- |
|
|
1831
|
-
| fn | <code>function</code> |
|
|
1832
|
-
|
|
1833
|
-
**Example**
|
|
1834
|
-
```javascript
|
|
1835
|
-
const users = {
|
|
1836
|
-
fred: { user: "fred", age: 40 },
|
|
1837
|
-
pebbles: { user: "pebbles", age: 1 }
|
|
1838
|
-
};
|
|
1839
|
-
users.$map(u => u.age); // { fred: 40, pebbles: 1 }
|
|
1840
|
-
```
|
|
1841
|
-
<a name="Object+$mapKeys"></a>
|
|
1842
|
-
|
|
1843
|
-
### object.$mapKeys(fn) ⇒ [<code>Object</code>](#Object)
|
|
1844
|
-
Creates an object with keys generated by running the provided function for each key
|
|
1845
|
-
and the same values as the provided object
|
|
1846
|
-
|
|
1847
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1848
|
-
|
|
1849
|
-
| Param | Type |
|
|
1850
|
-
| --- | --- |
|
|
1851
|
-
| fn | <code>function</code> |
|
|
1852
|
-
|
|
1853
|
-
**Example**
|
|
1854
|
-
```javascript
|
|
1855
|
-
({ a: 1, b: 2 }).$mapKeys((val, key) => key + val); // { a1: 1, b2: 2 }
|
|
1856
|
-
```
|
|
1857
|
-
<a name="Object+$mapValues"></a>
|
|
1858
|
-
|
|
1859
|
-
### object.$mapValues(fn) ⇒ [<code>Object</code>](#Object)
|
|
1860
|
-
Creates an object with the same keys as the provided object and values
|
|
1861
|
-
generated by running the provided function for each value
|
|
1862
|
-
|
|
1863
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1864
|
-
|
|
1865
|
-
| Param | Type |
|
|
1866
|
-
| --- | --- |
|
|
1867
|
-
| fn | <code>function</code> |
|
|
1868
|
-
|
|
1869
|
-
**Example**
|
|
1870
|
-
```javascript
|
|
1871
|
-
const users = {
|
|
1872
|
-
fred: { user: "fred", age: 40 },
|
|
1873
|
-
pebbles: { user: "pebbles", age: 1 }
|
|
1874
|
-
};
|
|
1875
|
-
users.$mapValues(u => u.age); // { fred: 40, pebbles: 1 }
|
|
1876
|
-
```
|
|
1877
|
-
<a name="Object+$merge"></a>
|
|
1878
|
-
|
|
1879
|
-
### object.$merge(...objects) ⇒ [<code>Object</code>](#Object)
|
|
1880
|
-
Creates a new object from the combination of two or more objects
|
|
1881
|
-
|
|
1882
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1883
|
-
|
|
1884
|
-
| Param | Type |
|
|
1885
|
-
| --- | --- |
|
|
1886
|
-
| ...objects | [<code>Object</code>](#Object) |
|
|
1887
|
-
|
|
1888
|
-
**Example**
|
|
1889
|
-
```javascript
|
|
1890
|
-
const object = {
|
|
1891
|
-
a: [{ x: 2 }, { y: 4 }],
|
|
1892
|
-
b: 1
|
|
1893
|
-
};
|
|
1894
|
-
const other = {
|
|
1895
|
-
a: { z: 3 },
|
|
1896
|
-
b: [2, 3],
|
|
1897
|
-
c: "foo"
|
|
1898
|
-
};
|
|
1899
|
-
object.$merge(other); // { a: [ { x: 2 }, { y: 4 }, { z: 3 } ], b: [ 1, 2, 3 ], c: "foo" }
|
|
1900
|
-
```
|
|
1901
|
-
<a name="Object+$omit"></a>
|
|
1902
|
-
|
|
1903
|
-
### object.$omit(arr) ⇒ [<code>Object</code>](#Object)
|
|
1904
|
-
Omits the key-value pairs corresponding to the given keys from an object; or
|
|
1905
|
-
Creates an object composed of the properties the given function returns falsey for.
|
|
1906
|
-
The function is invoked with two arguments: (value, key)
|
|
1907
|
-
|
|
1908
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1909
|
-
|
|
1910
|
-
| Param | Type |
|
|
1911
|
-
| --- | --- |
|
|
1912
|
-
| arr | [<code>Array.<String></code>](#String) \| <code>function</code> |
|
|
1913
|
-
|
|
1914
|
-
**Example**
|
|
1915
|
-
```javascript
|
|
1916
|
-
{ a: 1, b: '2', c: 3 }.$omit(['b']); // { a: 1, c: 3 }
|
|
1917
|
-
{ a: 1, b: '2', c: 3 }.$omit((x) => typeof x === 'number'); // { b: '2' }
|
|
1918
|
-
```
|
|
1919
|
-
<a name="Object+$reduce"></a>
|
|
1920
|
-
|
|
1921
|
-
### object.$reduce(fn, initialValue) ⇒ <code>\*</code>
|
|
1922
|
-
Just like array.reduce
|
|
1923
|
-
|
|
1924
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1925
|
-
|
|
1926
|
-
| Param | Type |
|
|
1927
|
-
| --- | --- |
|
|
1928
|
-
| fn | <code>function</code> |
|
|
1929
|
-
| initialValue | <code>\*</code> |
|
|
1930
|
-
|
|
1931
|
-
**Example**
|
|
1932
|
-
```javascript
|
|
1933
|
-
({foo: 1, bar: 2}).$reduce((prev, value, key) => [...prev, key + ":" + value], []);
|
|
1934
|
-
// ["foo:1", "bar:2"]
|
|
1935
|
-
```
|
|
1936
|
-
<a name="Object+$set"></a>
|
|
1937
|
-
|
|
1938
|
-
### object.$set(path, value)
|
|
1939
|
-
Puts the property value indicated by the given selector into the object
|
|
1940
|
-
|
|
1941
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1942
|
-
|
|
1943
|
-
| Param | Type |
|
|
1944
|
-
| --- | --- |
|
|
1945
|
-
| path | [<code>String</code>](#String) |
|
|
1946
|
-
| value | <code>\*</code> |
|
|
1947
|
-
|
|
1948
|
-
**Example**
|
|
1949
|
-
```javascript
|
|
1950
|
-
const obj = { selector: { to: { val: 'val to select' } } };
|
|
1951
|
-
obj.$set('selector.to.val');
|
|
1952
|
-
// obj -> { selector: { to: { val: 'val to select' } } }
|
|
1953
|
-
```
|
|
1954
|
-
<a name="Object+$size"></a>
|
|
1955
|
-
|
|
1956
|
-
### object.$size() ⇒ [<code>Object</code>](#Object)
|
|
1957
|
-
Get size of the object
|
|
1958
|
-
|
|
1959
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1960
|
-
**Example**
|
|
1961
|
-
```javascript
|
|
1962
|
-
{ one: 1, two: 2, three: 3 }.$size(); // 3
|
|
1963
|
-
```
|
|
1964
|
-
<a name="Object+$snakeCaseKeys"></a>
|
|
1965
|
-
|
|
1966
|
-
### object.$snakeCaseKeys() ⇒ [<code>Object</code>](#Object)
|
|
1967
|
-
Creates a new object from the specified object, where all the keys are in snake-case
|
|
1968
|
-
|
|
1969
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1970
|
-
**Example**
|
|
1971
|
-
```javascript
|
|
1972
|
-
const myObj = { FirstName: "Adam", "last-name": "Smith" };
|
|
1973
|
-
const myObjLower = myObj.$snakeCaseKeys(); // {first_name: "Adam", last_name: "Smith"}
|
|
1974
|
-
```
|
|
1975
|
-
<a name="Object+$values"></a>
|
|
1976
|
-
|
|
1977
|
-
### object.$values() ⇒ [<code>Object</code>](#Object)
|
|
1978
|
-
Get values of the object
|
|
1979
|
-
|
|
1980
|
-
**Kind**: instance method of [<code>Object</code>](#Object)
|
|
1981
|
-
**Example**
|
|
1982
|
-
```javascript
|
|
1983
|
-
({ one: 1, two: 2, three: 3 }).$values(); // [1, 2, 3]
|
|
1984
|
-
```
|
|
1985
|
-
<a name="Object.isObject"></a>
|
|
1986
|
-
|
|
1987
|
-
### Object.isObject(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
1988
|
-
Returns true if the given argument is an object
|
|
1989
|
-
|
|
1990
|
-
**Kind**: static method of [<code>Object</code>](#Object)
|
|
1991
|
-
|
|
1992
|
-
| Param | Type |
|
|
1993
|
-
| --- | --- |
|
|
1994
|
-
| arg | <code>\*</code> |
|
|
1995
|
-
|
|
1996
|
-
**Example**
|
|
1997
|
-
```javascript
|
|
1998
|
-
Object.isObject(2); // false
|
|
1999
|
-
Object.isObject({foo: 'bar'}); // true
|
|
2000
|
-
```
|
|
2001
|
-
<a name="Object.isObjectLike"></a>
|
|
2002
|
-
|
|
2003
|
-
### Object.isObjectLike(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2004
|
-
Returns true if the given argument is object like
|
|
2005
|
-
|
|
2006
|
-
**Kind**: static method of [<code>Object</code>](#Object)
|
|
2007
|
-
|
|
2008
|
-
| Param | Type |
|
|
2009
|
-
| --- | --- |
|
|
2010
|
-
| arg | <code>\*</code> |
|
|
2011
|
-
|
|
2012
|
-
**Example**
|
|
2013
|
-
```javascript
|
|
2014
|
-
Object.isObjectLike(2); // false
|
|
2015
|
-
Object.isObjectLike({foo: 'bar'}); // true
|
|
2016
|
-
```
|
|
2017
|
-
<a name="Object.isPlainObject"></a>
|
|
2018
|
-
|
|
2019
|
-
### Object.isPlainObject(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2020
|
-
Returns true if the given argument is a plain object
|
|
2021
|
-
|
|
2022
|
-
**Kind**: static method of [<code>Object</code>](#Object)
|
|
2023
|
-
|
|
2024
|
-
| Param | Type |
|
|
2025
|
-
| --- | --- |
|
|
2026
|
-
| arg | <code>\*</code> |
|
|
2027
|
-
|
|
2028
|
-
**Example**
|
|
2029
|
-
```javascript
|
|
2030
|
-
Object.isPlainObject(2); // false
|
|
2031
|
-
Object.isPlainObject({foo: 'bar'}); // true
|
|
2032
|
-
```
|
|
2033
|
-
<a name="String"></a>
|
|
2034
|
-
|
|
2035
|
-
## String : <code>object</code>
|
|
2036
|
-
**Kind**: global namespace
|
|
2037
|
-
|
|
2038
|
-
* [String](#String) : <code>object</code>
|
|
2039
|
-
* _instance_
|
|
2040
|
-
* [.base64()](#String+base64) ⇒ [<code>String</code>](#String)
|
|
2041
|
-
* [.base64Decode()](#String+base64Decode) ⇒ [<code>String</code>](#String)
|
|
2042
|
-
* [.camelCase()](#String+camelCase) ⇒ [<code>String</code>](#String)
|
|
2043
|
-
* [.capitalize([allWords])](#String+capitalize) ⇒ [<code>String</code>](#String)
|
|
2044
|
-
* [.chars()](#String+chars) ⇒ [<code>Array.<String></code>](#String)
|
|
2045
|
-
* [.contains(str, [sensitive])](#String+contains) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2046
|
-
* [.decapitalize([allWords])](#String+decapitalize) ⇒ [<code>String</code>](#String)
|
|
2047
|
-
* [.equals(value)](#String+equals) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2048
|
-
* [.forEach(fn)](#String+forEach) ⇒ <code>void</code>
|
|
2049
|
-
* [.humanize()](#String+humanize) ⇒ [<code>String</code>](#String)
|
|
2050
|
-
* [.isEmpty()](#String+isEmpty) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2051
|
-
* [.kebabCase()](#String+kebabCase) ⇒ [<code>String</code>](#String)
|
|
2052
|
-
* [.lines()](#String+lines) ⇒ [<code>Array.<String></code>](#String)
|
|
2053
|
-
* [.map(fn)](#String+map) ⇒ [<code>Array.<String></code>](#String)
|
|
2054
|
-
* [.mask([num], [mask])](#String+mask) ⇒ [<code>String</code>](#String)
|
|
2055
|
-
* [.pad(size, [value])](#String+pad) ⇒ [<code>String</code>](#String)
|
|
2056
|
-
* [.parseInt([radix])](#String+parseInt) ⇒ [<code>Number</code>](#Number)
|
|
2057
|
-
* [.pluralize([count])](#String+pluralize) ⇒ [<code>String</code>](#String)
|
|
2058
|
-
* [.reduce(fn, initialValue)](#String+reduce) ⇒ <code>\*</code>
|
|
2059
|
-
* [.reverse()](#String+reverse) ⇒ [<code>String</code>](#String)
|
|
2060
|
-
* [.snakeCase()](#String+snakeCase) ⇒ [<code>String</code>](#String)
|
|
2061
|
-
* [.swapCase()](#String+swapCase) ⇒ [<code>String</code>](#String)
|
|
2062
|
-
* [.truncate(num, [truncateString])](#String+truncate) ⇒ [<code>String</code>](#String)
|
|
2063
|
-
* [.words([pattern])](#String+words) ⇒ [<code>Array.<String></code>](#String)
|
|
2064
|
-
* _static_
|
|
2065
|
-
* [.isString(arg)](#String.isString) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2066
|
-
* [.repeat(n, [value])](#String.repeat) ⇒ [<code>String</code>](#String)
|
|
2067
|
-
|
|
2068
|
-
<a name="String+base64"></a>
|
|
2069
|
-
|
|
2070
|
-
### string.base64() ⇒ [<code>String</code>](#String)
|
|
2071
|
-
Encodes data with MIME base64
|
|
2072
|
-
|
|
2073
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2074
|
-
**Example**
|
|
2075
|
-
```javascript
|
|
2076
|
-
'prototyped.js'.base64(); // 'cHJvdG90eXBlZC5qcw=='
|
|
2077
|
-
```
|
|
2078
|
-
<a name="String+base64Decode"></a>
|
|
2079
|
-
|
|
2080
|
-
### string.base64Decode() ⇒ [<code>String</code>](#String)
|
|
2081
|
-
Decodes data encoded with MIME base64
|
|
2082
|
-
|
|
2083
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2084
|
-
**Example**
|
|
2085
|
-
```javascript
|
|
2086
|
-
"cHJvdG90eXBlZC5qcw==".base64Decode(); // "prototyped.js"
|
|
2087
|
-
```
|
|
2088
|
-
<a name="String+camelCase"></a>
|
|
2089
|
-
|
|
2090
|
-
### string.camelCase() ⇒ [<code>String</code>](#String)
|
|
2091
|
-
Converts the string to camelcase
|
|
2092
|
-
|
|
2093
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2094
|
-
**Example**
|
|
2095
|
-
```javascript
|
|
2096
|
-
"some_database_field_name".camelCase(); // "someDatabaseFieldName"
|
|
2097
|
-
"Some label that needs to be camelized".camelCase(); // "someLabelThatNeedsToBeCamelized"
|
|
2098
|
-
"some-javascript-property".camelCase(); // "someJavascriptProperty"
|
|
2099
|
-
"some-mixed_string with spaces_underscores-and-hyphens".camelCase();
|
|
2100
|
-
// "someMixedStringWithSpacesUnderscoresAndHyphens"
|
|
2101
|
-
```
|
|
2102
|
-
<a name="String+capitalize"></a>
|
|
2103
|
-
|
|
2104
|
-
### string.capitalize([allWords]) ⇒ [<code>String</code>](#String)
|
|
2105
|
-
Returns the capitalized string
|
|
2106
|
-
|
|
2107
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2108
|
-
|
|
2109
|
-
| Param | Type | Default |
|
|
2110
|
-
| --- | --- | --- |
|
|
2111
|
-
| [allWords] | [<code>Boolean</code>](#Boolean) | <code>false</code> |
|
|
2112
|
-
|
|
2113
|
-
**Example**
|
|
2114
|
-
```javascript
|
|
2115
|
-
'foo bar'.capitalize(); // 'Foo bar'
|
|
2116
|
-
'hello world'.capitalize(true); // 'Hello World'
|
|
2117
|
-
```
|
|
2118
|
-
<a name="String+chars"></a>
|
|
2119
|
-
|
|
2120
|
-
### string.chars() ⇒ [<code>Array.<String></code>](#String)
|
|
2121
|
-
Returns an array of the string's character
|
|
2122
|
-
|
|
2123
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2124
|
-
**Example**
|
|
2125
|
-
```javascript
|
|
2126
|
-
"Hello".chars(); // ["H", "e", "l", "l", "o"]
|
|
2127
|
-
```
|
|
2128
|
-
<a name="String+contains"></a>
|
|
2129
|
-
|
|
2130
|
-
### string.contains(str, [sensitive]) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2131
|
-
Find out if the string contains the argument at any position
|
|
2132
|
-
|
|
2133
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2134
|
-
|
|
2135
|
-
| Param | Type | Default |
|
|
2136
|
-
| --- | --- | --- |
|
|
2137
|
-
| str | [<code>String</code>](#String) | |
|
|
2138
|
-
| [sensitive] | [<code>Boolean</code>](#Boolean) | <code>false</code> |
|
|
2139
|
-
|
|
2140
|
-
**Example**
|
|
2141
|
-
```javascript
|
|
2142
|
-
'javaScript & typescript'.contains('Typescript'); // true
|
|
2143
|
-
'javaScript & typescript'.contains('Typescript', true); // false
|
|
2144
|
-
```
|
|
2145
|
-
<a name="String+decapitalize"></a>
|
|
2146
|
-
|
|
2147
|
-
### string.decapitalize([allWords]) ⇒ [<code>String</code>](#String)
|
|
2148
|
-
Returns the decapitalized string
|
|
2149
|
-
|
|
2150
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2151
|
-
|
|
2152
|
-
| Param | Type | Default |
|
|
2153
|
-
| --- | --- | --- |
|
|
2154
|
-
| [allWords] | [<code>Boolean</code>](#Boolean) | <code>false</code> |
|
|
2155
|
-
|
|
2156
|
-
**Example**
|
|
2157
|
-
```javascript
|
|
2158
|
-
'Foo Bar'.decapitalize(); // 'foo Bar'
|
|
2159
|
-
'Hello World'.decapitalize(true); // 'hello world'
|
|
2160
|
-
```
|
|
2161
|
-
<a name="String+equals"></a>
|
|
2162
|
-
|
|
2163
|
-
### string.equals(value) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2164
|
-
Checks if the string is equal to the given value
|
|
2165
|
-
|
|
2166
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2167
|
-
|
|
2168
|
-
| Param | Type |
|
|
2169
|
-
| --- | --- |
|
|
2170
|
-
| value | <code>\*</code> |
|
|
2171
|
-
|
|
2172
|
-
**Example**
|
|
2173
|
-
```javascript
|
|
2174
|
-
"hello".equals("Hello"); // false
|
|
2175
|
-
```
|
|
2176
|
-
<a name="String+forEach"></a>
|
|
2177
|
-
|
|
2178
|
-
### string.forEach(fn) ⇒ <code>void</code>
|
|
2179
|
-
Just like array.forEach
|
|
2180
|
-
|
|
2181
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2182
|
-
|
|
2183
|
-
| Param | Type |
|
|
2184
|
-
| --- | --- |
|
|
2185
|
-
| fn | <code>function</code> |
|
|
2186
|
-
|
|
2187
|
-
**Example**
|
|
2188
|
-
```javascript
|
|
2189
|
-
'Hello'.forEach((char, index) => char == 'o' && consol.log(index)); // console logs 4
|
|
2190
|
-
```
|
|
2191
|
-
<a name="String+humanize"></a>
|
|
2192
|
-
|
|
2193
|
-
### string.humanize() ⇒ [<code>String</code>](#String)
|
|
2194
|
-
Converts an underscored, camelized, or dasherized string into a humanized one.
|
|
2195
|
-
Also removes beginning and ending whitespace
|
|
2196
|
-
|
|
2197
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2198
|
-
**Example**
|
|
2199
|
-
```javascript
|
|
2200
|
-
' capitalize dash-CamelCase_underscore trim '.humanize();
|
|
2201
|
-
// 'Capitalize dash camel case underscore trim'
|
|
2202
|
-
```
|
|
2203
|
-
<a name="String+isEmpty"></a>
|
|
2204
|
-
|
|
2205
|
-
### string.isEmpty() ⇒ [<code>Boolean</code>](#Boolean)
|
|
2206
|
-
Checks if the string is empty
|
|
2207
|
-
|
|
2208
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2209
|
-
**Example**
|
|
2210
|
-
```javascript
|
|
2211
|
-
"123".isEmpty(); // false
|
|
2212
|
-
"".isEmpty(); // true
|
|
2213
|
-
```
|
|
2214
|
-
<a name="String+kebabCase"></a>
|
|
2215
|
-
|
|
2216
|
-
### string.kebabCase() ⇒ [<code>String</code>](#String)
|
|
2217
|
-
Converts a string to kebab case
|
|
2218
|
-
|
|
2219
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2220
|
-
**Example**
|
|
2221
|
-
```javascript
|
|
2222
|
-
"camelCase".kebabCase(); // "camel-case"
|
|
2223
|
-
"some text".kebabCase(); // "some-text"
|
|
2224
|
-
"some-mixed_string With spaces_underscores-and-hyphens".kebabCase();
|
|
2225
|
-
// "some-mixed-string-with-spaces-underscores-and-hyphens"
|
|
2226
|
-
"AllThe-small Things".kebabCase(); // "all-the-small-things"
|
|
2227
|
-
"IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML".kebabCase();
|
|
2228
|
-
// "i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html"
|
|
2229
|
-
```
|
|
2230
|
-
<a name="String+lines"></a>
|
|
2231
|
-
|
|
2232
|
-
### string.lines() ⇒ [<code>Array.<String></code>](#String)
|
|
2233
|
-
Splits a multiline string into an array of lines
|
|
2234
|
-
|
|
2235
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2236
|
-
**Example**
|
|
2237
|
-
```javascript
|
|
2238
|
-
'This\nis a\nmultiline\nstring.\n'.lines(); // ['This', 'is a', 'multiline', 'string.' , '']
|
|
2239
|
-
```
|
|
2240
|
-
<a name="String+map"></a>
|
|
2241
|
-
|
|
2242
|
-
### string.map(fn) ⇒ [<code>Array.<String></code>](#String)
|
|
2243
|
-
Just like array.map
|
|
2244
|
-
|
|
2245
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2246
|
-
|
|
2247
|
-
| Param | Type |
|
|
2248
|
-
| --- | --- |
|
|
2249
|
-
| fn | <code>function</code> |
|
|
2250
|
-
|
|
2251
|
-
**Example**
|
|
2252
|
-
```javascript
|
|
2253
|
-
'Hello'.map((char) => char == 'o' ? 'O' : char); // 'HellO'
|
|
2254
|
-
```
|
|
2255
|
-
<a name="String+mask"></a>
|
|
2256
|
-
|
|
2257
|
-
### string.mask([num], [mask]) ⇒ [<code>String</code>](#String)
|
|
2258
|
-
Replaces all but the last num of characters with the specified mask character
|
|
2259
|
-
|
|
2260
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2261
|
-
|
|
2262
|
-
| Param | Type | Default |
|
|
2263
|
-
| --- | --- | --- |
|
|
2264
|
-
| [num] | [<code>Number</code>](#Number) | <code>4</code> |
|
|
2265
|
-
| [mask] | [<code>String</code>](#String) | <code>'*'</code> |
|
|
2266
|
-
|
|
2267
|
-
**Example**
|
|
2268
|
-
```javascript
|
|
2269
|
-
'1234567890'.mask(); // '******7890'
|
|
2270
|
-
'1234567890'.mask(3); // '*******890'
|
|
2271
|
-
'1234567890'.mask(-4, '$'); // '$$$$567890'
|
|
2272
|
-
```
|
|
2273
|
-
<a name="String+pad"></a>
|
|
2274
|
-
|
|
2275
|
-
### string.pad(size, [value]) ⇒ [<code>String</code>](#String)
|
|
2276
|
-
FillS the string with the given value until the string reaches the specified size
|
|
2277
|
-
|
|
2278
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2279
|
-
|
|
2280
|
-
| Param | Type | Default |
|
|
2281
|
-
| --- | --- | --- |
|
|
2282
|
-
| size | [<code>Number</code>](#Number) | |
|
|
2283
|
-
| [value] | [<code>String</code>](#String) | <code>" "</code> |
|
|
2284
|
-
|
|
2285
|
-
**Example**
|
|
2286
|
-
```javascript
|
|
2287
|
-
"123".pad(5, 0); // "12300"
|
|
2288
|
-
"123".pad(-5, 0); // "00123"
|
|
2289
|
-
```
|
|
2290
|
-
<a name="String+parseInt"></a>
|
|
2291
|
-
|
|
2292
|
-
### string.parseInt([radix]) ⇒ [<code>Number</code>](#Number)
|
|
2293
|
-
Converts string to an integer of the specified radix
|
|
2294
|
-
|
|
2295
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2296
|
-
|
|
2297
|
-
| Param | Type |
|
|
2298
|
-
| --- | --- |
|
|
2299
|
-
| [radix] | [<code>Number</code>](#Number) |
|
|
2300
|
-
|
|
2301
|
-
**Example**
|
|
2302
|
-
```javascript
|
|
2303
|
-
"08".parseInt(); // 8
|
|
2304
|
-
```
|
|
2305
|
-
<a name="String+pluralize"></a>
|
|
2306
|
-
|
|
2307
|
-
### string.pluralize([count]) ⇒ [<code>String</code>](#String)
|
|
2308
|
-
Returns the singular or plural form of the word based on the input number
|
|
2309
|
-
|
|
2310
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2311
|
-
|
|
2312
|
-
| Param | Type |
|
|
2313
|
-
| --- | --- |
|
|
2314
|
-
| [count] | [<code>Number</code>](#Number) |
|
|
2315
|
-
|
|
2316
|
-
**Example**
|
|
2317
|
-
```javascript
|
|
2318
|
-
'apple'.pluralize(); // 'apples'
|
|
2319
|
-
'apple'.pluralize(0); // 'apples'
|
|
2320
|
-
'apple'.pluralize(1); // 'apple'
|
|
2321
|
-
'apple'.pluralize(2); // 'apples'
|
|
2322
|
-
'person'.pluralize(2); // 'people'
|
|
2323
|
-
'people'.pluralize(1); // 'person'
|
|
2324
|
-
```
|
|
2325
|
-
<a name="String+reduce"></a>
|
|
2326
|
-
|
|
2327
|
-
### string.reduce(fn, initialValue) ⇒ <code>\*</code>
|
|
2328
|
-
Just like array.reduce
|
|
2329
|
-
|
|
2330
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2331
|
-
|
|
2332
|
-
| Param | Type |
|
|
2333
|
-
| --- | --- |
|
|
2334
|
-
| fn | <code>function</code> |
|
|
2335
|
-
| initialValue | <code>\*</code> |
|
|
2336
|
-
|
|
2337
|
-
**Example**
|
|
2338
|
-
```javascript
|
|
2339
|
-
'123'.reduce((prev, char) => prev + (+char), 0); // 6
|
|
2340
|
-
```
|
|
2341
|
-
<a name="String+reverse"></a>
|
|
2342
|
-
|
|
2343
|
-
### string.reverse() ⇒ [<code>String</code>](#String)
|
|
2344
|
-
Reverses the string
|
|
2345
|
-
|
|
2346
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2347
|
-
**Example**
|
|
2348
|
-
```javascript
|
|
2349
|
-
"foobar".reverse(); // "raboof"
|
|
2350
|
-
```
|
|
2351
|
-
<a name="String+snakeCase"></a>
|
|
2352
|
-
|
|
2353
|
-
### string.snakeCase() ⇒ [<code>String</code>](#String)
|
|
2354
|
-
Converts a string to snake case
|
|
2355
|
-
|
|
2356
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2357
|
-
**Example**
|
|
2358
|
-
```javascript
|
|
2359
|
-
'camelCase'.snakeCase(); // 'camel_case'
|
|
2360
|
-
'some text'.snakeCase(); // 'some_text'
|
|
2361
|
-
'some-mixed_string With spaces_underscores-and-hyphens'.snakeCase();
|
|
2362
|
-
// 'some_mixed_string_with_spaces_underscores_and_hyphens'
|
|
2363
|
-
'AllThe-small Things'.snakeCase(); // "all_the_small_things"
|
|
2364
|
-
'IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML'.snakeCase();
|
|
2365
|
-
// 'i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_some_xml_and_html'
|
|
2366
|
-
```
|
|
2367
|
-
<a name="String+swapCase"></a>
|
|
2368
|
-
|
|
2369
|
-
### string.swapCase() ⇒ [<code>String</code>](#String)
|
|
2370
|
-
Returns a copy of the string in which all the case-based characters have had their case swapped
|
|
2371
|
-
|
|
2372
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2373
|
-
**Example**
|
|
2374
|
-
```javascript
|
|
2375
|
-
'Hello'.swapCase(); // 'hELLO'
|
|
2376
|
-
```
|
|
2377
|
-
<a name="String+truncate"></a>
|
|
2378
|
-
|
|
2379
|
-
### string.truncate(num, [truncateString]) ⇒ [<code>String</code>](#String)
|
|
2380
|
-
Truncates a string up to a specified length
|
|
2381
|
-
|
|
2382
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2383
|
-
|
|
2384
|
-
| Param | Type | Default |
|
|
2385
|
-
| --- | --- | --- |
|
|
2386
|
-
| num | [<code>Number</code>](#Number) | |
|
|
2387
|
-
| [truncateString] | [<code>String</code>](#String) | <code>"..."</code> |
|
|
2388
|
-
|
|
2389
|
-
**Example**
|
|
2390
|
-
```javascript
|
|
2391
|
-
'boomerang'.truncate(7); // 'boom...'
|
|
2392
|
-
'boomerang'.truncate(7, '....'); // 'boo....'
|
|
2393
|
-
```
|
|
2394
|
-
<a name="String+words"></a>
|
|
2395
|
-
|
|
2396
|
-
### string.words([pattern]) ⇒ [<code>Array.<String></code>](#String)
|
|
2397
|
-
Converts a given string into an array of words
|
|
2398
|
-
|
|
2399
|
-
**Kind**: instance method of [<code>String</code>](#String)
|
|
2400
|
-
|
|
2401
|
-
| Param | Type | Default |
|
|
2402
|
-
| --- | --- | --- |
|
|
2403
|
-
| [pattern] | <code>RegExp</code> | <code>/[^a-zA-Z-]+/</code> |
|
|
2404
|
-
|
|
2405
|
-
**Example**
|
|
2406
|
-
```javascript
|
|
2407
|
-
'I love javaScript!!'.words(); // ["I", "love", "javaScript"]
|
|
2408
|
-
'python, javaScript & coffee'.words(); // ["python", "javaScript", "coffee"]
|
|
2409
|
-
```
|
|
2410
|
-
<a name="String.isString"></a>
|
|
2411
|
-
|
|
2412
|
-
### String.isString(arg) ⇒ [<code>Boolean</code>](#Boolean)
|
|
2413
|
-
Returns true if the given argument is an string
|
|
2414
|
-
|
|
2415
|
-
**Kind**: static method of [<code>String</code>](#String)
|
|
2416
|
-
|
|
2417
|
-
| Param | Type |
|
|
2418
|
-
| --- | --- |
|
|
2419
|
-
| arg | <code>\*</code> |
|
|
2420
|
-
|
|
2421
|
-
**Example**
|
|
2422
|
-
```javascript
|
|
2423
|
-
String.isString(2); // false
|
|
2424
|
-
String.isString("foo bar"); // true
|
|
2425
|
-
```
|
|
2426
|
-
<a name="String.repeat"></a>
|
|
2427
|
-
|
|
2428
|
-
### String.repeat(n, [value]) ⇒ [<code>String</code>](#String)
|
|
2429
|
-
Initializes and fills an string with the specified value
|
|
2430
|
-
|
|
2431
|
-
**Kind**: static method of [<code>String</code>](#String)
|
|
2432
|
-
|
|
2433
|
-
| Param | Type | Default |
|
|
2434
|
-
| --- | --- | --- |
|
|
2435
|
-
| n | [<code>Number</code>](#Number) | |
|
|
2436
|
-
| [value] | [<code>String</code>](#String) | <code>" "</code> |
|
|
2437
|
-
|
|
2438
|
-
**Example**
|
|
2439
|
-
```javascript
|
|
2440
|
-
String.repeat(5, "2"); // "22222"
|
|
2441
|
-
```
|