@vinicunca/perkakas 0.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/LICENSE +21 -0
- package/dist/commonjs/aria/index.d.ts +2 -0
- package/dist/commonjs/aria/index.d.ts.map +1 -0
- package/dist/commonjs/aria/index.js +17 -0
- package/dist/commonjs/aria/key-codes.d.ts +23 -0
- package/dist/commonjs/aria/key-codes.d.ts.map +1 -0
- package/dist/commonjs/aria/key-codes.js +25 -0
- package/dist/commonjs/array/all-pass.d.ts +3 -0
- package/dist/commonjs/array/all-pass.d.ts.map +1 -0
- package/dist/commonjs/array/all-pass.js +11 -0
- package/dist/commonjs/array/any-pass.d.ts +3 -0
- package/dist/commonjs/array/any-pass.d.ts.map +1 -0
- package/dist/commonjs/array/any-pass.js +11 -0
- package/dist/commonjs/array/chunk.d.ts +6 -0
- package/dist/commonjs/array/chunk.d.ts.map +1 -0
- package/dist/commonjs/array/chunk.js +17 -0
- package/dist/commonjs/array/compact.d.ts +2 -0
- package/dist/commonjs/array/compact.d.ts.map +1 -0
- package/dist/commonjs/array/compact.js +8 -0
- package/dist/commonjs/array/concat.d.ts +3 -0
- package/dist/commonjs/array/concat.d.ts.map +1 -0
- package/dist/commonjs/array/concat.js +11 -0
- package/dist/commonjs/array/count-by.d.ts +8 -0
- package/dist/commonjs/array/count-by.d.ts.map +1 -0
- package/dist/commonjs/array/count-by.js +22 -0
- package/dist/commonjs/array/difference-with.d.ts +9 -0
- package/dist/commonjs/array/difference-with.d.ts.map +1 -0
- package/dist/commonjs/array/difference-with.js +31 -0
- package/dist/commonjs/array/difference.d.ts +7 -0
- package/dist/commonjs/array/difference.d.ts.map +1 -0
- package/dist/commonjs/array/difference.js +32 -0
- package/dist/commonjs/array/drop-last.d.ts +3 -0
- package/dist/commonjs/array/drop-last.d.ts.map +1 -0
- package/dist/commonjs/array/drop-last.js +15 -0
- package/dist/commonjs/array/drop.d.ts +7 -0
- package/dist/commonjs/array/drop.d.ts.map +1 -0
- package/dist/commonjs/array/drop.js +32 -0
- package/dist/commonjs/array/filter.d.ts +17 -0
- package/dist/commonjs/array/filter.d.ts.map +1 -0
- package/dist/commonjs/array/filter.js +41 -0
- package/dist/commonjs/array/find-index.d.ts +32 -0
- package/dist/commonjs/array/find-index.d.ts.map +1 -0
- package/dist/commonjs/array/find-index.js +46 -0
- package/dist/commonjs/array/find-last-index.d.ts +8 -0
- package/dist/commonjs/array/find-last-index.d.ts.map +1 -0
- package/dist/commonjs/array/find-last-index.js +24 -0
- package/dist/commonjs/array/find-last.d.ts +8 -0
- package/dist/commonjs/array/find-last.d.ts.map +1 -0
- package/dist/commonjs/array/find-last.js +23 -0
- package/dist/commonjs/array/find.d.ts +24 -0
- package/dist/commonjs/array/find.d.ts.map +1 -0
- package/dist/commonjs/array/find.js +38 -0
- package/dist/commonjs/array/first.d.ts +16 -0
- package/dist/commonjs/array/first.d.ts.map +1 -0
- package/dist/commonjs/array/first.js +26 -0
- package/dist/commonjs/array/flat-map-to-obj.d.ts +7 -0
- package/dist/commonjs/array/flat-map-to-obj.d.ts.map +1 -0
- package/dist/commonjs/array/flat-map-to-obj.js +25 -0
- package/dist/commonjs/array/flat-map.d.ts +16 -0
- package/dist/commonjs/array/flat-map.d.ts.map +1 -0
- package/dist/commonjs/array/flat-map.js +33 -0
- package/dist/commonjs/array/flatten-deep.d.ts +12 -0
- package/dist/commonjs/array/flatten-deep.d.ts.map +1 -0
- package/dist/commonjs/array/flatten-deep.js +48 -0
- package/dist/commonjs/array/flatten.d.ts +9 -0
- package/dist/commonjs/array/flatten.d.ts.map +1 -0
- package/dist/commonjs/array/flatten.js +32 -0
- package/dist/commonjs/array/for-each.d.ts +13 -0
- package/dist/commonjs/array/for-each.d.ts.map +1 -0
- package/dist/commonjs/array/for-each.js +40 -0
- package/dist/commonjs/array/group-by.d.ts +19 -0
- package/dist/commonjs/array/group-by.d.ts.map +1 -0
- package/dist/commonjs/array/group-by.js +31 -0
- package/dist/commonjs/array/index-by.d.ts +8 -0
- package/dist/commonjs/array/index-by.d.ts.map +1 -0
- package/dist/commonjs/array/index-by.js +24 -0
- package/dist/commonjs/array/index.d.ts +56 -0
- package/dist/commonjs/array/index.d.ts.map +1 -0
- package/dist/commonjs/array/index.js +71 -0
- package/dist/commonjs/array/intersection-with.d.ts +9 -0
- package/dist/commonjs/array/intersection-with.d.ts.map +1 -0
- package/dist/commonjs/array/intersection-with.js +31 -0
- package/dist/commonjs/array/intersection.d.ts +7 -0
- package/dist/commonjs/array/intersection.d.ts.map +1 -0
- package/dist/commonjs/array/intersection.js +32 -0
- package/dist/commonjs/array/join.d.ts +8 -0
- package/dist/commonjs/array/join.d.ts.map +1 -0
- package/dist/commonjs/array/join.js +11 -0
- package/dist/commonjs/array/last.d.ts +5 -0
- package/dist/commonjs/array/last.d.ts.map +1 -0
- package/dist/commonjs/array/last.js +11 -0
- package/dist/commonjs/array/length.d.ts +5 -0
- package/dist/commonjs/array/length.d.ts.map +1 -0
- package/dist/commonjs/array/length.js +11 -0
- package/dist/commonjs/array/map-to-obj.d.ts +7 -0
- package/dist/commonjs/array/map-to-obj.d.ts.map +1 -0
- package/dist/commonjs/array/map-to-obj.js +23 -0
- package/dist/commonjs/array/map.d.ts +26 -0
- package/dist/commonjs/array/map.d.ts.map +1 -0
- package/dist/commonjs/array/map.js +35 -0
- package/dist/commonjs/array/max-by.d.ts +8 -0
- package/dist/commonjs/array/max-by.d.ts.map +1 -0
- package/dist/commonjs/array/max-by.js +28 -0
- package/dist/commonjs/array/mean-by.d.ts +8 -0
- package/dist/commonjs/array/mean-by.d.ts.map +1 -0
- package/dist/commonjs/array/mean-by.js +26 -0
- package/dist/commonjs/array/merge-all.d.ts +7 -0
- package/dist/commonjs/array/merge-all.d.ts.map +1 -0
- package/dist/commonjs/array/merge-all.js +7 -0
- package/dist/commonjs/array/min-by.d.ts +8 -0
- package/dist/commonjs/array/min-by.d.ts.map +1 -0
- package/dist/commonjs/array/min-by.js +28 -0
- package/dist/commonjs/array/partition.d.ts +10 -0
- package/dist/commonjs/array/partition.d.ts.map +1 -0
- package/dist/commonjs/array/partition.js +24 -0
- package/dist/commonjs/array/range.d.ts +3 -0
- package/dist/commonjs/array/range.d.ts.map +1 -0
- package/dist/commonjs/array/range.js +15 -0
- package/dist/commonjs/array/reduce.d.ts +7 -0
- package/dist/commonjs/array/reduce.d.ts.map +1 -0
- package/dist/commonjs/array/reduce.js +19 -0
- package/dist/commonjs/array/reject.d.ts +13 -0
- package/dist/commonjs/array/reject.d.ts.map +1 -0
- package/dist/commonjs/array/reject.js +41 -0
- package/dist/commonjs/array/reverse.d.ts +6 -0
- package/dist/commonjs/array/reverse.d.ts.map +1 -0
- package/dist/commonjs/array/reverse.js +11 -0
- package/dist/commonjs/array/sample.d.ts +11 -0
- package/dist/commonjs/array/sample.d.ts.map +1 -0
- package/dist/commonjs/array/sample.js +34 -0
- package/dist/commonjs/array/shuffle.d.ts +3 -0
- package/dist/commonjs/array/shuffle.d.ts.map +1 -0
- package/dist/commonjs/array/shuffle.js +18 -0
- package/dist/commonjs/array/sort-by.d.ts +27 -0
- package/dist/commonjs/array/sort-by.d.ts.map +1 -0
- package/dist/commonjs/array/sort-by.js +55 -0
- package/dist/commonjs/array/sort.d.ts +15 -0
- package/dist/commonjs/array/sort.d.ts.map +1 -0
- package/dist/commonjs/array/sort.js +16 -0
- package/dist/commonjs/array/split-at.d.ts +3 -0
- package/dist/commonjs/array/split-at.d.ts.map +1 -0
- package/dist/commonjs/array/split-at.js +13 -0
- package/dist/commonjs/array/split-when.d.ts +3 -0
- package/dist/commonjs/array/split-when.d.ts.map +1 -0
- package/dist/commonjs/array/split-when.js +17 -0
- package/dist/commonjs/array/sum-by.d.ts +8 -0
- package/dist/commonjs/array/sum-by.d.ts.map +1 -0
- package/dist/commonjs/array/sum-by.js +24 -0
- package/dist/commonjs/array/swap-indices.d.ts +25 -0
- package/dist/commonjs/array/swap-indices.d.ts.map +1 -0
- package/dist/commonjs/array/swap-indices.js +34 -0
- package/dist/commonjs/array/take-while.d.ts +3 -0
- package/dist/commonjs/array/take-while.d.ts.map +1 -0
- package/dist/commonjs/array/take-while.js +18 -0
- package/dist/commonjs/array/take.d.ts +7 -0
- package/dist/commonjs/array/take.d.ts.map +1 -0
- package/dist/commonjs/array/take.js +38 -0
- package/dist/commonjs/array/uniq-by.d.ts +3 -0
- package/dist/commonjs/array/uniq-by.d.ts.map +1 -0
- package/dist/commonjs/array/uniq-by.js +30 -0
- package/dist/commonjs/array/uniq-with.d.ts +12 -0
- package/dist/commonjs/array/uniq-with.d.ts.map +1 -0
- package/dist/commonjs/array/uniq-with.js +33 -0
- package/dist/commonjs/array/uniq.d.ts +7 -0
- package/dist/commonjs/array/uniq.d.ts.map +1 -0
- package/dist/commonjs/array/uniq.js +32 -0
- package/dist/commonjs/array/zip-obj.d.ts +3 -0
- package/dist/commonjs/array/zip-obj.d.ts.map +1 -0
- package/dist/commonjs/array/zip-obj.js +16 -0
- package/dist/commonjs/array/zip-with.d.ts +4 -0
- package/dist/commonjs/array/zip-with.d.ts.map +1 -0
- package/dist/commonjs/array/zip-with.js +28 -0
- package/dist/commonjs/array/zip.d.ts +3 -0
- package/dist/commonjs/array/zip.d.ts.map +1 -0
- package/dist/commonjs/array/zip.js +16 -0
- package/dist/commonjs/base.d.ts +2 -0
- package/dist/commonjs/base.d.ts.map +1 -0
- package/dist/commonjs/base.js +7 -0
- package/dist/commonjs/function/create-pipe.d.ts +8 -0
- package/dist/commonjs/function/create-pipe.d.ts.map +1 -0
- package/dist/commonjs/function/create-pipe.js +8 -0
- package/dist/commonjs/function/identity.d.ts +2 -0
- package/dist/commonjs/function/identity.d.ts.map +1 -0
- package/dist/commonjs/function/identity.js +7 -0
- package/dist/commonjs/function/index.d.ts +7 -0
- package/dist/commonjs/function/index.d.ts.map +1 -0
- package/dist/commonjs/function/index.js +22 -0
- package/dist/commonjs/function/noop.d.ts +2 -0
- package/dist/commonjs/function/noop.d.ts.map +1 -0
- package/dist/commonjs/function/noop.js +7 -0
- package/dist/commonjs/function/once.d.ts +2 -0
- package/dist/commonjs/function/once.d.ts.map +1 -0
- package/dist/commonjs/function/once.js +15 -0
- package/dist/commonjs/function/pipe.d.ts +16 -0
- package/dist/commonjs/function/pipe.d.ts.map +1 -0
- package/dist/commonjs/function/pipe.js +105 -0
- package/dist/commonjs/function/purry.d.ts +2 -0
- package/dist/commonjs/function/purry.d.ts.map +1 -0
- package/dist/commonjs/function/purry.js +20 -0
- package/dist/commonjs/guard/index.d.ts +16 -0
- package/dist/commonjs/guard/index.d.ts.map +1 -0
- package/dist/commonjs/guard/index.js +31 -0
- package/dist/commonjs/guard/is-array.d.ts +4 -0
- package/dist/commonjs/guard/is-array.d.ts.map +1 -0
- package/dist/commonjs/guard/is-array.js +7 -0
- package/dist/commonjs/guard/is-boolean.d.ts +4 -0
- package/dist/commonjs/guard/is-boolean.d.ts.map +1 -0
- package/dist/commonjs/guard/is-boolean.js +7 -0
- package/dist/commonjs/guard/is-date.d.ts +2 -0
- package/dist/commonjs/guard/is-date.d.ts.map +1 -0
- package/dist/commonjs/guard/is-date.js +7 -0
- package/dist/commonjs/guard/is-defined.d.ts +5 -0
- package/dist/commonjs/guard/is-defined.d.ts.map +1 -0
- package/dist/commonjs/guard/is-defined.js +13 -0
- package/dist/commonjs/guard/is-empty.d.ts +4 -0
- package/dist/commonjs/guard/is-empty.d.ts.map +1 -0
- package/dist/commonjs/guard/is-empty.js +19 -0
- package/dist/commonjs/guard/is-error.d.ts +4 -0
- package/dist/commonjs/guard/is-error.d.ts.map +1 -0
- package/dist/commonjs/guard/is-error.js +7 -0
- package/dist/commonjs/guard/is-function.d.ts +4 -0
- package/dist/commonjs/guard/is-function.d.ts.map +1 -0
- package/dist/commonjs/guard/is-function.js +7 -0
- package/dist/commonjs/guard/is-nil.d.ts +2 -0
- package/dist/commonjs/guard/is-nil.d.ts.map +1 -0
- package/dist/commonjs/guard/is-nil.js +7 -0
- package/dist/commonjs/guard/is-non-null.d.ts +2 -0
- package/dist/commonjs/guard/is-non-null.d.ts.map +1 -0
- package/dist/commonjs/guard/is-non-null.js +7 -0
- package/dist/commonjs/guard/is-not.d.ts +3 -0
- package/dist/commonjs/guard/is-not.d.ts.map +1 -0
- package/dist/commonjs/guard/is-not.js +9 -0
- package/dist/commonjs/guard/is-number.d.ts +4 -0
- package/dist/commonjs/guard/is-number.d.ts.map +1 -0
- package/dist/commonjs/guard/is-number.js +7 -0
- package/dist/commonjs/guard/is-object.d.ts +4 -0
- package/dist/commonjs/guard/is-object.d.ts.map +1 -0
- package/dist/commonjs/guard/is-object.js +8 -0
- package/dist/commonjs/guard/is-promise.d.ts +2 -0
- package/dist/commonjs/guard/is-promise.d.ts.map +1 -0
- package/dist/commonjs/guard/is-promise.js +7 -0
- package/dist/commonjs/guard/is-string.d.ts +4 -0
- package/dist/commonjs/guard/is-string.d.ts.map +1 -0
- package/dist/commonjs/guard/is-string.js +7 -0
- package/dist/commonjs/guard/is-truthy.d.ts +2 -0
- package/dist/commonjs/guard/is-truthy.d.ts.map +1 -0
- package/dist/commonjs/guard/is-truthy.js +7 -0
- package/dist/commonjs/helpers/index.d.ts +8 -0
- package/dist/commonjs/helpers/index.d.ts.map +1 -0
- package/dist/commonjs/helpers/index.js +52 -0
- package/dist/commonjs/index.d.ts +10 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +25 -0
- package/dist/commonjs/number/clamp.d.ts +9 -0
- package/dist/commonjs/number/clamp.d.ts.map +1 -0
- package/dist/commonjs/number/clamp.js +17 -0
- package/dist/commonjs/number/index.d.ts +2 -0
- package/dist/commonjs/number/index.d.ts.map +1 -0
- package/dist/commonjs/number/index.js +17 -0
- package/dist/commonjs/object/add-prop.d.ts +7 -0
- package/dist/commonjs/object/add-prop.d.ts.map +1 -0
- package/dist/commonjs/object/add-prop.js +11 -0
- package/dist/commonjs/object/clone.d.ts +2 -0
- package/dist/commonjs/object/clone.d.ts.map +1 -0
- package/dist/commonjs/object/clone.js +49 -0
- package/dist/commonjs/object/equals.d.ts +3 -0
- package/dist/commonjs/object/equals.d.ts.map +1 -0
- package/dist/commonjs/object/equals.js +71 -0
- package/dist/commonjs/object/for-each-obj.d.ts +10 -0
- package/dist/commonjs/object/for-each-obj.d.ts.map +1 -0
- package/dist/commonjs/object/for-each-obj.js +30 -0
- package/dist/commonjs/object/from-pairs.d.ts +21 -0
- package/dist/commonjs/object/from-pairs.d.ts.map +1 -0
- package/dist/commonjs/object/from-pairs.js +14 -0
- package/dist/commonjs/object/index.d.ts +23 -0
- package/dist/commonjs/object/index.d.ts.map +1 -0
- package/dist/commonjs/object/index.js +38 -0
- package/dist/commonjs/object/invert.d.ts +5 -0
- package/dist/commonjs/object/invert.d.ts.map +1 -0
- package/dist/commonjs/object/invert.js +15 -0
- package/dist/commonjs/object/keys.d.ts +15 -0
- package/dist/commonjs/object/keys.d.ts.map +1 -0
- package/dist/commonjs/object/keys.js +10 -0
- package/dist/commonjs/object/map-keys.d.ts +3 -0
- package/dist/commonjs/object/map-keys.d.ts.map +1 -0
- package/dist/commonjs/object/map-keys.js +16 -0
- package/dist/commonjs/object/map-values.d.ts +3 -0
- package/dist/commonjs/object/map-values.d.ts.map +1 -0
- package/dist/commonjs/object/map-values.js +16 -0
- package/dist/commonjs/object/merge.d.ts +3 -0
- package/dist/commonjs/object/merge.d.ts.map +1 -0
- package/dist/commonjs/object/merge.js +11 -0
- package/dist/commonjs/object/omit-by.d.ts +3 -0
- package/dist/commonjs/object/omit-by.d.ts.map +1 -0
- package/dist/commonjs/object/omit-by.js +16 -0
- package/dist/commonjs/object/omit.d.ts +3 -0
- package/dist/commonjs/object/omit.d.ts.map +1 -0
- package/dist/commonjs/object/omit.js +35 -0
- package/dist/commonjs/object/path-or.d.ts +21 -0
- package/dist/commonjs/object/path-or.d.ts.map +1 -0
- package/dist/commonjs/object/path-or.js +18 -0
- package/dist/commonjs/object/pick-by.d.ts +3 -0
- package/dist/commonjs/object/pick-by.d.ts.map +1 -0
- package/dist/commonjs/object/pick-by.js +19 -0
- package/dist/commonjs/object/pick.d.ts +3 -0
- package/dist/commonjs/object/pick.d.ts.map +1 -0
- package/dist/commonjs/object/pick.js +19 -0
- package/dist/commonjs/object/prop.d.ts +2 -0
- package/dist/commonjs/object/prop.d.ts.map +1 -0
- package/dist/commonjs/object/prop.js +5 -0
- package/dist/commonjs/object/set-path.d.ts +6 -0
- package/dist/commonjs/object/set-path.d.ts.map +1 -0
- package/dist/commonjs/object/set-path.js +23 -0
- package/dist/commonjs/object/set.d.ts +3 -0
- package/dist/commonjs/object/set.d.ts.map +1 -0
- package/dist/commonjs/object/set.js +11 -0
- package/dist/commonjs/object/swap-props.d.ts +7 -0
- package/dist/commonjs/object/swap-props.d.ts.map +1 -0
- package/dist/commonjs/object/swap-props.js +12 -0
- package/dist/commonjs/object/to-pairs.d.ts +13 -0
- package/dist/commonjs/object/to-pairs.d.ts.map +1 -0
- package/dist/commonjs/object/to-pairs.js +13 -0
- package/dist/commonjs/object/values.d.ts +2 -0
- package/dist/commonjs/object/values.d.ts.map +1 -0
- package/dist/commonjs/object/values.js +7 -0
- package/dist/commonjs/string/cases-types.d.ts +29 -0
- package/dist/commonjs/string/cases-types.d.ts.map +1 -0
- package/dist/commonjs/string/cases-types.js +2 -0
- package/dist/commonjs/string/cases.d.ts +16 -0
- package/dist/commonjs/string/cases.d.ts.map +1 -0
- package/dist/commonjs/string/cases.js +86 -0
- package/dist/commonjs/string/index.d.ts +4 -0
- package/dist/commonjs/string/index.d.ts.map +1 -0
- package/dist/commonjs/string/index.js +19 -0
- package/dist/commonjs/string/random-string.d.ts +2 -0
- package/dist/commonjs/string/random-string.d.ts.map +1 -0
- package/dist/commonjs/string/random-string.js +10 -0
- package/dist/commonjs/string/string-to-path.d.ts +3 -0
- package/dist/commonjs/string/string-to-path.d.ts.map +1 -0
- package/dist/commonjs/string/string-to-path.js +19 -0
- package/dist/commonjs/type/index.d.ts +2 -0
- package/dist/commonjs/type/index.d.ts.map +1 -0
- package/dist/commonjs/type/index.js +17 -0
- package/dist/commonjs/type/type.d.ts +2 -0
- package/dist/commonjs/type/type.d.ts.map +1 -0
- package/dist/commonjs/type/type.js +11 -0
- package/dist/commonjs/utils/narrow.d.ts +8 -0
- package/dist/commonjs/utils/narrow.d.ts.map +1 -0
- package/dist/commonjs/utils/narrow.js +2 -0
- package/dist/commonjs/utils/paths.d.ts +9 -0
- package/dist/commonjs/utils/paths.d.ts.map +1 -0
- package/dist/commonjs/utils/paths.js +2 -0
- package/dist/commonjs/utils/reduce-lazy.d.ts +22 -0
- package/dist/commonjs/utils/reduce-lazy.d.ts.map +1 -0
- package/dist/commonjs/utils/reduce-lazy.js +18 -0
- package/dist/commonjs/utils/to-lazy-indexed.d.ts +4 -0
- package/dist/commonjs/utils/to-lazy-indexed.d.ts.map +1 -0
- package/dist/commonjs/utils/to-lazy-indexed.js +8 -0
- package/dist/commonjs/utils/to-single.d.ts +4 -0
- package/dist/commonjs/utils/to-single.d.ts.map +1 -0
- package/dist/commonjs/utils/to-single.js +8 -0
- package/dist/commonjs/utils/types.d.ts +6 -0
- package/dist/commonjs/utils/types.d.ts.map +1 -0
- package/dist/commonjs/utils/types.js +2 -0
- package/dist/es/aria/index.d.ts +2 -0
- package/dist/es/aria/index.d.ts.map +1 -0
- package/dist/es/aria/index.js +1 -0
- package/dist/es/aria/key-codes.d.ts +23 -0
- package/dist/es/aria/key-codes.d.ts.map +1 -0
- package/dist/es/aria/key-codes.js +22 -0
- package/dist/es/array/all-pass.d.ts +3 -0
- package/dist/es/array/all-pass.d.ts.map +1 -0
- package/dist/es/array/all-pass.js +7 -0
- package/dist/es/array/any-pass.d.ts +3 -0
- package/dist/es/array/any-pass.d.ts.map +1 -0
- package/dist/es/array/any-pass.js +7 -0
- package/dist/es/array/chunk.d.ts +6 -0
- package/dist/es/array/chunk.d.ts.map +1 -0
- package/dist/es/array/chunk.js +13 -0
- package/dist/es/array/compact.d.ts +2 -0
- package/dist/es/array/compact.d.ts.map +1 -0
- package/dist/es/array/compact.js +4 -0
- package/dist/es/array/concat.d.ts +3 -0
- package/dist/es/array/concat.d.ts.map +1 -0
- package/dist/es/array/concat.js +7 -0
- package/dist/es/array/count-by.d.ts +8 -0
- package/dist/es/array/count-by.d.ts.map +1 -0
- package/dist/es/array/count-by.js +18 -0
- package/dist/es/array/difference-with.d.ts +9 -0
- package/dist/es/array/difference-with.d.ts.map +1 -0
- package/dist/es/array/difference-with.js +27 -0
- package/dist/es/array/difference.d.ts +7 -0
- package/dist/es/array/difference.d.ts.map +1 -0
- package/dist/es/array/difference.js +28 -0
- package/dist/es/array/drop-last.d.ts +3 -0
- package/dist/es/array/drop-last.d.ts.map +1 -0
- package/dist/es/array/drop-last.js +11 -0
- package/dist/es/array/drop.d.ts +7 -0
- package/dist/es/array/drop.d.ts.map +1 -0
- package/dist/es/array/drop.js +28 -0
- package/dist/es/array/filter.d.ts +17 -0
- package/dist/es/array/filter.d.ts.map +1 -0
- package/dist/es/array/filter.js +37 -0
- package/dist/es/array/find-index.d.ts +32 -0
- package/dist/es/array/find-index.d.ts.map +1 -0
- package/dist/es/array/find-index.js +42 -0
- package/dist/es/array/find-last-index.d.ts +8 -0
- package/dist/es/array/find-last-index.d.ts.map +1 -0
- package/dist/es/array/find-last-index.js +20 -0
- package/dist/es/array/find-last.d.ts +8 -0
- package/dist/es/array/find-last.d.ts.map +1 -0
- package/dist/es/array/find-last.js +19 -0
- package/dist/es/array/find.d.ts +24 -0
- package/dist/es/array/find.d.ts.map +1 -0
- package/dist/es/array/find.js +34 -0
- package/dist/es/array/first.d.ts +16 -0
- package/dist/es/array/first.d.ts.map +1 -0
- package/dist/es/array/first.js +22 -0
- package/dist/es/array/flat-map-to-obj.d.ts +7 -0
- package/dist/es/array/flat-map-to-obj.d.ts.map +1 -0
- package/dist/es/array/flat-map-to-obj.js +21 -0
- package/dist/es/array/flat-map.d.ts +16 -0
- package/dist/es/array/flat-map.d.ts.map +1 -0
- package/dist/es/array/flat-map.js +29 -0
- package/dist/es/array/flatten-deep.d.ts +12 -0
- package/dist/es/array/flatten-deep.d.ts.map +1 -0
- package/dist/es/array/flatten-deep.js +44 -0
- package/dist/es/array/flatten.d.ts +9 -0
- package/dist/es/array/flatten.d.ts.map +1 -0
- package/dist/es/array/flatten.js +28 -0
- package/dist/es/array/for-each.d.ts +13 -0
- package/dist/es/array/for-each.d.ts.map +1 -0
- package/dist/es/array/for-each.js +36 -0
- package/dist/es/array/group-by.d.ts +19 -0
- package/dist/es/array/group-by.d.ts.map +1 -0
- package/dist/es/array/group-by.js +27 -0
- package/dist/es/array/index-by.d.ts +8 -0
- package/dist/es/array/index-by.d.ts.map +1 -0
- package/dist/es/array/index-by.js +20 -0
- package/dist/es/array/index.d.ts +56 -0
- package/dist/es/array/index.d.ts.map +1 -0
- package/dist/es/array/index.js +55 -0
- package/dist/es/array/intersection-with.d.ts +9 -0
- package/dist/es/array/intersection-with.d.ts.map +1 -0
- package/dist/es/array/intersection-with.js +27 -0
- package/dist/es/array/intersection.d.ts +7 -0
- package/dist/es/array/intersection.d.ts.map +1 -0
- package/dist/es/array/intersection.js +28 -0
- package/dist/es/array/join.d.ts +8 -0
- package/dist/es/array/join.d.ts.map +1 -0
- package/dist/es/array/join.js +7 -0
- package/dist/es/array/last.d.ts +5 -0
- package/dist/es/array/last.d.ts.map +1 -0
- package/dist/es/array/last.js +7 -0
- package/dist/es/array/length.d.ts +5 -0
- package/dist/es/array/length.d.ts.map +1 -0
- package/dist/es/array/length.js +7 -0
- package/dist/es/array/map-to-obj.d.ts +7 -0
- package/dist/es/array/map-to-obj.d.ts.map +1 -0
- package/dist/es/array/map-to-obj.js +19 -0
- package/dist/es/array/map.d.ts +26 -0
- package/dist/es/array/map.d.ts.map +1 -0
- package/dist/es/array/map.js +31 -0
- package/dist/es/array/max-by.d.ts +8 -0
- package/dist/es/array/max-by.d.ts.map +1 -0
- package/dist/es/array/max-by.js +24 -0
- package/dist/es/array/mean-by.d.ts +8 -0
- package/dist/es/array/mean-by.d.ts.map +1 -0
- package/dist/es/array/mean-by.js +22 -0
- package/dist/es/array/merge-all.d.ts +7 -0
- package/dist/es/array/merge-all.d.ts.map +1 -0
- package/dist/es/array/merge-all.js +3 -0
- package/dist/es/array/min-by.d.ts +8 -0
- package/dist/es/array/min-by.d.ts.map +1 -0
- package/dist/es/array/min-by.js +24 -0
- package/dist/es/array/partition.d.ts +10 -0
- package/dist/es/array/partition.d.ts.map +1 -0
- package/dist/es/array/partition.js +20 -0
- package/dist/es/array/range.d.ts +3 -0
- package/dist/es/array/range.d.ts.map +1 -0
- package/dist/es/array/range.js +11 -0
- package/dist/es/array/reduce.d.ts +7 -0
- package/dist/es/array/reduce.d.ts.map +1 -0
- package/dist/es/array/reduce.js +15 -0
- package/dist/es/array/reject.d.ts +13 -0
- package/dist/es/array/reject.d.ts.map +1 -0
- package/dist/es/array/reject.js +37 -0
- package/dist/es/array/reverse.d.ts +6 -0
- package/dist/es/array/reverse.d.ts.map +1 -0
- package/dist/es/array/reverse.js +7 -0
- package/dist/es/array/sample.d.ts +11 -0
- package/dist/es/array/sample.d.ts.map +1 -0
- package/dist/es/array/sample.js +30 -0
- package/dist/es/array/shuffle.d.ts +3 -0
- package/dist/es/array/shuffle.d.ts.map +1 -0
- package/dist/es/array/shuffle.js +14 -0
- package/dist/es/array/sort-by.d.ts +27 -0
- package/dist/es/array/sort-by.d.ts.map +1 -0
- package/dist/es/array/sort-by.js +51 -0
- package/dist/es/array/sort.d.ts +15 -0
- package/dist/es/array/sort.d.ts.map +1 -0
- package/dist/es/array/sort.js +12 -0
- package/dist/es/array/split-at.d.ts +3 -0
- package/dist/es/array/split-at.d.ts.map +1 -0
- package/dist/es/array/split-at.js +9 -0
- package/dist/es/array/split-when.d.ts +3 -0
- package/dist/es/array/split-when.d.ts.map +1 -0
- package/dist/es/array/split-when.js +13 -0
- package/dist/es/array/sum-by.d.ts +8 -0
- package/dist/es/array/sum-by.d.ts.map +1 -0
- package/dist/es/array/sum-by.js +20 -0
- package/dist/es/array/swap-indices.d.ts +25 -0
- package/dist/es/array/swap-indices.d.ts.map +1 -0
- package/dist/es/array/swap-indices.js +30 -0
- package/dist/es/array/take-while.d.ts +3 -0
- package/dist/es/array/take-while.d.ts.map +1 -0
- package/dist/es/array/take-while.js +14 -0
- package/dist/es/array/take.d.ts +7 -0
- package/dist/es/array/take.d.ts.map +1 -0
- package/dist/es/array/take.js +34 -0
- package/dist/es/array/uniq-by.d.ts +3 -0
- package/dist/es/array/uniq-by.d.ts.map +1 -0
- package/dist/es/array/uniq-by.js +26 -0
- package/dist/es/array/uniq-with.d.ts +12 -0
- package/dist/es/array/uniq-with.d.ts.map +1 -0
- package/dist/es/array/uniq-with.js +29 -0
- package/dist/es/array/uniq.d.ts +7 -0
- package/dist/es/array/uniq.d.ts.map +1 -0
- package/dist/es/array/uniq.js +28 -0
- package/dist/es/array/zip-obj.d.ts +3 -0
- package/dist/es/array/zip-obj.d.ts.map +1 -0
- package/dist/es/array/zip-obj.js +12 -0
- package/dist/es/array/zip-with.d.ts +4 -0
- package/dist/es/array/zip-with.d.ts.map +1 -0
- package/dist/es/array/zip-with.js +24 -0
- package/dist/es/array/zip.d.ts +3 -0
- package/dist/es/array/zip.d.ts.map +1 -0
- package/dist/es/array/zip.js +12 -0
- package/dist/es/base.d.ts +2 -0
- package/dist/es/base.d.ts.map +1 -0
- package/dist/es/base.js +3 -0
- package/dist/es/function/create-pipe.d.ts +8 -0
- package/dist/es/function/create-pipe.d.ts.map +1 -0
- package/dist/es/function/create-pipe.js +4 -0
- package/dist/es/function/identity.d.ts +2 -0
- package/dist/es/function/identity.d.ts.map +1 -0
- package/dist/es/function/identity.js +3 -0
- package/dist/es/function/index.d.ts +7 -0
- package/dist/es/function/index.d.ts.map +1 -0
- package/dist/es/function/index.js +6 -0
- package/dist/es/function/noop.d.ts +2 -0
- package/dist/es/function/noop.d.ts.map +1 -0
- package/dist/es/function/noop.js +3 -0
- package/dist/es/function/once.d.ts +2 -0
- package/dist/es/function/once.d.ts.map +1 -0
- package/dist/es/function/once.js +11 -0
- package/dist/es/function/pipe.d.ts +16 -0
- package/dist/es/function/pipe.d.ts.map +1 -0
- package/dist/es/function/pipe.js +101 -0
- package/dist/es/function/purry.d.ts +2 -0
- package/dist/es/function/purry.d.ts.map +1 -0
- package/dist/es/function/purry.js +16 -0
- package/dist/es/guard/index.d.ts +16 -0
- package/dist/es/guard/index.d.ts.map +1 -0
- package/dist/es/guard/index.js +15 -0
- package/dist/es/guard/is-array.d.ts +4 -0
- package/dist/es/guard/is-array.d.ts.map +1 -0
- package/dist/es/guard/is-array.js +3 -0
- package/dist/es/guard/is-boolean.d.ts +4 -0
- package/dist/es/guard/is-boolean.d.ts.map +1 -0
- package/dist/es/guard/is-boolean.js +3 -0
- package/dist/es/guard/is-date.d.ts +2 -0
- package/dist/es/guard/is-date.d.ts.map +1 -0
- package/dist/es/guard/is-date.js +3 -0
- package/dist/es/guard/is-defined.d.ts +5 -0
- package/dist/es/guard/is-defined.d.ts.map +1 -0
- package/dist/es/guard/is-defined.js +9 -0
- package/dist/es/guard/is-empty.d.ts +4 -0
- package/dist/es/guard/is-empty.d.ts.map +1 -0
- package/dist/es/guard/is-empty.js +15 -0
- package/dist/es/guard/is-error.d.ts +4 -0
- package/dist/es/guard/is-error.d.ts.map +1 -0
- package/dist/es/guard/is-error.js +3 -0
- package/dist/es/guard/is-function.d.ts +4 -0
- package/dist/es/guard/is-function.d.ts.map +1 -0
- package/dist/es/guard/is-function.js +3 -0
- package/dist/es/guard/is-nil.d.ts +2 -0
- package/dist/es/guard/is-nil.d.ts.map +1 -0
- package/dist/es/guard/is-nil.js +3 -0
- package/dist/es/guard/is-non-null.d.ts +2 -0
- package/dist/es/guard/is-non-null.d.ts.map +1 -0
- package/dist/es/guard/is-non-null.js +3 -0
- package/dist/es/guard/is-not.d.ts +3 -0
- package/dist/es/guard/is-not.d.ts.map +1 -0
- package/dist/es/guard/is-not.js +5 -0
- package/dist/es/guard/is-number.d.ts +4 -0
- package/dist/es/guard/is-number.d.ts.map +1 -0
- package/dist/es/guard/is-number.js +3 -0
- package/dist/es/guard/is-object.d.ts +4 -0
- package/dist/es/guard/is-object.d.ts.map +1 -0
- package/dist/es/guard/is-object.js +4 -0
- package/dist/es/guard/is-promise.d.ts +2 -0
- package/dist/es/guard/is-promise.d.ts.map +1 -0
- package/dist/es/guard/is-promise.js +3 -0
- package/dist/es/guard/is-string.d.ts +4 -0
- package/dist/es/guard/is-string.d.ts.map +1 -0
- package/dist/es/guard/is-string.js +3 -0
- package/dist/es/guard/is-truthy.d.ts +2 -0
- package/dist/es/guard/is-truthy.d.ts.map +1 -0
- package/dist/es/guard/is-truthy.js +3 -0
- package/dist/es/helpers/index.d.ts +8 -0
- package/dist/es/helpers/index.d.ts.map +1 -0
- package/dist/es/helpers/index.js +45 -0
- package/dist/es/index.d.ts +10 -0
- package/dist/es/index.d.ts.map +1 -0
- package/dist/es/index.js +9 -0
- package/dist/es/number/clamp.d.ts +9 -0
- package/dist/es/number/clamp.d.ts.map +1 -0
- package/dist/es/number/clamp.js +13 -0
- package/dist/es/number/index.d.ts +2 -0
- package/dist/es/number/index.d.ts.map +1 -0
- package/dist/es/number/index.js +1 -0
- package/dist/es/object/add-prop.d.ts +7 -0
- package/dist/es/object/add-prop.d.ts.map +1 -0
- package/dist/es/object/add-prop.js +7 -0
- package/dist/es/object/clone.d.ts +2 -0
- package/dist/es/object/clone.d.ts.map +1 -0
- package/dist/es/object/clone.js +45 -0
- package/dist/es/object/equals.d.ts +3 -0
- package/dist/es/object/equals.d.ts.map +1 -0
- package/dist/es/object/equals.js +67 -0
- package/dist/es/object/for-each-obj.d.ts +10 -0
- package/dist/es/object/for-each-obj.d.ts.map +1 -0
- package/dist/es/object/for-each-obj.js +26 -0
- package/dist/es/object/from-pairs.d.ts +21 -0
- package/dist/es/object/from-pairs.d.ts.map +1 -0
- package/dist/es/object/from-pairs.js +10 -0
- package/dist/es/object/index.d.ts +23 -0
- package/dist/es/object/index.d.ts.map +1 -0
- package/dist/es/object/index.js +22 -0
- package/dist/es/object/invert.d.ts +5 -0
- package/dist/es/object/invert.d.ts.map +1 -0
- package/dist/es/object/invert.js +11 -0
- package/dist/es/object/keys.d.ts +15 -0
- package/dist/es/object/keys.d.ts.map +1 -0
- package/dist/es/object/keys.js +6 -0
- package/dist/es/object/map-keys.d.ts +3 -0
- package/dist/es/object/map-keys.d.ts.map +1 -0
- package/dist/es/object/map-keys.js +12 -0
- package/dist/es/object/map-values.d.ts +3 -0
- package/dist/es/object/map-values.d.ts.map +1 -0
- package/dist/es/object/map-values.js +12 -0
- package/dist/es/object/merge.d.ts +3 -0
- package/dist/es/object/merge.d.ts.map +1 -0
- package/dist/es/object/merge.js +7 -0
- package/dist/es/object/omit-by.d.ts +3 -0
- package/dist/es/object/omit-by.d.ts.map +1 -0
- package/dist/es/object/omit-by.js +12 -0
- package/dist/es/object/omit.d.ts +3 -0
- package/dist/es/object/omit.d.ts.map +1 -0
- package/dist/es/object/omit.js +31 -0
- package/dist/es/object/path-or.d.ts +21 -0
- package/dist/es/object/path-or.d.ts.map +1 -0
- package/dist/es/object/path-or.js +14 -0
- package/dist/es/object/pick-by.d.ts +3 -0
- package/dist/es/object/pick-by.d.ts.map +1 -0
- package/dist/es/object/pick-by.js +15 -0
- package/dist/es/object/pick.d.ts +3 -0
- package/dist/es/object/pick.d.ts.map +1 -0
- package/dist/es/object/pick.js +15 -0
- package/dist/es/object/prop.d.ts +2 -0
- package/dist/es/object/prop.d.ts.map +1 -0
- package/dist/es/object/prop.js +1 -0
- package/dist/es/object/set-path.d.ts +6 -0
- package/dist/es/object/set-path.d.ts.map +1 -0
- package/dist/es/object/set-path.js +18 -0
- package/dist/es/object/set.d.ts +3 -0
- package/dist/es/object/set.d.ts.map +1 -0
- package/dist/es/object/set.js +7 -0
- package/dist/es/object/swap-props.d.ts +7 -0
- package/dist/es/object/swap-props.d.ts.map +1 -0
- package/dist/es/object/swap-props.js +8 -0
- package/dist/es/object/to-pairs.d.ts +13 -0
- package/dist/es/object/to-pairs.d.ts.map +1 -0
- package/dist/es/object/to-pairs.js +9 -0
- package/dist/es/object/values.d.ts +2 -0
- package/dist/es/object/values.d.ts.map +1 -0
- package/dist/es/object/values.js +3 -0
- package/dist/es/string/cases-types.d.ts +29 -0
- package/dist/es/string/cases-types.d.ts.map +1 -0
- package/dist/es/string/cases-types.js +1 -0
- package/dist/es/string/cases.d.ts +16 -0
- package/dist/es/string/cases.d.ts.map +1 -0
- package/dist/es/string/cases.js +75 -0
- package/dist/es/string/index.d.ts +4 -0
- package/dist/es/string/index.d.ts.map +1 -0
- package/dist/es/string/index.js +3 -0
- package/dist/es/string/random-string.d.ts +2 -0
- package/dist/es/string/random-string.d.ts.map +1 -0
- package/dist/es/string/random-string.js +6 -0
- package/dist/es/string/string-to-path.d.ts +3 -0
- package/dist/es/string/string-to-path.d.ts.map +1 -0
- package/dist/es/string/string-to-path.js +15 -0
- package/dist/es/type/index.d.ts +2 -0
- package/dist/es/type/index.d.ts.map +1 -0
- package/dist/es/type/index.js +1 -0
- package/dist/es/type/type.d.ts +2 -0
- package/dist/es/type/type.d.ts.map +1 -0
- package/dist/es/type/type.js +7 -0
- package/dist/es/utils/narrow.d.ts +8 -0
- package/dist/es/utils/narrow.d.ts.map +1 -0
- package/dist/es/utils/narrow.js +1 -0
- package/dist/es/utils/paths.d.ts +9 -0
- package/dist/es/utils/paths.d.ts.map +1 -0
- package/dist/es/utils/paths.js +1 -0
- package/dist/es/utils/reduce-lazy.d.ts +22 -0
- package/dist/es/utils/reduce-lazy.d.ts.map +1 -0
- package/dist/es/utils/reduce-lazy.js +14 -0
- package/dist/es/utils/to-lazy-indexed.d.ts +4 -0
- package/dist/es/utils/to-lazy-indexed.d.ts.map +1 -0
- package/dist/es/utils/to-lazy-indexed.js +4 -0
- package/dist/es/utils/to-single.d.ts +4 -0
- package/dist/es/utils/to-single.d.ts.map +1 -0
- package/dist/es/utils/to-single.js +4 -0
- package/dist/es/utils/types.d.ts +6 -0
- package/dist/es/utils/types.d.ts.map +1 -0
- package/dist/es/utils/types.js +1 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-PRESENT praburangki<https://github.com/praburangki>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/aria/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./key-codes"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const KEY_CODES: {
|
|
2
|
+
readonly TAB: "Tab";
|
|
3
|
+
readonly ARROW_DOWN: "ArrowDown";
|
|
4
|
+
readonly ARROW_UP: "ArrowUp";
|
|
5
|
+
readonly ARROW_LEFT: "ArrowLeft";
|
|
6
|
+
readonly ARROW_RIGHT: "ArrowRight";
|
|
7
|
+
readonly ENTER: "Enter";
|
|
8
|
+
readonly ESC: "Escape";
|
|
9
|
+
readonly SPACE: "Space";
|
|
10
|
+
readonly SHIFT: "Shift";
|
|
11
|
+
readonly KEY_F: "KEY_F";
|
|
12
|
+
readonly CTRL: "Control";
|
|
13
|
+
readonly ALT: "Alt";
|
|
14
|
+
readonly META: "Meta";
|
|
15
|
+
readonly AT: "@";
|
|
16
|
+
readonly DELETE: "Delete";
|
|
17
|
+
readonly BACKSPACE: "Backspace";
|
|
18
|
+
readonly HOME: "Home";
|
|
19
|
+
readonly END: "End";
|
|
20
|
+
readonly PAGE_UP: "PageUp";
|
|
21
|
+
readonly PAGE_DOWN: "PageDown";
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=key-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-codes.d.ts","sourceRoot":"","sources":["../../../src/aria/key-codes.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAqBZ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KEY_CODES = void 0;
|
|
4
|
+
exports.KEY_CODES = {
|
|
5
|
+
TAB: 'Tab',
|
|
6
|
+
ARROW_DOWN: 'ArrowDown',
|
|
7
|
+
ARROW_UP: 'ArrowUp',
|
|
8
|
+
ARROW_LEFT: 'ArrowLeft',
|
|
9
|
+
ARROW_RIGHT: 'ArrowRight',
|
|
10
|
+
ENTER: 'Enter',
|
|
11
|
+
ESC: 'Escape',
|
|
12
|
+
SPACE: 'Space',
|
|
13
|
+
SHIFT: 'Shift',
|
|
14
|
+
KEY_F: 'KEY_F',
|
|
15
|
+
CTRL: 'Control',
|
|
16
|
+
ALT: 'Alt',
|
|
17
|
+
META: 'Meta',
|
|
18
|
+
AT: '@',
|
|
19
|
+
DELETE: 'Delete',
|
|
20
|
+
BACKSPACE: 'Backspace',
|
|
21
|
+
HOME: 'Home',
|
|
22
|
+
END: 'End',
|
|
23
|
+
PAGE_UP: 'PageUp',
|
|
24
|
+
PAGE_DOWN: 'PageDown',
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-pass.d.ts","sourceRoot":"","sources":["../../../src/array/all-pass.ts"],"names":[],"mappings":"AAiBA,wBAAgB,OAAO,CAAC,CAAC,EACvB,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GACvC,OAAO,CAAC;AAgBX,wBAAgB,OAAO,CAAC,CAAC,EACvB,GAAG,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GACvC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.allPass = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
function allPass() {
|
|
6
|
+
return (0, function_1.purry)(_allPass, arguments);
|
|
7
|
+
}
|
|
8
|
+
exports.allPass = allPass;
|
|
9
|
+
function _allPass(data, fns) {
|
|
10
|
+
return fns.every((fn) => fn(data));
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"any-pass.d.ts","sourceRoot":"","sources":["../../../src/array/any-pass.ts"],"names":[],"mappings":"AAiBA,wBAAgB,OAAO,CAAC,CAAC,EACvB,IAAI,EAAE,CAAC,EACP,GAAG,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GACvC,OAAO,CAAC;AAgBX,wBAAgB,OAAO,CAAC,CAAC,EACvB,GAAG,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,GACvC,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.anyPass = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
function anyPass() {
|
|
6
|
+
return (0, function_1.purry)(_anyPass, arguments);
|
|
7
|
+
}
|
|
8
|
+
exports.anyPass = anyPass;
|
|
9
|
+
function _anyPass(data, fns) {
|
|
10
|
+
return fns.some((fn) => fn(data));
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IterableContainer, type NonEmptyArray } from '../utils/types';
|
|
2
|
+
type Chunked<T extends IterableContainer> = T[number] extends never ? [] : T extends readonly [unknown, ...Array<unknown>] | readonly [...Array<unknown>, unknown] ? NonEmptyArray<NonEmptyArray<T[number]>> : Array<NonEmptyArray<T[number]>>;
|
|
3
|
+
export declare function chunk<T extends IterableContainer>(array: T, size: number): Chunked<T>;
|
|
4
|
+
export declare function chunk<T extends IterableContainer>(size: number): (array: T) => Chunked<T>;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=chunk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk.d.ts","sourceRoot":"","sources":["../../../src/array/chunk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE5E,KAAK,OAAO,CAAC,CAAC,SAAS,iBAAiB,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,KAAK,GAC/D,EAAE,GACF,CAAC,SACD,SAAS,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,GACrC,SAAS,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,GACnC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AActC,wBAAgB,KAAK,CAAC,CAAC,SAAS,iBAAiB,EAC/C,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC;AAad,wBAAgB,KAAK,CAAC,CAAC,SAAS,iBAAiB,EAC/C,IAAI,EAAE,MAAM,GACX,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chunk = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
function chunk() {
|
|
6
|
+
return (0, function_1.purry)(_chunk, arguments);
|
|
7
|
+
}
|
|
8
|
+
exports.chunk = chunk;
|
|
9
|
+
function _chunk(array, size) {
|
|
10
|
+
const ret = Array.from({
|
|
11
|
+
length: Math.ceil(array.length / size),
|
|
12
|
+
});
|
|
13
|
+
for (let index = 0; index < ret.length; index += 1) {
|
|
14
|
+
ret[index] = array.slice(index * size, (index + 1) * size);
|
|
15
|
+
}
|
|
16
|
+
return ret;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact.d.ts","sourceRoot":"","sources":["../../../src/array/compact.ts"],"names":[],"mappings":"AAYA,wBAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,GAAG,EAAE,GAAG,CAAC,CAAC,GAC1D,KAAK,CAAC,CAAC,CAAC,CAGV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../src/array/concat.ts"],"names":[],"mappings":"AAaA,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EACzB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,EACtB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,GACrB,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAYhB,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EACzB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,GACrB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.concat = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
function concat() {
|
|
6
|
+
return (0, function_1.purry)(_concat, arguments);
|
|
7
|
+
}
|
|
8
|
+
exports.concat = concat;
|
|
9
|
+
function _concat(arr1, arr2) {
|
|
10
|
+
return arr1.concat(arr2);
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Pred, type PredIndexed } from '../utils/types';
|
|
2
|
+
export declare function countBy<T>(items: ReadonlyArray<T>, fn: Pred<T, boolean>): number;
|
|
3
|
+
export declare function countBy<T>(fn: Pred<T, boolean>): (array: ReadonlyArray<T>) => number;
|
|
4
|
+
export declare namespace countBy {
|
|
5
|
+
function indexed<T>(array: ReadonlyArray<T>, fn: PredIndexed<T, boolean>): number;
|
|
6
|
+
function indexed<T>(fn: PredIndexed<T, boolean>): (array: ReadonlyArray<T>) => number;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=count-by.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"count-by.d.ts","sourceRoot":"","sources":["../../../src/array/count-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAA4B,MAAM,gBAAgB,CAAC;AAwBvF,wBAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,MAAM,CAAC;AAEV,wBAAgB,OAAO,CAAC,CAAC,EACvB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAiBvC,yBAAiB,OAAO,CAAC;IACvB,SAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,MAAM,CAAC;IACV,SAAgB,OAAO,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;CAIxC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.countBy = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
function _countBy(indexed) {
|
|
6
|
+
return (array, fn) => {
|
|
7
|
+
return array.reduce((ret, item, index) => {
|
|
8
|
+
const value = indexed ? fn(item, index, array) : fn(item);
|
|
9
|
+
return ret + (value ? 1 : 0);
|
|
10
|
+
}, 0);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function countBy() {
|
|
14
|
+
return (0, function_1.purry)(_countBy(false), arguments);
|
|
15
|
+
}
|
|
16
|
+
exports.countBy = countBy;
|
|
17
|
+
(function (countBy) {
|
|
18
|
+
function indexed() {
|
|
19
|
+
return (0, function_1.purry)(_countBy(true), arguments);
|
|
20
|
+
}
|
|
21
|
+
countBy.indexed = indexed;
|
|
22
|
+
})(countBy || (exports.countBy = countBy = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LazyResult } from '../utils/reduce-lazy';
|
|
2
|
+
type IsEquals<TFirst, TSecond> = (a: TFirst, b: TSecond) => boolean;
|
|
3
|
+
export declare function differenceWith<TFirst, TSecond>(array: ReadonlyArray<TFirst>, other: ReadonlyArray<TSecond>, isEquals: IsEquals<TFirst, TSecond>): Array<TFirst>;
|
|
4
|
+
export declare function differenceWith<TFirst, TSecond>(other: ReadonlyArray<TSecond>, isEquals: IsEquals<TFirst, TSecond>): (array: ReadonlyArray<TFirst>) => Array<TFirst>;
|
|
5
|
+
export declare namespace differenceWith {
|
|
6
|
+
function lazy<TFirst, TSecond>(other: Array<TSecond>, isEquals: IsEquals<TFirst, TSecond>): (value: TFirst) => LazyResult<TFirst>;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=difference-with.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difference-with.d.ts","sourceRoot":"","sources":["../../../src/array/difference-with.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,KAAK,QAAQ,CAAC,MAAM,EAAE,OAAO,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;AAoBpE,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,EAC5C,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAC5B,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,EAC7B,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,KAAK,CAAC,MAAM,CAAC,CAAC;AAuBjB,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,EAC5C,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,EAC7B,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC;AAenD,yBAAiB,cAAc,CAAC;IAC9B,SAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,EAClC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EACrB,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,WAEpB,MAAM,KAAG,WAAW,MAAM,CAAC,CAa3C;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.differenceWith = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
const reduce_lazy_1 = require("../utils/reduce-lazy");
|
|
6
|
+
function differenceWith() {
|
|
7
|
+
return (0, function_1.purry)(_differenceWith, arguments, differenceWith.lazy);
|
|
8
|
+
}
|
|
9
|
+
exports.differenceWith = differenceWith;
|
|
10
|
+
function _differenceWith(array, other, isEquals) {
|
|
11
|
+
const lazy = differenceWith.lazy(other, isEquals);
|
|
12
|
+
return (0, reduce_lazy_1._reduceLazy)(array, lazy);
|
|
13
|
+
}
|
|
14
|
+
(function (differenceWith) {
|
|
15
|
+
function lazy(other, isEquals) {
|
|
16
|
+
return (value) => {
|
|
17
|
+
if (other.every((otherValue) => !isEquals(value, otherValue))) {
|
|
18
|
+
return {
|
|
19
|
+
done: false,
|
|
20
|
+
hasNext: true,
|
|
21
|
+
next: value,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
done: false,
|
|
26
|
+
hasNext: false,
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
differenceWith.lazy = lazy;
|
|
31
|
+
})(differenceWith || (exports.differenceWith = differenceWith = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type LazyResult } from '../utils/reduce-lazy';
|
|
2
|
+
export declare function difference<T>(array: ReadonlyArray<T>, other: ReadonlyArray<T>): Array<T>;
|
|
3
|
+
export declare function difference<T, K>(other: ReadonlyArray<T>): (array: ReadonlyArray<K>) => Array<T>;
|
|
4
|
+
export declare namespace difference {
|
|
5
|
+
function lazy<T>(other: Array<T>): (value: T) => LazyResult<T>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=difference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"difference.d.ts","sourceRoot":"","sources":["../../../src/array/difference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,sBAAsB,CAAC;AAepE,wBAAgB,UAAU,CAAC,CAAC,EAC1B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GACtB,KAAK,CAAC,CAAC,CAAC,CAAC;AAkBZ,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAC7B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GACtB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;AAWzC,yBAAiB,UAAU,CAAC;IAC1B,SAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,WAEtB,CAAC,KAAG,WAAW,CAAC,CAAC,CAajC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.difference = void 0;
|
|
4
|
+
const reduce_lazy_1 = require("../utils/reduce-lazy");
|
|
5
|
+
const function_1 = require("../function");
|
|
6
|
+
function difference() {
|
|
7
|
+
return (0, function_1.purry)(_difference, arguments, difference.lazy);
|
|
8
|
+
}
|
|
9
|
+
exports.difference = difference;
|
|
10
|
+
function _difference(array, other) {
|
|
11
|
+
const lazy = difference.lazy(other);
|
|
12
|
+
return (0, reduce_lazy_1._reduceLazy)(array, lazy);
|
|
13
|
+
}
|
|
14
|
+
(function (difference) {
|
|
15
|
+
function lazy(other) {
|
|
16
|
+
const set = new Set(other);
|
|
17
|
+
return (value) => {
|
|
18
|
+
if (!set.has(value)) {
|
|
19
|
+
return {
|
|
20
|
+
done: false,
|
|
21
|
+
hasNext: true,
|
|
22
|
+
next: value,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
done: false,
|
|
27
|
+
hasNext: false,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
difference.lazy = lazy;
|
|
32
|
+
})(difference || (exports.difference = difference = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-last.d.ts","sourceRoot":"","sources":["../../../src/array/drop-last.ts"],"names":[],"mappings":"AAaA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAa1E,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dropLast = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
function dropLast() {
|
|
6
|
+
return (0, function_1.purry)(_dropLast, arguments);
|
|
7
|
+
}
|
|
8
|
+
exports.dropLast = dropLast;
|
|
9
|
+
function _dropLast(array, n) {
|
|
10
|
+
const copy = [...array];
|
|
11
|
+
if (n > 0) {
|
|
12
|
+
copy.splice(-n);
|
|
13
|
+
}
|
|
14
|
+
return copy;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type LazyResult } from '../utils/reduce-lazy';
|
|
2
|
+
export declare function drop<T>(array: ReadonlyArray<T>, n: number): Array<T>;
|
|
3
|
+
export declare function drop<T>(n: number): (array: ReadonlyArray<T>) => Array<T>;
|
|
4
|
+
export declare namespace drop {
|
|
5
|
+
function lazy<T>(n: number): (value: T) => LazyResult<T>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=drop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop.d.ts","sourceRoot":"","sources":["../../../src/array/drop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,sBAAsB,CAAC;AAepE,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AActE,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;AAU1E,yBAAiB,IAAI,CAAC;IACpB,SAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,WAEhB,CAAC,KAAG,WAAW,CAAC,CAAC,CAcjC;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.drop = void 0;
|
|
4
|
+
const reduce_lazy_1 = require("../utils/reduce-lazy");
|
|
5
|
+
const function_1 = require("../function");
|
|
6
|
+
function drop() {
|
|
7
|
+
return (0, function_1.purry)(_drop, arguments, drop.lazy);
|
|
8
|
+
}
|
|
9
|
+
exports.drop = drop;
|
|
10
|
+
function _drop(array, n) {
|
|
11
|
+
return (0, reduce_lazy_1._reduceLazy)(array, drop.lazy(n));
|
|
12
|
+
}
|
|
13
|
+
(function (drop) {
|
|
14
|
+
function lazy(n) {
|
|
15
|
+
let left = n;
|
|
16
|
+
return (value) => {
|
|
17
|
+
if (left > 0) {
|
|
18
|
+
left--;
|
|
19
|
+
return {
|
|
20
|
+
done: false,
|
|
21
|
+
hasNext: false,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
done: false,
|
|
26
|
+
hasNext: true,
|
|
27
|
+
next: value,
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
drop.lazy = lazy;
|
|
32
|
+
})(drop || (exports.drop = drop = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type LazyResult } from '../utils/reduce-lazy';
|
|
2
|
+
import { type Pred, type PredIndexed, type PredIndexedOptional } from '../utils/types';
|
|
3
|
+
export declare function filter<T, S extends T>(array: ReadonlyArray<T>, fn: (value: T) => value is S): Array<S>;
|
|
4
|
+
export declare function filter<T>(array: ReadonlyArray<T>, fn: Pred<T, boolean>): Array<T>;
|
|
5
|
+
export declare function filter<T, S extends T>(fn: (input: T) => input is S): (array: ReadonlyArray<T>) => Array<S>;
|
|
6
|
+
export declare function filter<T>(fn: Pred<T, boolean>): (array: ReadonlyArray<T>) => Array<T>;
|
|
7
|
+
export declare namespace filter {
|
|
8
|
+
function indexed<T, S extends T>(array: ReadonlyArray<T>, fn: (input: T, index: number, array: Array<T>) => input is S): Array<S>;
|
|
9
|
+
function indexed<T>(array: ReadonlyArray<T>, fn: PredIndexed<T, boolean>): Array<T>;
|
|
10
|
+
function indexed<T, S extends T>(fn: (input: T, index: number, array: Array<T>) => input is S): (array: ReadonlyArray<T>) => Array<S>;
|
|
11
|
+
function indexed<T>(fn: PredIndexed<T, boolean>): (array: ReadonlyArray<T>) => Array<T>;
|
|
12
|
+
const lazy: <T>(fn: PredIndexedOptional<T, boolean>) => (value: T, index?: number | undefined, array?: T[] | undefined) => LazyResult<T>;
|
|
13
|
+
const lazyIndexed: (<T>(fn: PredIndexedOptional<T, boolean>) => (value: T, index?: number | undefined, array?: T[] | undefined) => LazyResult<T>) & {
|
|
14
|
+
indexed: true;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/array/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAmBvF,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,GAC3B,KAAK,CAAC,CAAC,CAAC,CAAC;AACZ,wBAAgB,MAAM,CAAC,CAAC,EACtB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,KAAK,CAAC,CAAC,CAAC,CAAC;AAgBZ,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,GAC3B,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;AACzC,wBAAgB,MAAM,CAAC,CAAC,EACtB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;AAmCzC,yBAAiB,MAAM,CAAC;IACtB,SAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACpC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,GAC3D,KAAK,CAAC,CAAC,CAAC,CAAC;IACZ,SAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,KAAK,CAAC,CAAC,CAAC,CAAC;IAIZ,SAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACpC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,GAC3D,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;IACzC,SAAgB,OAAO,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;IAKlC,MAAM,IAAI,8HAAe,CAAC;IAC1B,MAAM,WAAW;;KAA6B,CAAC;CACvD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filter = void 0;
|
|
4
|
+
const reduce_lazy_1 = require("../utils/reduce-lazy");
|
|
5
|
+
const to_lazy_indexed_1 = require("../utils/to-lazy-indexed");
|
|
6
|
+
const function_1 = require("../function");
|
|
7
|
+
function filter() {
|
|
8
|
+
return (0, function_1.purry)(_filter(false), arguments, filter.lazy);
|
|
9
|
+
}
|
|
10
|
+
exports.filter = filter;
|
|
11
|
+
function _filter(indexed) {
|
|
12
|
+
return (array, fn) => {
|
|
13
|
+
return (0, reduce_lazy_1._reduceLazy)(array, indexed ? filter.lazyIndexed(fn) : filter.lazy(fn), indexed);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function _lazy(indexed) {
|
|
17
|
+
return (fn) => {
|
|
18
|
+
return (value, index, array) => {
|
|
19
|
+
const valid = indexed ? fn(value, index, array) : fn(value);
|
|
20
|
+
if (valid) {
|
|
21
|
+
return {
|
|
22
|
+
done: false,
|
|
23
|
+
hasNext: true,
|
|
24
|
+
next: value,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
done: false,
|
|
29
|
+
hasNext: false,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
(function (filter) {
|
|
35
|
+
function indexed() {
|
|
36
|
+
return (0, function_1.purry)(_filter(true), arguments, filter.lazyIndexed);
|
|
37
|
+
}
|
|
38
|
+
filter.indexed = indexed;
|
|
39
|
+
filter.lazy = _lazy(false);
|
|
40
|
+
filter.lazyIndexed = (0, to_lazy_indexed_1.toLazyIndexed)(_lazy(true));
|
|
41
|
+
})(filter || (exports.filter = filter = {}));
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Pred, type PredIndexed, type PredIndexedOptional } from '../utils/types';
|
|
2
|
+
export declare function findIndex<T>(array: ReadonlyArray<T>, fn: Pred<T, boolean>): number;
|
|
3
|
+
export declare function findIndex<T>(fn: Pred<T, boolean>): (array: ReadonlyArray<T>) => number;
|
|
4
|
+
export declare namespace findIndex {
|
|
5
|
+
function indexed<T>(array: ReadonlyArray<T>, fn: PredIndexed<T, boolean>): number;
|
|
6
|
+
function indexed<T>(fn: PredIndexed<T, boolean>): (array: ReadonlyArray<T>) => number;
|
|
7
|
+
const lazy: (<T>(fn: PredIndexedOptional<T, boolean>) => (value: T, index?: number | undefined, array?: T[] | undefined) => {
|
|
8
|
+
done: boolean;
|
|
9
|
+
hasNext: boolean;
|
|
10
|
+
next: number;
|
|
11
|
+
} | {
|
|
12
|
+
done: boolean;
|
|
13
|
+
hasNext: boolean;
|
|
14
|
+
next?: undefined;
|
|
15
|
+
}) & {
|
|
16
|
+
single: true;
|
|
17
|
+
};
|
|
18
|
+
const lazyIndexed: (<T>(fn: PredIndexedOptional<T, boolean>) => (value: T, index?: number | undefined, array?: T[] | undefined) => {
|
|
19
|
+
done: boolean;
|
|
20
|
+
hasNext: boolean;
|
|
21
|
+
next: number;
|
|
22
|
+
} | {
|
|
23
|
+
done: boolean;
|
|
24
|
+
hasNext: boolean;
|
|
25
|
+
next?: undefined;
|
|
26
|
+
}) & {
|
|
27
|
+
indexed: true;
|
|
28
|
+
} & {
|
|
29
|
+
single: true;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=find-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-index.d.ts","sourceRoot":"","sources":["../../../src/array/find-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAoBvF,wBAAgB,SAAS,CAAC,CAAC,EACzB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,MAAM,CAAC;AAuBV,wBAAgB,SAAS,CAAC,CAAC,EACzB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAqCvC,yBAAiB,SAAS,CAAC;IACzB,SAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,MAAM,CAAC;IACV,SAAgB,OAAO,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IAKhC,MAAM,IAAI;;;;;;;;;;KAAyB,CAAC;IAEpC,MAAM,WAAW;;;;;;;;;;;;KAAuC,CAAC;CACjE"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findIndex = void 0;
|
|
4
|
+
const to_lazy_indexed_1 = require("../utils/to-lazy-indexed");
|
|
5
|
+
const to_single_1 = require("../utils/to-single");
|
|
6
|
+
const function_1 = require("../function");
|
|
7
|
+
function findIndex() {
|
|
8
|
+
return (0, function_1.purry)(_findIndex(false), arguments, findIndex.lazy);
|
|
9
|
+
}
|
|
10
|
+
exports.findIndex = findIndex;
|
|
11
|
+
function _findIndex(indexed) {
|
|
12
|
+
return (array, fn) => {
|
|
13
|
+
if (indexed) {
|
|
14
|
+
return array.findIndex(fn);
|
|
15
|
+
}
|
|
16
|
+
return array.findIndex((x) => fn(x));
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function _lazy(indexed) {
|
|
20
|
+
return (fn) => {
|
|
21
|
+
let i = 0;
|
|
22
|
+
return (value, index, array) => {
|
|
23
|
+
const valid = indexed ? fn(value, index, array) : fn(value);
|
|
24
|
+
if (valid) {
|
|
25
|
+
return {
|
|
26
|
+
done: true,
|
|
27
|
+
hasNext: true,
|
|
28
|
+
next: i,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
i++;
|
|
32
|
+
return {
|
|
33
|
+
done: false,
|
|
34
|
+
hasNext: false,
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
(function (findIndex) {
|
|
40
|
+
function indexed() {
|
|
41
|
+
return (0, function_1.purry)(_findIndex(true), arguments, findIndex.lazyIndexed);
|
|
42
|
+
}
|
|
43
|
+
findIndex.indexed = indexed;
|
|
44
|
+
findIndex.lazy = (0, to_single_1.toSingle)(_lazy(false));
|
|
45
|
+
findIndex.lazyIndexed = (0, to_single_1.toSingle)((0, to_lazy_indexed_1.toLazyIndexed)(_lazy(true)));
|
|
46
|
+
})(findIndex || (exports.findIndex = findIndex = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Pred, type PredIndexed } from '../utils/types';
|
|
2
|
+
export declare function findLastIndex<T>(array: ReadonlyArray<T>, fn: Pred<T, boolean>): number;
|
|
3
|
+
export declare function findLastIndex<T>(fn: Pred<T, boolean>): (array: ReadonlyArray<T>) => number;
|
|
4
|
+
export declare namespace findLastIndex {
|
|
5
|
+
function indexed<T>(array: ReadonlyArray<T>, fn: PredIndexed<T, boolean>): number;
|
|
6
|
+
function indexed<T>(fn: PredIndexed<T, boolean>): (array: ReadonlyArray<T>) => number;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=find-last-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-last-index.d.ts","sourceRoot":"","sources":["../../../src/array/find-last-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAA4B,MAAM,gBAAgB,CAAC;AAkBvF,wBAAgB,aAAa,CAAC,CAAC,EAC7B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,MAAM,CAAC;AAuBV,wBAAgB,aAAa,CAAC,CAAC,EAC7B,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAkBvC,yBAAiB,aAAa,CAAC;IAC7B,SAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,MAAM,CAAC;IACV,SAAgB,OAAO,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;CAKxC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findLastIndex = void 0;
|
|
4
|
+
const function_1 = require("../function");
|
|
5
|
+
function findLastIndex() {
|
|
6
|
+
return (0, function_1.purry)(_findLastIndex(false), arguments);
|
|
7
|
+
}
|
|
8
|
+
exports.findLastIndex = findLastIndex;
|
|
9
|
+
function _findLastIndex(indexed) {
|
|
10
|
+
return (array, fn) => {
|
|
11
|
+
for (let i = array.length - 1; i >= 0; i--) {
|
|
12
|
+
if (indexed ? fn(array[i], i, array) : fn(array[i])) {
|
|
13
|
+
return i;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return -1;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
(function (findLastIndex) {
|
|
20
|
+
function indexed() {
|
|
21
|
+
return (0, function_1.purry)(_findLastIndex(true), arguments);
|
|
22
|
+
}
|
|
23
|
+
findLastIndex.indexed = indexed;
|
|
24
|
+
})(findLastIndex || (exports.findLastIndex = findLastIndex = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Pred, type PredIndexed } from '../utils/types';
|
|
2
|
+
export declare function findLast<T>(array: ReadonlyArray<T>, fn: Pred<T, boolean>): T | undefined;
|
|
3
|
+
export declare function findLast<T = never>(fn: Pred<T, boolean>): (array: ReadonlyArray<T>) => T | undefined;
|
|
4
|
+
export declare namespace findLast {
|
|
5
|
+
function indexed<T>(array: ReadonlyArray<T>, fn: PredIndexed<T, boolean>): T | undefined;
|
|
6
|
+
function indexed<T>(fn: PredIndexed<T, boolean>): (array: ReadonlyArray<T>) => T | undefined;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=find-last.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-last.d.ts","sourceRoot":"","sources":["../../../src/array/find-last.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,WAAW,EAA4B,MAAM,gBAAgB,CAAC;AAmBvF,wBAAgB,QAAQ,CAAC,CAAC,EACxB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,CAAC,GAAG,SAAS,CAAC;AAuBjB,wBAAgB,QAAQ,CAAC,CAAC,GAAG,KAAK,EAChC,EAAE,EAAE,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,GACnB,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;AAgB9C,yBAAiB,QAAQ,CAAC;IACxB,SAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,CAAC,GAAG,SAAS,CAAC;IACjB,SAAgB,OAAO,CAAC,CAAC,EACvB,EAAE,EAAE,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,GAC1B,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;CAK/C"}
|