@vinicunca/perkakas 1.13.2 → 1.14.0
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/dist/add-prop.cjs +2 -1
- package/dist/add-prop.cjs.map +1 -0
- package/dist/add-prop.js +1 -1
- package/dist/add-prop.js.map +1 -1
- package/dist/add.cjs +2 -1
- package/dist/add.cjs.map +1 -0
- package/dist/add.js +1 -1
- package/dist/add.js.map +1 -1
- package/dist/all-pass.cjs +2 -1
- package/dist/all-pass.cjs.map +1 -0
- package/dist/all-pass.js +1 -1
- package/dist/all-pass.js.map +1 -1
- package/dist/any-pass.cjs +2 -1
- package/dist/any-pass.cjs.map +1 -0
- package/dist/any-pass.js +1 -1
- package/dist/any-pass.js.map +1 -1
- package/dist/binary-search-cutoff-index-CLFtXYPc.cjs +2 -0
- package/dist/binary-search-cutoff-index-CLFtXYPc.cjs.map +1 -0
- package/dist/binary-search-cutoff-index-TJlnoie4.js +2 -0
- package/dist/binary-search-cutoff-index-TJlnoie4.js.map +1 -0
- package/dist/capitalize.cjs +2 -1
- package/dist/capitalize.cjs.map +1 -0
- package/dist/capitalize.js +1 -1
- package/dist/capitalize.js.map +1 -1
- package/dist/ceil.cjs +2 -1
- package/dist/ceil.cjs.map +1 -0
- package/dist/ceil.js +1 -1
- package/dist/ceil.js.map +1 -1
- package/dist/chunk.cjs +2 -1
- package/dist/chunk.cjs.map +1 -0
- package/dist/chunk.js +1 -1
- package/dist/chunk.js.map +1 -1
- package/dist/clamp.cjs +2 -1
- package/dist/clamp.cjs.map +1 -0
- package/dist/clamp.js +1 -1
- package/dist/clamp.js.map +1 -1
- package/dist/clone.cjs +2 -1
- package/dist/clone.cjs.map +1 -0
- package/dist/clone.js +1 -1
- package/dist/clone.js.map +1 -1
- package/dist/concat.cjs +2 -1
- package/dist/concat.cjs.map +1 -0
- package/dist/concat.js +1 -1
- package/dist/concat.js.map +1 -1
- package/dist/conditional-3wcaMG9k.cjs +2 -0
- package/dist/conditional-3wcaMG9k.cjs.map +1 -0
- package/dist/conditional-CTEJD5TX.js +2 -0
- package/dist/conditional-CTEJD5TX.js.map +1 -0
- package/dist/conditional.cjs +1 -1
- package/dist/conditional.js +1 -1
- package/dist/constant.cjs +2 -1
- package/dist/constant.cjs.map +1 -0
- package/dist/constant.js.map +1 -1
- package/dist/count-by.cjs +2 -1
- package/dist/count-by.cjs.map +1 -0
- package/dist/count-by.js +1 -1
- package/dist/count-by.js.map +1 -1
- package/dist/curry-from-lazy-BvN_VKlH.cjs +2 -0
- package/dist/curry-from-lazy-BvN_VKlH.cjs.map +1 -0
- package/dist/curry-from-lazy-CtH1dp14.js +2 -0
- package/dist/curry-from-lazy-CtH1dp14.js.map +1 -0
- package/dist/curry-order-rules-BLyCSMdZ.js +2 -0
- package/dist/curry-order-rules-BLyCSMdZ.js.map +1 -0
- package/dist/curry-order-rules-DsJSy3gX.cjs +2 -0
- package/dist/curry-order-rules-DsJSy3gX.cjs.map +1 -0
- package/dist/curry.cjs +2 -1
- package/dist/curry.cjs.map +1 -0
- package/dist/curry.js +2 -1
- package/dist/curry.js.map +1 -0
- package/dist/debounce.cjs +2 -1
- package/dist/debounce.cjs.map +1 -0
- package/dist/debounce.js +1 -1
- package/dist/debounce.js.map +1 -1
- package/dist/default-to.cjs +2 -0
- package/dist/default-to.cjs.map +1 -0
- package/dist/default-to.js +2 -0
- package/dist/default-to.js.map +1 -0
- package/dist/difference-with.cjs +2 -1
- package/dist/difference-with.cjs.map +1 -0
- package/dist/difference-with.js +1 -1
- package/dist/difference-with.js.map +1 -1
- package/dist/difference.cjs +2 -1
- package/dist/difference.cjs.map +1 -0
- package/dist/difference.js +1 -1
- package/dist/difference.js.map +1 -1
- package/dist/divide.cjs +2 -1
- package/dist/divide.cjs.map +1 -0
- package/dist/divide.js +1 -1
- package/dist/divide.js.map +1 -1
- package/dist/do-nothing.cjs +2 -1
- package/dist/do-nothing.cjs.map +1 -0
- package/dist/do-nothing.js.map +1 -1
- package/dist/drop-first-by.cjs +2 -1
- package/dist/drop-first-by.cjs.map +1 -0
- package/dist/drop-first-by.js +1 -1
- package/dist/drop-first-by.js.map +1 -1
- package/dist/drop-last-while.cjs +2 -1
- package/dist/drop-last-while.cjs.map +1 -0
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last-while.js.map +1 -1
- package/dist/drop-last.cjs +2 -1
- package/dist/drop-last.cjs.map +1 -0
- package/dist/drop-last.js +1 -1
- package/dist/drop-last.js.map +1 -1
- package/dist/drop-while.cjs +2 -1
- package/dist/drop-while.cjs.map +1 -0
- package/dist/drop-while.js +1 -1
- package/dist/drop-while.js.map +1 -1
- package/dist/drop.cjs +2 -1
- package/dist/drop.cjs.map +1 -0
- package/dist/drop.js +1 -1
- package/dist/drop.js.map +1 -1
- package/dist/ends-with.cjs +2 -0
- package/dist/ends-with.cjs.map +1 -0
- package/dist/ends-with.js +2 -0
- package/dist/ends-with.js.map +1 -0
- package/dist/entries.cjs +2 -1
- package/dist/entries.cjs.map +1 -0
- package/dist/entries.js +1 -1
- package/dist/entries.js.map +1 -1
- package/dist/evolve.cjs +2 -1
- package/dist/evolve.cjs.map +1 -0
- package/dist/evolve.js +1 -1
- package/dist/evolve.js.map +1 -1
- package/dist/filter.cjs +2 -1
- package/dist/filter.cjs.map +1 -0
- package/dist/filter.js +1 -1
- package/dist/filter.js.map +1 -1
- package/dist/find-index.cjs +2 -1
- package/dist/find-index.cjs.map +1 -0
- package/dist/find-index.js +1 -1
- package/dist/find-index.js.map +1 -1
- package/dist/find-last-index.cjs +2 -1
- package/dist/find-last-index.cjs.map +1 -0
- package/dist/find-last-index.js +1 -1
- package/dist/find-last-index.js.map +1 -1
- package/dist/find-last.cjs +2 -1
- package/dist/find-last.cjs.map +1 -0
- package/dist/find-last.js +1 -1
- package/dist/find-last.js.map +1 -1
- package/dist/find.cjs +2 -1
- package/dist/find.cjs.map +1 -0
- package/dist/find.js +1 -1
- package/dist/find.js.map +1 -1
- package/dist/first-by.cjs +2 -1
- package/dist/first-by.cjs.map +1 -0
- package/dist/first-by.js +1 -1
- package/dist/first-by.js.map +1 -1
- package/dist/first.cjs +2 -1
- package/dist/first.cjs.map +1 -0
- package/dist/first.js +1 -1
- package/dist/first.js.map +1 -1
- package/dist/flat-map.cjs +2 -1
- package/dist/flat-map.cjs.map +1 -0
- package/dist/flat-map.js +1 -1
- package/dist/flat-map.js.map +1 -1
- package/dist/flat.cjs +2 -1
- package/dist/flat.cjs.map +1 -0
- package/dist/flat.js +1 -1
- package/dist/flat.js.map +1 -1
- package/dist/floor.cjs +2 -1
- package/dist/floor.cjs.map +1 -0
- package/dist/floor.js +1 -1
- package/dist/floor.js.map +1 -1
- package/dist/for-each-obj.cjs +2 -1
- package/dist/for-each-obj.cjs.map +1 -0
- package/dist/for-each-obj.js +1 -1
- package/dist/for-each-obj.js.map +1 -1
- package/dist/for-each.cjs +2 -1
- package/dist/for-each.cjs.map +1 -0
- package/dist/for-each.js +1 -1
- package/dist/for-each.js.map +1 -1
- package/dist/from-entries.cjs +2 -1
- package/dist/from-entries.cjs.map +1 -0
- package/dist/from-entries.js +1 -1
- package/dist/from-entries.js.map +1 -1
- package/dist/from-keys.cjs +2 -1
- package/dist/from-keys.cjs.map +1 -0
- package/dist/from-keys.js +1 -1
- package/dist/from-keys.js.map +1 -1
- package/dist/funnel.cjs +2 -1
- package/dist/funnel.cjs.map +1 -0
- package/dist/funnel.js +1 -1
- package/dist/funnel.js.map +1 -1
- package/dist/group-by-prop.cjs +2 -1
- package/dist/group-by-prop.cjs.map +1 -0
- package/dist/group-by-prop.js +1 -1
- package/dist/group-by-prop.js.map +1 -1
- package/dist/group-by.cjs +2 -1
- package/dist/group-by.cjs.map +1 -0
- package/dist/group-by.js +1 -1
- package/dist/group-by.js.map +1 -1
- package/dist/has-at-least.cjs +2 -1
- package/dist/has-at-least.cjs.map +1 -0
- package/dist/has-at-least.js +2 -1
- package/dist/has-at-least.js.map +1 -0
- package/dist/has-sub-object.cjs +2 -1
- package/dist/has-sub-object.cjs.map +1 -0
- package/dist/has-sub-object.js +1 -1
- package/dist/has-sub-object.js.map +1 -1
- package/dist/heap-C0zPQGC0.cjs +2 -0
- package/dist/heap-C0zPQGC0.cjs.map +1 -0
- package/dist/heap-M6D40vkc.js +2 -0
- package/dist/heap-M6D40vkc.js.map +1 -0
- package/dist/human-readable-file-size.cjs +2 -1
- package/dist/human-readable-file-size.cjs.map +1 -0
- package/dist/identity.cjs +2 -1
- package/dist/identity.cjs.map +1 -0
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/index-by.cjs +2 -1
- package/dist/index-by.cjs.map +1 -0
- package/dist/index-by.js +1 -1
- package/dist/index-by.js.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +12489 -158
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +12489 -158
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/intersection-with.cjs +2 -1
- package/dist/intersection-with.cjs.map +1 -0
- package/dist/intersection-with.js +1 -1
- package/dist/intersection-with.js.map +1 -1
- package/dist/intersection.cjs +2 -1
- package/dist/intersection.cjs.map +1 -0
- package/dist/intersection.js +1 -1
- package/dist/intersection.js.map +1 -1
- package/dist/invert.cjs +2 -1
- package/dist/invert.cjs.map +1 -0
- package/dist/invert.js +1 -1
- package/dist/invert.js.map +1 -1
- package/dist/is-array.cjs +2 -1
- package/dist/is-array.cjs.map +1 -0
- package/dist/is-array.js.map +1 -1
- package/dist/is-big-int.cjs +2 -1
- package/dist/is-big-int.cjs.map +1 -0
- package/dist/is-big-int.js.map +1 -1
- package/dist/is-boolean.cjs +2 -1
- package/dist/is-boolean.cjs.map +1 -0
- package/dist/is-boolean.js.map +1 -1
- package/dist/is-date.cjs +2 -1
- package/dist/is-date.cjs.map +1 -0
- package/dist/is-date.js.map +1 -1
- package/dist/is-deep-equal.cjs +2 -1
- package/dist/is-deep-equal.cjs.map +1 -0
- package/dist/is-deep-equal.js +1 -1
- package/dist/is-deep-equal.js.map +1 -1
- package/dist/is-defined.cjs +2 -1
- package/dist/is-defined.cjs.map +1 -0
- package/dist/is-defined.js.map +1 -1
- package/dist/is-empty.cjs +2 -1
- package/dist/is-empty.cjs.map +1 -0
- package/dist/is-empty.js +1 -1
- package/dist/is-empty.js.map +1 -1
- package/dist/is-emptyish.cjs +2 -1
- package/dist/is-emptyish.cjs.map +1 -0
- package/dist/is-emptyish.js.map +1 -1
- package/dist/is-error.cjs +2 -1
- package/dist/is-error.cjs.map +1 -0
- package/dist/is-error.js.map +1 -1
- package/dist/is-function.cjs +2 -1
- package/dist/is-function.cjs.map +1 -0
- package/dist/is-function.js.map +1 -1
- package/dist/is-included-in.cjs +2 -1
- package/dist/is-included-in.cjs.map +1 -0
- package/dist/is-included-in.js.map +1 -1
- package/dist/is-non-null.cjs +2 -1
- package/dist/is-non-null.cjs.map +1 -0
- package/dist/is-non-null.js.map +1 -1
- package/dist/is-non-nullish.cjs +2 -1
- package/dist/is-non-nullish.cjs.map +1 -0
- package/dist/is-non-nullish.js.map +1 -1
- package/dist/is-not.cjs +2 -1
- package/dist/is-not.cjs.map +1 -0
- package/dist/is-not.js.map +1 -1
- package/dist/is-nullish.cjs +2 -1
- package/dist/is-nullish.cjs.map +1 -0
- package/dist/is-nullish.js.map +1 -1
- package/dist/is-number.cjs +2 -1
- package/dist/is-number.cjs.map +1 -0
- package/dist/is-number.js.map +1 -1
- package/dist/is-object-type.cjs +2 -1
- package/dist/is-object-type.cjs.map +1 -0
- package/dist/is-object-type.js.map +1 -1
- package/dist/is-plain-object.cjs +2 -1
- package/dist/is-plain-object.cjs.map +1 -0
- package/dist/is-plain-object.js.map +1 -1
- package/dist/is-promise.cjs +2 -1
- package/dist/is-promise.cjs.map +1 -0
- package/dist/is-promise.js.map +1 -1
- package/dist/is-shallow-equal.cjs +2 -1
- package/dist/is-shallow-equal.cjs.map +1 -0
- package/dist/is-shallow-equal.js +1 -1
- package/dist/is-shallow-equal.js.map +1 -1
- package/dist/is-strict-equal.cjs +2 -1
- package/dist/is-strict-equal.cjs.map +1 -0
- package/dist/is-strict-equal.js +1 -1
- package/dist/is-strict-equal.js.map +1 -1
- package/dist/is-string.cjs +2 -1
- package/dist/is-string.cjs.map +1 -0
- package/dist/is-string.js.map +1 -1
- package/dist/is-symbol.cjs +2 -1
- package/dist/is-symbol.cjs.map +1 -0
- package/dist/is-symbol.js.map +1 -1
- package/dist/is-truthy.cjs +2 -1
- package/dist/is-truthy.cjs.map +1 -0
- package/dist/is-truthy.js.map +1 -1
- package/dist/join.cjs +2 -1
- package/dist/join.cjs.map +1 -0
- package/dist/join.js +1 -1
- package/dist/join.js.map +1 -1
- package/dist/key-codes.cjs +2 -1
- package/dist/key-codes.cjs.map +1 -0
- package/dist/keys.cjs +2 -1
- package/dist/keys.cjs.map +1 -0
- package/dist/keys.js +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/last.cjs +2 -1
- package/dist/last.cjs.map +1 -0
- package/dist/last.js +1 -1
- package/dist/last.js.map +1 -1
- package/dist/lazy-data-last-impl-B05ZpguF.cjs +2 -0
- package/dist/lazy-data-last-impl-B05ZpguF.cjs.map +1 -0
- package/dist/lazy-data-last-impl-Vt_M0l7X.js +2 -0
- package/dist/lazy-data-last-impl-Vt_M0l7X.js.map +1 -0
- package/dist/length.cjs +2 -1
- package/dist/length.cjs.map +1 -0
- package/dist/length.js +1 -1
- package/dist/length.js.map +1 -1
- package/dist/map-keys.cjs +2 -1
- package/dist/map-keys.cjs.map +1 -0
- package/dist/map-keys.js +1 -1
- package/dist/map-keys.js.map +1 -1
- package/dist/map-to-obj.cjs +2 -1
- package/dist/map-to-obj.cjs.map +1 -0
- package/dist/map-to-obj.js +1 -1
- package/dist/map-to-obj.js.map +1 -1
- package/dist/map-values.cjs +2 -1
- package/dist/map-values.cjs.map +1 -0
- package/dist/map-values.js +1 -1
- package/dist/map-values.js.map +1 -1
- package/dist/map-with-feedback.cjs +2 -1
- package/dist/map-with-feedback.cjs.map +1 -0
- package/dist/map-with-feedback.js +1 -1
- package/dist/map-with-feedback.js.map +1 -1
- package/dist/map.cjs +2 -1
- package/dist/map.cjs.map +1 -0
- package/dist/map.js +1 -1
- package/dist/map.js.map +1 -1
- package/dist/mean-by.cjs +2 -1
- package/dist/mean-by.cjs.map +1 -0
- package/dist/mean-by.js +1 -1
- package/dist/mean-by.js.map +1 -1
- package/dist/mean.cjs +2 -0
- package/dist/mean.cjs.map +1 -0
- package/dist/mean.js +2 -0
- package/dist/mean.js.map +1 -0
- package/dist/median.cjs +2 -0
- package/dist/median.cjs.map +1 -0
- package/dist/median.js +2 -0
- package/dist/median.js.map +1 -0
- package/dist/merge-all.cjs +2 -1
- package/dist/merge-all.cjs.map +1 -0
- package/dist/merge-all.js.map +1 -1
- package/dist/merge-deep.cjs +2 -1
- package/dist/merge-deep.cjs.map +1 -0
- package/dist/merge-deep.js +1 -1
- package/dist/merge-deep.js.map +1 -1
- package/dist/merge.cjs +2 -1
- package/dist/merge.cjs.map +1 -0
- package/dist/merge.js +1 -1
- package/dist/merge.js.map +1 -1
- package/dist/multiply.cjs +2 -1
- package/dist/multiply.cjs.map +1 -0
- package/dist/multiply.js +1 -1
- package/dist/multiply.js.map +1 -1
- package/dist/nth-by-DhfNV5xd.js +2 -0
- package/dist/nth-by-DhfNV5xd.js.map +1 -0
- package/dist/nth-by-zZ3RM-mR.cjs +2 -0
- package/dist/nth-by-zZ3RM-mR.cjs.map +1 -0
- package/dist/nth-by.cjs +1 -1
- package/dist/nth-by.js +1 -1
- package/dist/obj-of.cjs +2 -1
- package/dist/obj-of.cjs.map +1 -0
- package/dist/obj-of.js +1 -1
- package/dist/obj-of.js.map +1 -1
- package/dist/omit-by.cjs +2 -1
- package/dist/omit-by.cjs.map +1 -0
- package/dist/omit-by.js +1 -1
- package/dist/omit-by.js.map +1 -1
- package/dist/omit.cjs +2 -1
- package/dist/omit.cjs.map +1 -0
- package/dist/omit.js +1 -1
- package/dist/omit.js.map +1 -1
- package/dist/once.cjs +2 -1
- package/dist/once.cjs.map +1 -0
- package/dist/once.js.map +1 -1
- package/dist/only.cjs +2 -1
- package/dist/only.cjs.map +1 -0
- package/dist/only.js +1 -1
- package/dist/only.js.map +1 -1
- package/dist/partial-bind.cjs +2 -0
- package/dist/partial-bind.cjs.map +1 -0
- package/dist/partial-bind.js +2 -0
- package/dist/partial-bind.js.map +1 -0
- package/dist/partial-last-bind.cjs +2 -0
- package/dist/partial-last-bind.cjs.map +1 -0
- package/dist/partial-last-bind.js +2 -0
- package/dist/partial-last-bind.js.map +1 -0
- package/dist/partition.cjs +2 -1
- package/dist/partition.cjs.map +1 -0
- package/dist/partition.js +1 -1
- package/dist/partition.js.map +1 -1
- package/dist/path-or.cjs +2 -1
- package/dist/path-or.cjs.map +1 -0
- package/dist/path-or.js +1 -1
- package/dist/path-or.js.map +1 -1
- package/dist/pick-by.cjs +2 -1
- package/dist/pick-by.cjs.map +1 -0
- package/dist/pick-by.js +1 -1
- package/dist/pick-by.js.map +1 -1
- package/dist/pick.cjs +2 -1
- package/dist/pick.cjs.map +1 -0
- package/dist/pick.js +1 -1
- package/dist/pick.js.map +1 -1
- package/dist/pipe.cjs +2 -1
- package/dist/pipe.cjs.map +1 -0
- package/dist/pipe.js +2 -1
- package/dist/pipe.js.map +1 -0
- package/dist/piped.cjs +2 -1
- package/dist/piped.cjs.map +1 -0
- package/dist/piped.js +1 -1
- package/dist/piped.js.map +1 -1
- package/dist/product.cjs +2 -1
- package/dist/product.cjs.map +1 -0
- package/dist/product.js +1 -1
- package/dist/product.js.map +1 -1
- package/dist/prop.cjs +2 -1
- package/dist/prop.cjs.map +1 -0
- package/dist/prop.js.map +1 -1
- package/dist/pull-object.cjs +2 -1
- package/dist/pull-object.cjs.map +1 -0
- package/dist/pull-object.js +1 -1
- package/dist/pull-object.js.map +1 -1
- package/dist/random-big-int.cjs +2 -0
- package/dist/random-big-int.cjs.map +1 -0
- package/dist/random-big-int.js +2 -0
- package/dist/random-big-int.js.map +1 -0
- package/dist/random-integer.cjs +2 -1
- package/dist/random-integer.cjs.map +1 -0
- package/dist/random-integer.js +1 -1
- package/dist/random-integer.js.map +1 -1
- package/dist/random-string.cjs +2 -1
- package/dist/random-string.cjs.map +1 -0
- package/dist/random-string.js +1 -1
- package/dist/random-string.js.map +1 -1
- package/dist/range.cjs +2 -1
- package/dist/range.cjs.map +1 -0
- package/dist/range.js +1 -1
- package/dist/range.js.map +1 -1
- package/dist/rank-by.cjs +2 -1
- package/dist/rank-by.cjs.map +1 -0
- package/dist/rank-by.js +1 -1
- package/dist/rank-by.js.map +1 -1
- package/dist/reduce.cjs +2 -1
- package/dist/reduce.cjs.map +1 -0
- package/dist/reduce.js +1 -1
- package/dist/reduce.js.map +1 -1
- package/dist/reverse.cjs +2 -1
- package/dist/reverse.cjs.map +1 -0
- package/dist/reverse.js +1 -1
- package/dist/reverse.js.map +1 -1
- package/dist/round.cjs +2 -1
- package/dist/round.cjs.map +1 -0
- package/dist/round.js +1 -1
- package/dist/round.js.map +1 -1
- package/dist/sample.cjs +2 -1
- package/dist/sample.cjs.map +1 -0
- package/dist/sample.js +1 -1
- package/dist/sample.js.map +1 -1
- package/dist/set-path.cjs +2 -1
- package/dist/set-path.cjs.map +1 -0
- package/dist/set-path.js +1 -1
- package/dist/set-path.js.map +1 -1
- package/dist/set.cjs +2 -1
- package/dist/set.cjs.map +1 -0
- package/dist/set.js +1 -1
- package/dist/set.js.map +1 -1
- package/dist/shuffle.cjs +2 -1
- package/dist/shuffle.cjs.map +1 -0
- package/dist/shuffle.js +1 -1
- package/dist/shuffle.js.map +1 -1
- package/dist/sleep.cjs +2 -1
- package/dist/sleep.cjs.map +1 -0
- package/dist/slice-string.cjs +2 -1
- package/dist/slice-string.cjs.map +1 -0
- package/dist/slice-string.js.map +1 -1
- package/dist/slugify.cjs +2 -1
- package/dist/slugify.cjs.map +1 -0
- package/dist/sort-by.cjs +2 -1
- package/dist/sort-by.cjs.map +1 -0
- package/dist/sort-by.js +1 -1
- package/dist/sort-by.js.map +1 -1
- package/dist/sort.cjs +2 -1
- package/dist/sort.cjs.map +1 -0
- package/dist/sort.js +1 -1
- package/dist/sort.js.map +1 -1
- package/dist/sorted-index-by.cjs +2 -1
- package/dist/sorted-index-by.cjs.map +1 -0
- package/dist/sorted-index-by.js +1 -1
- package/dist/sorted-index-by.js.map +1 -1
- package/dist/sorted-index-with.cjs +2 -1
- package/dist/sorted-index-with.cjs.map +1 -0
- package/dist/sorted-index-with.js +1 -1
- package/dist/sorted-index-with.js.map +1 -1
- package/dist/sorted-index.cjs +2 -1
- package/dist/sorted-index.cjs.map +1 -0
- package/dist/sorted-index.js +1 -1
- package/dist/sorted-index.js.map +1 -1
- package/dist/sorted-last-index-by.cjs +2 -1
- package/dist/sorted-last-index-by.cjs.map +1 -0
- package/dist/sorted-last-index-by.js +1 -1
- package/dist/sorted-last-index-by.js.map +1 -1
- package/dist/sorted-last-index.cjs +2 -1
- package/dist/sorted-last-index.cjs.map +1 -0
- package/dist/sorted-last-index.js +1 -1
- package/dist/sorted-last-index.js.map +1 -1
- package/dist/splice.cjs +2 -1
- package/dist/splice.cjs.map +1 -0
- package/dist/splice.js +1 -1
- package/dist/splice.js.map +1 -1
- package/dist/split-at.cjs +2 -1
- package/dist/split-at.cjs.map +1 -0
- package/dist/split-at.js +1 -1
- package/dist/split-at.js.map +1 -1
- package/dist/split-when.cjs +2 -1
- package/dist/split-when.cjs.map +1 -0
- package/dist/split-when.js +1 -1
- package/dist/split-when.js.map +1 -1
- package/dist/split.cjs +2 -1
- package/dist/split.cjs.map +1 -0
- package/dist/split.js.map +1 -1
- package/dist/starts-with.cjs +2 -0
- package/dist/starts-with.cjs.map +1 -0
- package/dist/starts-with.js +2 -0
- package/dist/starts-with.js.map +1 -0
- package/dist/string-to-path.cjs +2 -1
- package/dist/string-to-path.cjs.map +1 -0
- package/dist/string-to-path.js.map +1 -1
- package/dist/subtract.cjs +2 -1
- package/dist/subtract.cjs.map +1 -0
- package/dist/subtract.js +1 -1
- package/dist/subtract.js.map +1 -1
- package/dist/sum-by.cjs +2 -1
- package/dist/sum-by.cjs.map +1 -0
- package/dist/sum-by.js +1 -1
- package/dist/sum-by.js.map +1 -1
- package/dist/sum.cjs +2 -1
- package/dist/sum.cjs.map +1 -0
- package/dist/sum.js +1 -1
- package/dist/sum.js.map +1 -1
- package/dist/swap-in-place-BzNaxwB3.js +2 -0
- package/dist/swap-in-place-BzNaxwB3.js.map +1 -0
- package/dist/swap-in-place-D1vasegg.cjs +2 -0
- package/dist/swap-in-place-D1vasegg.cjs.map +1 -0
- package/dist/swap-indices.cjs +2 -1
- package/dist/swap-indices.cjs.map +1 -0
- package/dist/swap-indices.js +1 -1
- package/dist/swap-indices.js.map +1 -1
- package/dist/swap-props.cjs +2 -1
- package/dist/swap-props.cjs.map +1 -0
- package/dist/swap-props.js +1 -1
- package/dist/swap-props.js.map +1 -1
- package/dist/take-first-by.cjs +2 -1
- package/dist/take-first-by.cjs.map +1 -0
- package/dist/take-first-by.js +1 -1
- package/dist/take-first-by.js.map +1 -1
- package/dist/take-last-while.cjs +2 -1
- package/dist/take-last-while.cjs.map +1 -0
- package/dist/take-last-while.js +1 -1
- package/dist/take-last-while.js.map +1 -1
- package/dist/take-last.cjs +2 -1
- package/dist/take-last.cjs.map +1 -0
- package/dist/take-last.js +1 -1
- package/dist/take-last.js.map +1 -1
- package/dist/take-while.cjs +2 -1
- package/dist/take-while.cjs.map +1 -0
- package/dist/take-while.js +1 -1
- package/dist/take-while.js.map +1 -1
- package/dist/take.cjs +2 -1
- package/dist/take.cjs.map +1 -0
- package/dist/take.js +1 -1
- package/dist/take.js.map +1 -1
- package/dist/tap.cjs +2 -1
- package/dist/tap.cjs.map +1 -0
- package/dist/tap.js +1 -1
- package/dist/tap.js.map +1 -1
- package/dist/times.cjs +2 -1
- package/dist/times.cjs.map +1 -0
- package/dist/times.js +1 -1
- package/dist/times.js.map +1 -1
- package/dist/to-camel-case.cjs +2 -1
- package/dist/to-camel-case.cjs.map +1 -0
- package/dist/to-camel-case.js +1 -1
- package/dist/to-camel-case.js.map +1 -1
- package/dist/to-kebab-case.cjs +2 -1
- package/dist/to-kebab-case.cjs.map +1 -0
- package/dist/to-kebab-case.js +1 -1
- package/dist/to-kebab-case.js.map +1 -1
- package/dist/to-lower-case.cjs +2 -1
- package/dist/to-lower-case.cjs.map +1 -0
- package/dist/to-lower-case.js +1 -1
- package/dist/to-lower-case.js.map +1 -1
- package/dist/to-single-BunGuk7o.cjs +2 -0
- package/dist/to-single-BunGuk7o.cjs.map +1 -0
- package/dist/to-single-XEXXW73e.js +2 -0
- package/dist/to-single-XEXXW73e.js.map +1 -0
- package/dist/to-snake-case.cjs +2 -1
- package/dist/to-snake-case.cjs.map +1 -0
- package/dist/to-snake-case.js +1 -1
- package/dist/to-snake-case.js.map +1 -1
- package/dist/to-title-case.cjs +2 -1
- package/dist/to-title-case.cjs.map +1 -0
- package/dist/to-title-case.js +1 -1
- package/dist/to-title-case.js.map +1 -1
- package/dist/to-upper-case.cjs +2 -1
- package/dist/to-upper-case.cjs.map +1 -0
- package/dist/to-upper-case.js +1 -1
- package/dist/to-upper-case.js.map +1 -1
- package/dist/truncate.cjs +2 -0
- package/dist/truncate.cjs.map +1 -0
- package/dist/truncate.js +2 -0
- package/dist/truncate.js.map +1 -0
- package/dist/uncapitalize.cjs +2 -1
- package/dist/uncapitalize.cjs.map +1 -0
- package/dist/uncapitalize.js +1 -1
- package/dist/uncapitalize.js.map +1 -1
- package/dist/unique-by.cjs +2 -1
- package/dist/unique-by.cjs.map +1 -0
- package/dist/unique-by.js +1 -1
- package/dist/unique-by.js.map +1 -1
- package/dist/unique-with.cjs +2 -1
- package/dist/unique-with.cjs.map +1 -0
- package/dist/unique-with.js +1 -1
- package/dist/unique-with.js.map +1 -1
- package/dist/unique.cjs +2 -1
- package/dist/unique.cjs.map +1 -0
- package/dist/unique.js +1 -1
- package/dist/unique.js.map +1 -1
- package/dist/utility-evaluators-C8koSp9T.cjs +2 -0
- package/dist/utility-evaluators-C8koSp9T.cjs.map +1 -0
- package/dist/utility-evaluators-ZAaUtL2Z.js +2 -0
- package/dist/utility-evaluators-ZAaUtL2Z.js.map +1 -0
- package/dist/values.cjs +2 -1
- package/dist/values.cjs.map +1 -0
- package/dist/values.js +1 -1
- package/dist/values.js.map +1 -1
- package/dist/when.cjs +2 -0
- package/dist/when.cjs.map +1 -0
- package/dist/when.js +2 -0
- package/dist/when.js.map +1 -0
- package/dist/with-precision-CgRuf7Wl.js +2 -0
- package/dist/with-precision-CgRuf7Wl.js.map +1 -0
- package/dist/with-precision-DVi9325n.cjs +2 -0
- package/dist/with-precision-DVi9325n.cjs.map +1 -0
- package/dist/words-C8Rd_80F.cjs +3 -0
- package/dist/words-C8Rd_80F.cjs.map +1 -0
- package/dist/words-CYZ0Lyko.js +3 -0
- package/dist/words-CYZ0Lyko.js.map +1 -0
- package/dist/zip-with.cjs +2 -1
- package/dist/zip-with.cjs.map +1 -0
- package/dist/zip-with.js +1 -1
- package/dist/zip-with.js.map +1 -1
- package/dist/zip.cjs +2 -1
- package/dist/zip.cjs.map +1 -0
- package/dist/zip.js +1 -1
- package/dist/zip.js.map +1 -1
- package/package.json +16 -18
- package/dist/add-prop.d.cts +0 -46
- package/dist/add-prop.d.cts.map +0 -1
- package/dist/add-prop.d.ts +0 -46
- package/dist/add-prop.d.ts.map +0 -1
- package/dist/add.d.cts +0 -34
- package/dist/add.d.cts.map +0 -1
- package/dist/add.d.ts +0 -34
- package/dist/add.d.ts.map +0 -1
- package/dist/all-pass.d.cts +0 -37
- package/dist/all-pass.d.cts.map +0 -1
- package/dist/all-pass.d.ts +0 -37
- package/dist/all-pass.d.ts.map +0 -1
- package/dist/any-pass.d.cts +0 -37
- package/dist/any-pass.d.cts.map +0 -1
- package/dist/any-pass.d.ts +0 -37
- package/dist/any-pass.d.ts.map +0 -1
- package/dist/array-required-prefix-BFDM7eSS.d.cts +0 -26
- package/dist/array-required-prefix-BFDM7eSS.d.cts.map +0 -1
- package/dist/array-required-prefix-DwpaLy0D.d.ts +0 -26
- package/dist/array-required-prefix-DwpaLy0D.d.ts.map +0 -1
- package/dist/binary-search-cutoff-index-CN25H71A.js +0 -2
- package/dist/binary-search-cutoff-index-CN25H71A.js.map +0 -1
- package/dist/binary-search-cutoff-index-ClkmTCR5.cjs +0 -1
- package/dist/bounded-partial-CPc1XU57.d.ts +0 -17
- package/dist/bounded-partial-CPc1XU57.d.ts.map +0 -1
- package/dist/bounded-partial-CtOsGqxa.d.cts +0 -17
- package/dist/bounded-partial-CtOsGqxa.d.cts.map +0 -1
- package/dist/capitalize.d.cts +0 -53
- package/dist/capitalize.d.cts.map +0 -1
- package/dist/capitalize.d.ts +0 -53
- package/dist/capitalize.d.ts.map +0 -1
- package/dist/ceil.d.cts +0 -39
- package/dist/ceil.d.cts.map +0 -1
- package/dist/ceil.d.ts +0 -39
- package/dist/ceil.d.ts.map +0 -1
- package/dist/chunk.d.cts +0 -76
- package/dist/chunk.d.cts.map +0 -1
- package/dist/chunk.d.ts +0 -76
- package/dist/chunk.d.ts.map +0 -1
- package/dist/clamp.d.cts +0 -37
- package/dist/clamp.d.cts.map +0 -1
- package/dist/clamp.d.ts +0 -37
- package/dist/clamp.d.ts.map +0 -1
- package/dist/clamped-integer-subtract-C-AIuFhk.d.ts +0 -11
- package/dist/clamped-integer-subtract-C-AIuFhk.d.ts.map +0 -1
- package/dist/clamped-integer-subtract-DueGS_u_.d.cts +0 -11
- package/dist/clamped-integer-subtract-DueGS_u_.d.cts.map +0 -1
- package/dist/clone.d.cts +0 -35
- package/dist/clone.d.cts.map +0 -1
- package/dist/clone.d.ts +0 -35
- package/dist/clone.d.ts.map +0 -1
- package/dist/coerced-array-BKR9Bvsl.d.cts +0 -17
- package/dist/coerced-array-BKR9Bvsl.d.cts.map +0 -1
- package/dist/coerced-array-BfTLxqLo.d.ts +0 -17
- package/dist/coerced-array-BfTLxqLo.d.ts.map +0 -1
- package/dist/concat.d.cts +0 -41
- package/dist/concat.d.cts.map +0 -1
- package/dist/concat.d.ts +0 -41
- package/dist/concat.d.ts.map +0 -1
- package/dist/conditional-6ff4g8Sy.cjs +0 -1
- package/dist/conditional-Br0uqqc9.d.cts +0 -221
- package/dist/conditional-Br0uqqc9.d.cts.map +0 -1
- package/dist/conditional-CDez6uXp.d.ts +0 -221
- package/dist/conditional-CDez6uXp.d.ts.map +0 -1
- package/dist/conditional-WbmvQs8H.js +0 -2
- package/dist/conditional-WbmvQs8H.js.map +0 -1
- package/dist/conditional.d.cts +0 -2
- package/dist/conditional.d.ts +0 -2
- package/dist/constant.d.cts +0 -32
- package/dist/constant.d.cts.map +0 -1
- package/dist/constant.d.ts +0 -32
- package/dist/constant.d.ts.map +0 -1
- package/dist/count-by.d.cts +0 -42
- package/dist/count-by.d.cts.map +0 -1
- package/dist/count-by.d.ts +0 -42
- package/dist/count-by.d.ts.map +0 -1
- package/dist/curry-BsY0Z8jH.cjs +0 -1
- package/dist/curry-CKDQ1osk.d.ts +0 -70
- package/dist/curry-CKDQ1osk.d.ts.map +0 -1
- package/dist/curry-NmniqyJ0.js +0 -2
- package/dist/curry-NmniqyJ0.js.map +0 -1
- package/dist/curry-from-lazy-BCGvmhyS.cjs +0 -1
- package/dist/curry-from-lazy-PQ0BbG-7.js +0 -2
- package/dist/curry-from-lazy-PQ0BbG-7.js.map +0 -1
- package/dist/curry-mh6BKSIA.d.cts +0 -70
- package/dist/curry-mh6BKSIA.d.cts.map +0 -1
- package/dist/curry-order-rules-BoF09Dq2.d.cts +0 -48
- package/dist/curry-order-rules-BoF09Dq2.d.cts.map +0 -1
- package/dist/curry-order-rules-ClqHrs8_.cjs +0 -1
- package/dist/curry-order-rules-CoO4bk5I.d.ts +0 -48
- package/dist/curry-order-rules-CoO4bk5I.d.ts.map +0 -1
- package/dist/curry-order-rules-DwrF-_P1.js +0 -2
- package/dist/curry-order-rules-DwrF-_P1.js.map +0 -1
- package/dist/curry.d.cts +0 -2
- package/dist/curry.d.ts +0 -2
- package/dist/debounce.d.cts +0 -98
- package/dist/debounce.d.cts.map +0 -1
- package/dist/debounce.d.ts +0 -98
- package/dist/debounce.d.ts.map +0 -1
- package/dist/deduped-DdwAYzXs.d.cts +0 -23
- package/dist/deduped-DdwAYzXs.d.cts.map +0 -1
- package/dist/deduped-RY-1u-ns.d.ts +0 -23
- package/dist/deduped-RY-1u-ns.d.ts.map +0 -1
- package/dist/difference-with.d.cts +0 -48
- package/dist/difference-with.d.cts.map +0 -1
- package/dist/difference-with.d.ts +0 -48
- package/dist/difference-with.d.ts.map +0 -1
- package/dist/difference.d.cts +0 -37
- package/dist/difference.d.cts.map +0 -1
- package/dist/difference.d.ts +0 -37
- package/dist/difference.d.ts.map +0 -1
- package/dist/dist-8XtUY3ad.cjs +0 -114
- package/dist/dist-Bd1vawFi.js +0 -103
- package/dist/dist-Bd1vawFi.js.map +0 -1
- package/dist/divide.d.cts +0 -33
- package/dist/divide.d.cts.map +0 -1
- package/dist/divide.d.ts +0 -33
- package/dist/divide.d.ts.map +0 -1
- package/dist/do-nothing.d.cts +0 -28
- package/dist/do-nothing.d.cts.map +0 -1
- package/dist/do-nothing.d.ts +0 -28
- package/dist/do-nothing.d.ts.map +0 -1
- package/dist/drop-first-by.d.cts +0 -41
- package/dist/drop-first-by.d.cts.map +0 -1
- package/dist/drop-first-by.d.ts +0 -41
- package/dist/drop-first-by.d.ts.map +0 -1
- package/dist/drop-last-while.d.cts +0 -36
- package/dist/drop-last-while.d.cts.map +0 -1
- package/dist/drop-last-while.d.ts +0 -36
- package/dist/drop-last-while.d.ts.map +0 -1
- package/dist/drop-last.d.cts +0 -32
- package/dist/drop-last.d.cts.map +0 -1
- package/dist/drop-last.d.ts +0 -32
- package/dist/drop-last.d.ts.map +0 -1
- package/dist/drop-while.d.cts +0 -36
- package/dist/drop-while.d.cts.map +0 -1
- package/dist/drop-while.d.ts +0 -36
- package/dist/drop-while.d.ts.map +0 -1
- package/dist/drop.d.cts +0 -40
- package/dist/drop.d.cts.map +0 -1
- package/dist/drop.d.ts +0 -40
- package/dist/drop.d.ts.map +0 -1
- package/dist/entries.d.cts +0 -31
- package/dist/entries.d.cts.map +0 -1
- package/dist/entries.d.ts +0 -31
- package/dist/entries.d.ts.map +0 -1
- package/dist/enumerable-string-key-of-CZQf3ld_.d.ts +0 -17
- package/dist/enumerable-string-key-of-CZQf3ld_.d.ts.map +0 -1
- package/dist/enumerable-string-key-of-DhcNc5iz.d.cts +0 -17
- package/dist/enumerable-string-key-of-DhcNc5iz.d.cts.map +0 -1
- package/dist/enumerable-string-keyed-value-of-CRlVAvdp.d.ts +0 -12
- package/dist/enumerable-string-keyed-value-of-CRlVAvdp.d.ts.map +0 -1
- package/dist/enumerable-string-keyed-value-of-icm2q60J.d.cts +0 -12
- package/dist/enumerable-string-keyed-value-of-icm2q60J.d.cts.map +0 -1
- package/dist/evolve.d.cts +0 -101
- package/dist/evolve.d.cts.map +0 -1
- package/dist/evolve.d.ts +0 -101
- package/dist/evolve.d.ts.map +0 -1
- package/dist/filter.d.cts +0 -50
- package/dist/filter.d.cts.map +0 -1
- package/dist/filter.d.ts +0 -50
- package/dist/filter.d.ts.map +0 -1
- package/dist/filtered-array-C--8loav.d.cts +0 -22
- package/dist/filtered-array-C--8loav.d.cts.map +0 -1
- package/dist/filtered-array-wtIEwdU7.d.ts +0 -22
- package/dist/filtered-array-wtIEwdU7.d.ts.map +0 -1
- package/dist/find-index.d.cts +0 -50
- package/dist/find-index.d.cts.map +0 -1
- package/dist/find-index.d.ts +0 -50
- package/dist/find-index.d.ts.map +0 -1
- package/dist/find-last-index.d.cts +0 -50
- package/dist/find-last-index.d.cts.map +0 -1
- package/dist/find-last-index.d.ts +0 -50
- package/dist/find-last-index.d.ts.map +0 -1
- package/dist/find-last.d.cts +0 -62
- package/dist/find-last.d.cts.map +0 -1
- package/dist/find-last.d.ts +0 -62
- package/dist/find-last.d.ts.map +0 -1
- package/dist/find.d.cts +0 -64
- package/dist/find.d.cts.map +0 -1
- package/dist/find.d.ts +0 -64
- package/dist/find.d.ts.map +0 -1
- package/dist/first-by.d.cts +0 -60
- package/dist/first-by.d.cts.map +0 -1
- package/dist/first-by.d.ts +0 -60
- package/dist/first-by.d.ts.map +0 -1
- package/dist/first.d.cts +0 -40
- package/dist/first.d.cts.map +0 -1
- package/dist/first.d.ts +0 -40
- package/dist/first.d.ts.map +0 -1
- package/dist/flat-map.d.cts +0 -47
- package/dist/flat-map.d.cts.map +0 -1
- package/dist/flat-map.d.ts +0 -47
- package/dist/flat-map.d.ts.map +0 -1
- package/dist/flat.d.cts +0 -53
- package/dist/flat.d.cts.map +0 -1
- package/dist/flat.d.ts +0 -53
- package/dist/flat.d.ts.map +0 -1
- package/dist/floor.d.cts +0 -39
- package/dist/floor.d.cts.map +0 -1
- package/dist/floor.d.ts +0 -39
- package/dist/floor.d.ts.map +0 -1
- package/dist/for-each-obj.d.cts +0 -47
- package/dist/for-each-obj.d.cts.map +0 -1
- package/dist/for-each-obj.d.ts +0 -47
- package/dist/for-each-obj.d.ts.map +0 -1
- package/dist/for-each.d.cts +0 -54
- package/dist/for-each.d.cts.map +0 -1
- package/dist/for-each.d.ts +0 -54
- package/dist/for-each.d.ts.map +0 -1
- package/dist/from-entries.d.cts +0 -68
- package/dist/from-entries.d.cts.map +0 -1
- package/dist/from-entries.d.ts +0 -68
- package/dist/from-entries.d.ts.map +0 -1
- package/dist/from-keys.d.cts +0 -60
- package/dist/from-keys.d.cts.map +0 -1
- package/dist/from-keys.d.ts +0 -60
- package/dist/from-keys.d.ts.map +0 -1
- package/dist/funnel.d.cts +0 -155
- package/dist/funnel.d.cts.map +0 -1
- package/dist/funnel.d.ts +0 -155
- package/dist/funnel.d.ts.map +0 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.cjs +0 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.d.cts +0 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.d.ts +0 -1
- package/dist/funnel.lodash-debounce-with-cached-value.test.js +0 -2
- package/dist/funnel.lodash-debounce-with-cached-value.test.js.map +0 -1
- package/dist/funnel.lodash-debounce.test.cjs +0 -1
- package/dist/funnel.lodash-debounce.test.d.cts +0 -1
- package/dist/funnel.lodash-debounce.test.d.ts +0 -1
- package/dist/funnel.lodash-debounce.test.js +0 -2
- package/dist/funnel.lodash-debounce.test.js.map +0 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.cjs +0 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.d.cts +0 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.d.ts +0 -1
- package/dist/funnel.lodash-throttle-with-cached-value.test.js +0 -2
- package/dist/funnel.lodash-throttle-with-cached-value.test.js.map +0 -1
- package/dist/funnel.lodash-throttle.test.cjs +0 -1
- package/dist/funnel.lodash-throttle.test.d.cts +0 -1
- package/dist/funnel.lodash-throttle.test.d.ts +0 -1
- package/dist/funnel.lodash-throttle.test.js +0 -2
- package/dist/funnel.lodash-throttle.test.js.map +0 -1
- package/dist/funnel.perkakas-debounce.test.cjs +0 -1
- package/dist/funnel.perkakas-debounce.test.d.cts +0 -1
- package/dist/funnel.perkakas-debounce.test.d.ts +0 -1
- package/dist/funnel.perkakas-debounce.test.js +0 -2
- package/dist/funnel.perkakas-debounce.test.js.map +0 -1
- package/dist/funnel.reference-batch.test.cjs +0 -1
- package/dist/funnel.reference-batch.test.d.cts +0 -1
- package/dist/funnel.reference-batch.test.d.ts +0 -1
- package/dist/funnel.reference-batch.test.js +0 -2
- package/dist/funnel.reference-batch.test.js.map +0 -1
- package/dist/funnel.test-d.cjs +0 -1
- package/dist/funnel.test-d.d.cts +0 -1
- package/dist/funnel.test-d.d.ts +0 -1
- package/dist/funnel.test-d.js +0 -2
- package/dist/funnel.test-d.js.map +0 -1
- package/dist/funnel.test.cjs +0 -1
- package/dist/funnel.test.d.cts +0 -1
- package/dist/funnel.test.d.ts +0 -1
- package/dist/funnel.test.js +0 -2
- package/dist/funnel.test.js.map +0 -1
- package/dist/group-by-prop.d.cts +0 -89
- package/dist/group-by-prop.d.cts.map +0 -1
- package/dist/group-by-prop.d.ts +0 -89
- package/dist/group-by-prop.d.ts.map +0 -1
- package/dist/group-by.d.cts +0 -69
- package/dist/group-by.d.cts.map +0 -1
- package/dist/group-by.d.ts +0 -69
- package/dist/group-by.d.ts.map +0 -1
- package/dist/has-at-least-BXwOPLQK.cjs +0 -1
- package/dist/has-at-least-Coy9sM-B.js +0 -2
- package/dist/has-at-least-Coy9sM-B.js.map +0 -1
- package/dist/has-at-least.d.cts +0 -59
- package/dist/has-at-least.d.cts.map +0 -1
- package/dist/has-at-least.d.ts +0 -59
- package/dist/has-at-least.d.ts.map +0 -1
- package/dist/has-sub-object.d.cts +0 -44
- package/dist/has-sub-object.d.cts.map +0 -1
- package/dist/has-sub-object.d.ts +0 -44
- package/dist/has-sub-object.d.ts.map +0 -1
- package/dist/heap-BhpfhYWj.js +0 -2
- package/dist/heap-BhpfhYWj.js.map +0 -1
- package/dist/heap-DWDhbxfx.cjs +0 -1
- package/dist/human-readable-file-size.d.cts +0 -17
- package/dist/human-readable-file-size.d.cts.map +0 -1
- package/dist/human-readable-file-size.d.ts +0 -17
- package/dist/human-readable-file-size.d.ts.map +0 -1
- package/dist/identity.d.cts +0 -22
- package/dist/identity.d.cts.map +0 -1
- package/dist/identity.d.ts +0 -22
- package/dist/identity.d.ts.map +0 -1
- package/dist/index-by.d.cts +0 -53
- package/dist/index-by.d.cts.map +0 -1
- package/dist/index-by.d.ts +0 -53
- package/dist/index-by.d.ts.map +0 -1
- package/dist/int-range-inclusive-BlGXX6Cz.d.ts +0 -15
- package/dist/int-range-inclusive-BlGXX6Cz.d.ts.map +0 -1
- package/dist/int-range-inclusive-KocNpK0p.d.cts +0 -15
- package/dist/int-range-inclusive-KocNpK0p.d.cts.map +0 -1
- package/dist/intersection-with.d.cts +0 -54
- package/dist/intersection-with.d.cts.map +0 -1
- package/dist/intersection-with.d.ts +0 -54
- package/dist/intersection-with.d.ts.map +0 -1
- package/dist/intersection.d.cts +0 -37
- package/dist/intersection.d.cts.map +0 -1
- package/dist/intersection.d.ts +0 -37
- package/dist/intersection.d.ts.map +0 -1
- package/dist/invert.d.cts +0 -33
- package/dist/invert.d.cts.map +0 -1
- package/dist/invert.d.ts +0 -33
- package/dist/invert.d.ts.map +0 -1
- package/dist/is-array.d.cts +0 -21
- package/dist/is-array.d.cts.map +0 -1
- package/dist/is-array.d.ts +0 -21
- package/dist/is-array.d.ts.map +0 -1
- package/dist/is-big-int.d.cts +0 -22
- package/dist/is-big-int.d.cts.map +0 -1
- package/dist/is-big-int.d.ts +0 -22
- package/dist/is-big-int.d.ts.map +0 -1
- package/dist/is-boolean.d.cts +0 -21
- package/dist/is-boolean.d.cts.map +0 -1
- package/dist/is-boolean.d.ts +0 -21
- package/dist/is-boolean.d.ts.map +0 -1
- package/dist/is-bounded-record-Bx4n8QB0.d.ts +0 -34
- package/dist/is-bounded-record-Bx4n8QB0.d.ts.map +0 -1
- package/dist/is-bounded-record-DV6ZQk9H.d.cts +0 -34
- package/dist/is-bounded-record-DV6ZQk9H.d.cts.map +0 -1
- package/dist/is-date.d.cts +0 -17
- package/dist/is-date.d.cts.map +0 -1
- package/dist/is-date.d.ts +0 -17
- package/dist/is-date.d.ts.map +0 -1
- package/dist/is-deep-equal.d.cts +0 -71
- package/dist/is-deep-equal.d.cts.map +0 -1
- package/dist/is-deep-equal.d.ts +0 -71
- package/dist/is-deep-equal.d.ts.map +0 -1
- package/dist/is-defined.d.cts +0 -19
- package/dist/is-defined.d.cts.map +0 -1
- package/dist/is-defined.d.ts +0 -19
- package/dist/is-defined.d.ts.map +0 -1
- package/dist/is-empty.d.cts +0 -35
- package/dist/is-empty.d.cts.map +0 -1
- package/dist/is-empty.d.ts +0 -35
- package/dist/is-empty.d.ts.map +0 -1
- package/dist/is-emptyish-9tX94IVx.d.cts +0 -73
- package/dist/is-emptyish-9tX94IVx.d.cts.map +0 -1
- package/dist/is-emptyish-DVFGJe-T.d.ts +0 -73
- package/dist/is-emptyish-DVFGJe-T.d.ts.map +0 -1
- package/dist/is-emptyish.d.cts +0 -2
- package/dist/is-emptyish.d.ts +0 -2
- package/dist/is-emptyish.test-d.cjs +0 -1
- package/dist/is-emptyish.test-d.d.cts +0 -8
- package/dist/is-emptyish.test-d.d.cts.map +0 -1
- package/dist/is-emptyish.test-d.d.ts +0 -8
- package/dist/is-emptyish.test-d.d.ts.map +0 -1
- package/dist/is-emptyish.test-d.js +0 -2
- package/dist/is-emptyish.test-d.js.map +0 -1
- package/dist/is-emptyish.test.cjs +0 -1
- package/dist/is-emptyish.test.d.cts +0 -1
- package/dist/is-emptyish.test.d.ts +0 -1
- package/dist/is-emptyish.test.js +0 -2
- package/dist/is-emptyish.test.js.map +0 -1
- package/dist/is-error.d.cts +0 -18
- package/dist/is-error.d.cts.map +0 -1
- package/dist/is-error.d.ts +0 -18
- package/dist/is-error.d.ts.map +0 -1
- package/dist/is-function.d.cts +0 -21
- package/dist/is-function.d.cts.map +0 -1
- package/dist/is-function.d.ts +0 -21
- package/dist/is-function.d.ts.map +0 -1
- package/dist/is-included-in.d.cts +0 -109
- package/dist/is-included-in.d.cts.map +0 -1
- package/dist/is-included-in.d.ts +0 -109
- package/dist/is-included-in.d.ts.map +0 -1
- package/dist/is-non-null.d.cts +0 -19
- package/dist/is-non-null.d.cts.map +0 -1
- package/dist/is-non-null.d.ts +0 -19
- package/dist/is-non-null.d.ts.map +0 -1
- package/dist/is-non-nullish.d.cts +0 -20
- package/dist/is-non-nullish.d.cts.map +0 -1
- package/dist/is-non-nullish.d.ts +0 -20
- package/dist/is-non-nullish.d.ts.map +0 -1
- package/dist/is-not.d.cts +0 -19
- package/dist/is-not.d.cts.map +0 -1
- package/dist/is-not.d.ts +0 -19
- package/dist/is-not.d.ts.map +0 -1
- package/dist/is-nullish.d.cts +0 -23
- package/dist/is-nullish.d.cts.map +0 -1
- package/dist/is-nullish.d.ts +0 -23
- package/dist/is-nullish.d.ts.map +0 -1
- package/dist/is-number.d.cts +0 -22
- package/dist/is-number.d.cts.map +0 -1
- package/dist/is-number.d.ts +0 -22
- package/dist/is-number.d.ts.map +0 -1
- package/dist/is-object-type.d.cts +0 -35
- package/dist/is-object-type.d.cts.map +0 -1
- package/dist/is-object-type.d.ts +0 -35
- package/dist/is-object-type.d.ts.map +0 -1
- package/dist/is-plain-object.d.cts +0 -33
- package/dist/is-plain-object.d.cts.map +0 -1
- package/dist/is-plain-object.d.ts +0 -33
- package/dist/is-plain-object.d.ts.map +0 -1
- package/dist/is-promise.d.cts +0 -18
- package/dist/is-promise.d.cts.map +0 -1
- package/dist/is-promise.d.ts +0 -18
- package/dist/is-promise.d.ts.map +0 -1
- package/dist/is-shallow-equal.d.cts +0 -71
- package/dist/is-shallow-equal.d.cts.map +0 -1
- package/dist/is-shallow-equal.d.ts +0 -71
- package/dist/is-shallow-equal.d.ts.map +0 -1
- package/dist/is-strict-equal.d.cts +0 -67
- package/dist/is-strict-equal.d.cts.map +0 -1
- package/dist/is-strict-equal.d.ts +0 -67
- package/dist/is-strict-equal.d.ts.map +0 -1
- package/dist/is-string.d.cts +0 -20
- package/dist/is-string.d.cts.map +0 -1
- package/dist/is-string.d.ts +0 -20
- package/dist/is-string.d.ts.map +0 -1
- package/dist/is-symbol.d.cts +0 -20
- package/dist/is-symbol.d.cts.map +0 -1
- package/dist/is-symbol.d.ts +0 -20
- package/dist/is-symbol.d.ts.map +0 -1
- package/dist/is-truthy.d.cts +0 -21
- package/dist/is-truthy.d.cts.map +0 -1
- package/dist/is-truthy.d.ts +0 -21
- package/dist/is-truthy.d.ts.map +0 -1
- package/dist/iterable-container-1TN3AJ3s.d.cts +0 -17
- package/dist/iterable-container-1TN3AJ3s.d.cts.map +0 -1
- package/dist/iterable-container-Dv5vSKht.d.ts +0 -17
- package/dist/iterable-container-Dv5vSKht.d.ts.map +0 -1
- package/dist/join.d.cts +0 -46
- package/dist/join.d.cts.map +0 -1
- package/dist/join.d.ts +0 -46
- package/dist/join.d.ts.map +0 -1
- package/dist/key-codes.d.cts +0 -29
- package/dist/key-codes.d.cts.map +0 -1
- package/dist/key-codes.d.ts +0 -29
- package/dist/key-codes.d.ts.map +0 -1
- package/dist/keys.d.cts +0 -38
- package/dist/keys.d.cts.map +0 -1
- package/dist/keys.d.ts +0 -38
- package/dist/keys.d.ts.map +0 -1
- package/dist/last.d.cts +0 -37
- package/dist/last.d.cts.map +0 -1
- package/dist/last.d.ts +0 -37
- package/dist/last.d.ts.map +0 -1
- package/dist/lazy-data-last-impl-D4kLybyP.cjs +0 -1
- package/dist/lazy-data-last-impl-R05wr4K6.js +0 -2
- package/dist/lazy-data-last-impl-R05wr4K6.js.map +0 -1
- package/dist/length.d.cts +0 -28
- package/dist/length.d.cts.map +0 -1
- package/dist/length.d.ts +0 -28
- package/dist/length.d.ts.map +0 -1
- package/dist/magic-string.es-94aXgwpn.js +0 -15
- package/dist/magic-string.es-94aXgwpn.js.map +0 -1
- package/dist/magic-string.es-CGYIWauW.cjs +0 -15
- package/dist/map-keys.d.cts +0 -34
- package/dist/map-keys.d.cts.map +0 -1
- package/dist/map-keys.d.ts +0 -34
- package/dist/map-keys.d.ts.map +0 -1
- package/dist/map-to-obj.d.cts +0 -68
- package/dist/map-to-obj.d.cts.map +0 -1
- package/dist/map-to-obj.d.ts +0 -68
- package/dist/map-to-obj.d.ts.map +0 -1
- package/dist/map-values.d.cts +0 -42
- package/dist/map-values.d.cts.map +0 -1
- package/dist/map-values.d.ts +0 -42
- package/dist/map-values.d.ts.map +0 -1
- package/dist/map-with-feedback.d.cts +0 -54
- package/dist/map-with-feedback.d.cts.map +0 -1
- package/dist/map-with-feedback.d.ts +0 -54
- package/dist/map-with-feedback.d.ts.map +0 -1
- package/dist/map.d.cts +0 -47
- package/dist/map.d.cts.map +0 -1
- package/dist/map.d.ts +0 -47
- package/dist/map.d.ts.map +0 -1
- package/dist/mapped-BbrC9t3s.d.ts +0 -7
- package/dist/mapped-BbrC9t3s.d.ts.map +0 -1
- package/dist/mapped-CkRNfTnY.d.cts +0 -7
- package/dist/mapped-CkRNfTnY.d.cts.map +0 -1
- package/dist/mean-by.d.cts +0 -35
- package/dist/mean-by.d.cts.map +0 -1
- package/dist/mean-by.d.ts +0 -35
- package/dist/mean-by.d.ts.map +0 -1
- package/dist/merge-all-CISawx-J.d.cts +0 -42
- package/dist/merge-all-CISawx-J.d.cts.map +0 -1
- package/dist/merge-all-DJ6n7R1b.d.ts +0 -42
- package/dist/merge-all-DJ6n7R1b.d.ts.map +0 -1
- package/dist/merge-all.d.cts +0 -2
- package/dist/merge-all.d.ts +0 -2
- package/dist/merge-deep.d.cts +0 -37
- package/dist/merge-deep.d.cts.map +0 -1
- package/dist/merge-deep.d.ts +0 -37
- package/dist/merge-deep.d.ts.map +0 -1
- package/dist/merge.d.cts +0 -57
- package/dist/merge.d.cts.map +0 -1
- package/dist/merge.d.ts +0 -57
- package/dist/merge.d.ts.map +0 -1
- package/dist/multiply.d.cts +0 -33
- package/dist/multiply.d.cts.map +0 -1
- package/dist/multiply.d.ts +0 -33
- package/dist/multiply.d.ts.map +0 -1
- package/dist/n-tuple-BkMobYQ9.d.cts +0 -12
- package/dist/n-tuple-BkMobYQ9.d.cts.map +0 -1
- package/dist/n-tuple-zo5g_mSL.d.ts +0 -12
- package/dist/n-tuple-zo5g_mSL.d.ts.map +0 -1
- package/dist/narrowed-to-B7tkuY2k.d.ts +0 -15
- package/dist/narrowed-to-B7tkuY2k.d.ts.map +0 -1
- package/dist/narrowed-to-D_6H-aZW.d.cts +0 -15
- package/dist/narrowed-to-D_6H-aZW.d.cts.map +0 -1
- package/dist/non-empty-array-DHAKSw6t.d.ts +0 -5
- package/dist/non-empty-array-DHAKSw6t.d.ts.map +0 -1
- package/dist/non-empty-array-NDjbHRjk.d.cts +0 -5
- package/dist/non-empty-array-NDjbHRjk.d.cts.map +0 -1
- package/dist/nth-by-Bby4vIbZ.cjs +0 -1
- package/dist/nth-by-JP3-Htbo.js +0 -2
- package/dist/nth-by-JP3-Htbo.js.map +0 -1
- package/dist/nth-by.d.cts +0 -42
- package/dist/nth-by.d.cts.map +0 -1
- package/dist/nth-by.d.ts +0 -42
- package/dist/nth-by.d.ts.map +0 -1
- package/dist/obj-of.d.cts +0 -27
- package/dist/obj-of.d.cts.map +0 -1
- package/dist/obj-of.d.ts +0 -27
- package/dist/obj-of.d.ts.map +0 -1
- package/dist/omit-DI8DRDHj.d.ts +0 -71
- package/dist/omit-DI8DRDHj.d.ts.map +0 -1
- package/dist/omit-DQiCiWAg.d.cts +0 -71
- package/dist/omit-DQiCiWAg.d.cts.map +0 -1
- package/dist/omit-by.d.cts +0 -52
- package/dist/omit-by.d.cts.map +0 -1
- package/dist/omit-by.d.ts +0 -52
- package/dist/omit-by.d.ts.map +0 -1
- package/dist/omit.d.cts +0 -2
- package/dist/omit.d.ts +0 -2
- package/dist/once.d.cts +0 -17
- package/dist/once.d.cts.map +0 -1
- package/dist/once.d.ts +0 -17
- package/dist/once.d.ts.map +0 -1
- package/dist/only.d.cts +0 -34
- package/dist/only.d.cts.map +0 -1
- package/dist/only.d.ts +0 -34
- package/dist/only.d.ts.map +0 -1
- package/dist/optional-options-with-defaults-BFaBSKkF.d.ts +0 -12
- package/dist/optional-options-with-defaults-BFaBSKkF.d.ts.map +0 -1
- package/dist/optional-options-with-defaults-BZVW8GfC.d.cts +0 -12
- package/dist/optional-options-with-defaults-BZVW8GfC.d.cts.map +0 -1
- package/dist/partial-array-CQF5oggb.d.cts +0 -12
- package/dist/partial-array-CQF5oggb.d.cts.map +0 -1
- package/dist/partial-array-DU-2Vkyx.d.ts +0 -12
- package/dist/partial-array-DU-2Vkyx.d.ts.map +0 -1
- package/dist/partition-by-union-BztEpKVh.d.cts +0 -20
- package/dist/partition-by-union-BztEpKVh.d.cts.map +0 -1
- package/dist/partition-by-union-DnfiiEMU.d.ts +0 -20
- package/dist/partition-by-union-DnfiiEMU.d.ts.map +0 -1
- package/dist/partition.d.cts +0 -51
- package/dist/partition.d.cts.map +0 -1
- package/dist/partition.d.ts +0 -51
- package/dist/partition.d.ts.map +0 -1
- package/dist/path-or.d.cts +0 -87
- package/dist/path-or.d.cts.map +0 -1
- package/dist/path-or.d.ts +0 -87
- package/dist/path-or.d.ts.map +0 -1
- package/dist/perkakas-type-error-B9ULNhW0.d.ts +0 -19
- package/dist/perkakas-type-error-B9ULNhW0.d.ts.map +0 -1
- package/dist/perkakas-type-error-ClCCHBW1.d.cts +0 -19
- package/dist/perkakas-type-error-ClCCHBW1.d.cts.map +0 -1
- package/dist/pick-by.d.cts +0 -68
- package/dist/pick-by.d.cts.map +0 -1
- package/dist/pick-by.d.ts +0 -68
- package/dist/pick-by.d.ts.map +0 -1
- package/dist/pick.d.cts +0 -55
- package/dist/pick.d.cts.map +0 -1
- package/dist/pick.d.ts +0 -55
- package/dist/pick.d.ts.map +0 -1
- package/dist/pipe-CB7Lufqv.cjs +0 -1
- package/dist/pipe-CZKusDA-.js +0 -2
- package/dist/pipe-CZKusDA-.js.map +0 -1
- package/dist/pipe.d.cts +0 -106
- package/dist/pipe.d.cts.map +0 -1
- package/dist/pipe.d.ts +0 -106
- package/dist/pipe.d.ts.map +0 -1
- package/dist/piped.d.cts +0 -31
- package/dist/piped.d.cts.map +0 -1
- package/dist/piped.d.ts +0 -31
- package/dist/piped.d.ts.map +0 -1
- package/dist/product.d.cts +0 -52
- package/dist/product.d.cts.map +0 -1
- package/dist/product.d.ts +0 -52
- package/dist/product.d.ts.map +0 -1
- package/dist/prop-D-4cFXSd.d.cts +0 -85
- package/dist/prop-D-4cFXSd.d.cts.map +0 -1
- package/dist/prop-DL-oRBeN.d.ts +0 -85
- package/dist/prop-DL-oRBeN.d.ts.map +0 -1
- package/dist/prop.d.cts +0 -2
- package/dist/prop.d.ts +0 -2
- package/dist/pull-object.d.cts +0 -70
- package/dist/pull-object.d.cts.map +0 -1
- package/dist/pull-object.d.ts +0 -70
- package/dist/pull-object.d.ts.map +0 -1
- package/dist/random-integer.d.cts +0 -23
- package/dist/random-integer.d.cts.map +0 -1
- package/dist/random-integer.d.ts +0 -23
- package/dist/random-integer.d.ts.map +0 -1
- package/dist/random-string.d.cts +0 -29
- package/dist/random-string.d.cts.map +0 -1
- package/dist/random-string.d.ts +0 -29
- package/dist/random-string.d.ts.map +0 -1
- package/dist/range.d.cts +0 -27
- package/dist/range.d.cts.map +0 -1
- package/dist/range.d.ts +0 -27
- package/dist/range.d.ts.map +0 -1
- package/dist/rank-by.d.cts +0 -45
- package/dist/rank-by.d.cts.map +0 -1
- package/dist/rank-by.d.ts +0 -45
- package/dist/rank-by.d.ts.map +0 -1
- package/dist/reduce.d.cts +0 -53
- package/dist/reduce.d.cts.map +0 -1
- package/dist/reduce.d.ts +0 -53
- package/dist/reduce.d.ts.map +0 -1
- package/dist/reordered-array-BWG6tVSK.d.ts +0 -7
- package/dist/reordered-array-BWG6tVSK.d.ts.map +0 -1
- package/dist/reordered-array-CmReuxDi.d.cts +0 -7
- package/dist/reordered-array-CmReuxDi.d.cts.map +0 -1
- package/dist/reverse.d.cts +0 -29
- package/dist/reverse.d.cts.map +0 -1
- package/dist/reverse.d.ts +0 -29
- package/dist/reverse.d.ts.map +0 -1
- package/dist/round.d.cts +0 -39
- package/dist/round.d.cts.map +0 -1
- package/dist/round.d.ts +0 -39
- package/dist/round.d.ts.map +0 -1
- package/dist/sample.d.cts +0 -69
- package/dist/sample.d.cts.map +0 -1
- package/dist/sample.d.ts +0 -69
- package/dist/sample.d.ts.map +0 -1
- package/dist/set-path.d.cts +0 -47
- package/dist/set-path.d.cts.map +0 -1
- package/dist/set-path.d.ts +0 -47
- package/dist/set-path.d.ts.map +0 -1
- package/dist/set.d.cts +0 -40
- package/dist/set.d.cts.map +0 -1
- package/dist/set.d.ts +0 -40
- package/dist/set.d.ts.map +0 -1
- package/dist/shuffle.d.cts +0 -31
- package/dist/shuffle.d.cts.map +0 -1
- package/dist/shuffle.d.ts +0 -31
- package/dist/shuffle.d.ts.map +0 -1
- package/dist/sleep.d.cts +0 -16
- package/dist/sleep.d.cts.map +0 -1
- package/dist/sleep.d.ts +0 -16
- package/dist/sleep.d.ts.map +0 -1
- package/dist/slice-string.d.cts +0 -41
- package/dist/slice-string.d.cts.map +0 -1
- package/dist/slice-string.d.ts +0 -41
- package/dist/slice-string.d.ts.map +0 -1
- package/dist/slugify.d.cts +0 -15
- package/dist/slugify.d.cts.map +0 -1
- package/dist/slugify.d.ts +0 -15
- package/dist/slugify.d.ts.map +0 -1
- package/dist/sort-by.d.cts +0 -88
- package/dist/sort-by.d.cts.map +0 -1
- package/dist/sort-by.d.ts +0 -88
- package/dist/sort-by.d.ts.map +0 -1
- package/dist/sort.d.cts +0 -39
- package/dist/sort.d.cts.map +0 -1
- package/dist/sort.d.ts +0 -39
- package/dist/sort.d.ts.map +0 -1
- package/dist/sorted-index-by.d.cts +0 -70
- package/dist/sorted-index-by.d.cts.map +0 -1
- package/dist/sorted-index-by.d.ts +0 -70
- package/dist/sorted-index-by.d.ts.map +0 -1
- package/dist/sorted-index-with.d.cts +0 -72
- package/dist/sorted-index-with.d.cts.map +0 -1
- package/dist/sorted-index-with.d.ts +0 -72
- package/dist/sorted-index-with.d.ts.map +0 -1
- package/dist/sorted-index.d.cts +0 -45
- package/dist/sorted-index.d.cts.map +0 -1
- package/dist/sorted-index.d.ts +0 -45
- package/dist/sorted-index.d.ts.map +0 -1
- package/dist/sorted-last-index-by.d.cts +0 -72
- package/dist/sorted-last-index-by.d.cts.map +0 -1
- package/dist/sorted-last-index-by.d.ts +0 -72
- package/dist/sorted-last-index-by.d.ts.map +0 -1
- package/dist/sorted-last-index.d.cts +0 -45
- package/dist/sorted-last-index.d.cts.map +0 -1
- package/dist/sorted-last-index.d.ts +0 -45
- package/dist/sorted-last-index.d.ts.map +0 -1
- package/dist/splice.d.cts +0 -35
- package/dist/splice.d.cts.map +0 -1
- package/dist/splice.d.ts +0 -35
- package/dist/splice.d.ts.map +0 -1
- package/dist/split-at.d.cts +0 -31
- package/dist/split-at.d.cts.map +0 -1
- package/dist/split-at.d.ts +0 -31
- package/dist/split-at.d.ts.map +0 -1
- package/dist/split-when.d.cts +0 -29
- package/dist/split-when.d.cts.map +0 -1
- package/dist/split-when.d.ts +0 -29
- package/dist/split-when.d.ts.map +0 -1
- package/dist/split.d.cts +0 -62
- package/dist/split.d.cts.map +0 -1
- package/dist/split.d.ts +0 -62
- package/dist/split.d.ts.map +0 -1
- package/dist/strict-function-BBgKFNUw.d.ts +0 -26
- package/dist/strict-function-BBgKFNUw.d.ts.map +0 -1
- package/dist/strict-function-CPTwDgnZ.d.cts +0 -26
- package/dist/strict-function-CPTwDgnZ.d.cts.map +0 -1
- package/dist/string-to-path.d.cts +0 -39
- package/dist/string-to-path.d.cts.map +0 -1
- package/dist/string-to-path.d.ts +0 -39
- package/dist/string-to-path.d.ts.map +0 -1
- package/dist/subtract.d.cts +0 -35
- package/dist/subtract.d.cts.map +0 -1
- package/dist/subtract.d.ts +0 -35
- package/dist/subtract.d.ts.map +0 -1
- package/dist/sum-by.d.cts +0 -57
- package/dist/sum-by.d.cts.map +0 -1
- package/dist/sum-by.d.ts +0 -57
- package/dist/sum-by.d.ts.map +0 -1
- package/dist/sum.d.cts +0 -50
- package/dist/sum.d.cts.map +0 -1
- package/dist/sum.d.ts +0 -50
- package/dist/sum.d.ts.map +0 -1
- package/dist/swap-in-place-BHkB_mvV.cjs +0 -1
- package/dist/swap-in-place-C_jXKHuD.js +0 -2
- package/dist/swap-in-place-C_jXKHuD.js.map +0 -1
- package/dist/swap-indices.d.cts +0 -61
- package/dist/swap-indices.d.cts.map +0 -1
- package/dist/swap-indices.d.ts +0 -61
- package/dist/swap-indices.d.ts.map +0 -1
- package/dist/swap-props.d.cts +0 -34
- package/dist/swap-props.d.cts.map +0 -1
- package/dist/swap-props.d.ts +0 -34
- package/dist/swap-props.d.ts.map +0 -1
- package/dist/take-first-by.d.cts +0 -41
- package/dist/take-first-by.d.cts.map +0 -1
- package/dist/take-first-by.d.ts +0 -41
- package/dist/take-first-by.d.ts.map +0 -1
- package/dist/take-last-while.d.cts +0 -36
- package/dist/take-last-while.d.cts.map +0 -1
- package/dist/take-last-while.d.ts +0 -36
- package/dist/take-last-while.d.ts.map +0 -1
- package/dist/take-last.d.cts +0 -32
- package/dist/take-last.d.cts.map +0 -1
- package/dist/take-last.d.ts +0 -32
- package/dist/take-last.d.ts.map +0 -1
- package/dist/take-while.d.cts +0 -34
- package/dist/take-while.d.cts.map +0 -1
- package/dist/take-while.d.ts +0 -34
- package/dist/take-while.d.ts.map +0 -1
- package/dist/take.d.cts +0 -34
- package/dist/take.d.cts.map +0 -1
- package/dist/take.d.ts +0 -34
- package/dist/take.d.ts.map +0 -1
- package/dist/tap.d.cts +0 -42
- package/dist/tap.d.cts.map +0 -1
- package/dist/tap.d.ts +0 -42
- package/dist/tap.d.ts.map +0 -1
- package/dist/times.d.cts +0 -48
- package/dist/times.d.cts.map +0 -1
- package/dist/times.d.ts +0 -48
- package/dist/times.d.ts.map +0 -1
- package/dist/to-camel-case.d.cts +0 -84
- package/dist/to-camel-case.d.cts.map +0 -1
- package/dist/to-camel-case.d.ts +0 -84
- package/dist/to-camel-case.d.ts.map +0 -1
- package/dist/to-kebab-case.d.cts +0 -60
- package/dist/to-kebab-case.d.cts.map +0 -1
- package/dist/to-kebab-case.d.ts +0 -60
- package/dist/to-kebab-case.d.ts.map +0 -1
- package/dist/to-lower-case.d.cts +0 -51
- package/dist/to-lower-case.d.cts.map +0 -1
- package/dist/to-lower-case.d.ts +0 -51
- package/dist/to-lower-case.d.ts.map +0 -1
- package/dist/to-single-BKYbBic-.js +0 -2
- package/dist/to-single-BKYbBic-.js.map +0 -1
- package/dist/to-single-Chq_hKEk.cjs +0 -1
- package/dist/to-snake-case.d.cts +0 -60
- package/dist/to-snake-case.d.cts.map +0 -1
- package/dist/to-snake-case.d.ts +0 -60
- package/dist/to-snake-case.d.ts.map +0 -1
- package/dist/to-string-DkC3zRUJ.d.cts +0 -13
- package/dist/to-string-DkC3zRUJ.d.cts.map +0 -1
- package/dist/to-string-YIFx2KS6.d.ts +0 -13
- package/dist/to-string-YIFx2KS6.d.ts.map +0 -1
- package/dist/to-title-case.d.cts +0 -86
- package/dist/to-title-case.d.cts.map +0 -1
- package/dist/to-title-case.d.ts +0 -86
- package/dist/to-title-case.d.ts.map +0 -1
- package/dist/to-upper-case.d.cts +0 -51
- package/dist/to-upper-case.d.cts.map +0 -1
- package/dist/to-upper-case.d.ts +0 -51
- package/dist/to-upper-case.d.ts.map +0 -1
- package/dist/tuple-parts-BYI4o8Vk.d.ts +0 -89
- package/dist/tuple-parts-BYI4o8Vk.d.ts.map +0 -1
- package/dist/tuple-parts-CzQQupgi.d.cts +0 -89
- package/dist/tuple-parts-CzQQupgi.d.cts.map +0 -1
- package/dist/type.helpers.d.cts +0 -5
- package/dist/type.helpers.d.cts.map +0 -1
- package/dist/type.helpers.d.ts +0 -5
- package/dist/type.helpers.d.ts.map +0 -1
- package/dist/uncapitalize.d.cts +0 -51
- package/dist/uncapitalize.d.cts.map +0 -1
- package/dist/uncapitalize.d.ts +0 -51
- package/dist/uncapitalize.d.ts.map +0 -1
- package/dist/unique-by.d.cts +0 -44
- package/dist/unique-by.d.cts.map +0 -1
- package/dist/unique-by.d.ts +0 -44
- package/dist/unique-by.d.ts.map +0 -1
- package/dist/unique-with.d.cts +0 -46
- package/dist/unique-with.d.cts.map +0 -1
- package/dist/unique-with.d.ts +0 -46
- package/dist/unique-with.d.ts.map +0 -1
- package/dist/unique.d.cts +0 -39
- package/dist/unique.d.cts.map +0 -1
- package/dist/unique.d.ts +0 -39
- package/dist/unique.d.ts.map +0 -1
- package/dist/upsert-prop-0hwik6JJ.d.cts +0 -8
- package/dist/upsert-prop-0hwik6JJ.d.cts.map +0 -1
- package/dist/upsert-prop-_NpaZwm4.d.ts +0 -8
- package/dist/upsert-prop-_NpaZwm4.d.ts.map +0 -1
- package/dist/utility-evaluators-Boc-TMbq.js +0 -2
- package/dist/utility-evaluators-Boc-TMbq.js.map +0 -1
- package/dist/utility-evaluators-CAbODbuk.cjs +0 -1
- package/dist/values.d.cts +0 -38
- package/dist/values.d.cts.map +0 -1
- package/dist/values.d.ts +0 -38
- package/dist/values.d.ts.map +0 -1
- package/dist/with-precision-CQ90Walk.js +0 -2
- package/dist/with-precision-CQ90Walk.js.map +0 -1
- package/dist/with-precision-dQAYLrgr.cjs +0 -1
- package/dist/words-DQCM5umD.js +0 -3
- package/dist/words-DQCM5umD.js.map +0 -1
- package/dist/words-DRQKxzLU.cjs +0 -2
- package/dist/zip-with.d.cts +0 -50
- package/dist/zip-with.d.cts.map +0 -1
- package/dist/zip-with.d.ts +0 -50
- package/dist/zip-with.d.ts.map +0 -1
- package/dist/zip.d.cts +0 -38
- package/dist/zip.d.cts.map +0 -1
- package/dist/zip.d.ts +0 -38
- package/dist/zip.d.ts.map +0 -1
package/dist/sample.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sample.js","names":[],"sources":["../src/sample.ts"],"sourcesContent":["import type {\n FixedLengthArray,\n IsEqual,\n IsNever,\n NonNegativeInteger,\n Or,\n Writable,\n} from 'type-fest';\nimport type { CoercedArray } from './internal/types/coerced-array';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NTuple } from './internal/types/n-tuple';\nimport type { PartialArray } from './internal/types/partial-array';\nimport type { TupleParts } from './internal/types/tuple-parts';\nimport { curry } from './curry';\n\ntype Sampled<T extends IterableContainer, N extends number>\n = Or<IsEqual<N, 0>, IsEqual<T['length'], 0>> extends true\n // Short-circuit on trivial inputs.\n
|
|
1
|
+
{"version":3,"file":"sample.js","names":[],"sources":["../src/sample.ts"],"sourcesContent":["import type {\n FixedLengthArray,\n IsEqual,\n IsNever,\n NonNegativeInteger,\n Or,\n Writable,\n} from 'type-fest';\nimport type { CoercedArray } from './internal/types/coerced-array';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NTuple } from './internal/types/n-tuple';\nimport type { PartialArray } from './internal/types/partial-array';\nimport type { TupleParts } from './internal/types/tuple-parts';\nimport { curry } from './curry';\n\ntype Sampled<T extends IterableContainer, N extends number>\n = Or<IsEqual<N, 0>, IsEqual<T['length'], 0>> extends true\n ? // Short-circuit on trivial inputs.\n []\n : IsNever<NonNegativeInteger<N>> extends true\n ? SampledPrimitive<T>\n : IsLongerThan<T, N> extends true\n ? SampledLiteral<T, N>\n : // If our tuple can never fulfil the sample size the only valid sample\n // is the whole input tuple. Because it's a shallow clone we also\n // strip any readonly-ness.\n Writable<T>;\n\n/**\n * When N is not a non-negative integer **literal** we can't use it in our\n * reconstructing logic so we fallback to a simpler definition of the output of\n * sample, which is any sub-tuple shape of T, of **any length**.\n */\ntype SampledPrimitive<T extends IterableContainer> = [\n ...FixedSubTuples<TupleParts<T>['required']>,\n // TODO: This might be accurate, but We currently have no tests that check optional elements!\n ...PartialArray<FixedSubTuples<TupleParts<T>['optional']>>,\n ...CoercedArray<TupleParts<T>['item']>,\n ...FixedSubTuples<TupleParts<T>['suffix']>,\n];\n\n/**\n * Knowing N is a non-negative literal integer we can construct all sub-tuples\n * of T that are exactly N elements long.\n */\ntype SampledLiteral<T extends IterableContainer, N extends number>\n = | Extract<\n FixedSubTuples<\n [\n ...TupleParts<T>['required'],\n // TODO: This deliberately ignores optional elements which we don't have tests for either. In order to handle optional elements we can treat the \"optional\" tuple-part as more required elements.\n // We add N elements of the `item` type to the tuple so that we\n // consider any combination possible of elements of the prefix items,\n // any amount of rest items, and suffix items.\n ...(IsNever<TupleParts<T>['item']> extends true\n ? []\n : NTuple<TupleParts<T>['item'], N>),\n ...TupleParts<T>['suffix'],\n ]\n >,\n // This is just [unknown, unknown, ..., unknown] with N elements.\n FixedLengthArray<unknown, N>\n >\n // In addition to all sub-tuples of length N, we also need to consider all\n // tuples where the input is shorter than N. This will contribute exactly\n // one sub-tuple at each length from the minimum length of T and up to N-1.\n | SubSampled<\n TupleParts<T>['required'],\n // TODO: This deliberately ignores optional elements which we don't have tests for either. In order to handle optional elements we can treat the \"optional\" tuple-part as more required elements.\n TupleParts<T>['item'],\n TupleParts<T>['suffix'],\n N\n >;\n\n// We want to create a union of all sub-tuples where we incrementally add an\n// additional element of the type of the rest element in the middle between the\n// prefix and suffix until we \"fill\" the tuple to size N.\ntype SubSampled<\n Prefix extends ReadonlyArray<unknown>,\n Item,\n Suffix extends ReadonlyArray<unknown>,\n N extends number,\n>\n = IsLongerThan<[...Prefix, ...Suffix], N> extends true\n ? // We need to prevent overflows in case Prefix and Suffix are already long\n // enough\n never\n : [...Prefix, ...Suffix]['length'] extends N\n ? never\n : [...Prefix, ...Suffix] | SubSampled<[...Prefix, Item], Item, Suffix, N>;\n\ntype IsLongerThan<T extends ReadonlyArray<unknown>, N extends number>\n // Checking for `undefined` is a neat trick to avoid needing to compare\n // integer literals because if N overflows the tuple then the type for that\n // element will be `undefined`. This only works for fixed tuples!\n = IsEqual<T[N], undefined> extends true ? false : true;\n\n// Assuming T is a fixed tuple we build all it's possible sub-tuples.\ntype FixedSubTuples<T> = T extends readonly [infer Head, ...infer Rest]\n ? // For each element we either take it or skip it, and recurse over the rest.\n FixedSubTuples<Rest> | [Head, ...FixedSubTuples<Rest>]\n : [];\n\n/**\n * Returns a random subset of size `sampleSize` from `array`.\n *\n * Maintains and infers most of the typing information that could be passed\n * along to the output. This means that when using tuples, the output will be\n * a tuple too, and when using literals, those literals would be preserved.\n *\n * The items in the result are kept in the same order as they are in the input.\n * If you need to get a shuffled response you can pipe the shuffle function\n * after this one.\n *\n * @param data - The array.\n * @param sampleSize - The number of elements to take.\n * @signature\n * sample(array, sampleSize)\n * @example\n * sample([\"hello\", \"world\"], 1); // => [\"hello\"] // typed string[]\n * sample([\"hello\", \"world\"] as const, 1); // => [\"world\"] // typed [\"hello\" | \"world\"]\n * @dataFirst\n * @category Array\n */\nexport function sample<const T extends IterableContainer, N extends number>(\n data: T,\n sampleSize: N,\n): Sampled<T, N>;\n\n/**\n * Returns a random subset of size `sampleSize` from `array`.\n *\n * Maintains and infers most of the typing information that could be passed\n * along to the output. This means that when using tuples, the output will be\n * a tuple too, and when using literals, those literals would be preserved.\n *\n * The items in the result are kept in the same order as they are in the input.\n * If you need to get a shuffled response you can pipe the shuffle function\n * after this one.\n *\n * @param sampleSize - The number of elements to take.\n * @signature\n * sample(sampleSize)(array)\n * @example\n * sample(1)([\"hello\", \"world\"]); // => [\"hello\"] // typed string[]\n * sample(1)([\"hello\", \"world\"] as const); // => [\"world\"] // typed [\"hello\" | \"world\"]\n * @dataLast\n * @category Array\n */\nexport function sample<const T extends IterableContainer, N extends number>(\n sampleSize: N,\n): (data: T) => Sampled<T, N>;\n\nexport function sample(...args: ReadonlyArray<unknown>): unknown {\n return curry(sampleImplementation, args);\n}\n\nfunction sampleImplementation<T>(data: ReadonlyArray<T>, sampleSize: number): Array<T> {\n if (sampleSize <= 0) {\n // Trivial\n return [];\n }\n\n if (sampleSize >= data.length) {\n // Trivial\n return [...data];\n }\n\n // We have 2 modes of sampling, depending on the size of the sample requested.\n // 1. If sampleSize is _small_, we generate indices that we then use to\n // *EXTRACT* individual elements from the array.\n // 2. If sampleSize is _large_, we instead generate indices to *EXCLUDE* from\n // a full scan of the input array (via filtering).\n //\n // This allows us 2 optimizations that are the core of how this function\n // works:\n // 1. It is hard to generate a large number of unique indices, as the more\n // indices we generate the more likely we are to generate one that is already\n // in the set, which would require more iterations of the generation loop.\n // Capping our effective sampleSize at n/2 would put an upper limit to the\n // average number of iterations required (as a function of n).\n // 2. If sample size is small enough, we never need to actually iterate over\n // the full input array at all; instead we simply project the values we need\n // via random access into the array. This means that for sampleSize (K) less\n // than n/2, we run at O(klogk). For large sampleSize we need to iterate over\n // the full input array, but we don't need to sort the indices because we can\n // use the Set's 'has' method, so we effectively run at O(n).\n const actualSampleSize = Math.min(sampleSize, data.length - sampleSize);\n\n const sampleIndices = new Set<number>();\n while (sampleIndices.size < actualSampleSize) {\n const randomIndex = Math.floor(Math.random() * data.length);\n sampleIndices.add(randomIndex);\n }\n\n if (sampleSize === actualSampleSize) {\n return [...sampleIndices]\n .sort((a, b) => a - b)\n .map((index) => data[index]!);\n }\n\n return data.filter((_, index) => !sampleIndices.has(index));\n}\n"],"mappings":"mCAyJA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAO,EAAM,EAAsB,EAAK,CAG1C,SAAS,EAAwB,EAAwB,EAA8B,CACrF,GAAI,GAAc,EAEhB,MAAO,EAAE,CAGX,GAAI,GAAc,EAAK,OAErB,MAAO,CAAC,GAAG,EAAK,CAsBlB,IAAM,EAAmB,KAAK,IAAI,EAAY,EAAK,OAAS,EAAW,CAEjE,EAAgB,IAAI,IAC1B,KAAO,EAAc,KAAO,GAAkB,CAC5C,IAAM,EAAc,KAAK,MAAM,KAAK,QAAQ,CAAG,EAAK,OAAO,CAC3D,EAAc,IAAI,EAAY,CAShC,OANI,IAAe,EACV,CAAC,GAAG,EAAc,CACtB,MAAM,EAAG,IAAM,EAAI,EAAE,CACrB,IAAK,GAAU,EAAK,GAAQ,CAG1B,EAAK,QAAQ,EAAG,IAAU,CAAC,EAAc,IAAI,EAAM,CAAC"}
|
package/dist/set-path.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`);function t(...t){return e.curry(n,t)}function n(e,t,r){let[i,...a]=t;if(i===void 0)return r;if(Array.isArray(e)){let t=[...e];return t[i]=n(e[i],a,r),t}let{[i]:o,...s}=e;return{...s,[i]:n(o,a,r)}}exports.setPath=t;
|
|
2
|
+
//# sourceMappingURL=set-path.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-path.cjs","names":["curry"],"sources":["../src/set-path.ts"],"sourcesContent":["import type { ValueOf } from 'type-fest';\nimport type { PerkakasTypeError } from './internal/types/perkakas-type-error';\nimport { curry } from './curry';\n\ntype Paths<T, Prefix extends ReadonlyArray<unknown> = []>\n = | Prefix\n | (T extends object\n ? ValueOf<{\n [K in ProperKeyOf<T>]-?: Paths<T[K], [...Prefix, K]>;\n }>\n : PerkakasTypeError<\n 'setPath',\n 'Can only compute paths objects',\n { type: never; metadata: T }\n >) extends infer Path\n ? // The Paths type is used to define the path param in `setPath`. In order\n // for both mutable arrays and readonly arrays to be supported we need to\n // make all results `readonly` (because mutable arrays extend readonly\n // arrays, but not the other way around). Because the result of Paths is\n // a union of arrays we need to distribute Result so that the operator is\n // applied to each member separately.\n Readonly<Path>\n : never;\n\n/**\n * Array objects have all Array.prototype keys in their \"keyof\" type, which\n * is not what we'd expect from the operator. We only want the numeric keys\n * which represent proper elements of the array.\n */\ntype ProperKeyOf<T> = Extract<\n keyof T,\n T extends ReadonlyArray<unknown> ? number : keyof T\n>;\n\ntype ValueAtPath<T, Path> = Path extends readonly [\n infer Head extends keyof T,\n ...infer Rest,\n]\n ? ValueAtPath<T[Head], Rest>\n : T;\n\n/**\n * Sets the value at `path` of `object`.\n *\n * For simple cases where the path is only one level deep, prefer `set` instead.\n *\n * @param data - The target method.\n * @param path - The array of properties.\n * @param value - The value to set.\n * @signature\n * setPath(obj, path, value)\n * @example\n * setPath({ a: { b: 1 } }, ['a', 'b'], 2) // => { a: { b: 2 } }\n * @dataFirst\n * @category Object\n */\nexport function setPath<T, Path extends Paths<T>>(\n data: T,\n path: Path,\n value: ValueAtPath<T, Path>,\n): T;\n\n/**\n * Sets the value at `path` of `object`.\n *\n * @param path - The array of properties.\n * @param value - The value to set.\n * @signature\n * setPath(path, value)(obj)\n * @example\n * pipe({ a: { b: 1 } }, setPath(['a', 'b'], 2)) // { a: { b: 2 } }\n * @dataLast\n * @category Object\n */\nexport function setPath<\n T,\n Path extends Paths<T>,\n // TODO [>2] -- TODO: The following eslint is solvable by inlining Value and wrapping the T parameter with `NoInfer` (e.g. `ValueAtPath<NoInfer<T>, TPath>); to prevent typescript from inferring it as `unknown`. This is only available in TS 5.4, which is above what we currently support (5.1).\n Value extends ValueAtPath<T, Path>,\n>(path: Path, value: Value): (data: T) => T;\n\nexport function setPath(...args: ReadonlyArray<unknown>): unknown {\n return curry(setPathImplementation, args);\n}\n\nfunction setPathImplementation(\n data: unknown,\n path: ReadonlyArray<PropertyKey>,\n value: unknown,\n): unknown {\n const [pivot, ...rest] = path;\n if (pivot === undefined) {\n return value;\n }\n\n if (Array.isArray(data)) {\n const copy = [...data];\n copy[pivot as number] = setPathImplementation(\n data[pivot as number],\n rest,\n value,\n );\n return copy;\n }\n\n const { [pivot]: currentValue, ...remaining } = data as Record<\n PropertyKey,\n unknown\n >;\n\n return {\n ...remaining,\n [pivot]: setPathImplementation(currentValue, rest, value),\n };\n}\n"],"mappings":"kGAiFA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAOA,EAAAA,MAAM,EAAuB,EAAK,CAG3C,SAAS,EACP,EACA,EACA,EACS,CACT,GAAM,CAAC,EAAO,GAAG,GAAQ,EACzB,GAAI,IAAU,IAAA,GACZ,OAAO,EAGT,GAAI,MAAM,QAAQ,EAAK,CAAE,CACvB,IAAM,EAAO,CAAC,GAAG,EAAK,CAMtB,MALA,GAAK,GAAmB,EACtB,EAAK,GACL,EACA,EACD,CACM,EAGT,GAAM,EAAG,GAAQ,EAAc,GAAG,GAAc,EAKhD,MAAO,CACL,GAAG,GACF,GAAQ,EAAsB,EAAc,EAAM,EAAM,CAC1D"}
|
package/dist/set-path.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";function t(...t){return e(n,t)}function n(e,t,r){let[i,...a]=t;if(i===void 0)return r;if(Array.isArray(e)){let t=[...e];return t[i]=n(e[i],a,r),t}let{[i]:o,...s}=e;return{...s,[i]:n(o,a,r)}}export{t as setPath};
|
|
2
2
|
//# sourceMappingURL=set-path.js.map
|
package/dist/set-path.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-path.js","names":[],"sources":["../src/set-path.ts"],"sourcesContent":["import type { ValueOf } from 'type-fest';\nimport type { PerkakasTypeError } from './internal/types/perkakas-type-error';\nimport { curry } from './curry';\n\ntype Paths<T, Prefix extends ReadonlyArray<unknown> = []>\n = | Prefix\n | (T extends object\n ? ValueOf<{\n [K in ProperKeyOf<T>]-?: Paths<T[K], [...Prefix, K]>;\n }>\n : PerkakasTypeError<\n
|
|
1
|
+
{"version":3,"file":"set-path.js","names":[],"sources":["../src/set-path.ts"],"sourcesContent":["import type { ValueOf } from 'type-fest';\nimport type { PerkakasTypeError } from './internal/types/perkakas-type-error';\nimport { curry } from './curry';\n\ntype Paths<T, Prefix extends ReadonlyArray<unknown> = []>\n = | Prefix\n | (T extends object\n ? ValueOf<{\n [K in ProperKeyOf<T>]-?: Paths<T[K], [...Prefix, K]>;\n }>\n : PerkakasTypeError<\n 'setPath',\n 'Can only compute paths objects',\n { type: never; metadata: T }\n >) extends infer Path\n ? // The Paths type is used to define the path param in `setPath`. In order\n // for both mutable arrays and readonly arrays to be supported we need to\n // make all results `readonly` (because mutable arrays extend readonly\n // arrays, but not the other way around). Because the result of Paths is\n // a union of arrays we need to distribute Result so that the operator is\n // applied to each member separately.\n Readonly<Path>\n : never;\n\n/**\n * Array objects have all Array.prototype keys in their \"keyof\" type, which\n * is not what we'd expect from the operator. We only want the numeric keys\n * which represent proper elements of the array.\n */\ntype ProperKeyOf<T> = Extract<\n keyof T,\n T extends ReadonlyArray<unknown> ? number : keyof T\n>;\n\ntype ValueAtPath<T, Path> = Path extends readonly [\n infer Head extends keyof T,\n ...infer Rest,\n]\n ? ValueAtPath<T[Head], Rest>\n : T;\n\n/**\n * Sets the value at `path` of `object`.\n *\n * For simple cases where the path is only one level deep, prefer `set` instead.\n *\n * @param data - The target method.\n * @param path - The array of properties.\n * @param value - The value to set.\n * @signature\n * setPath(obj, path, value)\n * @example\n * setPath({ a: { b: 1 } }, ['a', 'b'], 2) // => { a: { b: 2 } }\n * @dataFirst\n * @category Object\n */\nexport function setPath<T, Path extends Paths<T>>(\n data: T,\n path: Path,\n value: ValueAtPath<T, Path>,\n): T;\n\n/**\n * Sets the value at `path` of `object`.\n *\n * @param path - The array of properties.\n * @param value - The value to set.\n * @signature\n * setPath(path, value)(obj)\n * @example\n * pipe({ a: { b: 1 } }, setPath(['a', 'b'], 2)) // { a: { b: 2 } }\n * @dataLast\n * @category Object\n */\nexport function setPath<\n T,\n Path extends Paths<T>,\n // TODO [>2] -- TODO: The following eslint is solvable by inlining Value and wrapping the T parameter with `NoInfer` (e.g. `ValueAtPath<NoInfer<T>, TPath>); to prevent typescript from inferring it as `unknown`. This is only available in TS 5.4, which is above what we currently support (5.1).\n Value extends ValueAtPath<T, Path>,\n>(path: Path, value: Value): (data: T) => T;\n\nexport function setPath(...args: ReadonlyArray<unknown>): unknown {\n return curry(setPathImplementation, args);\n}\n\nfunction setPathImplementation(\n data: unknown,\n path: ReadonlyArray<PropertyKey>,\n value: unknown,\n): unknown {\n const [pivot, ...rest] = path;\n if (pivot === undefined) {\n return value;\n }\n\n if (Array.isArray(data)) {\n const copy = [...data];\n copy[pivot as number] = setPathImplementation(\n data[pivot as number],\n rest,\n value,\n );\n return copy;\n }\n\n const { [pivot]: currentValue, ...remaining } = data as Record<\n PropertyKey,\n unknown\n >;\n\n return {\n ...remaining,\n [pivot]: setPathImplementation(currentValue, rest, value),\n };\n}\n"],"mappings":"mCAiFA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAO,EAAM,EAAuB,EAAK,CAG3C,SAAS,EACP,EACA,EACA,EACS,CACT,GAAM,CAAC,EAAO,GAAG,GAAQ,EACzB,GAAI,IAAU,IAAA,GACZ,OAAO,EAGT,GAAI,MAAM,QAAQ,EAAK,CAAE,CACvB,IAAM,EAAO,CAAC,GAAG,EAAK,CAMtB,MALA,GAAK,GAAmB,EACtB,EAAK,GACL,EACA,EACD,CACM,EAGT,GAAM,EAAG,GAAQ,EAAc,GAAG,GAAc,EAKhD,MAAO,CACL,GAAG,GACF,GAAQ,EAAsB,EAAc,EAAM,EAAM,CAC1D"}
|
package/dist/set.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`);function t(...t){return e.curry(n,t)}function n(e,t,n){return{...e,[t]:n}}exports.set=t;
|
|
2
|
+
//# sourceMappingURL=set.cjs.map
|
package/dist/set.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.cjs","names":["curry"],"sources":["../src/set.ts"],"sourcesContent":["import type { UpsertProp } from './internal/types/upsert-prop';\nimport { curry } from './curry';\n\n/**\n * Sets the `value` at `prop` of `object`.\n *\n * To add a new property to an object, or to override its type, use `addProp`\n * instead, and to set a property within a nested object use `setPath`.\n *\n * @param obj - The target method.\n * @param prop - The property name.\n * @param value - The value to set.\n * @signature\n * set(obj, prop, value)\n * @example\n * set({ a: 1 }, 'a', 2) // => { a: 2 }\n * @dataFirst\n * @category Object\n */\nexport function set<T, K extends keyof T, V extends Required<T>[K]>(\n obj: T,\n prop: K,\n value: V,\n): UpsertProp<T, K, V>;\n\n/**\n * Sets the `value` at `prop` of `object`.\n *\n * To add a new property to an object, or to override it's type use `addProp`\n * instead.\n *\n * @param prop - The property name.\n * @param value - The value to set.\n * @signature\n * set(prop, value)(obj)\n * @example\n * pipe({ a: 1 }, set('a', 2)) // => { a: 2 }\n * @dataLast\n * @category Object\n */\nexport function set<T, K extends keyof T, V extends Required<T>[K]>(\n prop: K,\n value: V,\n): (obj: T) => UpsertProp<T, K, V>;\n\nexport function set(...args: ReadonlyArray<unknown>): unknown {\n return curry(setImplementation, args);\n}\n\nfunction setImplementation<T, K extends keyof T, V extends Required<T>[K]>(obj: T, prop: K, value: V): UpsertProp<T, K, V> {\n return { ...obj, [prop]: value };\n}\n"],"mappings":"kGA6CA,SAAgB,EAAI,GAAG,EAAuC,CAC5D,OAAOA,EAAAA,MAAM,EAAmB,EAAK,CAGvC,SAAS,EAAkE,EAAQ,EAAS,EAA+B,CACzH,MAAO,CAAE,GAAG,GAAM,GAAO,EAAO"}
|
package/dist/set.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";function t(...t){return e(n,t)}function n(e,t,n){return{...e,[t]:n}}export{t as set};
|
|
2
2
|
//# sourceMappingURL=set.js.map
|
package/dist/set.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","names":[],"sources":["../src/set.ts"],"sourcesContent":["import type { UpsertProp } from './internal/types/upsert-prop';\
|
|
1
|
+
{"version":3,"file":"set.js","names":[],"sources":["../src/set.ts"],"sourcesContent":["import type { UpsertProp } from './internal/types/upsert-prop';\nimport { curry } from './curry';\n\n/**\n * Sets the `value` at `prop` of `object`.\n *\n * To add a new property to an object, or to override its type, use `addProp`\n * instead, and to set a property within a nested object use `setPath`.\n *\n * @param obj - The target method.\n * @param prop - The property name.\n * @param value - The value to set.\n * @signature\n * set(obj, prop, value)\n * @example\n * set({ a: 1 }, 'a', 2) // => { a: 2 }\n * @dataFirst\n * @category Object\n */\nexport function set<T, K extends keyof T, V extends Required<T>[K]>(\n obj: T,\n prop: K,\n value: V,\n): UpsertProp<T, K, V>;\n\n/**\n * Sets the `value` at `prop` of `object`.\n *\n * To add a new property to an object, or to override it's type use `addProp`\n * instead.\n *\n * @param prop - The property name.\n * @param value - The value to set.\n * @signature\n * set(prop, value)(obj)\n * @example\n * pipe({ a: 1 }, set('a', 2)) // => { a: 2 }\n * @dataLast\n * @category Object\n */\nexport function set<T, K extends keyof T, V extends Required<T>[K]>(\n prop: K,\n value: V,\n): (obj: T) => UpsertProp<T, K, V>;\n\nexport function set(...args: ReadonlyArray<unknown>): unknown {\n return curry(setImplementation, args);\n}\n\nfunction setImplementation<T, K extends keyof T, V extends Required<T>[K]>(obj: T, prop: K, value: V): UpsertProp<T, K, V> {\n return { ...obj, [prop]: value };\n}\n"],"mappings":"mCA6CA,SAAgB,EAAI,GAAG,EAAuC,CAC5D,OAAO,EAAM,EAAmB,EAAK,CAGvC,SAAS,EAAkE,EAAQ,EAAS,EAA+B,CACzH,MAAO,CAAE,GAAG,GAAM,GAAO,EAAO"}
|
package/dist/shuffle.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`);function t(...t){return e.curry(n,t)}function n(e){let t=[...e];for(let n=0;n<e.length;n++){let r=n+Math.floor(Math.random()*(e.length-n)),i=t[r];t[r]=t[n],t[n]=i}return t}exports.shuffle=t;
|
|
2
|
+
//# sourceMappingURL=shuffle.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shuffle.cjs","names":["curry"],"sources":["../src/shuffle.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curry } from './curry';\n\n/**\n * Shuffles the input array, returning a new array with the same elements in a random order.\n *\n * @param items - The array to shuffle.\n * @signature\n * shuffle(array)\n * @example\n * shuffle([4, 2, 7, 5]) // => [7, 5, 4, 2]\n * @dataFirst\n * @category Array\n */\nexport function shuffle<T extends IterableContainer>(\n items: T,\n): ReorderedArray<T>;\n\n/**\n * Shuffles the input array, returning a new array with the same elements in a random order.\n *\n * @signature\n * shuffle()(array)\n * @example\n * pipe([4, 2, 7, 5], shuffle()) // => [7, 5, 4, 2]\n * @dataLast\n * @category Array\n */\nexport function shuffle(): <T extends IterableContainer>(\n items: T,\n) => ReorderedArray<T>;\n\nexport function shuffle(...args: ReadonlyArray<unknown>): unknown {\n return curry(shuffleImplementation, args);\n}\n\nfunction shuffleImplementation<T>(items: ReadonlyArray<T>): Array<T> {\n const result = [...items];\n for (let index = 0; index < items.length; index++) {\n const rand = index + Math.floor(Math.random() * (items.length - index));\n const value = result[rand]!;\n result[rand] = result[index]!;\n result[index] = value;\n }\n return result;\n}\n"],"mappings":"kGAiCA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAOA,EAAAA,MAAM,EAAuB,EAAK,CAG3C,SAAS,EAAyB,EAAmC,CACnE,IAAM,EAAS,CAAC,GAAG,EAAM,CACzB,IAAK,IAAI,EAAQ,EAAG,EAAQ,EAAM,OAAQ,IAAS,CACjD,IAAM,EAAO,EAAQ,KAAK,MAAM,KAAK,QAAQ,EAAI,EAAM,OAAS,GAAO,CACjE,EAAQ,EAAO,GACrB,EAAO,GAAQ,EAAO,GACtB,EAAO,GAAS,EAElB,OAAO"}
|
package/dist/shuffle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";function t(...t){return e(n,t)}function n(e){let t=[...e];for(let n=0;n<e.length;n++){let r=n+Math.floor(Math.random()*(e.length-n)),i=t[r];t[r]=t[n],t[n]=i}return t}export{t as shuffle};
|
|
2
2
|
//# sourceMappingURL=shuffle.js.map
|
package/dist/shuffle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shuffle.js","names":[],"sources":["../src/shuffle.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { ReorderedArray } from './internal/types/reordered-array';\
|
|
1
|
+
{"version":3,"file":"shuffle.js","names":[],"sources":["../src/shuffle.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curry } from './curry';\n\n/**\n * Shuffles the input array, returning a new array with the same elements in a random order.\n *\n * @param items - The array to shuffle.\n * @signature\n * shuffle(array)\n * @example\n * shuffle([4, 2, 7, 5]) // => [7, 5, 4, 2]\n * @dataFirst\n * @category Array\n */\nexport function shuffle<T extends IterableContainer>(\n items: T,\n): ReorderedArray<T>;\n\n/**\n * Shuffles the input array, returning a new array with the same elements in a random order.\n *\n * @signature\n * shuffle()(array)\n * @example\n * pipe([4, 2, 7, 5], shuffle()) // => [7, 5, 4, 2]\n * @dataLast\n * @category Array\n */\nexport function shuffle(): <T extends IterableContainer>(\n items: T,\n) => ReorderedArray<T>;\n\nexport function shuffle(...args: ReadonlyArray<unknown>): unknown {\n return curry(shuffleImplementation, args);\n}\n\nfunction shuffleImplementation<T>(items: ReadonlyArray<T>): Array<T> {\n const result = [...items];\n for (let index = 0; index < items.length; index++) {\n const rand = index + Math.floor(Math.random() * (items.length - index));\n const value = result[rand]!;\n result[rand] = result[index]!;\n result[index] = value;\n }\n return result;\n}\n"],"mappings":"mCAiCA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAO,EAAM,EAAuB,EAAK,CAG3C,SAAS,EAAyB,EAAmC,CACnE,IAAM,EAAS,CAAC,GAAG,EAAM,CACzB,IAAK,IAAI,EAAQ,EAAG,EAAQ,EAAM,OAAQ,IAAS,CACjD,IAAM,EAAO,EAAQ,KAAK,MAAM,KAAK,QAAQ,EAAI,EAAM,OAAS,GAAO,CACjE,EAAQ,EAAO,GACrB,EAAO,GAAQ,EAAO,GACtB,EAAO,GAAS,EAElB,OAAO"}
|
package/dist/sleep.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
function e(e){return new Promise(t=>{setTimeout(t,e)})}exports.sleep=e;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return new Promise(t=>{setTimeout(t,e)})}exports.sleep=e;
|
|
2
|
+
//# sourceMappingURL=sleep.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sleep.cjs","names":[],"sources":["../src/sleep.ts"],"sourcesContent":["/**\n * Delay execution for a given number of milliseconds.\n *\n * @param timeout the number of milliseconds to wait\n *\n * @signature\n * P.sleep(timeout)\n * @example\n * P.sleep(1000); // => Promise<void>\n * @category Function\n */\nexport function sleep(timeout: number): Promise<void> {\n return new Promise((resolve) => {\n setTimeout(resolve, timeout);\n });\n}\n"],"mappings":"mEAWA,SAAgB,EAAM,EAAgC,CACpD,OAAO,IAAI,QAAS,GAAY,CAC9B,WAAW,EAAS,EAAQ,EAC5B"}
|
package/dist/slice-string.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
function e(e,t,n){return typeof e==`string`?e.slice(t,n):n=>n.slice(e,t)}exports.sliceString=e;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e,t,n){return typeof e==`string`?e.slice(t,n):n=>n.slice(e,t)}exports.sliceString=e;
|
|
2
|
+
//# sourceMappingURL=slice-string.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slice-string.cjs","names":[],"sources":["../src/slice-string.ts"],"sourcesContent":["/* eslint-disable sonar/argument-type */\n/**\n * Extracts a section of a string between two indices.\n *\n * This function is a wrapper around the built-in [`String.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice)\n * method.\n *\n * @param data - The string to extract from.\n * @param indexStart - The index of the first character to include in the\n * returned substring.\n * @param indexEnd - The index of the first character to exclude from the\n * returned substring.\n * @returns A new string containing the extracted section of the string.\n * @signature\n * sliceString(data, indexStart, indexEnd)\n * @example\n * sliceString(\"abcdefghijkl\", 1) // => `bcdefghijkl`\n * sliceString(\"abcdefghijkl\", 4, 7) // => `efg`\n * @dataFirst\n * @category String\n */\nexport function sliceString(\n data: string,\n indexStart: number,\n indexEnd?: number,\n): string;\n\n/**\n * Extracts a section of a string between two indices.\n *\n * This function is a wrapper around the built-in [`String.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice)\n * method.\n *\n * @param indexStart - The index of the first character to include in the\n * returned substring.\n * @param indexEnd - The index of the first character to exclude from the\n * returned substring, or `undefined` for the rest of the string.\n * @returns A new string containing the extracted section of the string.\n * @signature\n * sliceString(indexStart, indexEnd)(string)\n * @example\n * sliceString(1)(\"abcdefghijkl\") // => `bcdefghijkl`\n * sliceString(4, 7)(\"abcdefghijkl\") // => `efg`\n * @dataLast\n * @category String\n */\nexport function sliceString(\n indexStart: number,\n indexEnd?: number,\n): (data: string) => string;\n\nexport function sliceString(\n dataOrIndexStart: number | string,\n indexStartOrIndexEnd?: number,\n indexEnd?: number,\n): unknown {\n return typeof dataOrIndexStart === 'string'\n ? dataOrIndexStart.slice(indexStartOrIndexEnd, indexEnd)\n : (data: string) => data.slice(dataOrIndexStart, indexStartOrIndexEnd);\n}\n"],"mappings":"mEAmDA,SAAgB,EACd,EACA,EACA,EACS,CACT,OAAO,OAAO,GAAqB,SAC/B,EAAiB,MAAM,EAAsB,EAAS,CACrD,GAAiB,EAAK,MAAM,EAAkB,EAAqB"}
|
package/dist/slice-string.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice-string.js","names":[],"sources":["../src/slice-string.ts"],"sourcesContent":["/**\n * Extracts a section of
|
|
1
|
+
{"version":3,"file":"slice-string.js","names":[],"sources":["../src/slice-string.ts"],"sourcesContent":["/* eslint-disable sonar/argument-type */\n/**\n * Extracts a section of a string between two indices.\n *\n * This function is a wrapper around the built-in [`String.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice)\n * method.\n *\n * @param data - The string to extract from.\n * @param indexStart - The index of the first character to include in the\n * returned substring.\n * @param indexEnd - The index of the first character to exclude from the\n * returned substring.\n * @returns A new string containing the extracted section of the string.\n * @signature\n * sliceString(data, indexStart, indexEnd)\n * @example\n * sliceString(\"abcdefghijkl\", 1) // => `bcdefghijkl`\n * sliceString(\"abcdefghijkl\", 4, 7) // => `efg`\n * @dataFirst\n * @category String\n */\nexport function sliceString(\n data: string,\n indexStart: number,\n indexEnd?: number,\n): string;\n\n/**\n * Extracts a section of a string between two indices.\n *\n * This function is a wrapper around the built-in [`String.prototype.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice)\n * method.\n *\n * @param indexStart - The index of the first character to include in the\n * returned substring.\n * @param indexEnd - The index of the first character to exclude from the\n * returned substring, or `undefined` for the rest of the string.\n * @returns A new string containing the extracted section of the string.\n * @signature\n * sliceString(indexStart, indexEnd)(string)\n * @example\n * sliceString(1)(\"abcdefghijkl\") // => `bcdefghijkl`\n * sliceString(4, 7)(\"abcdefghijkl\") // => `efg`\n * @dataLast\n * @category String\n */\nexport function sliceString(\n indexStart: number,\n indexEnd?: number,\n): (data: string) => string;\n\nexport function sliceString(\n dataOrIndexStart: number | string,\n indexStartOrIndexEnd?: number,\n indexEnd?: number,\n): unknown {\n return typeof dataOrIndexStart === 'string'\n ? dataOrIndexStart.slice(indexStartOrIndexEnd, indexEnd)\n : (data: string) => data.slice(dataOrIndexStart, indexStartOrIndexEnd);\n}\n"],"mappings":"AAmDA,SAAgB,EACd,EACA,EACA,EACS,CACT,OAAO,OAAO,GAAqB,SAC/B,EAAiB,MAAM,EAAsB,EAAS,CACrD,GAAiB,EAAK,MAAM,EAAkB,EAAqB"}
|
package/dist/slugify.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
function e(e){return e.normalize(`NFD`).replace(/[\u0300-\u036F]/g,``).toLowerCase().replace(/[^a-z0-9]/g,` `).trim().replace(/\s+/g,`-`)}exports.slugify=e;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return e.normalize(`NFD`).replace(/[\u0300-\u036F]/g,``).toLowerCase().replace(/[^a-z0-9]/g,` `).trim().replace(/\s+/g,`-`)}exports.slugify=e;
|
|
2
|
+
//# sourceMappingURL=slugify.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slugify.cjs","names":[],"sources":["../src/slugify.ts"],"sourcesContent":["/**\n * Turn any string into a URL/DOM safe string.\n * @param str the string to slugify\n * @signature\n * P.slugify(str)\n * @example\n * P.slugify('FooBar'); // => 'foobar'\n * P.slugify('This!-is*&%#@^up!'); // => 'this-is-up'\n * @category String\n */\nexport function slugify(str: string): string {\n return str\n .normalize('NFD')\n .replace(/[\\u0300-\\u036F]/g, '')\n .toLowerCase()\n .replace(/[^a-z0-9]/g, ' ')\n .trim()\n .replace(/\\s+/g, '-');\n}\n"],"mappings":"mEAUA,SAAgB,EAAQ,EAAqB,CAC3C,OAAO,EACJ,UAAU,MAAM,CAChB,QAAQ,mBAAoB,GAAG,CAC/B,aAAa,CACb,QAAQ,aAAc,IAAI,CAC1B,MAAM,CACN,QAAQ,OAAQ,IAAI"}
|
package/dist/sort-by.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry-order-rules-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry-order-rules-DsJSy3gX.cjs`);function t(...t){return e.t(n,t)}function n(e,t){return[...e].sort(t)}exports.sortBy=t;
|
|
2
|
+
//# sourceMappingURL=sort-by.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-by.cjs","names":["curryOrderRules"],"sources":["../src/sort-by.ts"],"sourcesContent":["import type { OrderRule } from './internal/curry-order-rules';\nimport type { CompareFunction } from './internal/types/compare-function';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NonEmptyArray } from './internal/types/non-empty-array';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curryOrderRules } from './internal/curry-order-rules';\n\n/**\n * Sorts `data` using the provided ordering rules. The `sort` is done via the\n * native `Array.prototype.sort` but is performed on a shallow copy of the array\n * to avoid mutating the original data.\n *\n * There are several other functions that take order rules and **bypass** the\n * need to sort the array first (in *O(nlogn)* time):\n * `firstBy` === `first(sortBy(data, ...rules))`, O(n).\n * `takeFirstBy` === `take(sortBy(data, ...rules), k)`, O(nlogk).\n * `dropFirstBy` === `drop(sortBy(data, ...rules), k)`, O(nlogk).\n * `nthBy` === `sortBy(data, ...rules).at(k)`, O(n).\n * `rankBy` === `sortedIndex(sortBy(data, ...rules), item)`, O(n).\n * Refer to the docs for more details.\n *\n * @param sortRules - A variadic array of order rules defining the sorting\n * criteria. Each order rule is a projection function that extracts a comparable\n * value from the data. Sorting is based on these extracted values using the\n * native `<` and `>` operators. Earlier rules take precedence over later ones.\n * Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns A shallow copy of the input array sorted by the provided rules.\n * @signature\n * sortBy(...rules)(data)\n * @example\n * pipe(\n * [{ a: 1 }, { a: 3 }, { a: 7 }, { a: 2 }],\n * sortBy(prop('a')),\n * ); // => [{ a: 1 }, { a: 2 }, { a: 3 }, { a: 7 }]\n * @dataLast\n * @category Array\n */\nexport function sortBy<T extends IterableContainer>(\n ...sortRules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): (array: T) => ReorderedArray<T>;\n\n/**\n * Sorts `data` using the provided ordering rules. The `sort` is done via the\n * native `Array.prototype.sort` but is performed on a shallow copy of the array\n * to avoid mutating the original data.\n *\n * There are several other functions that take order rules and **bypass** the\n * need to sort the array first (in *O(nlogn)* time):\n * `firstBy` === `first(sortBy(data, ...rules))`, O(n).\n * `takeFirstBy` === `take(sortBy(data, ...rules), k)`, O(nlogk).\n * `dropFirstBy` === `drop(sortBy(data, ...rules), k)`, O(nlogk).\n * `nthBy` === `sortBy(data, ...rules).at(k)`, O(n).\n * `rankBy` === `sortedIndex(sortBy(data, ...rules), item)`, O(n).\n * Refer to the docs for more details.\n *\n * @param array - The input array.\n * @param sortRules - A variadic array of order rules defining the sorting\n * criteria. Each order rule is a projection function that extracts a comparable\n * value from the data. Sorting is based on these extracted values using the\n * native `<` and `>` operators. Earlier rules take precedence over later ones.\n * Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns A shallow copy of the input array sorted by the provided rules.\n * @signature\n * sortBy(data, ...rules)\n * @example\n * sortBy(\n * [{ a: 1 }, { a: 3 }, { a: 7 }, { a: 2 }],\n * prop('a'),\n * ); // => [{ a: 1 }, { a: 2 }, { a: 3 }, { a: 7 }]\n * sortBy(\n * [\n * {color: 'red', weight: 2},\n * {color: 'blue', weight: 3},\n * {color: 'green', weight: 1},\n * {color: 'purple', weight: 1},\n * ],\n * [prop('weight'), 'asc'],\n * prop('color'),\n * ); // => [\n * // {color: 'green', weight: 1},\n * // {color: 'purple', weight: 1},\n * // {color: 'red', weight: 2},\n * // {color: 'blue', weight: 3},\n * // ]\n * @dataFirst\n * @category Array\n */\nexport function sortBy<T extends IterableContainer>(\n array: T,\n ...sortRules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): ReorderedArray<T>;\n\nexport function sortBy(...args: ReadonlyArray<unknown>): unknown {\n return curryOrderRules(sortByImplementation, args);\n}\n\nfunction sortByImplementation<T>(data: ReadonlyArray<T>, compareFn: CompareFunction<T>): Array<T> {\n return [...data].sort(compareFn);\n}\n"],"mappings":"uHA4FA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAOA,EAAAA,EAAgB,EAAsB,EAAK,CAGpD,SAAS,EAAwB,EAAwB,EAAyC,CAChG,MAAO,CAAC,GAAG,EAAK,CAAC,KAAK,EAAU"}
|
package/dist/sort-by.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-order-rules-
|
|
1
|
+
import{t as e}from"./curry-order-rules-BLyCSMdZ.js";function t(...t){return e(n,t)}function n(e,t){return[...e].sort(t)}export{t as sortBy};
|
|
2
2
|
//# sourceMappingURL=sort-by.js.map
|
package/dist/sort-by.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-by.js","names":[],"sources":["../src/sort-by.ts"],"sourcesContent":["import type { OrderRule } from './internal/curry-order-rules';\nimport type { CompareFunction } from './internal/types/compare-function';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NonEmptyArray } from './internal/types/non-empty-array';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curryOrderRules } from './internal/curry-order-rules';\n\n/**\n * Sorts `data` using the provided ordering rules. The `sort` is done via the\n * native `Array.prototype.sort` but is performed on a shallow copy of the array\n * to avoid mutating the original data.\n *\n * There are several other functions that take order rules and **bypass** the\n * need to sort the array first (in *O(nlogn)* time):\n * `firstBy` === `first(sortBy(data, ...rules))`, O(n).\n * `takeFirstBy` === `take(sortBy(data, ...rules), k)`, O(nlogk).\n * `dropFirstBy` === `drop(sortBy(data, ...rules), k)`, O(nlogk).\n * `nthBy` === `sortBy(data, ...rules).at(k)`, O(n).\n * `rankBy` === `sortedIndex(sortBy(data, ...rules), item)`, O(n).\n * Refer to the docs for more details.\n *\n * @param sortRules - A variadic array of order rules defining the sorting\n * criteria. Each order rule is a projection function that extracts a comparable\n * value from the data. Sorting is based on these extracted values using the\n * native `<` and `>` operators. Earlier rules take precedence over later ones.\n * Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns A shallow copy of the input array sorted by the provided rules.\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"sort-by.js","names":[],"sources":["../src/sort-by.ts"],"sourcesContent":["import type { OrderRule } from './internal/curry-order-rules';\nimport type { CompareFunction } from './internal/types/compare-function';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NonEmptyArray } from './internal/types/non-empty-array';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curryOrderRules } from './internal/curry-order-rules';\n\n/**\n * Sorts `data` using the provided ordering rules. The `sort` is done via the\n * native `Array.prototype.sort` but is performed on a shallow copy of the array\n * to avoid mutating the original data.\n *\n * There are several other functions that take order rules and **bypass** the\n * need to sort the array first (in *O(nlogn)* time):\n * `firstBy` === `first(sortBy(data, ...rules))`, O(n).\n * `takeFirstBy` === `take(sortBy(data, ...rules), k)`, O(nlogk).\n * `dropFirstBy` === `drop(sortBy(data, ...rules), k)`, O(nlogk).\n * `nthBy` === `sortBy(data, ...rules).at(k)`, O(n).\n * `rankBy` === `sortedIndex(sortBy(data, ...rules), item)`, O(n).\n * Refer to the docs for more details.\n *\n * @param sortRules - A variadic array of order rules defining the sorting\n * criteria. Each order rule is a projection function that extracts a comparable\n * value from the data. Sorting is based on these extracted values using the\n * native `<` and `>` operators. Earlier rules take precedence over later ones.\n * Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns A shallow copy of the input array sorted by the provided rules.\n * @signature\n * sortBy(...rules)(data)\n * @example\n * pipe(\n * [{ a: 1 }, { a: 3 }, { a: 7 }, { a: 2 }],\n * sortBy(prop('a')),\n * ); // => [{ a: 1 }, { a: 2 }, { a: 3 }, { a: 7 }]\n * @dataLast\n * @category Array\n */\nexport function sortBy<T extends IterableContainer>(\n ...sortRules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): (array: T) => ReorderedArray<T>;\n\n/**\n * Sorts `data` using the provided ordering rules. The `sort` is done via the\n * native `Array.prototype.sort` but is performed on a shallow copy of the array\n * to avoid mutating the original data.\n *\n * There are several other functions that take order rules and **bypass** the\n * need to sort the array first (in *O(nlogn)* time):\n * `firstBy` === `first(sortBy(data, ...rules))`, O(n).\n * `takeFirstBy` === `take(sortBy(data, ...rules), k)`, O(nlogk).\n * `dropFirstBy` === `drop(sortBy(data, ...rules), k)`, O(nlogk).\n * `nthBy` === `sortBy(data, ...rules).at(k)`, O(n).\n * `rankBy` === `sortedIndex(sortBy(data, ...rules), item)`, O(n).\n * Refer to the docs for more details.\n *\n * @param array - The input array.\n * @param sortRules - A variadic array of order rules defining the sorting\n * criteria. Each order rule is a projection function that extracts a comparable\n * value from the data. Sorting is based on these extracted values using the\n * native `<` and `>` operators. Earlier rules take precedence over later ones.\n * Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns A shallow copy of the input array sorted by the provided rules.\n * @signature\n * sortBy(data, ...rules)\n * @example\n * sortBy(\n * [{ a: 1 }, { a: 3 }, { a: 7 }, { a: 2 }],\n * prop('a'),\n * ); // => [{ a: 1 }, { a: 2 }, { a: 3 }, { a: 7 }]\n * sortBy(\n * [\n * {color: 'red', weight: 2},\n * {color: 'blue', weight: 3},\n * {color: 'green', weight: 1},\n * {color: 'purple', weight: 1},\n * ],\n * [prop('weight'), 'asc'],\n * prop('color'),\n * ); // => [\n * // {color: 'green', weight: 1},\n * // {color: 'purple', weight: 1},\n * // {color: 'red', weight: 2},\n * // {color: 'blue', weight: 3},\n * // ]\n * @dataFirst\n * @category Array\n */\nexport function sortBy<T extends IterableContainer>(\n array: T,\n ...sortRules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): ReorderedArray<T>;\n\nexport function sortBy(...args: ReadonlyArray<unknown>): unknown {\n return curryOrderRules(sortByImplementation, args);\n}\n\nfunction sortByImplementation<T>(data: ReadonlyArray<T>, compareFn: CompareFunction<T>): Array<T> {\n return [...data].sort(compareFn);\n}\n"],"mappings":"oDA4FA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAO,EAAgB,EAAsB,EAAK,CAGpD,SAAS,EAAwB,EAAwB,EAAyC,CAChG,MAAO,CAAC,GAAG,EAAK,CAAC,KAAK,EAAU"}
|
package/dist/sort.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`);function t(...t){return e.curry(n,t)}function n(e,t){let n=[...e];return n.sort(t),n}exports.sort=t;
|
|
2
|
+
//# sourceMappingURL=sort.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.cjs","names":["curry"],"sources":["../src/sort.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curry } from './curry';\n\n/**\n * Sorts an array. The comparator function should accept two values at a time\n * and return a negative number if the first value is smaller, a positive number\n * if it's larger, and zero if they are equal. Sorting is based on a native\n * `sort` function.\n *\n * @param items - The array to sort.\n * @param cmp - The comparator function.\n * @signature\n * sort(items, cmp)\n * @example\n * sort([4, 2, 7, 5], (a, b) => a - b); // => [2, 4, 5, 7]\n * @dataFirst\n * @category Array\n */\nexport function sort<T extends IterableContainer>(\n items: T,\n cmp: (a: T[number], b: T[number]) => number,\n): ReorderedArray<T>;\n\n/**\n * Sorts an array. The comparator function should accept two values at a time\n * and return a negative number if the first value is smaller, a positive number\n * if it's larger, and zero if they are equal. Sorting is based on a native\n * `sort` function.\n *\n * @param cmp - The comparator function.\n * @signature\n * sort(cmp)(items)\n * @example\n * pipe([4, 2, 7, 5], sort((a, b) => a - b)) // => [2, 4, 5, 7]\n * @dataLast\n * @category Array\n */\nexport function sort<T extends IterableContainer>(\n cmp: (a: T[number], b: T[number]) => number,\n): (items: T) => ReorderedArray<T>;\n\nexport function sort(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortImplementation, args);\n}\n\nfunction sortImplementation<T extends IterableContainer>(\n items: T,\n cmp: (a: T[number], b: T[number]) => number,\n): ReorderedArray<T> {\n const ret = [...items];\n ret.sort(cmp);\n return ret as ReorderedArray<T>;\n}\n"],"mappings":"kGA0CA,SAAgB,EAAK,GAAG,EAAuC,CAC7D,OAAOA,EAAAA,MAAM,EAAoB,EAAK,CAGxC,SAAS,EACP,EACA,EACmB,CACnB,IAAM,EAAM,CAAC,GAAG,EAAM,CAEtB,OADA,EAAI,KAAK,EAAI,CACN"}
|
package/dist/sort.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";function t(...t){return e(n,t)}function n(e,t){let n=[...e];return n.sort(t),n}export{t as sort};
|
|
2
2
|
//# sourceMappingURL=sort.js.map
|
package/dist/sort.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.js","names":[],"sources":["../src/sort.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curry } from './curry';\n\n/**\n * Sorts an array. The comparator function should accept two values at a time\n * and return a negative number if the first value is smaller, a positive number\n * if it's larger, and zero if they are equal. Sorting is based on a native\n * `sort` function.\n *\n * @param items - The array to sort.\n * @param cmp - The comparator function.\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"sort.js","names":[],"sources":["../src/sort.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { ReorderedArray } from './internal/types/reordered-array';\nimport { curry } from './curry';\n\n/**\n * Sorts an array. The comparator function should accept two values at a time\n * and return a negative number if the first value is smaller, a positive number\n * if it's larger, and zero if they are equal. Sorting is based on a native\n * `sort` function.\n *\n * @param items - The array to sort.\n * @param cmp - The comparator function.\n * @signature\n * sort(items, cmp)\n * @example\n * sort([4, 2, 7, 5], (a, b) => a - b); // => [2, 4, 5, 7]\n * @dataFirst\n * @category Array\n */\nexport function sort<T extends IterableContainer>(\n items: T,\n cmp: (a: T[number], b: T[number]) => number,\n): ReorderedArray<T>;\n\n/**\n * Sorts an array. The comparator function should accept two values at a time\n * and return a negative number if the first value is smaller, a positive number\n * if it's larger, and zero if they are equal. Sorting is based on a native\n * `sort` function.\n *\n * @param cmp - The comparator function.\n * @signature\n * sort(cmp)(items)\n * @example\n * pipe([4, 2, 7, 5], sort((a, b) => a - b)) // => [2, 4, 5, 7]\n * @dataLast\n * @category Array\n */\nexport function sort<T extends IterableContainer>(\n cmp: (a: T[number], b: T[number]) => number,\n): (items: T) => ReorderedArray<T>;\n\nexport function sort(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortImplementation, args);\n}\n\nfunction sortImplementation<T extends IterableContainer>(\n items: T,\n cmp: (a: T[number], b: T[number]) => number,\n): ReorderedArray<T> {\n const ret = [...items];\n ret.sort(cmp);\n return ret as ReorderedArray<T>;\n}\n"],"mappings":"mCA0CA,SAAgB,EAAK,GAAG,EAAuC,CAC7D,OAAO,EAAM,EAAoB,EAAK,CAGxC,SAAS,EACP,EACA,EACmB,CACnB,IAAM,EAAM,CAAC,GAAG,EAAM,CAEtB,OADA,EAAI,KAAK,EAAI,CACN"}
|
package/dist/sorted-index-by.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`),t=require(`./binary-search-cutoff-index-CLFtXYPc.cjs`);function n(...t){return e.curry(r,t)}function r(e,n,r){let i=r(n,void 0,e);return t.t(e,(t,n)=>r(t,n,e)<i)}exports.sortedIndexBy=n;
|
|
2
|
+
//# sourceMappingURL=sorted-index-by.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sorted-index-by.cjs","names":["curry","binarySearchCutoffIndex"],"sources":["../src/sorted-index-by.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedIndex` - like this function, but doesn't take a callbackfn.\n * `sortedLastIndexBy` - like this function, but finds the last suitable index.\n * `sortedLastIndex` - like `sortedIndex`, but finds the last suitable index.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedIndexBy(data, item, valueFunction)\n * @example\n * sortedIndexBy([{age:20},{age:22}],{age:21},prop('age')) // => 1\n * @dataFirst\n * @category Array\n */\nexport function sortedIndexBy<T>(\n data: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedIndex` - like this function, but doesn't take a callbackfn.\n * `sortedLastIndexBy` - like this function, but finds the last suitable index.\n * `sortedLastIndex` - like `sortedIndex`, but finds the last suitable index.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @signature\n * sortedIndexBy(data, item, valueFunction)\n * @example\n * sortedIndexBy([{age:20},{age:22}],{age:21},prop('age')) // => 1\n * @dataLast\n * @category Array\n */\nexport function sortedIndexBy<T>(\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): (data: ReadonlyArray<T>) => number;\n\nexport function sortedIndexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedIndexByImplementation, args);\n}\n\nfunction sortedIndexByImplementation<T>(\n data: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number {\n const value = valueFunction(item, undefined /* index */, data);\n return binarySearchCutoffIndex(\n data,\n (pivot, index) => valueFunction(pivot, index, data) < value,\n );\n}\n"],"mappings":"yJAsFA,SAAgB,EAAc,GAAG,EAAuC,CACtE,OAAOA,EAAAA,MAAM,EAA6B,EAAK,CAGjD,SAAS,EACP,EACA,EACA,EAKQ,CACR,IAAM,EAAQ,EAAc,EAAM,IAAA,GAAuB,EAAK,CAC9D,OAAOC,EAAAA,EACL,GACC,EAAO,IAAU,EAAc,EAAO,EAAO,EAAK,CAAG,EACvD"}
|
package/dist/sorted-index-by.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";import{t}from"./binary-search-cutoff-index-TJlnoie4.js";function n(...t){return e(r,t)}function r(e,n,r){let i=r(n,void 0,e);return t(e,(t,n)=>r(t,n,e)<i)}export{n as sortedIndexBy};
|
|
2
2
|
//# sourceMappingURL=sorted-index-by.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sorted-index-by.js","names":[],"sources":["../src/sorted-index-by.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedIndex` - like this function, but doesn't take a callbackfn.\n * `sortedLastIndexBy` - like this function, but finds the last suitable index.\n * `sortedLastIndex` - like `sortedIndex`, but finds the last suitable index.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"sorted-index-by.js","names":[],"sources":["../src/sorted-index-by.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedIndex` - like this function, but doesn't take a callbackfn.\n * `sortedLastIndexBy` - like this function, but finds the last suitable index.\n * `sortedLastIndex` - like `sortedIndex`, but finds the last suitable index.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedIndexBy(data, item, valueFunction)\n * @example\n * sortedIndexBy([{age:20},{age:22}],{age:21},prop('age')) // => 1\n * @dataFirst\n * @category Array\n */\nexport function sortedIndexBy<T>(\n data: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedIndex` - like this function, but doesn't take a callbackfn.\n * `sortedLastIndexBy` - like this function, but finds the last suitable index.\n * `sortedLastIndex` - like `sortedIndex`, but finds the last suitable index.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @signature\n * sortedIndexBy(data, item, valueFunction)\n * @example\n * sortedIndexBy([{age:20},{age:22}],{age:21},prop('age')) // => 1\n * @dataLast\n * @category Array\n */\nexport function sortedIndexBy<T>(\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): (data: ReadonlyArray<T>) => number;\n\nexport function sortedIndexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedIndexByImplementation, args);\n}\n\nfunction sortedIndexByImplementation<T>(\n data: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number {\n const value = valueFunction(item, undefined /* index */, data);\n return binarySearchCutoffIndex(\n data,\n (pivot, index) => valueFunction(pivot, index, data) < value,\n );\n}\n"],"mappings":"2FAsFA,SAAgB,EAAc,GAAG,EAAuC,CACtE,OAAO,EAAM,EAA6B,EAAK,CAGjD,SAAS,EACP,EACA,EACA,EAKQ,CACR,IAAM,EAAQ,EAAc,EAAM,IAAA,GAAuB,EAAK,CAC9D,OAAO,EACL,GACC,EAAO,IAAU,EAAc,EAAO,EAAO,EAAK,CAAG,EACvD"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`),t=require(`./binary-search-cutoff-index-CLFtXYPc.cjs`);function n(...n){return e.curry(t.t,n)}exports.sortedIndexWith=n;
|
|
2
|
+
//# sourceMappingURL=sorted-index-with.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sorted-index-with.cjs","names":["curry","binarySearchCutoffIndex"],"sources":["../src/sorted-index-with.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Performs a **binary search** for the index of the item at which the predicate\n * stops returning `true`. This function assumes that the array is \"sorted\" in\n * regards to the predicate, meaning that running the predicate as a mapper on\n * it would result in an array `[...true[], ...false[]]`.\n * This stricter requirement from the predicate provides us 2 benefits over\n * `findIndex` which does a similar thing:\n * 1. It would run at O(logN) time instead of O(N) time.\n * 2. It always returns a value (it would return `data.length` if the\n * predicate returns `true` for all items).\n *\n * This function is the basis for all other sortedIndex functions which search\n * for a specific item in a sorted array, and it could be used to perform\n * similar efficient searches.\n * `sortedIndex` - scans a sorted array with a binary search, find the first suitable index.\n * `sortedIndexBy` - like `sortedIndex`, but assumes sorting is based on a callbackfn.\n * `sortedLastIndex` - scans a sorted array with a binary search, finding the last suitable index.\n * `sortedLastIndexBy` - like `sortedLastIndex`, but assumes sorting is based on a callbackfn.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - Array, \"sorted\" by `predicate`.\n * @param predicate - A predicate which also defines the array's order.\n * @returns Index (In the range 0..data.length).\n * @signature\n * sortedIndexWith(data, predicate)\n * @example\n * sortedIndexWith(['a','ab','abc'], (item) => item.length < 2) // => 1\n * @dataFirst\n * @category Array\n * @see findIndex, sortedIndex, sortedIndexBy, sortedLastIndex, sortedLastIndexBy\n */\nexport function sortedIndexWith<T>(\n data: ReadonlyArray<T>,\n predicate: (value: T, index: number, data: ReadonlyArray<T>) => boolean,\n): number;\n\n/**\n * Performs a **binary search** for the index of the item at which the predicate\n * stops returning `true`. This function assumes that the array is \"sorted\" in\n * regards to the predicate, meaning that running the predicate as a mapper on\n * it would result in an array `[...true[], ...false[]]`.\n * This stricter requirement from the predicate provides us 2 benefits over\n * `findIndex` which does a similar thing:\n * 1. It would run at O(logN) time instead of O(N) time.\n * 2. It always returns a value (it would return `data.length` if the\n * predicate returns `true` for all items).\n *\n * This function is the basis for all other sortedIndex functions which search\n * for a specific item in a sorted array, and it could be used to perform\n * similar efficient searches.\n * `sortedIndex` - scans a sorted array with a binary search, find the first suitable index.\n * `sortedIndexBy` - like `sortedIndex`, but assumes sorting is based on a callbackfn.\n * `sortedLastIndex` - scans a sorted array with a binary search, finding the last suitable index.\n * `sortedLastIndexBy` - like `sortedLastIndex`, but assumes sorting is based on a callbackfn.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param predicate - A predicate which also defines the array's order.\n * @returns Index (In the range 0..data.length).\n * @signature\n * sortedIndexWith(predicate)(data)\n * @example\n * pipe(['a','ab','abc'], sortedIndexWith((item) => item.length < 2)) // => 1\n * @dataLast\n * @category Array\n */\nexport function sortedIndexWith<T>(\n predicate: (value: T, index: number, data: ReadonlyArray<T>) => boolean,\n): (data: ReadonlyArray<T>) => number;\n\nexport function sortedIndexWith(...args: ReadonlyArray<unknown>): unknown {\n return curry(binarySearchCutoffIndex, args);\n}\n"],"mappings":"yJA8EA,SAAgB,EAAgB,GAAG,EAAuC,CACxE,OAAOA,EAAAA,MAAMC,EAAAA,EAAyB,EAAK"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";import{t}from"./binary-search-cutoff-index-TJlnoie4.js";function n(...n){return e(t,n)}export{n as sortedIndexWith};
|
|
2
2
|
//# sourceMappingURL=sorted-index-with.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sorted-index-with.js","names":[],"sources":["../src/sorted-index-with.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Performs a **binary search** for the index of the item at which the predicate\n * stops returning `true`. This function assumes that the array is \"sorted\" in\n * regards to the predicate, meaning that running the predicate as a mapper on\n * it would result in an array `[...true[], ...false[]]`.\n * This stricter requirement from the predicate provides us 2 benefits over\n * `findIndex` which does a similar thing:\n * 1. It would run at O(logN) time instead of O(N) time.\n * 2. It always returns a value (it would return `data.length` if the\n * predicate returns `true` for all items).\n *\n * This function is the basis for all other sortedIndex functions which search\n * for a specific item in a sorted array, and it could be used to perform\n * similar efficient searches.\n * `sortedIndex` - scans a sorted array with a binary search, find the first suitable index.\n * `sortedIndexBy` - like `sortedIndex`, but assumes sorting is based on a callbackfn.\n * `sortedLastIndex` - scans a sorted array with a binary search, finding the last suitable index.\n * `sortedLastIndexBy` - like `sortedLastIndex`, but assumes sorting is based on a callbackfn.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - Array, \"sorted\" by `predicate`.\n * @param predicate - A predicate which also defines the array's order.\n * @returns Index (In the range 0..data.length).\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"sorted-index-with.js","names":[],"sources":["../src/sorted-index-with.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Performs a **binary search** for the index of the item at which the predicate\n * stops returning `true`. This function assumes that the array is \"sorted\" in\n * regards to the predicate, meaning that running the predicate as a mapper on\n * it would result in an array `[...true[], ...false[]]`.\n * This stricter requirement from the predicate provides us 2 benefits over\n * `findIndex` which does a similar thing:\n * 1. It would run at O(logN) time instead of O(N) time.\n * 2. It always returns a value (it would return `data.length` if the\n * predicate returns `true` for all items).\n *\n * This function is the basis for all other sortedIndex functions which search\n * for a specific item in a sorted array, and it could be used to perform\n * similar efficient searches.\n * `sortedIndex` - scans a sorted array with a binary search, find the first suitable index.\n * `sortedIndexBy` - like `sortedIndex`, but assumes sorting is based on a callbackfn.\n * `sortedLastIndex` - scans a sorted array with a binary search, finding the last suitable index.\n * `sortedLastIndexBy` - like `sortedLastIndex`, but assumes sorting is based on a callbackfn.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - Array, \"sorted\" by `predicate`.\n * @param predicate - A predicate which also defines the array's order.\n * @returns Index (In the range 0..data.length).\n * @signature\n * sortedIndexWith(data, predicate)\n * @example\n * sortedIndexWith(['a','ab','abc'], (item) => item.length < 2) // => 1\n * @dataFirst\n * @category Array\n * @see findIndex, sortedIndex, sortedIndexBy, sortedLastIndex, sortedLastIndexBy\n */\nexport function sortedIndexWith<T>(\n data: ReadonlyArray<T>,\n predicate: (value: T, index: number, data: ReadonlyArray<T>) => boolean,\n): number;\n\n/**\n * Performs a **binary search** for the index of the item at which the predicate\n * stops returning `true`. This function assumes that the array is \"sorted\" in\n * regards to the predicate, meaning that running the predicate as a mapper on\n * it would result in an array `[...true[], ...false[]]`.\n * This stricter requirement from the predicate provides us 2 benefits over\n * `findIndex` which does a similar thing:\n * 1. It would run at O(logN) time instead of O(N) time.\n * 2. It always returns a value (it would return `data.length` if the\n * predicate returns `true` for all items).\n *\n * This function is the basis for all other sortedIndex functions which search\n * for a specific item in a sorted array, and it could be used to perform\n * similar efficient searches.\n * `sortedIndex` - scans a sorted array with a binary search, find the first suitable index.\n * `sortedIndexBy` - like `sortedIndex`, but assumes sorting is based on a callbackfn.\n * `sortedLastIndex` - scans a sorted array with a binary search, finding the last suitable index.\n * `sortedLastIndexBy` - like `sortedLastIndex`, but assumes sorting is based on a callbackfn.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param predicate - A predicate which also defines the array's order.\n * @returns Index (In the range 0..data.length).\n * @signature\n * sortedIndexWith(predicate)(data)\n * @example\n * pipe(['a','ab','abc'], sortedIndexWith((item) => item.length < 2)) // => 1\n * @dataLast\n * @category Array\n */\nexport function sortedIndexWith<T>(\n predicate: (value: T, index: number, data: ReadonlyArray<T>) => boolean,\n): (data: ReadonlyArray<T>) => number;\n\nexport function sortedIndexWith(...args: ReadonlyArray<unknown>): unknown {\n return curry(binarySearchCutoffIndex, args);\n}\n"],"mappings":"2FA8EA,SAAgB,EAAgB,GAAG,EAAuC,CACxE,OAAO,EAAM,EAAyB,EAAK"}
|
package/dist/sorted-index.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`),t=require(`./binary-search-cutoff-index-CLFtXYPc.cjs`);function n(...t){return e.curry(r,t)}function r(e,n){return t.t(e,e=>e<n)}exports.sortedIndex=n;
|
|
2
|
+
//# sourceMappingURL=sorted-index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sorted-index.cjs","names":["curry","binarySearchCutoffIndex"],"sources":["../src/sorted-index.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..array.length).\n * @signature\n * sortedIndex(data, item)\n * @example\n * sortedIndex(['a','a','b','c','c'], 'c') // => 3\n * @dataFirst\n * @category Array\n * @see sortedIndexBy, sortedIndexWith, sortedLastIndex, sortedLastIndexBy\n */\nexport function sortedIndex<T>(data: ReadonlyArray<T>, item: T): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..array.length).\n * @signature\n * sortedIndex(item)(data)\n * @example\n * pipe(['a','a','b','c','c'], sortedIndex('c')) // => 3\n * @dataLast\n * @category Array\n * @see sortedIndexBy, sortedIndexWith, sortedLastIndex, sortedLastIndexBy\n */\nexport function sortedIndex<T>(item: T): (data: ReadonlyArray<T>) => number;\n\nexport function sortedIndex(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedIndexImplementation, args);\n}\n\nfunction sortedIndexImplementation<T>(array: ReadonlyArray<T>, item: T): number {\n return binarySearchCutoffIndex(array, (pivot) => pivot < item);\n}\n"],"mappings":"yJA8CA,SAAgB,EAAY,GAAG,EAAuC,CACpE,OAAOA,EAAAA,MAAM,EAA2B,EAAK,CAG/C,SAAS,EAA6B,EAAyB,EAAiB,CAC9E,OAAOC,EAAAA,EAAwB,EAAQ,GAAU,EAAQ,EAAK"}
|
package/dist/sorted-index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";import{t}from"./binary-search-cutoff-index-TJlnoie4.js";function n(...t){return e(r,t)}function r(e,n){return t(e,e=>e<n)}export{n as sortedIndex};
|
|
2
2
|
//# sourceMappingURL=sorted-index.js.map
|
package/dist/sorted-index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sorted-index.js","names":[],"sources":["../src/sorted-index.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..array.length).\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"sorted-index.js","names":[],"sources":["../src/sorted-index.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..array.length).\n * @signature\n * sortedIndex(data, item)\n * @example\n * sortedIndex(['a','a','b','c','c'], 'c') // => 3\n * @dataFirst\n * @category Array\n * @see sortedIndexBy, sortedIndexWith, sortedLastIndex, sortedLastIndexBy\n */\nexport function sortedIndex<T>(data: ReadonlyArray<T>, item: T): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *first*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..array.length).\n * @signature\n * sortedIndex(item)(data)\n * @example\n * pipe(['a','a','b','c','c'], sortedIndex('c')) // => 3\n * @dataLast\n * @category Array\n * @see sortedIndexBy, sortedIndexWith, sortedLastIndex, sortedLastIndexBy\n */\nexport function sortedIndex<T>(item: T): (data: ReadonlyArray<T>) => number;\n\nexport function sortedIndex(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedIndexImplementation, args);\n}\n\nfunction sortedIndexImplementation<T>(array: ReadonlyArray<T>, item: T): number {\n return binarySearchCutoffIndex(array, (pivot) => pivot < item);\n}\n"],"mappings":"2FA8CA,SAAgB,EAAY,GAAG,EAAuC,CACpE,OAAO,EAAM,EAA2B,EAAK,CAG/C,SAAS,EAA6B,EAAyB,EAAiB,CAC9E,OAAO,EAAwB,EAAQ,GAAU,EAAQ,EAAK"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`),t=require(`./binary-search-cutoff-index-CLFtXYPc.cjs`);function n(...t){return e.curry(r,t)}function r(e,n,r){let i=r(n,void 0,e);return t.t(e,(t,n)=>r(t,n,e)<=i)}exports.sortedLastIndexBy=n;
|
|
2
|
+
//# sourceMappingURL=sorted-last-index-by.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sorted-last-index-by.cjs","names":["curry","binarySearchCutoffIndex"],"sources":["../src/sorted-last-index-by.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedLastIndex` - a simplified version of this function, without a callbackfn.\n * `sortedIndexBy` - like this function, but returns the first suitable index.\n * `sortedIndex` - like `sortedLastIndex` but without a callbackfn.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndexBy(data, item, valueFunction)\n * @example\n * sortedLastIndexBy([{age:20},{age:22}],{age:21},prop('age')) // => 1\n * @dataFirst\n * @category Array\n */\nexport function sortedLastIndexBy<T>(\n data: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedLastIndex` - a simplified version of this function, without a callbackfn.\n * `sortedIndexBy` - like this function, but returns the first suitable index.\n * `sortedIndex` - like `sortedLastIndex` but without a callbackfn.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndexBy(item, valueFunction)(data)\n * @example\n * pipe([{age:20},{age:22}],sortedLastIndexBy({age:21},prop('age'))) // => 1\n * @dataLast\n * @category Array\n * @see sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndex\n */\nexport function sortedLastIndexBy<T>(\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): (data: ReadonlyArray<T>) => number;\n\nexport function sortedLastIndexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedLastIndexByImplementation, args);\n}\n\nfunction sortedLastIndexByImplementation<T>(\n array: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number {\n const value = valueFunction(item, undefined /* index */, array);\n return binarySearchCutoffIndex(\n array,\n // The only difference between the regular implementation and the \"last\"\n // variation is that we consider the pivot with equality too, so that we\n // skip all equal values in addition to the lower ones.\n (pivot, index) => valueFunction(pivot, index, array) <= value,\n );\n}\n"],"mappings":"yJAwFA,SAAgB,EAAkB,GAAG,EAAuC,CAC1E,OAAOA,EAAAA,MAAM,EAAiC,EAAK,CAGrD,SAAS,EACP,EACA,EACA,EAKQ,CACR,IAAM,EAAQ,EAAc,EAAM,IAAA,GAAuB,EAAM,CAC/D,OAAOC,EAAAA,EACL,GAIC,EAAO,IAAU,EAAc,EAAO,EAAO,EAAM,EAAI,EACzD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";import{t}from"./binary-search-cutoff-index-TJlnoie4.js";function n(...t){return e(r,t)}function r(e,n,r){let i=r(n,void 0,e);return t(e,(t,n)=>r(t,n,e)<=i)}export{n as sortedLastIndexBy};
|
|
2
2
|
//# sourceMappingURL=sorted-last-index-by.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sorted-last-index-by.js","names":[],"sources":["../src/sorted-last-index-by.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedLastIndex` - a simplified version of this function, without a callbackfn.\n * `sortedIndexBy` - like this function, but returns the first suitable index.\n * `sortedIndex` - like `sortedLastIndex` but without a callbackfn.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"sorted-last-index-by.js","names":[],"sources":["../src/sorted-last-index-by.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedLastIndex` - a simplified version of this function, without a callbackfn.\n * `sortedIndexBy` - like this function, but returns the first suitable index.\n * `sortedIndex` - like `sortedLastIndex` but without a callbackfn.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndexBy(data, item, valueFunction)\n * @example\n * sortedLastIndexBy([{age:20},{age:22}],{age:21},prop('age')) // => 1\n * @dataFirst\n * @category Array\n */\nexport function sortedLastIndexBy<T>(\n data: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order using a value function; so that\n * `splice(sortedIndex, 0, item)` would result in maintaining the arrays sort-\n * ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * See also:\n * `findIndex` - scans a possibly unsorted array in-order (linear search).\n * `sortedLastIndex` - a simplified version of this function, without a callbackfn.\n * `sortedIndexBy` - like this function, but returns the first suitable index.\n * `sortedIndex` - like `sortedLastIndex` but without a callbackfn.\n * `rankBy` - scans a possibly unsorted array in-order, returning the index based on a sorting criteria.\n *\n * @param item - The item to insert.\n * @param valueFunction - All comparisons would be performed on the result of\n * calling this function on each compared item. Preferably this function should\n * return a `number` or `string`. This function should be the same as the one\n * provided to sortBy to sort the array. The function is called exactly once on\n * each items that is compared against in the array, and once at the beginning\n * on `item`. When called on `item` the `index` argument is `undefined`.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndexBy(item, valueFunction)(data)\n * @example\n * pipe([{age:20},{age:22}],sortedLastIndexBy({age:21},prop('age'))) // => 1\n * @dataLast\n * @category Array\n * @see sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndex\n */\nexport function sortedLastIndexBy<T>(\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): (data: ReadonlyArray<T>) => number;\n\nexport function sortedLastIndexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedLastIndexByImplementation, args);\n}\n\nfunction sortedLastIndexByImplementation<T>(\n array: ReadonlyArray<T>,\n item: T,\n valueFunction: (\n item: T,\n index: number | undefined,\n data: ReadonlyArray<T>,\n ) => NonNullable<unknown>,\n): number {\n const value = valueFunction(item, undefined /* index */, array);\n return binarySearchCutoffIndex(\n array,\n // The only difference between the regular implementation and the \"last\"\n // variation is that we consider the pivot with equality too, so that we\n // skip all equal values in addition to the lower ones.\n (pivot, index) => valueFunction(pivot, index, array) <= value,\n );\n}\n"],"mappings":"2FAwFA,SAAgB,EAAkB,GAAG,EAAuC,CAC1E,OAAO,EAAM,EAAiC,EAAK,CAGrD,SAAS,EACP,EACA,EACA,EAKQ,CACR,IAAM,EAAQ,EAAc,EAAM,IAAA,GAAuB,EAAM,CAC/D,OAAO,EACL,GAIC,EAAO,IAAU,EAAc,EAAO,EAAO,EAAM,EAAI,EACzD"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`),t=require(`./binary-search-cutoff-index-CLFtXYPc.cjs`);function n(...t){return e.curry(r,t)}function r(e,n){return t.t(e,e=>e<=n)}exports.sortedLastIndex=n;
|
|
2
|
+
//# sourceMappingURL=sorted-last-index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sorted-last-index.cjs","names":["curry","binarySearchCutoffIndex"],"sources":["../src/sorted-last-index.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndex(data, item)\n * @example\n * sortedLastIndex(['a','a','b','c','c'], 'c') // => 5\n * @dataFirst\n * @category Array\n * @see sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndexBy\n */\nexport function sortedLastIndex<T>(data: ReadonlyArray<T>, item: T): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndex(item)(data)\n * @example\n * pipe(['a','a','b','c','c'], sortedLastIndex('c')) // => 5\n * @dataLast\n * @category Array\n * @see sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndexBy\n */\nexport function sortedLastIndex<T>(item: T): (data: ReadonlyArray<T>) => number;\n\nexport function sortedLastIndex(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedLastIndexImplementation, args);\n}\n\nfunction sortedLastIndexImplementation<T>(array: ReadonlyArray<T>, item: T): number {\n return binarySearchCutoffIndex(\n array,\n // The only difference between the regular implementation and the \"last\"\n // variation is that we consider the pivot with equality too, so that we\n // skip all equal values in addition to the lower ones.\n (pivot) => pivot <= item,\n );\n}\n"],"mappings":"yJA8CA,SAAgB,EAAgB,GAAG,EAAuC,CACxE,OAAOA,EAAAA,MAAM,EAA+B,EAAK,CAGnD,SAAS,EAAiC,EAAyB,EAAiB,CAClF,OAAOC,EAAAA,EACL,EAIC,GAAU,GAAS,EACrB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";import{t}from"./binary-search-cutoff-index-TJlnoie4.js";function n(...t){return e(r,t)}function r(e,n){return t(e,e=>e<=n)}export{n as sortedLastIndex};
|
|
2
2
|
//# sourceMappingURL=sorted-last-index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sorted-last-index.js","names":[],"sources":["../src/sorted-last-index.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"sorted-last-index.js","names":[],"sources":["../src/sorted-last-index.ts"],"sourcesContent":["import { curry } from './curry';\nimport { binarySearchCutoffIndex } from './internal/binary-search-cutoff-index';\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param data - The (ascending) sorted array.\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndex(data, item)\n * @example\n * sortedLastIndex(['a','a','b','c','c'], 'c') // => 5\n * @dataFirst\n * @category Array\n * @see sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndexBy\n */\nexport function sortedLastIndex<T>(data: ReadonlyArray<T>, item: T): number;\n\n/**\n * Find the insertion position (index) of an item in an array with items sorted\n * in ascending order; so that `splice(sortedIndex, 0, item)` would result in\n * maintaining the array's sort-ness. The array can contain duplicates.\n * If the item already exists in the array the index would be of the *last*\n * occurrence of the item.\n *\n * Runs in O(logN) time.\n *\n * @param item - The item to insert.\n * @returns Insertion index (In the range 0..data.length).\n * @signature\n * sortedLastIndex(item)(data)\n * @example\n * pipe(['a','a','b','c','c'], sortedLastIndex('c')) // => 5\n * @dataLast\n * @category Array\n * @see sortedIndex, sortedIndexBy, sortedIndexWith, sortedLastIndexBy\n */\nexport function sortedLastIndex<T>(item: T): (data: ReadonlyArray<T>) => number;\n\nexport function sortedLastIndex(...args: ReadonlyArray<unknown>): unknown {\n return curry(sortedLastIndexImplementation, args);\n}\n\nfunction sortedLastIndexImplementation<T>(array: ReadonlyArray<T>, item: T): number {\n return binarySearchCutoffIndex(\n array,\n // The only difference between the regular implementation and the \"last\"\n // variation is that we consider the pivot with equality too, so that we\n // skip all equal values in addition to the lower ones.\n (pivot) => pivot <= item,\n );\n}\n"],"mappings":"2FA8CA,SAAgB,EAAgB,GAAG,EAAuC,CACxE,OAAO,EAAM,EAA+B,EAAK,CAGnD,SAAS,EAAiC,EAAyB,EAAiB,CAClF,OAAO,EACL,EAIC,GAAU,GAAS,EACrB"}
|
package/dist/splice.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`);function t(...t){return e.curry(n,t)}function n(e,t,n,r){let i=[...e];return i.splice(t,n,...r),i}exports.splice=t;
|
|
2
|
+
//# sourceMappingURL=splice.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"splice.cjs","names":["curry"],"sources":["../src/splice.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Removes elements from an array and, inserts new elements in their place.\n *\n * @param items - The array to splice.\n * @param start - The index from which to start removing elements.\n * @param deleteCount - The number of elements to remove.\n * @param replacement - The elements to insert into the array in place of the deleted elements.\n * @signature\n * splice(items, start, deleteCount, replacement)\n * @example\n * splice([1,2,3,4,5,6,7,8], 2, 3, []); //=> [1,2,6,7,8]\n * splice([1,2,3,4,5,6,7,8], 2, 3, [9, 10]); //=> [1,2,9,10,6,7,8]\n * @dataFirst\n * @category Array\n */\nexport function splice<T>(\n items: ReadonlyArray<T>,\n start: number,\n deleteCount: number,\n replacement: ReadonlyArray<T>,\n): Array<T>;\n\n/**\n * Removes elements from an array and, inserts new elements in their place.\n *\n * @param start - The index from which to start removing elements.\n * @param deleteCount - The number of elements to remove.\n * @param replacement - The elements to insert into the array in place of the deleted elements.\n * @signature\n * splice(start, deleteCount, replacement)(items)\n * @example\n * pipe([1,2,3,4,5,6,7,8], splice(2, 3, [])) // => [1,2,6,7,8]\n * pipe([1,2,3,4,5,6,7,8], splice(2, 3, [9, 10])) // => [1,2,9,10,6,7,8]\n * @dataLast\n * @category Array\n */\nexport function splice<T>(\n start: number,\n deleteCount: number,\n replacement: ReadonlyArray<T>,\n): (items: ReadonlyArray<T>) => Array<T>;\n\nexport function splice(...args: ReadonlyArray<unknown>): unknown {\n return curry(spliceImplementation, args);\n}\n\nfunction spliceImplementation<T>(\n items: ReadonlyArray<T>,\n start: number,\n deleteCount: number,\n replacement: ReadonlyArray<T>,\n): Array<T> {\n // TODO [>2]: When node 18 reaches end-of-life bump target lib to ES2023+ and use `Array.prototype.toSpliced` here.\n const result = [...items];\n result.splice(start, deleteCount, ...replacement);\n return result;\n}\n"],"mappings":"kGA4CA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAOA,EAAAA,MAAM,EAAsB,EAAK,CAG1C,SAAS,EACP,EACA,EACA,EACA,EACU,CAEV,IAAM,EAAS,CAAC,GAAG,EAAM,CAEzB,OADA,EAAO,OAAO,EAAO,EAAa,GAAG,EAAY,CAC1C"}
|
package/dist/splice.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";function t(...t){return e(n,t)}function n(e,t,n,r){let i=[...e];return i.splice(t,n,...r),i}export{t as splice};
|
|
2
2
|
//# sourceMappingURL=splice.js.map
|