@vinicunca/perkakas 1.13.2 → 1.15.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-B9lX8euz.js +3 -0
- package/dist/words-B9lX8euz.js.map +1 -0
- package/dist/words-_h74qi45.cjs +3 -0
- package/dist/words-_h74qi45.cjs.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/map-values.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-values.js","names":[
|
|
1
|
+
{"version":3,"file":"map-values.js","names":[],"sources":["../src/map-values.ts"],"sourcesContent":["import type { Simplify } from 'type-fest';\nimport type { EnumerableStringKeyOf } from './internal/types/enumerable-string-key-of';\nimport type { EnumerableStringKeyedValueOf } from './internal/types/enumerable-string-keyed-value-of';\nimport { curry } from './curry';\n\ntype MappedValues<T extends object, Value> = Simplify<{\n -readonly [P in keyof T as P extends number | string ? P : never]: Value;\n}>;\n\n/**\n * Maps values of `object` and keeps the same keys. Symbol keys are not passed\n * to the mapper and will be removed from the output object.\n *\n * To also copy the symbol keys to the output use merge:\n * `merge(data, mapValues(data, mapper))`).\n *\n * @param data - The object to map.\n * @param valueMapper - The mapping function.\n * @signature\n * mapValues(data, mapper)\n * @example\n * mapValues({a: 1, b: 2}, (value, key) => value + key) // => {a: '1a', b: '2b'}\n * @dataFirst\n * @category Object\n */\nexport function mapValues<T extends object, Value>(\n data: T,\n valueMapper: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => Value,\n): MappedValues<T, Value>;\n\n/**\n * Maps values of `object` and keeps the same keys. Symbol keys are not passed\n * to the mapper and will be removed from the output object.\n *\n * To also copy the symbol keys to the output use merge:\n * `merge(data, mapValues(data, mapper))`).\n *\n * @param valueMapper - The mapping function.\n * @signature\n * mapValues(mapper)(data)\n * @example\n * pipe({a: 1, b: 2}, mapValues((value, key) => value + key)) // => {a: '1a', b: '2b'}\n * @dataLast\n * @category Object\n */\nexport function mapValues<T extends object, Value>(\n valueMapper: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => Value,\n): (data: T) => MappedValues<T, Value>;\n\nexport function mapValues(...args: ReadonlyArray<unknown>): unknown {\n return curry(mapValuesImplementation, args);\n}\n\nfunction mapValuesImplementation<T extends object, Value>(\n data: T,\n valueMapper: (value: unknown, key: string, data: T) => Value,\n): Record<string, Value> {\n const out: Record<string, Value> = {};\n\n for (const [key, value] of Object.entries(data)) {\n const mappedValue = valueMapper(value, key, data);\n out[key] = mappedValue;\n }\n\n return out;\n}\n"],"mappings":"mCAyDA,SAAgB,EAAU,GAAG,EAAuC,CAClE,OAAO,EAAM,EAAyB,EAAK,CAG7C,SAAS,EACP,EACA,EACuB,CACvB,IAAM,EAA6B,EAAE,CAErC,IAAK,GAAM,CAAC,EAAK,KAAU,OAAO,QAAQ,EAAK,CAE7C,EAAI,GADgB,EAAY,EAAO,EAAK,EAAK,CAInD,OAAO"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
const e=require(`./curry-from-lazy-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry-from-lazy-BvN_VKlH.cjs`);function t(...t){return e.t(n,t)}function n(e,t){let n=t;return(t,r,i)=>(n=e(n,t,r,i),{done:!1,hasNext:!0,next:n})}exports.mapWithFeedback=t;
|
|
2
|
+
//# sourceMappingURL=map-with-feedback.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-with-feedback.cjs","names":["curryFromLazy"],"sources":["../src/map-with-feedback.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { LazyEvaluator } from './internal/types/lazy-evaluator';\nimport type { Mapped } from './internal/types/mapped';\nimport { curryFromLazy } from './internal/curry-from-lazy';\n\n/**\n * Applies a function on each element of the array, using the result of the\n * previous application, and returns an array of the successively computed\n * values.\n *\n * @param data - The array to map over.\n * @param callbackfn - The callback function that receives the previous value,\n * the current element.\n * @param initialValue - The initial value to start the computation with.\n * @returns An array of successively computed values from the left side of the\n * array.\n * @signature\n * mapWithFeedback(data, callbackfn, initialValue);\n * @example\n * mapWithFeedback(\n * [1, 2, 3, 4, 5],\n * (prev, x) => prev + x,\n * 100,\n * ); // => [101, 103, 106, 110, 115]\n * @dataFirst\n * @lazy\n * @category Array\n */\nexport function mapWithFeedback<T extends IterableContainer, U>(\n data: T,\n callbackfn: (\n previousValue: U,\n currentValue: T[number],\n currentIndex: number,\n data: T,\n ) => U,\n initialValue: U,\n): Mapped<T, U>;\n\n/**\n * Applies a function on each element of the array, using the result of the\n * previous application, and returns an array of the successively computed\n * values.\n *\n * @param callbackfn - The callback function that receives the previous value,\n * the current element.\n * @param initialValue - The initial value to start the computation with.\n * @returns An array of successively computed values from the left side of the\n * array.\n * @signature\n * mapWithFeedback(callbackfn, initialValue)(data);\n * @example\n * pipe(\n * [1, 2, 3, 4, 5],\n * mapWithFeedback((prev, x) => prev + x, 100),\n * ); // => [101, 103, 106, 110, 115]\n * @dataLast\n * @lazy\n * @category Array\n */\nexport function mapWithFeedback<T extends IterableContainer, U>(\n callbackfn: (\n previousValue: U,\n currentValue: T[number],\n currentIndex: number,\n data: T,\n ) => U,\n initialValue: U,\n): (data: T) => Mapped<T, U>;\n\nexport function mapWithFeedback(...args: ReadonlyArray<unknown>): unknown {\n return curryFromLazy(lazyImplementation, args);\n}\n\nfunction lazyImplementation<T, U>(reducer: (\n previousValue: U,\n currentValue: T,\n index: number,\n data: ReadonlyArray<T>,\n) => U, initialValue: U): LazyEvaluator<T, U> {\n let previousValue = initialValue;\n return (currentValue, index, data) => {\n previousValue = reducer(previousValue, currentValue, index, data);\n return { done: false, hasNext: true, next: previousValue };\n };\n}\n"],"mappings":"qHAsEA,SAAgB,EAAgB,GAAG,EAAuC,CACxE,OAAOA,EAAAA,EAAc,EAAoB,EAAK,CAGhD,SAAS,EAAyB,EAK1B,EAAsC,CAC5C,IAAI,EAAgB,EACpB,OAAQ,EAAc,EAAO,KAC3B,EAAgB,EAAQ,EAAe,EAAc,EAAO,EAAK,CAC1D,CAAE,KAAM,GAAO,QAAS,GAAM,KAAM,EAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e}from"./curry-from-lazy-
|
|
1
|
+
import{t as e}from"./curry-from-lazy-CtH1dp14.js";function t(...t){return e(n,t)}function n(e,t){let n=t;return(t,r,i)=>(n=e(n,t,r,i),{done:!1,hasNext:!0,next:n})}export{t as mapWithFeedback};
|
|
2
2
|
//# sourceMappingURL=map-with-feedback.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-with-feedback.js","names":[],"sources":["../src/map-with-feedback.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { LazyEvaluator } from './internal/types/lazy-evaluator';\nimport type { Mapped } from './internal/types/mapped';\
|
|
1
|
+
{"version":3,"file":"map-with-feedback.js","names":[],"sources":["../src/map-with-feedback.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { LazyEvaluator } from './internal/types/lazy-evaluator';\nimport type { Mapped } from './internal/types/mapped';\nimport { curryFromLazy } from './internal/curry-from-lazy';\n\n/**\n * Applies a function on each element of the array, using the result of the\n * previous application, and returns an array of the successively computed\n * values.\n *\n * @param data - The array to map over.\n * @param callbackfn - The callback function that receives the previous value,\n * the current element.\n * @param initialValue - The initial value to start the computation with.\n * @returns An array of successively computed values from the left side of the\n * array.\n * @signature\n * mapWithFeedback(data, callbackfn, initialValue);\n * @example\n * mapWithFeedback(\n * [1, 2, 3, 4, 5],\n * (prev, x) => prev + x,\n * 100,\n * ); // => [101, 103, 106, 110, 115]\n * @dataFirst\n * @lazy\n * @category Array\n */\nexport function mapWithFeedback<T extends IterableContainer, U>(\n data: T,\n callbackfn: (\n previousValue: U,\n currentValue: T[number],\n currentIndex: number,\n data: T,\n ) => U,\n initialValue: U,\n): Mapped<T, U>;\n\n/**\n * Applies a function on each element of the array, using the result of the\n * previous application, and returns an array of the successively computed\n * values.\n *\n * @param callbackfn - The callback function that receives the previous value,\n * the current element.\n * @param initialValue - The initial value to start the computation with.\n * @returns An array of successively computed values from the left side of the\n * array.\n * @signature\n * mapWithFeedback(callbackfn, initialValue)(data);\n * @example\n * pipe(\n * [1, 2, 3, 4, 5],\n * mapWithFeedback((prev, x) => prev + x, 100),\n * ); // => [101, 103, 106, 110, 115]\n * @dataLast\n * @lazy\n * @category Array\n */\nexport function mapWithFeedback<T extends IterableContainer, U>(\n callbackfn: (\n previousValue: U,\n currentValue: T[number],\n currentIndex: number,\n data: T,\n ) => U,\n initialValue: U,\n): (data: T) => Mapped<T, U>;\n\nexport function mapWithFeedback(...args: ReadonlyArray<unknown>): unknown {\n return curryFromLazy(lazyImplementation, args);\n}\n\nfunction lazyImplementation<T, U>(reducer: (\n previousValue: U,\n currentValue: T,\n index: number,\n data: ReadonlyArray<T>,\n) => U, initialValue: U): LazyEvaluator<T, U> {\n let previousValue = initialValue;\n return (currentValue, index, data) => {\n previousValue = reducer(previousValue, currentValue, index, data);\n return { done: false, hasNext: true, next: previousValue };\n };\n}\n"],"mappings":"kDAsEA,SAAgB,EAAgB,GAAG,EAAuC,CACxE,OAAO,EAAc,EAAoB,EAAK,CAGhD,SAAS,EAAyB,EAK1B,EAAsC,CAC5C,IAAI,EAAgB,EACpB,OAAQ,EAAc,EAAO,KAC3B,EAAgB,EAAQ,EAAe,EAAc,EAAO,EAAK,CAC1D,CAAE,KAAM,GAAO,QAAS,GAAM,KAAM,EAAe"}
|
package/dist/map.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,r)}function n(e,t){return e.map(t)}function r(e){return(t,n,r)=>({done:!1,hasNext:!0,next:e(t,n,r)})}exports.map=t;
|
|
2
|
+
//# sourceMappingURL=map.cjs.map
|
package/dist/map.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.cjs","names":["curry"],"sources":["../src/map.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { LazyEvaluator } from './internal/types/lazy-evaluator';\nimport type { Mapped } from './internal/types/mapped';\nimport { curry } from './curry';\n\n/**\n * Creates a new array populated with the results of calling a provided function\n * on every element in the calling array. Equivalent to `Array.prototype.map`.\n *\n * @param data - The array to map.\n * @param callbackfn - A function to execute for each element in the array. Its\n * return value is added as a single element in the new array.\n * @returns A new array with each element being the result of the callback\n * function.\n * @signature\n * map(data, callbackfn)\n * @example\n * map([1, 2, 3], multiply(2)); // => [2, 4, 6]\n * map([0, 0], add(1)); // => [1, 1]\n * map([0, 0], (value, index) => value + index); // => [0, 1]\n * @dataFirst\n * @lazy\n * @category Array\n */\nexport function map<T extends IterableContainer, U>(\n data: T,\n callbackfn: (value: T[number], index: number, data: T) => U,\n): Mapped<T, U>;\n\n/**\n * Creates a new array populated with the results of calling a provided function\n * on every element in the calling array. Equivalent to `Array.prototype.map`.\n *\n * @param callbackfn - A function to execute for each element in the array. Its\n * return value is added as a single element in the new array.\n * @returns A new array with each element being the result of the callback\n * function.\n * @signature\n * map(callbackfn)(data)\n * @example\n * pipe([1, 2, 3], map(multiply(2))); // => [2, 4, 6]\n * pipe([0, 0], map(add(1))); // => [1, 1]\n * pipe([0, 0], map((value, index) => value + index)); // => [0, 1]\n * @dataLast\n * @lazy\n * @category Array\n */\nexport function map<T extends IterableContainer, U>(\n callbackfn: (value: T[number], index: number, data: T) => U,\n): (data: T) => Mapped<T, U>;\n\nexport function map(...args: ReadonlyArray<unknown>): unknown {\n return curry(mapImplementation, args, lazyImplementation);\n}\n\nfunction mapImplementation<T, U>(data: ReadonlyArray<T>, callbackfn: (value: T, index: number, data: ReadonlyArray<T>) => U): Array<U> {\n return data.map(callbackfn);\n}\n\nfunction lazyImplementation<T, U>(callbackfn: (value: T, index: number, data: ReadonlyArray<T>) => U): LazyEvaluator<T, U> {\n return (value, index, data) => ({\n done: false,\n hasNext: true,\n next: callbackfn(value, index, data),\n });\n}\n"],"mappings":"kGAmDA,SAAgB,EAAI,GAAG,EAAuC,CAC5D,OAAOA,EAAAA,MAAM,EAAmB,EAAM,EAAmB,CAG3D,SAAS,EAAwB,EAAwB,EAA8E,CACrI,OAAO,EAAK,IAAI,EAAW,CAG7B,SAAS,EAAyB,EAAyF,CACzH,OAAQ,EAAO,EAAO,KAAU,CAC9B,KAAM,GACN,QAAS,GACT,KAAM,EAAW,EAAO,EAAO,EAAK,CACrC"}
|
package/dist/map.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";function t(...t){return e(n,t,r)}function n(e,t){return e.map(t)}function r(e){return(t,n,r)=>({done:!1,hasNext:!0,next:e(t,n,r)})}export{t as map};
|
|
2
2
|
//# sourceMappingURL=map.js.map
|
package/dist/map.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.js","names":[],"sources":["../src/map.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { LazyEvaluator } from './internal/types/lazy-evaluator';\nimport type { Mapped } from './internal/types/mapped';\
|
|
1
|
+
{"version":3,"file":"map.js","names":[],"sources":["../src/map.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport type { LazyEvaluator } from './internal/types/lazy-evaluator';\nimport type { Mapped } from './internal/types/mapped';\nimport { curry } from './curry';\n\n/**\n * Creates a new array populated with the results of calling a provided function\n * on every element in the calling array. Equivalent to `Array.prototype.map`.\n *\n * @param data - The array to map.\n * @param callbackfn - A function to execute for each element in the array. Its\n * return value is added as a single element in the new array.\n * @returns A new array with each element being the result of the callback\n * function.\n * @signature\n * map(data, callbackfn)\n * @example\n * map([1, 2, 3], multiply(2)); // => [2, 4, 6]\n * map([0, 0], add(1)); // => [1, 1]\n * map([0, 0], (value, index) => value + index); // => [0, 1]\n * @dataFirst\n * @lazy\n * @category Array\n */\nexport function map<T extends IterableContainer, U>(\n data: T,\n callbackfn: (value: T[number], index: number, data: T) => U,\n): Mapped<T, U>;\n\n/**\n * Creates a new array populated with the results of calling a provided function\n * on every element in the calling array. Equivalent to `Array.prototype.map`.\n *\n * @param callbackfn - A function to execute for each element in the array. Its\n * return value is added as a single element in the new array.\n * @returns A new array with each element being the result of the callback\n * function.\n * @signature\n * map(callbackfn)(data)\n * @example\n * pipe([1, 2, 3], map(multiply(2))); // => [2, 4, 6]\n * pipe([0, 0], map(add(1))); // => [1, 1]\n * pipe([0, 0], map((value, index) => value + index)); // => [0, 1]\n * @dataLast\n * @lazy\n * @category Array\n */\nexport function map<T extends IterableContainer, U>(\n callbackfn: (value: T[number], index: number, data: T) => U,\n): (data: T) => Mapped<T, U>;\n\nexport function map(...args: ReadonlyArray<unknown>): unknown {\n return curry(mapImplementation, args, lazyImplementation);\n}\n\nfunction mapImplementation<T, U>(data: ReadonlyArray<T>, callbackfn: (value: T, index: number, data: ReadonlyArray<T>) => U): Array<U> {\n return data.map(callbackfn);\n}\n\nfunction lazyImplementation<T, U>(callbackfn: (value: T, index: number, data: ReadonlyArray<T>) => U): LazyEvaluator<T, U> {\n return (value, index, data) => ({\n done: false,\n hasNext: true,\n next: callbackfn(value, index, data),\n });\n}\n"],"mappings":"mCAmDA,SAAgB,EAAI,GAAG,EAAuC,CAC5D,OAAO,EAAM,EAAmB,EAAM,EAAmB,CAG3D,SAAS,EAAwB,EAAwB,EAA8E,CACrI,OAAO,EAAK,IAAI,EAAW,CAG7B,SAAS,EAAyB,EAAyF,CACzH,OAAQ,EAAO,EAAO,KAAU,CAC9B,KAAM,GACN,QAAS,GACT,KAAM,EAAW,EAAO,EAAO,EAAK,CACrC"}
|
package/dist/mean-by.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){if(e.length===0)return NaN;let n=0;for(let[r,i]of e.entries())n+=t(i,r,e);return n/e.length}exports.meanBy=t;
|
|
2
|
+
//# sourceMappingURL=mean-by.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mean-by.cjs","names":["curry"],"sources":["../src/mean-by.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Returns the mean of the elements of an array using the provided predicate.\n *\n * @param fn - Predicate function.\n * @signature\n * meanBy(fn)(array)\n * @example\n * pipe(\n * [{a: 5}, {a: 1}, {a: 3}],\n * meanBy(x => x.a)\n * ) // 3\n * @dataLast\n * @category Array\n */\n\nexport function meanBy<T>(\n fn: (value: T, index: number, data: ReadonlyArray<T>) => number,\n): (items: ReadonlyArray<T>) => number;\n\n/**\n * Returns the mean of the elements of an array using the provided predicate.\n *\n * @param items - The array.\n * @param fn - Predicate function.\n * @signature\n * meanBy(array, fn)\n * @example\n * meanBy(\n * [{a: 5}, {a: 1}, {a: 3}],\n * x => x.a\n * ) // 3\n * @dataFirst\n * @category Array\n */\n\nexport function meanBy<T>(\n items: ReadonlyArray<T>,\n fn: (value: T, index: number, data: ReadonlyArray<T>) => number,\n): number;\n\nexport function meanBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(meanByImplementation, args);\n}\n\nfunction meanByImplementation<T>(array: ReadonlyArray<T>, fn: (value: T, index: number, data: ReadonlyArray<T>) => number): number {\n if (array.length === 0) {\n return Number.NaN;\n }\n\n let sum = 0;\n\n for (const [index, item] of array.entries()) {\n sum += fn(item, index, array);\n }\n\n return sum / array.length;\n}\n"],"mappings":"kGA0CA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAOA,EAAAA,MAAM,EAAsB,EAAK,CAG1C,SAAS,EAAwB,EAAyB,EAAyE,CACjI,GAAI,EAAM,SAAW,EACnB,MAAO,KAGT,IAAI,EAAM,EAEV,IAAK,GAAM,CAAC,EAAO,KAAS,EAAM,SAAS,CACzC,GAAO,EAAG,EAAM,EAAO,EAAM,CAG/B,OAAO,EAAM,EAAM"}
|
package/dist/mean-by.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){if(e.length===0)return NaN;let n=0;for(let[r,i]of e.entries())n+=t(i,r,e);return n/e.length}export{t as meanBy};
|
|
2
2
|
//# sourceMappingURL=mean-by.js.map
|
package/dist/mean-by.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mean-by.js","names":[],"sources":["../src/mean-by.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Returns the mean of the elements of an array using the provided predicate.\n *\n * @param fn - Predicate function.\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"mean-by.js","names":[],"sources":["../src/mean-by.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Returns the mean of the elements of an array using the provided predicate.\n *\n * @param fn - Predicate function.\n * @signature\n * meanBy(fn)(array)\n * @example\n * pipe(\n * [{a: 5}, {a: 1}, {a: 3}],\n * meanBy(x => x.a)\n * ) // 3\n * @dataLast\n * @category Array\n */\n\nexport function meanBy<T>(\n fn: (value: T, index: number, data: ReadonlyArray<T>) => number,\n): (items: ReadonlyArray<T>) => number;\n\n/**\n * Returns the mean of the elements of an array using the provided predicate.\n *\n * @param items - The array.\n * @param fn - Predicate function.\n * @signature\n * meanBy(array, fn)\n * @example\n * meanBy(\n * [{a: 5}, {a: 1}, {a: 3}],\n * x => x.a\n * ) // 3\n * @dataFirst\n * @category Array\n */\n\nexport function meanBy<T>(\n items: ReadonlyArray<T>,\n fn: (value: T, index: number, data: ReadonlyArray<T>) => number,\n): number;\n\nexport function meanBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(meanByImplementation, args);\n}\n\nfunction meanByImplementation<T>(array: ReadonlyArray<T>, fn: (value: T, index: number, data: ReadonlyArray<T>) => number): number {\n if (array.length === 0) {\n return Number.NaN;\n }\n\n let sum = 0;\n\n for (const [index, item] of array.entries()) {\n sum += fn(item, index, array);\n }\n\n return sum / array.length;\n}\n"],"mappings":"mCA0CA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAO,EAAM,EAAsB,EAAK,CAG1C,SAAS,EAAwB,EAAyB,EAAyE,CACjI,GAAI,EAAM,SAAW,EACnB,MAAO,KAGT,IAAI,EAAM,EAEV,IAAK,GAAM,CAAC,EAAO,KAAS,EAAM,SAAS,CACzC,GAAO,EAAG,EAAM,EAAO,EAAM,CAG/B,OAAO,EAAM,EAAM"}
|
package/dist/mean.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mean.cjs","names":["curry","sum"],"sources":["../src/mean.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport { curry } from './curry';\nimport { sum } from './sum';\n\ntype Mean<T extends IterableContainer<number>>\n = | (T extends readonly [] ? never : number)\n | (T extends readonly [unknown, ...Array<unknown>] ? never : undefined);\n\n/**\n * Returns the mean of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @param data - The array of numbers.\n * @signature\n * mean(data);\n * @example\n * mean([1, 2, 3]); // => 2\n * mean([]); // => undefined\n * @dataFirst\n * @category Number\n */\nexport function mean<T extends IterableContainer<number>>(data: T): Mean<T>;\n\n/**\n * Returns the mean of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @signature\n * mean()(data);\n * @example\n * pipe([1, 2, 3], mean()); // => 2\n * pipe([], mean()); // => undefined\n * @dataLast\n * @category Number\n */\nexport function mean(): <T extends IterableContainer<number>>(\n data: T,\n) => Mean<T>;\n\nexport function mean(...args: ReadonlyArray<unknown>): unknown {\n return curry(meanImplementation, args);\n}\n\nfunction meanImplementation<T extends IterableContainer<number>>(\n data: T,\n): T[number] | undefined {\n if (data.length === 0) {\n return undefined;\n }\n\n return sum(data) / data.length;\n}\n"],"mappings":"yHAqDA,SAAgB,EAAK,GAAG,EAAuC,CAC7D,OAAOA,EAAAA,MAAM,EAAoB,EAAK,CAGxC,SAAS,EACP,EACuB,CACnB,KAAK,SAAW,EAIpB,OAAOC,EAAAA,IAAI,EAAK,CAAG,EAAK"}
|
package/dist/mean.js
ADDED
package/dist/mean.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mean.js","names":[],"sources":["../src/mean.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport { curry } from './curry';\nimport { sum } from './sum';\n\ntype Mean<T extends IterableContainer<number>>\n = | (T extends readonly [] ? never : number)\n | (T extends readonly [unknown, ...Array<unknown>] ? never : undefined);\n\n/**\n * Returns the mean of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @param data - The array of numbers.\n * @signature\n * mean(data);\n * @example\n * mean([1, 2, 3]); // => 2\n * mean([]); // => undefined\n * @dataFirst\n * @category Number\n */\nexport function mean<T extends IterableContainer<number>>(data: T): Mean<T>;\n\n/**\n * Returns the mean of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @signature\n * mean()(data);\n * @example\n * pipe([1, 2, 3], mean()); // => 2\n * pipe([], mean()); // => undefined\n * @dataLast\n * @category Number\n */\nexport function mean(): <T extends IterableContainer<number>>(\n data: T,\n) => Mean<T>;\n\nexport function mean(...args: ReadonlyArray<unknown>): unknown {\n return curry(meanImplementation, args);\n}\n\nfunction meanImplementation<T extends IterableContainer<number>>(\n data: T,\n): T[number] | undefined {\n if (data.length === 0) {\n return undefined;\n }\n\n return sum(data) / data.length;\n}\n"],"mappings":"kEAqDA,SAAgB,EAAK,GAAG,EAAuC,CAC7D,OAAO,EAAM,EAAoB,EAAK,CAGxC,SAAS,EACP,EACuB,CACnB,KAAK,SAAW,EAIpB,OAAO,EAAI,EAAK,CAAG,EAAK"}
|
package/dist/median.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./curry.cjs`);function t(...t){return e.curry(r,t)}const n=(e,t)=>e-t;function r(e){if(e.length===0)return;let t=[...e].sort(n);if(t.length%2!=0)return t[(t.length-1)/2];let r=t.length/2;return(t[r]+t[r-1])/2}exports.median=t;
|
|
2
|
+
//# sourceMappingURL=median.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"median.cjs","names":["curry"],"sources":["../src/median.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport { curry } from './curry';\n\ntype Median<T extends IterableContainer<number>>\n = | (T extends readonly [] ? never : number)\n | (T extends readonly [unknown, ...Array<unknown>] ? never : undefined);\n\n/**\n * Returns the median of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @param data - The array of numbers.\n * @signature\n * median(data);\n * @example\n * pipe([6, 10, 11], median()); // => 10\n * median([]); // => undefined\n * @dataFirst\n * @category Number\n */\nexport function median<T extends IterableContainer<number>>(data: T): Median<T>;\n\n/**\n * Returns the median of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @signature\n * median()(data);\n * @example\n * pipe([6, 10, 11], median()); // => 10\n * pipe([], median()); // => undefined\n * @dataLast\n * @category Number\n */\nexport function median(): <T extends IterableContainer<number>>(\n data: T,\n) => Median<T>;\n\nexport function median(...args: ReadonlyArray<unknown>): unknown {\n return curry(medianImplementation, args);\n}\n\nconst numberComparator = (a: number, b: number): number => a - b;\n\nfunction medianImplementation<T extends IterableContainer<number>>(\n data: T,\n): T[number] | undefined {\n if (data.length === 0) {\n return undefined;\n }\n\n // TODO [>2]: When node 18 reaches end-of-life bump target lib to ES2023+ and use `Array.prototype.toSorted` here.\n const sortedData = [...data].sort(numberComparator);\n\n // For odd length, return the middle element\n if (sortedData.length % 2 !== 0) {\n return sortedData[(sortedData.length - 1) / 2];\n }\n\n // For even length, return the mean of the two middle elements\n const middleIndex = sortedData.length / 2;\n\n return (sortedData[middleIndex]! + sortedData[middleIndex - 1]!) / 2;\n}\n"],"mappings":"kGAoDA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAOA,EAAAA,MAAM,EAAsB,EAAK,CAG1C,MAAM,GAAoB,EAAW,IAAsB,EAAI,EAE/D,SAAS,EACP,EACuB,CACvB,GAAI,EAAK,SAAW,EAClB,OAIF,IAAM,EAAa,CAAC,GAAG,EAAK,CAAC,KAAK,EAAiB,CAGnD,GAAI,EAAW,OAAS,GAAM,EAC5B,OAAO,GAAY,EAAW,OAAS,GAAK,GAI9C,IAAM,EAAc,EAAW,OAAS,EAExC,OAAQ,EAAW,GAAgB,EAAW,EAAc,IAAO"}
|
package/dist/median.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{curry as e}from"./curry.js";function t(...t){return e(r,t)}const n=(e,t)=>e-t;function r(e){if(e.length===0)return;let t=[...e].sort(n);if(t.length%2!=0)return t[(t.length-1)/2];let r=t.length/2;return(t[r]+t[r-1])/2}export{t as median};
|
|
2
|
+
//# sourceMappingURL=median.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"median.js","names":[],"sources":["../src/median.ts"],"sourcesContent":["import type { IterableContainer } from './internal/types/iterable-container';\nimport { curry } from './curry';\n\ntype Median<T extends IterableContainer<number>>\n = | (T extends readonly [] ? never : number)\n | (T extends readonly [unknown, ...Array<unknown>] ? never : undefined);\n\n/**\n * Returns the median of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @param data - The array of numbers.\n * @signature\n * median(data);\n * @example\n * pipe([6, 10, 11], median()); // => 10\n * median([]); // => undefined\n * @dataFirst\n * @category Number\n */\nexport function median<T extends IterableContainer<number>>(data: T): Median<T>;\n\n/**\n * Returns the median of the elements of an array.\n *\n * Only `number` arrays are supported, as `bigint` is unable to represent fractional values.\n *\n * IMPORTANT: The result for empty arrays would be `undefined`, regardless of\n * the type of the array. This approach improves type-checking and ensures that\n * cases where `NaN` might occur are handled properly. To avoid adding this to\n * the return type for cases where the array is known to be non-empty you can use\n * `hasAtLeast` or `isEmpty` to guard against this case.\n *\n * @signature\n * median()(data);\n * @example\n * pipe([6, 10, 11], median()); // => 10\n * pipe([], median()); // => undefined\n * @dataLast\n * @category Number\n */\nexport function median(): <T extends IterableContainer<number>>(\n data: T,\n) => Median<T>;\n\nexport function median(...args: ReadonlyArray<unknown>): unknown {\n return curry(medianImplementation, args);\n}\n\nconst numberComparator = (a: number, b: number): number => a - b;\n\nfunction medianImplementation<T extends IterableContainer<number>>(\n data: T,\n): T[number] | undefined {\n if (data.length === 0) {\n return undefined;\n }\n\n // TODO [>2]: When node 18 reaches end-of-life bump target lib to ES2023+ and use `Array.prototype.toSorted` here.\n const sortedData = [...data].sort(numberComparator);\n\n // For odd length, return the middle element\n if (sortedData.length % 2 !== 0) {\n return sortedData[(sortedData.length - 1) / 2];\n }\n\n // For even length, return the mean of the two middle elements\n const middleIndex = sortedData.length / 2;\n\n return (sortedData[middleIndex]! + sortedData[middleIndex - 1]!) / 2;\n}\n"],"mappings":"mCAoDA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAO,EAAM,EAAsB,EAAK,CAG1C,MAAM,GAAoB,EAAW,IAAsB,EAAI,EAE/D,SAAS,EACP,EACuB,CACvB,GAAI,EAAK,SAAW,EAClB,OAIF,IAAM,EAAa,CAAC,GAAG,EAAK,CAAC,KAAK,EAAiB,CAGnD,GAAI,EAAW,OAAS,GAAM,EAC5B,OAAO,GAAY,EAAW,OAAS,GAAK,GAI9C,IAAM,EAAc,EAAW,OAAS,EAExC,OAAQ,EAAW,GAAgB,EAAW,EAAc,IAAO"}
|
package/dist/merge-all.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
function e(e){let t={};for(let n of e)t={...t,...n};return t}exports.mergeAll=e;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){let t={};for(let n of e)t={...t,...n};return t}exports.mergeAll=e;
|
|
2
|
+
//# sourceMappingURL=merge-all.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-all.cjs","names":[],"sources":["../src/merge-all.ts"],"sourcesContent":["import type {\n EmptyObject,\n Merge,\n SharedUnionFields,\n Simplify,\n} from 'type-fest';\nimport type { DisjointUnionFields } from './internal/types/disjoint-union-fields';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NonEmptyArray } from './internal/types/non-empty-array';\nimport type { TupleParts } from './internal/types/tuple-parts';\n\n/**\n * Merge a tuple of object types, where props from later objects override earlier props.\n */\ntype MergeTuple<\n T extends IterableContainer,\n Result = object, // no-op for the first iteration in the successive merges, also infers object as type by default if an empty tuple is used\n> = T extends readonly [infer Head, ...infer Rest]\n ? MergeTuple<Rest, Merge<Result, Head>>\n : Result;\n\n// In the context of a heterogeneous array, the array may not have objects from every type of the union.\n// This means some fields may be missing in the final object, so we make them optional.\n// If there is a non-optional field shared among all members of the union, then we know that if the array is not empty, the field must be present and avoid becoming optional.\n// If the field is already optional, this doesn't really matter.\n// If the array is empty, we know that the loop won't run so we'll just get the empty object.\n// Since we don't know the order of the items in the array, when we merge common fields, we don't know what the final type for the field will be, but we do know that it is one of the many possible types that are available across the members of the union for that field.\n// We represent these possibilities by combining the field's different types across the union members into a union.\ntype MergeUnion<T extends object> = Simplify<\n SharedUnionFields<T> & Partial<DisjointUnionFields<T>>\n>;\n\ntype MergeAll<T extends IterableContainer<object>>\n // determine if it's a tuple or array\n = TupleParts<T> extends { item: never }\n ? T extends readonly []\n ? EmptyObject\n : MergeTuple<T>\n : MergeUnion<T[number]> | EmptyObject;\n\n/**\n * Merges a list of objects into a single object.\n *\n * @param objects - The array of objects.\n * @returns A new object merged with all of the objects in the list. If the list is empty, an empty object is returned.\n * @signature\n * mergeAll(objects)\n * @example\n * mergeAll([{ a: 1, b: 1 }, { b: 2, c: 3 }, { d: 10 }]) // => { a: 1, b: 2, c: 3, d: 10 }\n * mergeAll([]) // => {}\n * @dataFirst\n * @category Array\n */\nexport function mergeAll<T extends object>(\n objects: Readonly<NonEmptyArray<T>>,\n): MergeUnion<T>;\nexport function mergeAll<T extends IterableContainer<object>>(\n objects: T,\n): MergeAll<T>;\nexport function mergeAll(objects: ReadonlyArray<object>): object {\n let out = {};\n\n for (const item of objects) {\n out = { ...out, ...item };\n }\n\n return out;\n}\n"],"mappings":"mEA2DA,SAAgB,EAAS,EAAwC,CAC/D,IAAI,EAAM,EAAE,CAEZ,IAAK,IAAM,KAAQ,EACjB,EAAM,CAAE,GAAG,EAAK,GAAG,EAAM,CAG3B,OAAO"}
|
package/dist/merge-all.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-all.js","names":[],"sources":["../src/merge-all.ts"],"sourcesContent":["import type {\n EmptyObject,\n Merge,\n SharedUnionFields,\n Simplify,\n} from 'type-fest';\nimport type { DisjointUnionFields } from './internal/types/disjoint-union-fields';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NonEmptyArray } from './internal/types/non-empty-array';\nimport type { TupleParts } from './internal/types/tuple-parts';\n\n/**\n * Merge a tuple of object types, where props from later objects override earlier props.\n */\ntype MergeTuple<\n T extends IterableContainer,\n Result = object, // no-op for the first iteration in the successive merges, also infers object as type by default if an empty tuple is used\n> = T extends readonly [infer Head, ...infer Rest]\n ? MergeTuple<Rest, Merge<Result, Head>>\n : Result;\n\n// In the context of a heterogeneous array, the array may not have objects from every type of the union.\n// This means some fields may be missing in the final object, so we make them optional.\n// If there is a non-optional field shared among all members of the union, then we know that if the array is not empty, the field must be present and avoid becoming optional.\n// If the field is already optional, this doesn't really matter.\n// If the array is empty, we know that the loop won't run so we'll just get the empty object.\n// Since we don't know the order of the items in the array, when we merge common fields, we don't know what the final type for the field will be, but we do know that it is one of the many possible types that are available across the members of the union for that field.\n// We represent these possibilities by combining the field's different types across the union members into a union.\ntype MergeUnion<T extends object> = Simplify<\n SharedUnionFields<T> & Partial<DisjointUnionFields<T>>\n>;\n\ntype MergeAll<T extends IterableContainer<object>>\n // determine if it's a tuple or array\n = TupleParts<T> extends { item: never }\n ? T extends readonly []\n ? EmptyObject\n : MergeTuple<T>\n : MergeUnion<T[number]> | EmptyObject;\n\n/**\n * Merges a list of objects into a single object.\n *\n * @param objects - The array of objects.\n * @returns A new object merged with all of the objects in the list. If the list is empty, an empty object is returned.\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"merge-all.js","names":[],"sources":["../src/merge-all.ts"],"sourcesContent":["import type {\n EmptyObject,\n Merge,\n SharedUnionFields,\n Simplify,\n} from 'type-fest';\nimport type { DisjointUnionFields } from './internal/types/disjoint-union-fields';\nimport type { IterableContainer } from './internal/types/iterable-container';\nimport type { NonEmptyArray } from './internal/types/non-empty-array';\nimport type { TupleParts } from './internal/types/tuple-parts';\n\n/**\n * Merge a tuple of object types, where props from later objects override earlier props.\n */\ntype MergeTuple<\n T extends IterableContainer,\n Result = object, // no-op for the first iteration in the successive merges, also infers object as type by default if an empty tuple is used\n> = T extends readonly [infer Head, ...infer Rest]\n ? MergeTuple<Rest, Merge<Result, Head>>\n : Result;\n\n// In the context of a heterogeneous array, the array may not have objects from every type of the union.\n// This means some fields may be missing in the final object, so we make them optional.\n// If there is a non-optional field shared among all members of the union, then we know that if the array is not empty, the field must be present and avoid becoming optional.\n// If the field is already optional, this doesn't really matter.\n// If the array is empty, we know that the loop won't run so we'll just get the empty object.\n// Since we don't know the order of the items in the array, when we merge common fields, we don't know what the final type for the field will be, but we do know that it is one of the many possible types that are available across the members of the union for that field.\n// We represent these possibilities by combining the field's different types across the union members into a union.\ntype MergeUnion<T extends object> = Simplify<\n SharedUnionFields<T> & Partial<DisjointUnionFields<T>>\n>;\n\ntype MergeAll<T extends IterableContainer<object>>\n // determine if it's a tuple or array\n = TupleParts<T> extends { item: never }\n ? T extends readonly []\n ? EmptyObject\n : MergeTuple<T>\n : MergeUnion<T[number]> | EmptyObject;\n\n/**\n * Merges a list of objects into a single object.\n *\n * @param objects - The array of objects.\n * @returns A new object merged with all of the objects in the list. If the list is empty, an empty object is returned.\n * @signature\n * mergeAll(objects)\n * @example\n * mergeAll([{ a: 1, b: 1 }, { b: 2, c: 3 }, { d: 10 }]) // => { a: 1, b: 2, c: 3, d: 10 }\n * mergeAll([]) // => {}\n * @dataFirst\n * @category Array\n */\nexport function mergeAll<T extends object>(\n objects: Readonly<NonEmptyArray<T>>,\n): MergeUnion<T>;\nexport function mergeAll<T extends IterableContainer<object>>(\n objects: T,\n): MergeAll<T>;\nexport function mergeAll(objects: ReadonlyArray<object>): object {\n let out = {};\n\n for (const item of objects) {\n out = { ...out, ...item };\n }\n\n return out;\n}\n"],"mappings":"AA2DA,SAAgB,EAAS,EAAwC,CAC/D,IAAI,EAAM,EAAE,CAEZ,IAAK,IAAM,KAAQ,EACjB,EAAM,CAAE,GAAG,EAAK,GAAG,EAAM,CAG3B,OAAO"}
|
package/dist/merge-deep.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(`./is-plain-object.cjs`);function n(...t){return e.curry(r,t)}function r(e,n){let i={...e,...n};for(let a in n){if(!(a in e))continue;let{[a]:o}=e;if(!t.isPlainObject(o))continue;let{[a]:s}=n;t.isPlainObject(s)&&(i[a]=r(o,s))}return i}exports.mergeDeep=n;
|
|
2
|
+
//# sourceMappingURL=merge-deep.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-deep.cjs","names":["curry","isPlainObject"],"sources":["../src/merge-deep.ts"],"sourcesContent":["import type { MergeDeep } from 'type-fest';\nimport { curry } from './curry';\nimport { isPlainObject } from './is-plain-object';\n\n/**\n * Merges the `source` object into the `destination` object. The merge is similar to performing `{ ...destination, ... source }` (where disjoint values from each object would be copied as-is, and for any overlapping props the value from `source` would be used); But for *each prop* (`p`), if **both** `destination` and `source` have a **plain-object** as a value, the value would be taken as the result of recursively deepMerging them (`result.p === deepMerge(destination.p, source.p)`).\n *\n * @param destination - The object to merge into. In general, this object would have it's values overridden.\n * @param source - The object to merge from. In general, shared keys would be taken from this object.\n * @returns The merged object.\n * @signature\n * mergeDeep(destination, source)\n * @example\n * mergeDeep({ foo: 'bar', x: 1 }, { foo: 'baz', y: 2 }) // => { foo: 'baz', x: 1, y: 2 }\n * @dataFirst\n * @category Object\n */\nexport function mergeDeep<Destination extends object, Source extends object>(\n destination: Destination,\n source: Source,\n): MergeDeep<Destination, Source>;\n\n/**\n * Merges the `source` object into the `destination` object. The merge is similar to performing `{ ...destination, ... source }` (where disjoint values from each object would be copied as-is, and for any overlapping props the value from `source` would be used); But for *each prop* (`p`), if **both** `destination` and `source` have a **plain-object** as a value, the value would be taken as the result of recursively deepMerging them (`result.p === deepMerge(destination.p, source.p)`).\n *\n * @param source - The object to merge from. In general, shared keys would be taken from this object.\n * @returns The merged object.\n * @signature\n * mergeDeep(source)(destination)\n * @example\n * pipe(\n * { foo: 'bar', x: 1 },\n * mergeDeep({ foo: 'baz', y: 2 }),\n * ); // => { foo: 'baz', x: 1, y: 2 }\n * @dataLast\n * @category Object\n */\nexport function mergeDeep<Source extends object>(\n source: Source,\n): <Destination extends object>(\n target: Destination,\n) => MergeDeep<Destination, Source>;\n\nexport function mergeDeep(...args: ReadonlyArray<unknown>): unknown {\n return curry(mergeDeepImplementation, args);\n}\n\nfunction mergeDeepImplementation<\n Destination extends object,\n Source extends object,\n>(destination: Destination, source: Source): MergeDeep<Destination, Source> {\n // At this point the output is already merged, simply not deeply merged.\n const output = { ...destination, ...source } as Record<\n keyof Destination | keyof Source,\n unknown\n >;\n\n // now just scan the output and look for values that should have been deep-merged\n // eslint-disable-next-line no-restricted-syntax\n for (const key in source) {\n if (!(key in destination)) {\n // They don't share this key.\n continue;\n }\n\n const { [key]: destinationValue } = destination;\n if (!isPlainObject(destinationValue)) {\n // The value in destination is not a mergeable object so the value from\n // source (which was already copied in the shallow merge) would be used\n // as-is.\n continue;\n }\n\n const { [key]: sourceValue } = source;\n if (!isPlainObject(sourceValue)) {\n // The value in source is not a mergeable object either, so it will\n // override the object in destination.\n continue;\n }\n\n // Both destination and source have a mergeable object for this key, so we\n // recursively merge them.\n // @ts-expect-error [ts2590] - We build the output object iteratively, I don't think it's possible to improve the types here so that typescript infers this correctly.\n output[key] = mergeDeepImplementation(destinationValue, sourceValue);\n }\n\n // @ts-expect-error [ts2322] - We build the output object iteratively, I don't think it's possible to improve the types here so that typescript infers this correctly.\n return output;\n}\n"],"mappings":"qIA2CA,SAAgB,EAAU,GAAG,EAAuC,CAClE,OAAOA,EAAAA,MAAM,EAAyB,EAAK,CAG7C,SAAS,EAGP,EAA0B,EAAgD,CAE1E,IAAM,EAAS,CAAE,GAAG,EAAa,GAAG,EAAQ,CAO5C,IAAK,IAAM,KAAO,EAAQ,CACxB,GAAI,EAAE,KAAO,GAEX,SAGF,GAAM,EAAG,GAAM,GAAqB,EACpC,GAAI,CAACC,EAAAA,cAAc,EAAiB,CAIlC,SAGF,GAAM,EAAG,GAAM,GAAgB,EAC1BA,EAAAA,cAAc,EAAY,GAS/B,EAAO,GAAO,EAAwB,EAAkB,EAAY,EAItE,OAAO"}
|
package/dist/merge-deep.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";import{isPlainObject as t}from"./is-plain-object.js";function n(...t){return e(r,t)}function r(e,n){let i={...e,...n};for(let a in n){if(!(a in e))continue;let{[a]:o}=e;if(!t(o))continue;let{[a]:s}=n;t(s)&&(i[a]=r(o,s))}return i}export{n as mergeDeep};
|
|
2
2
|
//# sourceMappingURL=merge-deep.js.map
|
package/dist/merge-deep.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-deep.js","names":[],"sources":["../src/merge-deep.ts"],"sourcesContent":["import type { MergeDeep } from 'type-fest';\
|
|
1
|
+
{"version":3,"file":"merge-deep.js","names":[],"sources":["../src/merge-deep.ts"],"sourcesContent":["import type { MergeDeep } from 'type-fest';\nimport { curry } from './curry';\nimport { isPlainObject } from './is-plain-object';\n\n/**\n * Merges the `source` object into the `destination` object. The merge is similar to performing `{ ...destination, ... source }` (where disjoint values from each object would be copied as-is, and for any overlapping props the value from `source` would be used); But for *each prop* (`p`), if **both** `destination` and `source` have a **plain-object** as a value, the value would be taken as the result of recursively deepMerging them (`result.p === deepMerge(destination.p, source.p)`).\n *\n * @param destination - The object to merge into. In general, this object would have it's values overridden.\n * @param source - The object to merge from. In general, shared keys would be taken from this object.\n * @returns The merged object.\n * @signature\n * mergeDeep(destination, source)\n * @example\n * mergeDeep({ foo: 'bar', x: 1 }, { foo: 'baz', y: 2 }) // => { foo: 'baz', x: 1, y: 2 }\n * @dataFirst\n * @category Object\n */\nexport function mergeDeep<Destination extends object, Source extends object>(\n destination: Destination,\n source: Source,\n): MergeDeep<Destination, Source>;\n\n/**\n * Merges the `source` object into the `destination` object. The merge is similar to performing `{ ...destination, ... source }` (where disjoint values from each object would be copied as-is, and for any overlapping props the value from `source` would be used); But for *each prop* (`p`), if **both** `destination` and `source` have a **plain-object** as a value, the value would be taken as the result of recursively deepMerging them (`result.p === deepMerge(destination.p, source.p)`).\n *\n * @param source - The object to merge from. In general, shared keys would be taken from this object.\n * @returns The merged object.\n * @signature\n * mergeDeep(source)(destination)\n * @example\n * pipe(\n * { foo: 'bar', x: 1 },\n * mergeDeep({ foo: 'baz', y: 2 }),\n * ); // => { foo: 'baz', x: 1, y: 2 }\n * @dataLast\n * @category Object\n */\nexport function mergeDeep<Source extends object>(\n source: Source,\n): <Destination extends object>(\n target: Destination,\n) => MergeDeep<Destination, Source>;\n\nexport function mergeDeep(...args: ReadonlyArray<unknown>): unknown {\n return curry(mergeDeepImplementation, args);\n}\n\nfunction mergeDeepImplementation<\n Destination extends object,\n Source extends object,\n>(destination: Destination, source: Source): MergeDeep<Destination, Source> {\n // At this point the output is already merged, simply not deeply merged.\n const output = { ...destination, ...source } as Record<\n keyof Destination | keyof Source,\n unknown\n >;\n\n // now just scan the output and look for values that should have been deep-merged\n // eslint-disable-next-line no-restricted-syntax\n for (const key in source) {\n if (!(key in destination)) {\n // They don't share this key.\n continue;\n }\n\n const { [key]: destinationValue } = destination;\n if (!isPlainObject(destinationValue)) {\n // The value in destination is not a mergeable object so the value from\n // source (which was already copied in the shallow merge) would be used\n // as-is.\n continue;\n }\n\n const { [key]: sourceValue } = source;\n if (!isPlainObject(sourceValue)) {\n // The value in source is not a mergeable object either, so it will\n // override the object in destination.\n continue;\n }\n\n // Both destination and source have a mergeable object for this key, so we\n // recursively merge them.\n // @ts-expect-error [ts2590] - We build the output object iteratively, I don't think it's possible to improve the types here so that typescript infers this correctly.\n output[key] = mergeDeepImplementation(destinationValue, sourceValue);\n }\n\n // @ts-expect-error [ts2322] - We build the output object iteratively, I don't think it's possible to improve the types here so that typescript infers this correctly.\n return output;\n}\n"],"mappings":"wFA2CA,SAAgB,EAAU,GAAG,EAAuC,CAClE,OAAO,EAAM,EAAyB,EAAK,CAG7C,SAAS,EAGP,EAA0B,EAAgD,CAE1E,IAAM,EAAS,CAAE,GAAG,EAAa,GAAG,EAAQ,CAO5C,IAAK,IAAM,KAAO,EAAQ,CACxB,GAAI,EAAE,KAAO,GAEX,SAGF,GAAM,EAAG,GAAM,GAAqB,EACpC,GAAI,CAAC,EAAc,EAAiB,CAIlC,SAGF,GAAM,EAAG,GAAM,GAAgB,EAC1B,EAAc,EAAY,GAS/B,EAAO,GAAO,EAAwB,EAAkB,EAAY,EAItE,OAAO"}
|
package/dist/merge.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){return{...e,...t}}exports.merge=t;
|
|
2
|
+
//# sourceMappingURL=merge.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.cjs","names":["curry"],"sources":["../src/merge.ts"],"sourcesContent":["import type { Merge } from 'type-fest';\nimport { curry } from './curry';\n\n/**\n * Merges two objects into one by combining their properties, effectively\n * creating a new object that incorporates elements from both. The merge\n * operation prioritizes the second object's properties, allowing them to\n * overwrite those from the first object with the same names.\n *\n * Equivalent to `{ ...data, ...source }`.\n *\n * @param data - The destination object, serving as the basis for the merge.\n * Properties from this object are included in the new object, but will be\n * overwritten by properties from the source object with matching keys.\n * @param source - The source object, whose properties will be included in the\n * new object. If properties in this object share keys with properties in the\n * destination object, the values from the source object will be used in the\n * new object.\n * @returns An object fully containing `source`, and any properties from `data`\n * that don't share a name with any property in `source`.\n * @signature\n * merge(data, source)\n * @example\n * merge({ x: 1, y: 2 }, { y: 10, z: 2 }) // => { x: 1, y: 10, z: 2 }\n * @dataFirst\n * @category Object\n */\nexport function merge<T, Source>(data: T, source: Source): Merge<T, Source>;\n\n/**\n * Merges two objects into one by combining their properties, effectively\n * creating a new object that incorporates elements from both. The merge\n * operation prioritizes the second object's properties, allowing them to\n * overwrite those from the first object with the same names.\n *\n * Equivalent to `{ ...data, ...source }`.\n *\n * @param source - The source object, whose properties will be included in the\n * new object. If properties in this object share keys with properties in the\n * destination object, the values from the source object will be used in the\n * new object.\n * @returns An object fully containing `source`, and any properties from `data`\n * that don't share a name with any property in `source`.\n * @signature\n * merge(source)(data)\n * @example\n * pipe(\n * { x: 1, y: 2 },\n * merge({ y: 10, z: 2 }),\n * ); // => { x: 1, y: 10, z: 2 }\n * @dataLast\n * @category Object\n */\nexport function merge<Source>(source: Source): <T>(data: T) => Merge<T, Source>;\n\nexport function merge(...args: ReadonlyArray<unknown>): unknown {\n return curry(mergeImplementation, args);\n}\n\nfunction mergeImplementation<T, Source>(data: T, source: Source): Merge<T, Source> {\n return { ...data, ...source };\n}\n"],"mappings":"kGAuDA,SAAgB,EAAM,GAAG,EAAuC,CAC9D,OAAOA,EAAAA,MAAM,EAAqB,EAAK,CAGzC,SAAS,EAA+B,EAAS,EAAkC,CACjF,MAAO,CAAE,GAAG,EAAM,GAAG,EAAQ"}
|
package/dist/merge.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){return{...e,...t}}export{t as merge};
|
|
2
2
|
//# sourceMappingURL=merge.js.map
|
package/dist/merge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.js","names":[],"sources":["../src/merge.ts"],"sourcesContent":["import type { Merge } from 'type-fest';\
|
|
1
|
+
{"version":3,"file":"merge.js","names":[],"sources":["../src/merge.ts"],"sourcesContent":["import type { Merge } from 'type-fest';\nimport { curry } from './curry';\n\n/**\n * Merges two objects into one by combining their properties, effectively\n * creating a new object that incorporates elements from both. The merge\n * operation prioritizes the second object's properties, allowing them to\n * overwrite those from the first object with the same names.\n *\n * Equivalent to `{ ...data, ...source }`.\n *\n * @param data - The destination object, serving as the basis for the merge.\n * Properties from this object are included in the new object, but will be\n * overwritten by properties from the source object with matching keys.\n * @param source - The source object, whose properties will be included in the\n * new object. If properties in this object share keys with properties in the\n * destination object, the values from the source object will be used in the\n * new object.\n * @returns An object fully containing `source`, and any properties from `data`\n * that don't share a name with any property in `source`.\n * @signature\n * merge(data, source)\n * @example\n * merge({ x: 1, y: 2 }, { y: 10, z: 2 }) // => { x: 1, y: 10, z: 2 }\n * @dataFirst\n * @category Object\n */\nexport function merge<T, Source>(data: T, source: Source): Merge<T, Source>;\n\n/**\n * Merges two objects into one by combining their properties, effectively\n * creating a new object that incorporates elements from both. The merge\n * operation prioritizes the second object's properties, allowing them to\n * overwrite those from the first object with the same names.\n *\n * Equivalent to `{ ...data, ...source }`.\n *\n * @param source - The source object, whose properties will be included in the\n * new object. If properties in this object share keys with properties in the\n * destination object, the values from the source object will be used in the\n * new object.\n * @returns An object fully containing `source`, and any properties from `data`\n * that don't share a name with any property in `source`.\n * @signature\n * merge(source)(data)\n * @example\n * pipe(\n * { x: 1, y: 2 },\n * merge({ y: 10, z: 2 }),\n * ); // => { x: 1, y: 10, z: 2 }\n * @dataLast\n * @category Object\n */\nexport function merge<Source>(source: Source): <T>(data: T) => Merge<T, Source>;\n\nexport function merge(...args: ReadonlyArray<unknown>): unknown {\n return curry(mergeImplementation, args);\n}\n\nfunction mergeImplementation<T, Source>(data: T, source: Source): Merge<T, Source> {\n return { ...data, ...source };\n}\n"],"mappings":"mCAuDA,SAAgB,EAAM,GAAG,EAAuC,CAC9D,OAAO,EAAM,EAAqB,EAAK,CAGzC,SAAS,EAA+B,EAAS,EAAkC,CACjF,MAAO,CAAE,GAAG,EAAM,GAAG,EAAQ"}
|
package/dist/multiply.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){return e*t}exports.multiply=t;
|
|
2
|
+
//# sourceMappingURL=multiply.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiply.cjs","names":["curry"],"sources":["../src/multiply.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Multiplies two numbers.\n *\n * @param value - The number.\n * @param multiplicand - The number to multiply the value by.\n * @signature\n * multiply(value, multiplicand);\n * @example\n * multiply(3, 4) // => 12\n * reduce([1, 2, 3, 4], multiply, 1) // => 24\n * @dataFirst\n * @category Number\n */\nexport function multiply(value: bigint, multiplicand: bigint): bigint;\nexport function multiply(value: number, multiplicand: number): number;\n\n/**\n * Multiplies two numbers.\n *\n * @param multiplicand - The number to multiply the value by.\n * @signature\n * multiply(multiplicand)(value);\n * @example\n * multiply(4)(3) // => 12\n * map([1, 2, 3, 4], multiply(2)) // => [2, 4, 6, 8]\n * @dataLast\n * @category Number\n */\nexport function multiply(multiplicand: bigint): (value: bigint) => bigint;\nexport function multiply(multiplicand: number): (value: number) => number;\n\nexport function multiply(...args: ReadonlyArray<unknown>): unknown {\n return curry(multiplyImplementation, args);\n}\n\n// The implementation only uses `number` types, but that's just because it's\n// hard to tell typescript that both value and multiplicand would be of the same\n// type.\nfunction multiplyImplementation(value: number, multiplicand: number): number {\n return value * multiplicand;\n}\n"],"mappings":"kGAiCA,SAAgB,EAAS,GAAG,EAAuC,CACjE,OAAOA,EAAAA,MAAM,EAAwB,EAAK,CAM5C,SAAS,EAAuB,EAAe,EAA8B,CAC3E,OAAO,EAAQ"}
|
package/dist/multiply.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){return e*t}export{t as multiply};
|
|
2
2
|
//# sourceMappingURL=multiply.js.map
|
package/dist/multiply.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiply.js","names":[],"sources":["../src/multiply.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Multiplies two numbers.\n *\n * @param value - The number.\n * @param multiplicand - The number to multiply the value by.\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"multiply.js","names":[],"sources":["../src/multiply.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Multiplies two numbers.\n *\n * @param value - The number.\n * @param multiplicand - The number to multiply the value by.\n * @signature\n * multiply(value, multiplicand);\n * @example\n * multiply(3, 4) // => 12\n * reduce([1, 2, 3, 4], multiply, 1) // => 24\n * @dataFirst\n * @category Number\n */\nexport function multiply(value: bigint, multiplicand: bigint): bigint;\nexport function multiply(value: number, multiplicand: number): number;\n\n/**\n * Multiplies two numbers.\n *\n * @param multiplicand - The number to multiply the value by.\n * @signature\n * multiply(multiplicand)(value);\n * @example\n * multiply(4)(3) // => 12\n * map([1, 2, 3, 4], multiply(2)) // => [2, 4, 6, 8]\n * @dataLast\n * @category Number\n */\nexport function multiply(multiplicand: bigint): (value: bigint) => bigint;\nexport function multiply(multiplicand: number): (value: number) => number;\n\nexport function multiply(...args: ReadonlyArray<unknown>): unknown {\n return curry(multiplyImplementation, args);\n}\n\n// The implementation only uses `number` types, but that's just because it's\n// hard to tell typescript that both value and multiplicand would be of the same\n// type.\nfunction multiplyImplementation(value: number, multiplicand: number): number {\n return value * multiplicand;\n}\n"],"mappings":"mCAiCA,SAAgB,EAAS,GAAG,EAAuC,CACjE,OAAO,EAAM,EAAwB,EAAK,CAM5C,SAAS,EAAuB,EAAe,EAA8B,CAC3E,OAAO,EAAQ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./curry-order-rules-BLyCSMdZ.js";import{t}from"./swap-in-place-BzNaxwB3.js";function n(e,t,n){return t<0||t>=e.length?void 0:r([...e],0,e.length-1,t,n)}function r(e,t,n,a,o){if(t===n)return e[t];let s=i(e,t,n,o);return a===s?e[a]:r(e,a<s?t:s+1,a<s?s-1:n,a,o)}function i(e,n,r,i){let a=e[r],o=n;for(let s=n;s<r;s++)i(e[s],a)<0&&(t(e,o,s),o+=1);return t(e,o,r),o}function a(...t){return e(o,t)}function o(e,t,r){return n(e,r>=0?r:e.length+r,t)}export{a as t};
|
|
2
|
+
//# sourceMappingURL=nth-by-DhfNV5xd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nth-by-DhfNV5xd.js","names":[],"sources":["../src/internal/quick-select.ts","../src/nth-by.ts"],"sourcesContent":["/**\n * A simple implementation of the *QuickSelect* algorithm.\n *\n * @see https://en.wikipedia.org/wiki/Quickselect\n */\n\nimport type { CompareFunction } from './types/compare-function';\nimport { swapInPlace } from './swap-in-place';\n\n/**\n * Perform QuickSelect on the given data. Notice that the data would be cloned\n * shallowly so that it could be mutated in-place, and then discarded once the\n * algorithm is done. This means that running this function multiple times on\n * the same array might be slower then sorting the array before.\n *\n * @param data - The data to perform the selection on.\n * @param index - The index of the item we are looking for.\n * @param compareFn - The compare function to use for sorting.\n * @returns The item at the given index, or `undefined` if the index is out-of-\n * bounds.\n */\nexport function quickSelect<T>(data: ReadonlyArray<T>, index: number, compareFn: CompareFunction<T>): T | undefined {\n return index < 0 || index >= data.length\n ? // Quickselect doesn't work with out-of-bound indices\n undefined\n : quickSelectImplementation(\n // We need to clone the array because quickSelect mutates it in-place.\n [...data],\n 0 /* left */,\n data.length - 1 /* right */,\n index,\n compareFn,\n );\n}\n\n/**\n * The actual implementation, called recursively.\n */\nfunction quickSelectImplementation<T>(\n data: Array<T>,\n left: number,\n right: number,\n index: number,\n compareFn: CompareFunction<T>,\n): T {\n if (left === right) {\n return data[left]!;\n }\n\n const pivotIndex = partition(data, left, right, compareFn);\n\n return index === pivotIndex\n ? // Once a pivot is chosen it's location is final, so if it matches the\n // index we found out item!\n data[index]!\n : quickSelectImplementation(\n data,\n // We continue by recursing into the partition where index would be\n index < pivotIndex ? left : pivotIndex + 1,\n index < pivotIndex ? pivotIndex - 1 : right,\n index,\n compareFn,\n );\n}\n\nfunction partition<T>(\n data: Array<T>,\n left: number,\n right: number,\n compareFn: CompareFunction<T>,\n): number {\n const pivot = data[right]!;\n\n let i = left;\n for (let j = left; j < right; j++) {\n if (compareFn(data[j]!, pivot) < 0) {\n // Move items smaller then the pivot to the start of the array.\n swapInPlace(data, i, j);\n i += 1;\n }\n }\n\n swapInPlace(data, i, right);\n\n // The location of the pivot by the end of the partition function.\n return i;\n}\n","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 {\n curryOrderRulesWithArgument,\n\n} from './internal/curry-order-rules';\nimport { quickSelect } from './internal/quick-select';\n\n/**\n * Retrieves the element that would be at the given index if the array were sorted according to specified rules. This function uses the *QuickSelect* algorithm running at an average complexity of *O(n)*. Semantically it is equivalent to `sortBy(data, ...rules).at(index)` which would run at *O(nlogn)*.\n *\n * See also `firstBy` which provides an even more efficient algorithm and a stricter return type, but only for `index === 0`. See `takeFirstBy` to get all the elements up to and including `index`.\n *\n * @param data - The input array.\n * @param index - The zero-based index for selecting the element in the sorted order. Negative indices count backwards from the end.\n * @param rules - A variadic array of order rules defining the sorting criteria. Each order rule is a projection function that extracts a comparable value from the data. Sorting is based on these extracted values using the native `<` and `>` operators. Earlier rules take precedence over later ones. Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns The element at the specified index in the sorted order, or `undefined` if the index is out of bounds.\n * @signature\n * nthBy(data, index, ...rules);\n * @example\n * nthBy([2,1,4,5,3,], 2, identity()); // => 3\n * @dataFirst\n * @category Array\n */\nexport function nthBy<T extends IterableContainer>(\n data: T,\n index: number,\n ...rules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): T[number] | undefined;\n\n/**\n * Retrieves the element that would be at the given index if the array were sorted according to specified rules. This function uses the *QuickSelect* algorithm running at an average complexity of *O(n)*. Semantically it is equivalent to `sortBy(data, ...rules)[index]` which would run at *O(nlogn)*.\n *\n * See also `firstBy` which provides an even more efficient algorithm and a stricter return type, but only for `index === 0`. See `takeFirstBy` to get all the elements up to and including `index`.\n *\n * @param index - The zero-based index for selecting the element in the sorted order. Negative indices count backwards from the end.\n * @param rules - A variadic array of order rules defining the sorting criteria. Each order rule is a projection function that extracts a comparable value from the data. Sorting is based on these extracted values using the native `<` and `>` operators. Earlier rules take precedence over later ones. Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns The element at the specified index in the sorted order, or `undefined` if the index is out of bounds.\n * @signature\n * nthBy(index, ...rules)(data);\n * @example\n * pipe([2,1,4,5,3,], nthBy(2, identity())); // => 3\n * @dataLast\n * @category Array\n */\nexport function nthBy<T extends IterableContainer>(\n index: number,\n ...rules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): (data: T) => T[number] | undefined;\n\nexport function nthBy(...args: ReadonlyArray<unknown>): unknown {\n return curryOrderRulesWithArgument(nthByImplementation, args);\n}\n\nfunction nthByImplementation<T>(data: ReadonlyArray<T>, compareFn: CompareFunction<T>, index: number): T | undefined {\n return quickSelect(\n data,\n // Allow negative indices gracefully\n index >= 0 ? index : data.length + index,\n compareFn,\n );\n}\n"],"mappings":"+FAqBA,SAAgB,EAAe,EAAwB,EAAe,EAA8C,CAClH,OAAO,EAAQ,GAAK,GAAS,EAAK,OAEhC,IAAA,GACE,EAEE,CAAC,GAAG,EAAK,CACT,EACA,EAAK,OAAS,EACd,EACA,EACD,CAMP,SAAS,EACP,EACA,EACA,EACA,EACA,EACG,CACH,GAAI,IAAS,EACX,OAAO,EAAK,GAGd,IAAM,EAAa,EAAU,EAAM,EAAM,EAAO,EAAU,CAE1D,OAAO,IAAU,EAGf,EAAK,GACH,EACE,EAEA,EAAQ,EAAa,EAAO,EAAa,EACzC,EAAQ,EAAa,EAAa,EAAI,EACtC,EACA,EACD,CAGP,SAAS,EACP,EACA,EACA,EACA,EACQ,CACR,IAAM,EAAQ,EAAK,GAEf,EAAI,EACR,IAAK,IAAI,EAAI,EAAM,EAAI,EAAO,IACxB,EAAU,EAAK,GAAK,EAAM,CAAG,IAE/B,EAAY,EAAM,EAAG,EAAE,CACvB,GAAK,GAOT,OAHA,EAAY,EAAM,EAAG,EAAM,CAGpB,ECjCT,SAAgB,EAAM,GAAG,EAAuC,CAC9D,OAAO,EAA4B,EAAqB,EAAK,CAG/D,SAAS,EAAuB,EAAwB,EAA+B,EAA8B,CACnH,OAAO,EACL,EAEA,GAAS,EAAI,EAAQ,EAAK,OAAS,EACnC,EACD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require(`./curry-order-rules-DsJSy3gX.cjs`),t=require(`./swap-in-place-D1vasegg.cjs`);function n(e,t,n){return t<0||t>=e.length?void 0:r([...e],0,e.length-1,t,n)}function r(e,t,n,a,o){if(t===n)return e[t];let s=i(e,t,n,o);return a===s?e[a]:r(e,a<s?t:s+1,a<s?s-1:n,a,o)}function i(e,n,r,i){let a=e[r],o=n;for(let s=n;s<r;s++)i(e[s],a)<0&&(t.t(e,o,s),o+=1);return t.t(e,o,r),o}function a(...t){return e.n(o,t)}function o(e,t,r){return n(e,r>=0?r:e.length+r,t)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
|
|
2
|
+
//# sourceMappingURL=nth-by-zZ3RM-mR.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nth-by-zZ3RM-mR.cjs","names":["curryOrderRulesWithArgument"],"sources":["../src/internal/quick-select.ts","../src/nth-by.ts"],"sourcesContent":["/**\n * A simple implementation of the *QuickSelect* algorithm.\n *\n * @see https://en.wikipedia.org/wiki/Quickselect\n */\n\nimport type { CompareFunction } from './types/compare-function';\nimport { swapInPlace } from './swap-in-place';\n\n/**\n * Perform QuickSelect on the given data. Notice that the data would be cloned\n * shallowly so that it could be mutated in-place, and then discarded once the\n * algorithm is done. This means that running this function multiple times on\n * the same array might be slower then sorting the array before.\n *\n * @param data - The data to perform the selection on.\n * @param index - The index of the item we are looking for.\n * @param compareFn - The compare function to use for sorting.\n * @returns The item at the given index, or `undefined` if the index is out-of-\n * bounds.\n */\nexport function quickSelect<T>(data: ReadonlyArray<T>, index: number, compareFn: CompareFunction<T>): T | undefined {\n return index < 0 || index >= data.length\n ? // Quickselect doesn't work with out-of-bound indices\n undefined\n : quickSelectImplementation(\n // We need to clone the array because quickSelect mutates it in-place.\n [...data],\n 0 /* left */,\n data.length - 1 /* right */,\n index,\n compareFn,\n );\n}\n\n/**\n * The actual implementation, called recursively.\n */\nfunction quickSelectImplementation<T>(\n data: Array<T>,\n left: number,\n right: number,\n index: number,\n compareFn: CompareFunction<T>,\n): T {\n if (left === right) {\n return data[left]!;\n }\n\n const pivotIndex = partition(data, left, right, compareFn);\n\n return index === pivotIndex\n ? // Once a pivot is chosen it's location is final, so if it matches the\n // index we found out item!\n data[index]!\n : quickSelectImplementation(\n data,\n // We continue by recursing into the partition where index would be\n index < pivotIndex ? left : pivotIndex + 1,\n index < pivotIndex ? pivotIndex - 1 : right,\n index,\n compareFn,\n );\n}\n\nfunction partition<T>(\n data: Array<T>,\n left: number,\n right: number,\n compareFn: CompareFunction<T>,\n): number {\n const pivot = data[right]!;\n\n let i = left;\n for (let j = left; j < right; j++) {\n if (compareFn(data[j]!, pivot) < 0) {\n // Move items smaller then the pivot to the start of the array.\n swapInPlace(data, i, j);\n i += 1;\n }\n }\n\n swapInPlace(data, i, right);\n\n // The location of the pivot by the end of the partition function.\n return i;\n}\n","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 {\n curryOrderRulesWithArgument,\n\n} from './internal/curry-order-rules';\nimport { quickSelect } from './internal/quick-select';\n\n/**\n * Retrieves the element that would be at the given index if the array were sorted according to specified rules. This function uses the *QuickSelect* algorithm running at an average complexity of *O(n)*. Semantically it is equivalent to `sortBy(data, ...rules).at(index)` which would run at *O(nlogn)*.\n *\n * See also `firstBy` which provides an even more efficient algorithm and a stricter return type, but only for `index === 0`. See `takeFirstBy` to get all the elements up to and including `index`.\n *\n * @param data - The input array.\n * @param index - The zero-based index for selecting the element in the sorted order. Negative indices count backwards from the end.\n * @param rules - A variadic array of order rules defining the sorting criteria. Each order rule is a projection function that extracts a comparable value from the data. Sorting is based on these extracted values using the native `<` and `>` operators. Earlier rules take precedence over later ones. Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns The element at the specified index in the sorted order, or `undefined` if the index is out of bounds.\n * @signature\n * nthBy(data, index, ...rules);\n * @example\n * nthBy([2,1,4,5,3,], 2, identity()); // => 3\n * @dataFirst\n * @category Array\n */\nexport function nthBy<T extends IterableContainer>(\n data: T,\n index: number,\n ...rules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): T[number] | undefined;\n\n/**\n * Retrieves the element that would be at the given index if the array were sorted according to specified rules. This function uses the *QuickSelect* algorithm running at an average complexity of *O(n)*. Semantically it is equivalent to `sortBy(data, ...rules)[index]` which would run at *O(nlogn)*.\n *\n * See also `firstBy` which provides an even more efficient algorithm and a stricter return type, but only for `index === 0`. See `takeFirstBy` to get all the elements up to and including `index`.\n *\n * @param index - The zero-based index for selecting the element in the sorted order. Negative indices count backwards from the end.\n * @param rules - A variadic array of order rules defining the sorting criteria. Each order rule is a projection function that extracts a comparable value from the data. Sorting is based on these extracted values using the native `<` and `>` operators. Earlier rules take precedence over later ones. Use the syntax `[projection, \"desc\"]` for descending order.\n * @returns The element at the specified index in the sorted order, or `undefined` if the index is out of bounds.\n * @signature\n * nthBy(index, ...rules)(data);\n * @example\n * pipe([2,1,4,5,3,], nthBy(2, identity())); // => 3\n * @dataLast\n * @category Array\n */\nexport function nthBy<T extends IterableContainer>(\n index: number,\n ...rules: Readonly<NonEmptyArray<OrderRule<T[number]>>>\n): (data: T) => T[number] | undefined;\n\nexport function nthBy(...args: ReadonlyArray<unknown>): unknown {\n return curryOrderRulesWithArgument(nthByImplementation, args);\n}\n\nfunction nthByImplementation<T>(data: ReadonlyArray<T>, compareFn: CompareFunction<T>, index: number): T | undefined {\n return quickSelect(\n data,\n // Allow negative indices gracefully\n index >= 0 ? index : data.length + index,\n compareFn,\n );\n}\n"],"mappings":"8FAqBA,SAAgB,EAAe,EAAwB,EAAe,EAA8C,CAClH,OAAO,EAAQ,GAAK,GAAS,EAAK,OAEhC,IAAA,GACE,EAEE,CAAC,GAAG,EAAK,CACT,EACA,EAAK,OAAS,EACd,EACA,EACD,CAMP,SAAS,EACP,EACA,EACA,EACA,EACA,EACG,CACH,GAAI,IAAS,EACX,OAAO,EAAK,GAGd,IAAM,EAAa,EAAU,EAAM,EAAM,EAAO,EAAU,CAE1D,OAAO,IAAU,EAGf,EAAK,GACH,EACE,EAEA,EAAQ,EAAa,EAAO,EAAa,EACzC,EAAQ,EAAa,EAAa,EAAI,EACtC,EACA,EACD,CAGP,SAAS,EACP,EACA,EACA,EACA,EACQ,CACR,IAAM,EAAQ,EAAK,GAEf,EAAI,EACR,IAAK,IAAI,EAAI,EAAM,EAAI,EAAO,IACxB,EAAU,EAAK,GAAK,EAAM,CAAG,IAE/B,EAAA,EAAY,EAAM,EAAG,EAAE,CACvB,GAAK,GAOT,OAHA,EAAA,EAAY,EAAM,EAAG,EAAM,CAGpB,ECjCT,SAAgB,EAAM,GAAG,EAAuC,CAC9D,OAAOA,EAAAA,EAA4B,EAAqB,EAAK,CAG/D,SAAS,EAAuB,EAAwB,EAA+B,EAA8B,CACnH,OAAO,EACL,EAEA,GAAS,EAAI,EAAQ,EAAK,OAAS,EACnC,EACD"}
|
package/dist/nth-by.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./nth-by-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./nth-by-zZ3RM-mR.cjs`);exports.nthBy=e.t;
|
package/dist/nth-by.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./nth-by-
|
|
1
|
+
import{t as e}from"./nth-by-DhfNV5xd.js";export{e as nthBy};
|
package/dist/obj-of.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){return{[t]:e}}exports.objOf=t;
|
|
2
|
+
//# sourceMappingURL=obj-of.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"obj-of.cjs","names":["curry"],"sources":["../src/obj-of.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Creates an object containing a single `key:value` pair.\n *\n * @param value - The object value.\n * @param key - The property name.\n * @signature\n * objOf(value, key)\n * @example\n * objOf(10, 'a') // => { a: 10 }\n * @category Object\n */\nexport function objOf<T, K extends string>(value: T, key: K): Record<K, T>;\n\n/**\n * Creates an object containing a single `key:value` pair.\n *\n * @param key - The property name.\n * @signature\n * objOf(key)(value)\n * @example\n * pipe(10, objOf('a')) // => { a: 10 }\n * @category Object\n */\nexport function objOf<T, K extends string>(key: K): (value: T) => Record<K, T>;\n\nexport function objOf(...args: ReadonlyArray<unknown>): unknown {\n return curry(objOfImplementation, args);\n}\n\nfunction objOfImplementation<T, K extends string>(value: T, key: K): Record<K, T> {\n return { [key]: value };\n}\n"],"mappings":"kGA2BA,SAAgB,EAAM,GAAG,EAAuC,CAC9D,OAAOA,EAAAA,MAAM,EAAqB,EAAK,CAGzC,SAAS,EAAyC,EAAU,EAAsB,CAChF,MAAO,EAAG,GAAM,EAAO"}
|
package/dist/obj-of.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){return{[t]:e}}export{t as objOf};
|
|
2
2
|
//# sourceMappingURL=obj-of.js.map
|
package/dist/obj-of.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"obj-of.js","names":[],"sources":["../src/obj-of.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Creates an object containing a single `key:value` pair.\n *\n * @param value - The object value.\n * @param key - The property name.\n * @signature\n *
|
|
1
|
+
{"version":3,"file":"obj-of.js","names":[],"sources":["../src/obj-of.ts"],"sourcesContent":["import { curry } from './curry';\n\n/**\n * Creates an object containing a single `key:value` pair.\n *\n * @param value - The object value.\n * @param key - The property name.\n * @signature\n * objOf(value, key)\n * @example\n * objOf(10, 'a') // => { a: 10 }\n * @category Object\n */\nexport function objOf<T, K extends string>(value: T, key: K): Record<K, T>;\n\n/**\n * Creates an object containing a single `key:value` pair.\n *\n * @param key - The property name.\n * @signature\n * objOf(key)(value)\n * @example\n * pipe(10, objOf('a')) // => { a: 10 }\n * @category Object\n */\nexport function objOf<T, K extends string>(key: K): (value: T) => Record<K, T>;\n\nexport function objOf(...args: ReadonlyArray<unknown>): unknown {\n return curry(objOfImplementation, args);\n}\n\nfunction objOfImplementation<T, K extends string>(value: T, key: K): Record<K, T> {\n return { [key]: value };\n}\n"],"mappings":"mCA2BA,SAAgB,EAAM,GAAG,EAAuC,CAC9D,OAAO,EAAM,EAAqB,EAAK,CAGzC,SAAS,EAAyC,EAAU,EAAsB,CAChF,MAAO,EAAG,GAAM,EAAO"}
|
package/dist/omit-by.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};for(let[r,i]of Object.entries(n))t(i,r,e)&&delete n[r];return n}exports.omitBy=t;
|
|
2
|
+
//# sourceMappingURL=omit-by.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omit-by.cjs","names":["curry"],"sources":["../src/omit-by.ts"],"sourcesContent":["import type { IsNever, Or, Simplify } from 'type-fest';\nimport type { EnumerableStringKeyOf } from './internal/types/enumerable-string-key-of';\nimport type { EnumerableStringKeyedValueOf } from './internal/types/enumerable-string-keyed-value-of';\nimport type { IsBoundedRecord } from './internal/types/is-bounded-record';\nimport { curry } from './curry';\n\n// Symbols are not passed to the predicate (because they can't be enumerated\n// with the `Object.entries` function) and the output object is built from a\n// shallow copy of the input; meaning symbols would just be passed through as-\n// is.\ntype PickSymbolKeys<T extends object> = {\n -readonly [P in keyof T as P extends symbol ? P : never]: T[P];\n};\n\n// When we don't use a type-predicate we can't say anything about what props\n// would be omitted from the output, so we need to assume any of them could be\n// filtered out. This means that we effectively make all (enumerable) keys\n// optional.\ntype PartialEnumerableKeys<T extends object>\n // `extends unknown` is always going to be the case and is used to convert any\n // union into a [distributive conditional type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).\n = T extends unknown\n ? Simplify<\n IsBoundedRecord<T> extends true ? PickSymbolKeys<T> & {\n -readonly [P in keyof T as P extends symbol\n ? never\n : P]?: Required<T>[P];\n }\n : // This is the type you'd get from doing:\n // `Object.fromEntries(Object.entries(x))`.\n Record<EnumerableStringKeyOf<T>, EnumerableStringKeyedValueOf<T>>\n >\n : never;\n\n// When the predicate is a type-guard we have more information to work with when\n// constructing the type of the output object. We can safely remove any property\n// which value would always be true for the predicate, AND we can also\n// assume that properties that are rejected by the predicate perfectly would\n// **always** show up in the output object. Hence to build the output object we\n// need to build and merge 2 output objects: One for the properties which have a\n// value of at type that would always yield a `false` result from the predicate,\n// these are the \"matches\", which would not change the \"optionality\" of the\n// input object's props, and one for partial matches which would also make the\n// props optional (as they could have a value that would be filtered out).\ntype PartialEnumerableKeysNarrowed<T extends object, S> = Simplify<\n ExactProps<T, S> & PartialProps<T, S> & PickSymbolKeys<T>\n>;\n\n// The exact case, props here would always be part of the output object\ntype ExactProps<T, S> = {\n -readonly [P in keyof T as IsExactProp<T, P, S> extends true\n ? P\n : never]: Exclude<T[P], S>;\n};\n\n// The partial case, props here might be part of the output object, but might\n// not be, hence they are optional.\ntype PartialProps<T, S> = {\n -readonly [P in keyof T as IsPartialProp<T, P, S> extends true\n ? P\n : never]?: Exclude<T[P], S>;\n};\n\n// If the input object's value type extends itself when the type-guard is\n// excluded from it we can safely assume that the predicate would always return\n// `false` for any value of that property.\ntype IsExactProp<T, P extends keyof T, S> = P extends symbol\n ? // Symbols are passed through via the PickSymbolKeys type\n false\n : T[P] extends Exclude<T[P], S>\n ? S extends T[P]\n ? // If S extends the T[P] it means the type the predicate is narrowing to\n // can't narrow the rejected value any further, so we can't say what\n // would happen for a concrete value in runtime (e.g. if T[P] is\n // `number` and S is `1`: `Exclude<number, 1> === number`.\n false\n : true\n : false;\n\n// ...and if the input object's value type isn't an exact match, but still has\n// some partial match (i.g. the extracted type-guard isn't completely disjoint)\n// then we can assume that the property can sometimes return true, and sometimes\n// false when passed to the predicate, hence it should be optional in the\n// output.\ntype IsPartialProp<T, P extends keyof T, S> = P extends symbol\n ? // Symbols are passed through via the PickSymbolKeys type\n false\n : Or<IsExactProp<T, P, S>, IsNever<Exclude<Required<T>[P], S>>> extends true\n ? false\n : true;\n\n/**\n * Creates a shallow copy of the data, and then removes any keys that the\n * predicate rejects. Symbol keys are not passed to the predicate and would be\n * passed through to the output as-is.\n *\n * See `pickBy` for a complementary function which starts with an empty object\n * and adds the entries that the predicate accepts. Because it is additive,\n * symbol keys will not be passed through to the output object.\n *\n * @param data - The target object.\n * @param predicate - A function that takes the value, key, and the data itself\n * and returns `true` if the entry shouldn't be part of the output object, or\n * `false` to keep it. If the function is a type-guard on the value the output\n * type would be narrowed accordingly.\n * @returns A shallow copy of the input object with the rejected entries\n * removed.\n * @signature omitBy(data, predicate)\n * @example\n * omitBy({a: 1, b: 2, A: 3, B: 4}, (val, key) => key.toUpperCase() === key) // => {a: 1, b: 2}\n * @dataFirst\n * @category Object\n */\nexport function omitBy<\n T extends object,\n S extends EnumerableStringKeyedValueOf<T>,\n>(\n data: T,\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => value is S,\n): PartialEnumerableKeysNarrowed<T, S>;\nexport function omitBy<T extends object>(\n data: T,\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => boolean,\n): PartialEnumerableKeys<T>;\n\n/**\n * Returns a partial copy of an object omitting the keys matching predicate.\n *\n * @param predicate - The predicate.\n * @signature omitBy(fn)(object)\n * @example\n * omitBy((val, key) => key.toUpperCase() === key)({a: 1, b: 2, A: 3, B: 4}) // => {a: 1, b: 2}\n * @dataLast\n * @category Object\n */\nexport function omitBy<\n T extends object,\n S extends EnumerableStringKeyedValueOf<T>,\n>(\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => value is S,\n): (data: T) => PartialEnumerableKeysNarrowed<T, S>;\nexport function omitBy<T extends object>(\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => boolean,\n): (data: T) => PartialEnumerableKeys<T>;\n\nexport function omitBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(omitByImplementation, args);\n}\n\nfunction omitByImplementation<T extends object>(\n data: T,\n predicate: (value: unknown, key: string, data: T) => boolean,\n): Record<string, unknown> {\n const out: Partial<Record<string, unknown>> = { ...data };\n\n for (const [key, value] of Object.entries(out)) {\n if (predicate(value, key, data)) {\n // eslint-disable-next-line ts/no-dynamic-delete -- This is the best way to do it!\n delete out[key];\n }\n }\n\n return out;\n}\n"],"mappings":"kGAiKA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAOA,EAAAA,MAAM,EAAsB,EAAK,CAG1C,SAAS,EACP,EACA,EACyB,CACzB,IAAM,EAAwC,CAAE,GAAG,EAAM,CAEzD,IAAK,GAAM,CAAC,EAAK,KAAU,OAAO,QAAQ,EAAI,CACxC,EAAU,EAAO,EAAK,EAAK,EAE7B,OAAO,EAAI,GAIf,OAAO"}
|
package/dist/omit-by.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};for(let[r,i]of Object.entries(n))t(i,r,e)&&delete n[r];return n}export{t as omitBy};
|
|
2
2
|
//# sourceMappingURL=omit-by.js.map
|
package/dist/omit-by.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omit-by.js","names":[
|
|
1
|
+
{"version":3,"file":"omit-by.js","names":[],"sources":["../src/omit-by.ts"],"sourcesContent":["import type { IsNever, Or, Simplify } from 'type-fest';\nimport type { EnumerableStringKeyOf } from './internal/types/enumerable-string-key-of';\nimport type { EnumerableStringKeyedValueOf } from './internal/types/enumerable-string-keyed-value-of';\nimport type { IsBoundedRecord } from './internal/types/is-bounded-record';\nimport { curry } from './curry';\n\n// Symbols are not passed to the predicate (because they can't be enumerated\n// with the `Object.entries` function) and the output object is built from a\n// shallow copy of the input; meaning symbols would just be passed through as-\n// is.\ntype PickSymbolKeys<T extends object> = {\n -readonly [P in keyof T as P extends symbol ? P : never]: T[P];\n};\n\n// When we don't use a type-predicate we can't say anything about what props\n// would be omitted from the output, so we need to assume any of them could be\n// filtered out. This means that we effectively make all (enumerable) keys\n// optional.\ntype PartialEnumerableKeys<T extends object>\n // `extends unknown` is always going to be the case and is used to convert any\n // union into a [distributive conditional type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).\n = T extends unknown\n ? Simplify<\n IsBoundedRecord<T> extends true ? PickSymbolKeys<T> & {\n -readonly [P in keyof T as P extends symbol\n ? never\n : P]?: Required<T>[P];\n }\n : // This is the type you'd get from doing:\n // `Object.fromEntries(Object.entries(x))`.\n Record<EnumerableStringKeyOf<T>, EnumerableStringKeyedValueOf<T>>\n >\n : never;\n\n// When the predicate is a type-guard we have more information to work with when\n// constructing the type of the output object. We can safely remove any property\n// which value would always be true for the predicate, AND we can also\n// assume that properties that are rejected by the predicate perfectly would\n// **always** show up in the output object. Hence to build the output object we\n// need to build and merge 2 output objects: One for the properties which have a\n// value of at type that would always yield a `false` result from the predicate,\n// these are the \"matches\", which would not change the \"optionality\" of the\n// input object's props, and one for partial matches which would also make the\n// props optional (as they could have a value that would be filtered out).\ntype PartialEnumerableKeysNarrowed<T extends object, S> = Simplify<\n ExactProps<T, S> & PartialProps<T, S> & PickSymbolKeys<T>\n>;\n\n// The exact case, props here would always be part of the output object\ntype ExactProps<T, S> = {\n -readonly [P in keyof T as IsExactProp<T, P, S> extends true\n ? P\n : never]: Exclude<T[P], S>;\n};\n\n// The partial case, props here might be part of the output object, but might\n// not be, hence they are optional.\ntype PartialProps<T, S> = {\n -readonly [P in keyof T as IsPartialProp<T, P, S> extends true\n ? P\n : never]?: Exclude<T[P], S>;\n};\n\n// If the input object's value type extends itself when the type-guard is\n// excluded from it we can safely assume that the predicate would always return\n// `false` for any value of that property.\ntype IsExactProp<T, P extends keyof T, S> = P extends symbol\n ? // Symbols are passed through via the PickSymbolKeys type\n false\n : T[P] extends Exclude<T[P], S>\n ? S extends T[P]\n ? // If S extends the T[P] it means the type the predicate is narrowing to\n // can't narrow the rejected value any further, so we can't say what\n // would happen for a concrete value in runtime (e.g. if T[P] is\n // `number` and S is `1`: `Exclude<number, 1> === number`.\n false\n : true\n : false;\n\n// ...and if the input object's value type isn't an exact match, but still has\n// some partial match (i.g. the extracted type-guard isn't completely disjoint)\n// then we can assume that the property can sometimes return true, and sometimes\n// false when passed to the predicate, hence it should be optional in the\n// output.\ntype IsPartialProp<T, P extends keyof T, S> = P extends symbol\n ? // Symbols are passed through via the PickSymbolKeys type\n false\n : Or<IsExactProp<T, P, S>, IsNever<Exclude<Required<T>[P], S>>> extends true\n ? false\n : true;\n\n/**\n * Creates a shallow copy of the data, and then removes any keys that the\n * predicate rejects. Symbol keys are not passed to the predicate and would be\n * passed through to the output as-is.\n *\n * See `pickBy` for a complementary function which starts with an empty object\n * and adds the entries that the predicate accepts. Because it is additive,\n * symbol keys will not be passed through to the output object.\n *\n * @param data - The target object.\n * @param predicate - A function that takes the value, key, and the data itself\n * and returns `true` if the entry shouldn't be part of the output object, or\n * `false` to keep it. If the function is a type-guard on the value the output\n * type would be narrowed accordingly.\n * @returns A shallow copy of the input object with the rejected entries\n * removed.\n * @signature omitBy(data, predicate)\n * @example\n * omitBy({a: 1, b: 2, A: 3, B: 4}, (val, key) => key.toUpperCase() === key) // => {a: 1, b: 2}\n * @dataFirst\n * @category Object\n */\nexport function omitBy<\n T extends object,\n S extends EnumerableStringKeyedValueOf<T>,\n>(\n data: T,\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => value is S,\n): PartialEnumerableKeysNarrowed<T, S>;\nexport function omitBy<T extends object>(\n data: T,\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => boolean,\n): PartialEnumerableKeys<T>;\n\n/**\n * Returns a partial copy of an object omitting the keys matching predicate.\n *\n * @param predicate - The predicate.\n * @signature omitBy(fn)(object)\n * @example\n * omitBy((val, key) => key.toUpperCase() === key)({a: 1, b: 2, A: 3, B: 4}) // => {a: 1, b: 2}\n * @dataLast\n * @category Object\n */\nexport function omitBy<\n T extends object,\n S extends EnumerableStringKeyedValueOf<T>,\n>(\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => value is S,\n): (data: T) => PartialEnumerableKeysNarrowed<T, S>;\nexport function omitBy<T extends object>(\n predicate: (\n value: EnumerableStringKeyedValueOf<T>,\n key: EnumerableStringKeyOf<T>,\n data: T,\n ) => boolean,\n): (data: T) => PartialEnumerableKeys<T>;\n\nexport function omitBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(omitByImplementation, args);\n}\n\nfunction omitByImplementation<T extends object>(\n data: T,\n predicate: (value: unknown, key: string, data: T) => boolean,\n): Record<string, unknown> {\n const out: Partial<Record<string, unknown>> = { ...data };\n\n for (const [key, value] of Object.entries(out)) {\n if (predicate(value, key, data)) {\n // eslint-disable-next-line ts/no-dynamic-delete -- This is the best way to do it!\n delete out[key];\n }\n }\n\n return out;\n}\n"],"mappings":"mCAiKA,SAAgB,EAAO,GAAG,EAAuC,CAC/D,OAAO,EAAM,EAAsB,EAAK,CAG1C,SAAS,EACP,EACA,EACyB,CACzB,IAAM,EAAwC,CAAE,GAAG,EAAM,CAEzD,IAAK,GAAM,CAAC,EAAK,KAAU,OAAO,QAAQ,EAAI,CACxC,EAAU,EAAO,EAAK,EAAK,EAE7B,OAAO,EAAI,GAIf,OAAO"}
|
package/dist/omit.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(`./has-at-least.cjs`);function n(...t){return e.curry(r,t)}function r(e,n){if(!t.hasAtLeast(n,1))return{...e};if(!t.hasAtLeast(n,2)){let{[n[0]]:t,...r}=e;return r}let r={...e};for(let e of n)delete r[e];return r}exports.omit=n;
|
|
2
|
+
//# sourceMappingURL=omit.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"omit.cjs","names":["curry","hasAtLeast"],"sources":["../src/omit.ts"],"sourcesContent":["import type { EmptyObject, IsNever, KeysOfUnion } from 'type-fest';\nimport type { IsBounded } from './internal/types/is-bounded';\nimport type { IsBoundedRecord } from './internal/types/is-bounded-record';\nimport type { PartitionByUnion } from './internal/types/partition-by-union';\nimport type { SimplifiedWritable } from './internal/types/simplified-writable';\nimport type { TupleParts } from './internal/types/tuple-parts';\nimport { curry } from './curry';\nimport { hasAtLeast } from './has-at-least';\n\ntype OmitFromArray<T, Keys extends ReadonlyArray<PropertyKey>>\n // Distribute unions for both object types and key arrays.\n = T extends unknown\n ? Keys extends unknown\n ? // The output is always writable because we always create a new object!\n SimplifiedWritable<\n IsNever<Extract<Keys[number], keyof T>> extends true\n ? // When none of the keys belong to T we can short-circuit and\n // simply return T as-is because `omit` would do nothing.\n T\n : IsBoundedRecord<T> extends true\n ? OmitBounded<T, Keys>\n : OmitUnbounded<T, Keys>\n >\n : never\n : never;\n\ntype OmitBounded<T, Keys extends ReadonlyArray<PropertyKey>>\n // We build our output by first considering any key present in the keys array\n // as being omitted. This object would contain all keys that are unaffected at\n // all by this omit operation.\n = FixEmpty<Omit<T, Keys[number]>>\n // But we might be missing keys that are optional in the keys tuple (and\n // thus might not be removed). Because these keys are optional, their props\n // in the output also need to be optional.\n & Partial<\n Pick<\n T,\n Exclude<\n // Find all keys that can either be omitted or not, these are all keys\n // in unions in the required parts of the keys tuple (the prefix and\n // the suffix), as well as all keys in the optional parts and the rest\n // item.\n | PartitionByUnion<TupleParts<Keys>['required']>['union']\n | TupleParts<Keys>['optional'][number]\n | TupleParts<Keys>['item']\n | PartitionByUnion<TupleParts<Keys>['suffix']>['union'],\n // We then need to remove from these any items which *also* are\n // ensured to always exist in the keys tuple, these are the elements\n // of the required parts of the tuple which are singular (not unions).\n | PartitionByUnion<TupleParts<Keys>['required']>['singular']\n | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']\n >\n >\n >;\n\n/**\n * The built-in `Omit` type doesn't handle unbounded records correctly! When\n * omitting an unbounded key the result should be untouched as we can't tell\n * what got removed, and can't represent an object that had \"something\" removed\n * from it, but instead it returns `{}`(?!) The same thing applies when a key\n * is only optionally omitted for the same reasons. This is why we don't use\n * `Omit` at all for the unbounded case.\n *\n * @see https://www.typescriptlang.org/play/?#code/C4TwDgpgBAqgdgIwPYFc4BMLqgXigeQFsBLYAHgCUIBjJAJ3TIGdg7i4BzAGigCIALCABshSXgD4eLNp3EBuAFAB6JVDUA9APxA\n */\ntype OmitUnbounded<T, Keys extends ReadonlyArray<PropertyKey>> = T\n // Any key we know for sure is being omitted needs to become \"impossible\" to\n // access; for an unbounded record this means merging it with a bounded record\n // with `never` value for these keys.\n & Record<\n Bounded<\n | PartitionByUnion<TupleParts<Keys>['required']>['singular']\n | PartitionByUnion<TupleParts<Keys>['suffix']>['singular']\n >,\n never\n >;\n\n/**\n * When `Omit` omits **all** keys from a bounded record it results in `{}` which\n * doesn't match what we'd expect to be returned in terms of a useful type as\n * the output of `Omit`.\n */\ntype FixEmpty<T> = IsNever<keyof T> extends true ? EmptyObject : T;\n\n/**\n * Filter a union of types, leaving only those that are bounded. e.g.,\n * `Bounded<\"a\" | number>` results in `\"a\"`.\n */\ntype Bounded<T> = T extends unknown\n ? IsBounded<T> extends true\n ? T\n : never\n : never;\n\n/**\n * Returns a partial copy of an object omitting the keys specified.\n *\n * @param keys - The property names.\n * @signature\n * omit(keys)(obj);\n * @example\n * pipe({ a: 1, b: 2, c: 3, d: 4 }, omit(['a', 'd'])) // => { b: 2, c: 3 }\n * @dataLast\n * @category Object\n */\nexport function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(\n keys: Keys,\n): (data: T) => OmitFromArray<T, Keys>;\n\n/**\n * Returns a partial copy of an object omitting the keys specified.\n *\n * @param data - The object.\n * @param keys - The property names.\n * @signature\n * omit(obj, keys);\n * @example\n * omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']) // => { b: 2, c: 3 }\n * @dataFirst\n * @category Object\n */\nexport function omit<T, const Keys extends ReadonlyArray<KeysOfUnion<T>>>(\n data: T,\n keys: Keys,\n): OmitFromArray<T, Keys>;\n\nexport function omit(...args: ReadonlyArray<unknown>): unknown {\n return curry(omitImplementation, args);\n}\n\nfunction omitImplementation<\n T extends object,\n Keys extends ReadonlyArray<keyof T>,\n>(data: T, keys: Keys): OmitFromArray<T, Keys> {\n if (!hasAtLeast(keys, 1)) {\n // No props to omit at all!\n // @ts-expect-error [ts2322] - TypeScript can't connect the fact that the\n // keys array is empty and infer the expected output, and then infer that we\n // return it correctly here.\n return { ...data };\n }\n\n if (!hasAtLeast(keys, 2)) {\n // Only one prop to omit so we can let the runtime engine deal with\n // removing it efficiently.\n const { [keys[0]]: _omitted, ...remaining } = data;\n\n // @ts-expect-error [ts2322] - TypeScript can't compute the expected output\n // correctly and then infer that we return it correctly here.\n return remaining;\n }\n\n // Multiple props to omit so we have to use a loop to omit all of them.\n const out = { ...data };\n for (const key of keys) {\n // eslint-disable-next-line ts/no-dynamic-delete -- This is intentional! It is the most effective way to allow the runtime engine to optimize the object without creating excessive copies for every omitted key.\n delete out[key];\n }\n\n // @ts-expect-error [ts2322] - The type is too complex and TypeScript can't\n // \"follow\" the iterative algorithm to ensure the output makes sense.\n return out;\n}\n"],"mappings":"kIA8HA,SAAgB,EAAK,GAAG,EAAuC,CAC7D,OAAOA,EAAAA,MAAM,EAAoB,EAAK,CAGxC,SAAS,EAGP,EAAS,EAAoC,CAC7C,GAAI,CAACC,EAAAA,WAAW,EAAM,EAAE,CAKtB,MAAO,CAAE,GAAG,EAAM,CAGpB,GAAI,CAACA,EAAAA,WAAW,EAAM,EAAE,CAAE,CAGxB,GAAM,EAAG,EAAK,IAAK,EAAU,GAAG,GAAc,EAI9C,OAAO,EAIT,IAAM,EAAM,CAAE,GAAG,EAAM,CACvB,IAAK,IAAM,KAAO,EAEhB,OAAO,EAAI,GAKb,OAAO"}
|
package/dist/omit.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{curry as e}from"./curry.js";import{hasAtLeast as t}from"./has-at-least.js";function n(...t){return e(r,t)}function r(e,n){if(!t(n,1))return{...e};if(!t(n,2)){let{[n[0]]:t,...r}=e;return r}let r={...e};for(let e of n)delete r[e];return r}export{n as omit};
|
|
2
2
|
//# sourceMappingURL=omit.js.map
|