@vinicunca/perkakas 1.14.0 → 1.16.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 +1 -1
- package/dist/add-prop.cjs.map +1 -1
- package/dist/add-prop.js.map +1 -1
- package/dist/add.cjs +1 -1
- package/dist/add.cjs.map +1 -1
- package/dist/add.js.map +1 -1
- package/dist/all-pass.cjs +1 -1
- package/dist/all-pass.cjs.map +1 -1
- package/dist/all-pass.js.map +1 -1
- package/dist/any-pass.cjs +1 -1
- package/dist/any-pass.cjs.map +1 -1
- package/dist/any-pass.js.map +1 -1
- package/dist/{binary-search-cutoff-index-TJlnoie4.js → binary-search-cutoff-index-CRPy-dOJ.js} +1 -1
- package/dist/{binary-search-cutoff-index-TJlnoie4.js.map → binary-search-cutoff-index-CRPy-dOJ.js.map} +1 -1
- package/dist/binary-search-cutoff-index-CdUUMUB1.cjs +2 -0
- package/dist/{binary-search-cutoff-index-CLFtXYPc.cjs.map → binary-search-cutoff-index-CdUUMUB1.cjs.map} +1 -1
- package/dist/capitalize.cjs +1 -1
- package/dist/capitalize.cjs.map +1 -1
- package/dist/capitalize.js.map +1 -1
- package/dist/ceil.cjs +1 -1
- package/dist/ceil.cjs.map +1 -1
- package/dist/ceil.js +1 -1
- package/dist/ceil.js.map +1 -1
- package/dist/chunk.cjs +1 -1
- package/dist/chunk.cjs.map +1 -1
- package/dist/chunk.js.map +1 -1
- package/dist/clamp.cjs +1 -1
- package/dist/clamp.cjs.map +1 -1
- package/dist/clamp.js.map +1 -1
- package/dist/clone.cjs +1 -1
- package/dist/clone.cjs.map +1 -1
- package/dist/clone.js.map +1 -1
- package/dist/concat.cjs +1 -1
- package/dist/concat.cjs.map +1 -1
- package/dist/concat.js.map +1 -1
- package/dist/conditional.cjs +2 -1
- package/dist/conditional.cjs.map +1 -0
- package/dist/conditional.js +2 -1
- package/dist/conditional.js.map +1 -0
- package/dist/constant.cjs.map +1 -1
- package/dist/constant.js.map +1 -1
- package/dist/count-by.cjs +1 -1
- package/dist/count-by.cjs.map +1 -1
- package/dist/count-by.js.map +1 -1
- package/dist/{curry-from-lazy-CtH1dp14.js → curry-from-lazy-BoPMn2L_.js} +1 -1
- package/dist/{curry-from-lazy-CtH1dp14.js.map → curry-from-lazy-BoPMn2L_.js.map} +1 -1
- package/dist/{curry-from-lazy-BvN_VKlH.cjs → curry-from-lazy-mdjeRP1g.cjs} +2 -2
- package/dist/{curry-from-lazy-BvN_VKlH.cjs.map → curry-from-lazy-mdjeRP1g.cjs.map} +1 -1
- package/dist/curry-on-Et2NUOHd.js +2 -0
- package/dist/curry-on-Et2NUOHd.js.map +1 -0
- package/dist/curry-on-wBH_q-mO.cjs +2 -0
- package/dist/curry-on-wBH_q-mO.cjs.map +1 -0
- package/dist/{curry-order-rules-DsJSy3gX.cjs → curry-order-rules-CacOTzfW.cjs} +2 -2
- package/dist/{curry-order-rules-DsJSy3gX.cjs.map → curry-order-rules-CacOTzfW.cjs.map} +1 -1
- package/dist/{curry-order-rules-BLyCSMdZ.js → curry-order-rules-Dage-BeC.js} +1 -1
- package/dist/{curry-order-rules-BLyCSMdZ.js.map → curry-order-rules-Dage-BeC.js.map} +1 -1
- package/dist/curry.cjs +1 -1
- package/dist/curry.cjs.map +1 -1
- package/dist/curry.js +1 -1
- package/dist/curry.js.map +1 -1
- package/dist/debounce.cjs.map +1 -1
- package/dist/debounce.js.map +1 -1
- package/dist/default-to.cjs +1 -1
- package/dist/default-to.cjs.map +1 -1
- package/dist/default-to.js.map +1 -1
- package/dist/difference-with.cjs +1 -1
- package/dist/difference-with.cjs.map +1 -1
- package/dist/difference-with.js +1 -1
- package/dist/difference-with.js.map +1 -1
- package/dist/difference.cjs +1 -1
- package/dist/difference.cjs.map +1 -1
- package/dist/difference.js +1 -1
- package/dist/difference.js.map +1 -1
- package/dist/divide.cjs +1 -1
- package/dist/divide.cjs.map +1 -1
- package/dist/divide.js.map +1 -1
- package/dist/do-nothing.cjs.map +1 -1
- package/dist/do-nothing.js.map +1 -1
- package/dist/drop-first-by.cjs +1 -1
- package/dist/drop-first-by.cjs.map +1 -1
- package/dist/drop-first-by.js +1 -1
- package/dist/drop-first-by.js.map +1 -1
- package/dist/drop-last-while.cjs +1 -1
- package/dist/drop-last-while.cjs.map +1 -1
- package/dist/drop-last-while.js.map +1 -1
- package/dist/drop-last.cjs +1 -1
- package/dist/drop-last.cjs.map +1 -1
- package/dist/drop-last.js.map +1 -1
- package/dist/drop-while.cjs +1 -1
- package/dist/drop-while.cjs.map +1 -1
- package/dist/drop-while.js.map +1 -1
- package/dist/drop.cjs +1 -1
- package/dist/drop.cjs.map +1 -1
- package/dist/drop.js +1 -1
- package/dist/drop.js.map +1 -1
- package/dist/ends-with.cjs +1 -1
- package/dist/ends-with.cjs.map +1 -1
- package/dist/ends-with.js.map +1 -1
- package/dist/entries.cjs +1 -1
- package/dist/entries.cjs.map +1 -1
- package/dist/entries.js.map +1 -1
- package/dist/evolve.cjs +1 -1
- package/dist/evolve.cjs.map +1 -1
- package/dist/evolve.js.map +1 -1
- package/dist/filter.cjs +1 -1
- package/dist/filter.cjs.map +1 -1
- package/dist/filter.js +1 -1
- package/dist/filter.js.map +1 -1
- package/dist/find-index.cjs +1 -1
- package/dist/find-index.cjs.map +1 -1
- package/dist/find-index.js.map +1 -1
- package/dist/find-last-index.cjs +1 -1
- package/dist/find-last-index.cjs.map +1 -1
- package/dist/find-last-index.js.map +1 -1
- package/dist/find-last.cjs +1 -1
- package/dist/find-last.cjs.map +1 -1
- package/dist/find-last.js.map +1 -1
- package/dist/find.cjs +1 -1
- package/dist/find.cjs.map +1 -1
- package/dist/find.js +1 -1
- package/dist/find.js.map +1 -1
- package/dist/first-by.cjs +1 -1
- package/dist/first-by.cjs.map +1 -1
- package/dist/first-by.js +1 -1
- package/dist/first-by.js.map +1 -1
- package/dist/first.cjs +1 -1
- package/dist/first.cjs.map +1 -1
- package/dist/first.js +1 -1
- package/dist/first.js.map +1 -1
- package/dist/flat-map.cjs +1 -1
- package/dist/flat-map.cjs.map +1 -1
- package/dist/flat-map.js.map +1 -1
- package/dist/flat.cjs +1 -1
- package/dist/flat.cjs.map +1 -1
- package/dist/flat.js +1 -1
- package/dist/flat.js.map +1 -1
- package/dist/floor.cjs +1 -1
- package/dist/floor.cjs.map +1 -1
- package/dist/floor.js +1 -1
- package/dist/floor.js.map +1 -1
- package/dist/for-each-obj.cjs +1 -1
- package/dist/for-each-obj.cjs.map +1 -1
- package/dist/for-each-obj.js.map +1 -1
- package/dist/for-each.cjs +1 -1
- package/dist/for-each.cjs.map +1 -1
- package/dist/for-each.js.map +1 -1
- package/dist/from-entries.cjs +1 -1
- package/dist/from-entries.cjs.map +1 -1
- package/dist/from-entries.js.map +1 -1
- package/dist/from-keys.cjs +1 -1
- package/dist/from-keys.cjs.map +1 -1
- package/dist/from-keys.js.map +1 -1
- package/dist/funnel.cjs.map +1 -1
- package/dist/funnel.js.map +1 -1
- package/dist/group-by-prop.cjs +1 -1
- package/dist/group-by-prop.cjs.map +1 -1
- package/dist/group-by-prop.js.map +1 -1
- package/dist/group-by.cjs +1 -1
- package/dist/group-by.cjs.map +1 -1
- package/dist/group-by.js.map +1 -1
- package/dist/has-at-least.cjs +1 -1
- package/dist/has-at-least.cjs.map +1 -1
- package/dist/has-at-least.js.map +1 -1
- package/dist/has-prop.cjs +2 -0
- package/dist/has-prop.cjs.map +1 -0
- package/dist/has-prop.js +2 -0
- package/dist/has-prop.js.map +1 -0
- package/dist/has-sub-object.cjs +1 -1
- package/dist/has-sub-object.cjs.map +1 -1
- package/dist/has-sub-object.js.map +1 -1
- package/dist/heap-BK0Y5t1Y.cjs +2 -0
- package/dist/{heap-C0zPQGC0.cjs.map → heap-BK0Y5t1Y.cjs.map} +1 -1
- package/dist/{heap-M6D40vkc.js → heap-CL5ahv5n.js} +2 -2
- package/dist/{heap-M6D40vkc.js.map → heap-CL5ahv5n.js.map} +1 -1
- package/dist/human-readable-file-size.cjs.map +1 -1
- package/dist/human-readable-file-size.js.map +1 -1
- package/dist/identity.cjs.map +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/index-by.cjs +1 -1
- package/dist/index-by.cjs.map +1 -1
- package/dist/index-by.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +174 -202
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +174 -202
- 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 +1 -1
- package/dist/intersection-with.cjs.map +1 -1
- package/dist/intersection-with.js +1 -1
- package/dist/intersection-with.js.map +1 -1
- package/dist/intersection.cjs +1 -1
- package/dist/intersection.cjs.map +1 -1
- package/dist/intersection.js +1 -1
- package/dist/intersection.js.map +1 -1
- package/dist/invert.cjs +1 -1
- package/dist/invert.cjs.map +1 -1
- package/dist/invert.js.map +1 -1
- package/dist/is-array.cjs.map +1 -1
- package/dist/is-array.js.map +1 -1
- package/dist/is-big-int.cjs.map +1 -1
- package/dist/is-big-int.js.map +1 -1
- package/dist/is-boolean.cjs.map +1 -1
- package/dist/is-boolean.js.map +1 -1
- package/dist/is-date.cjs.map +1 -1
- package/dist/is-date.js.map +1 -1
- package/dist/is-deep-equal.cjs +1 -1
- package/dist/is-deep-equal.cjs.map +1 -1
- package/dist/is-deep-equal.js +1 -1
- package/dist/is-deep-equal.js.map +1 -1
- package/dist/is-defined.cjs.map +1 -1
- package/dist/is-defined.js.map +1 -1
- package/dist/is-empty.cjs.map +1 -1
- package/dist/is-empty.js.map +1 -1
- package/dist/is-emptyish.cjs.map +1 -1
- package/dist/is-emptyish.js.map +1 -1
- package/dist/is-error.cjs.map +1 -1
- package/dist/is-error.js.map +1 -1
- package/dist/is-function.cjs.map +1 -1
- package/dist/is-function.js.map +1 -1
- package/dist/is-included-in.cjs.map +1 -1
- package/dist/is-included-in.js.map +1 -1
- package/dist/is-non-null.cjs.map +1 -1
- package/dist/is-non-null.js.map +1 -1
- package/dist/is-non-nullish.cjs.map +1 -1
- package/dist/is-non-nullish.js.map +1 -1
- package/dist/is-not.cjs.map +1 -1
- package/dist/is-not.js.map +1 -1
- package/dist/is-nullish.cjs.map +1 -1
- package/dist/is-nullish.js.map +1 -1
- package/dist/is-number.cjs.map +1 -1
- package/dist/is-number.js.map +1 -1
- package/dist/is-object-type.cjs.map +1 -1
- package/dist/is-object-type.js.map +1 -1
- package/dist/is-plain-object.cjs.map +1 -1
- package/dist/is-plain-object.js.map +1 -1
- package/dist/is-promise.cjs.map +1 -1
- package/dist/is-promise.js.map +1 -1
- package/dist/is-shallow-equal.cjs +1 -1
- package/dist/is-shallow-equal.cjs.map +1 -1
- package/dist/is-shallow-equal.js.map +1 -1
- package/dist/is-strict-equal.cjs +1 -1
- package/dist/is-strict-equal.cjs.map +1 -1
- package/dist/is-strict-equal.js.map +1 -1
- package/dist/is-string.cjs.map +1 -1
- package/dist/is-string.js.map +1 -1
- package/dist/is-symbol.cjs.map +1 -1
- package/dist/is-symbol.js.map +1 -1
- package/dist/is-truthy.cjs.map +1 -1
- package/dist/is-truthy.js.map +1 -1
- package/dist/join.cjs +1 -1
- package/dist/join.cjs.map +1 -1
- package/dist/join.js.map +1 -1
- package/dist/key-codes.cjs.map +1 -1
- package/dist/key-codes.js.map +1 -1
- package/dist/keys.cjs +1 -1
- package/dist/keys.cjs.map +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/last.cjs +1 -1
- package/dist/last.cjs.map +1 -1
- package/dist/last.js.map +1 -1
- package/dist/{lazy-data-last-impl-Vt_M0l7X.js → lazy-data-last-impl--3B10z3s.js} +1 -1
- package/dist/{lazy-data-last-impl-Vt_M0l7X.js.map → lazy-data-last-impl--3B10z3s.js.map} +1 -1
- package/dist/lazy-data-last-impl-Dd5zjCfU.cjs +2 -0
- package/dist/{lazy-data-last-impl-B05ZpguF.cjs.map → lazy-data-last-impl-Dd5zjCfU.cjs.map} +1 -1
- package/dist/length.cjs +1 -1
- package/dist/length.cjs.map +1 -1
- package/dist/length.js.map +1 -1
- package/dist/map-keys.cjs +1 -1
- package/dist/map-keys.cjs.map +1 -1
- package/dist/map-keys.js.map +1 -1
- package/dist/map-to-obj.cjs +1 -1
- package/dist/map-to-obj.cjs.map +1 -1
- package/dist/map-to-obj.js.map +1 -1
- package/dist/map-values.cjs +1 -1
- package/dist/map-values.cjs.map +1 -1
- package/dist/map-values.js.map +1 -1
- package/dist/map-with-feedback.cjs +1 -1
- package/dist/map-with-feedback.cjs.map +1 -1
- package/dist/map-with-feedback.js +1 -1
- package/dist/map-with-feedback.js.map +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.cjs.map +1 -1
- package/dist/map.js.map +1 -1
- package/dist/mean-by.cjs +1 -1
- package/dist/mean-by.cjs.map +1 -1
- package/dist/mean-by.js.map +1 -1
- package/dist/mean.cjs +1 -1
- package/dist/mean.cjs.map +1 -1
- package/dist/mean.js.map +1 -1
- package/dist/median.cjs +1 -1
- package/dist/median.cjs.map +1 -1
- package/dist/median.js.map +1 -1
- package/dist/merge-all.cjs.map +1 -1
- package/dist/merge-all.js.map +1 -1
- package/dist/merge-deep.cjs +1 -1
- package/dist/merge-deep.cjs.map +1 -1
- package/dist/merge-deep.js.map +1 -1
- package/dist/merge.cjs +1 -1
- package/dist/merge.cjs.map +1 -1
- package/dist/merge.js.map +1 -1
- package/dist/multiply.cjs +1 -1
- package/dist/multiply.cjs.map +1 -1
- package/dist/multiply.js.map +1 -1
- package/dist/{nth-by-zZ3RM-mR.cjs → nth-by-BrkoqeV2.cjs} +2 -2
- package/dist/{nth-by-zZ3RM-mR.cjs.map → nth-by-BrkoqeV2.cjs.map} +1 -1
- package/dist/{nth-by-DhfNV5xd.js → nth-by-DGcGGvJX.js} +2 -2
- package/dist/{nth-by-DhfNV5xd.js.map → nth-by-DGcGGvJX.js.map} +1 -1
- package/dist/nth-by.cjs +1 -1
- package/dist/nth-by.js +1 -1
- package/dist/obj-of.cjs +1 -1
- package/dist/obj-of.cjs.map +1 -1
- package/dist/obj-of.js.map +1 -1
- package/dist/omit-by.cjs +1 -1
- package/dist/omit-by.cjs.map +1 -1
- package/dist/omit-by.js.map +1 -1
- package/dist/omit.cjs +1 -1
- package/dist/omit.cjs.map +1 -1
- package/dist/omit.js.map +1 -1
- package/dist/once.cjs.map +1 -1
- package/dist/once.js.map +1 -1
- package/dist/only.cjs +1 -1
- package/dist/only.cjs.map +1 -1
- package/dist/only.js.map +1 -1
- package/dist/partial-bind.cjs.map +1 -1
- package/dist/partial-bind.js.map +1 -1
- package/dist/partial-last-bind.cjs.map +1 -1
- package/dist/partial-last-bind.js.map +1 -1
- package/dist/partition.cjs +1 -1
- package/dist/partition.cjs.map +1 -1
- package/dist/partition.js.map +1 -1
- package/dist/path-or.cjs +1 -1
- package/dist/path-or.cjs.map +1 -1
- package/dist/path-or.js.map +1 -1
- package/dist/pick-by.cjs +1 -1
- package/dist/pick-by.cjs.map +1 -1
- package/dist/pick-by.js.map +1 -1
- package/dist/pick.cjs +1 -1
- package/dist/pick.cjs.map +1 -1
- package/dist/pick.js.map +1 -1
- package/dist/pipe.cjs +1 -1
- package/dist/pipe.cjs.map +1 -1
- package/dist/pipe.js +1 -1
- package/dist/pipe.js.map +1 -1
- package/dist/piped.cjs +1 -1
- package/dist/piped.cjs.map +1 -1
- package/dist/piped.js.map +1 -1
- package/dist/product.cjs +1 -1
- package/dist/product.cjs.map +1 -1
- package/dist/product.js.map +1 -1
- package/dist/prop.cjs.map +1 -1
- package/dist/prop.js.map +1 -1
- package/dist/pull-object.cjs +1 -1
- package/dist/pull-object.cjs.map +1 -1
- package/dist/pull-object.js.map +1 -1
- package/dist/random-big-int.cjs.map +1 -1
- package/dist/random-big-int.js.map +1 -1
- package/dist/random-integer.cjs.map +1 -1
- package/dist/random-integer.js.map +1 -1
- package/dist/random-string.cjs +1 -1
- package/dist/random-string.cjs.map +1 -1
- package/dist/random-string.js.map +1 -1
- package/dist/range.cjs +1 -1
- package/dist/range.cjs.map +1 -1
- package/dist/range.js.map +1 -1
- package/dist/rank-by.cjs +1 -1
- package/dist/rank-by.cjs.map +1 -1
- package/dist/rank-by.js +1 -1
- package/dist/rank-by.js.map +1 -1
- package/dist/reduce.cjs +1 -1
- package/dist/reduce.cjs.map +1 -1
- package/dist/reduce.js.map +1 -1
- package/dist/reverse.cjs +1 -1
- package/dist/reverse.cjs.map +1 -1
- package/dist/reverse.js.map +1 -1
- package/dist/round.cjs +1 -1
- package/dist/round.cjs.map +1 -1
- package/dist/round.js +1 -1
- package/dist/round.js.map +1 -1
- package/dist/sample.cjs +1 -1
- package/dist/sample.cjs.map +1 -1
- package/dist/sample.js.map +1 -1
- package/dist/set-path.cjs +1 -1
- package/dist/set-path.cjs.map +1 -1
- package/dist/set-path.js.map +1 -1
- package/dist/set.cjs +1 -1
- package/dist/set.cjs.map +1 -1
- package/dist/set.js.map +1 -1
- package/dist/shuffle.cjs +1 -1
- package/dist/shuffle.cjs.map +1 -1
- package/dist/shuffle.js.map +1 -1
- package/dist/sleep.cjs.map +1 -1
- package/dist/sleep.js.map +1 -1
- package/dist/slice-string.cjs.map +1 -1
- package/dist/slice-string.js.map +1 -1
- package/dist/slugify.cjs.map +1 -1
- package/dist/slugify.js.map +1 -1
- package/dist/sort-by.cjs +1 -1
- package/dist/sort-by.cjs.map +1 -1
- package/dist/sort-by.js +1 -1
- package/dist/sort-by.js.map +1 -1
- package/dist/sort.cjs +1 -1
- package/dist/sort.cjs.map +1 -1
- package/dist/sort.js.map +1 -1
- package/dist/sorted-index-by.cjs +1 -1
- package/dist/sorted-index-by.cjs.map +1 -1
- package/dist/sorted-index-by.js +1 -1
- package/dist/sorted-index-by.js.map +1 -1
- package/dist/sorted-index-with.cjs +1 -1
- package/dist/sorted-index-with.cjs.map +1 -1
- package/dist/sorted-index-with.js +1 -1
- package/dist/sorted-index-with.js.map +1 -1
- package/dist/sorted-index.cjs +1 -1
- package/dist/sorted-index.cjs.map +1 -1
- package/dist/sorted-index.js +1 -1
- package/dist/sorted-index.js.map +1 -1
- package/dist/sorted-last-index-by.cjs +1 -1
- package/dist/sorted-last-index-by.cjs.map +1 -1
- 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 +1 -1
- package/dist/sorted-last-index.cjs.map +1 -1
- package/dist/sorted-last-index.js +1 -1
- package/dist/sorted-last-index.js.map +1 -1
- package/dist/splice.cjs +1 -1
- package/dist/splice.cjs.map +1 -1
- package/dist/splice.js +1 -1
- package/dist/splice.js.map +1 -1
- package/dist/split-at.cjs +1 -1
- package/dist/split-at.cjs.map +1 -1
- package/dist/split-at.js.map +1 -1
- package/dist/split-when.cjs +1 -1
- package/dist/split-when.cjs.map +1 -1
- package/dist/split-when.js.map +1 -1
- package/dist/split.cjs.map +1 -1
- package/dist/split.js.map +1 -1
- package/dist/starts-with.cjs +1 -1
- package/dist/starts-with.cjs.map +1 -1
- package/dist/starts-with.js.map +1 -1
- package/dist/string-to-path.cjs.map +1 -1
- package/dist/string-to-path.js.map +1 -1
- package/dist/subtract.cjs +1 -1
- package/dist/subtract.cjs.map +1 -1
- package/dist/subtract.js.map +1 -1
- package/dist/sum-by.cjs +1 -1
- package/dist/sum-by.cjs.map +1 -1
- package/dist/sum-by.js.map +1 -1
- package/dist/sum.cjs +1 -1
- package/dist/sum.cjs.map +1 -1
- package/dist/sum.js.map +1 -1
- package/dist/swap-in-place-CllcD0HG.cjs +2 -0
- package/dist/{swap-in-place-D1vasegg.cjs.map → swap-in-place-CllcD0HG.cjs.map} +1 -1
- package/dist/{swap-in-place-BzNaxwB3.js → swap-in-place-ubtnp8en.js} +1 -1
- package/dist/{swap-in-place-BzNaxwB3.js.map → swap-in-place-ubtnp8en.js.map} +1 -1
- package/dist/swap-indices.cjs +1 -1
- package/dist/swap-indices.cjs.map +1 -1
- package/dist/swap-indices.js.map +1 -1
- package/dist/swap-props.cjs +1 -1
- package/dist/swap-props.cjs.map +1 -1
- package/dist/swap-props.js.map +1 -1
- package/dist/take-first-by.cjs +1 -1
- package/dist/take-first-by.cjs.map +1 -1
- package/dist/take-first-by.js +1 -1
- package/dist/take-first-by.js.map +1 -1
- package/dist/take-last-while.cjs +1 -1
- package/dist/take-last-while.cjs.map +1 -1
- package/dist/take-last-while.js.map +1 -1
- package/dist/take-last.cjs +1 -1
- package/dist/take-last.cjs.map +1 -1
- package/dist/take-last.js.map +1 -1
- package/dist/take-while.cjs +1 -1
- package/dist/take-while.cjs.map +1 -1
- package/dist/take-while.js.map +1 -1
- package/dist/take.cjs +1 -1
- package/dist/take.cjs.map +1 -1
- package/dist/take.js +1 -1
- package/dist/take.js.map +1 -1
- package/dist/tap.cjs +1 -1
- package/dist/tap.cjs.map +1 -1
- package/dist/tap.js.map +1 -1
- package/dist/times.cjs +1 -1
- package/dist/times.cjs.map +1 -1
- package/dist/times.js.map +1 -1
- package/dist/to-camel-case.cjs +1 -1
- package/dist/to-camel-case.cjs.map +1 -1
- package/dist/to-camel-case.js +1 -1
- package/dist/to-camel-case.js.map +1 -1
- package/dist/to-kebab-case.cjs +1 -1
- package/dist/to-kebab-case.cjs.map +1 -1
- package/dist/to-kebab-case.js +1 -1
- package/dist/to-kebab-case.js.map +1 -1
- package/dist/to-lower-case.cjs +1 -1
- package/dist/to-lower-case.cjs.map +1 -1
- package/dist/to-lower-case.js.map +1 -1
- package/dist/to-single-BOkjnmkm.cjs +2 -0
- package/dist/{to-single-BunGuk7o.cjs.map → to-single-BOkjnmkm.cjs.map} +1 -1
- package/dist/{to-single-XEXXW73e.js → to-single-D6t2BxVq.js} +1 -1
- package/dist/{to-single-XEXXW73e.js.map → to-single-D6t2BxVq.js.map} +1 -1
- package/dist/to-snake-case.cjs +1 -1
- package/dist/to-snake-case.cjs.map +1 -1
- package/dist/to-snake-case.js +1 -1
- package/dist/to-snake-case.js.map +1 -1
- package/dist/to-title-case.cjs +1 -1
- package/dist/to-title-case.cjs.map +1 -1
- package/dist/to-title-case.js +1 -1
- package/dist/to-title-case.js.map +1 -1
- package/dist/to-upper-case.cjs +1 -1
- package/dist/to-upper-case.cjs.map +1 -1
- package/dist/to-upper-case.js.map +1 -1
- package/dist/truncate.cjs.map +1 -1
- package/dist/truncate.js.map +1 -1
- package/dist/uncapitalize.cjs +1 -1
- package/dist/uncapitalize.cjs.map +1 -1
- package/dist/uncapitalize.js.map +1 -1
- package/dist/unique-by.cjs +1 -1
- package/dist/unique-by.cjs.map +1 -1
- package/dist/unique-by.js +1 -1
- package/dist/unique-by.js.map +1 -1
- package/dist/unique-with.cjs +1 -1
- package/dist/unique-with.cjs.map +1 -1
- package/dist/unique-with.js +1 -1
- package/dist/unique-with.js.map +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.cjs.map +1 -1
- package/dist/unique.js +1 -1
- package/dist/unique.js.map +1 -1
- package/dist/utility-evaluators-BGM19SpK.cjs +2 -0
- package/dist/{utility-evaluators-C8koSp9T.cjs.map → utility-evaluators-BGM19SpK.cjs.map} +1 -1
- package/dist/{utility-evaluators-ZAaUtL2Z.js → utility-evaluators-DDW55xeL.js} +1 -1
- package/dist/{utility-evaluators-ZAaUtL2Z.js.map → utility-evaluators-DDW55xeL.js.map} +1 -1
- package/dist/values.cjs +1 -1
- package/dist/values.cjs.map +1 -1
- package/dist/values.js.map +1 -1
- package/dist/when.cjs.map +1 -1
- package/dist/when.js.map +1 -1
- package/dist/{with-precision-CgRuf7Wl.js → with-precision-D-84B_By.js} +1 -1
- package/dist/{with-precision-CgRuf7Wl.js.map → with-precision-D-84B_By.js.map} +1 -1
- package/dist/{with-precision-DVi9325n.cjs → with-precision-Dy5W6bdk.cjs} +2 -2
- package/dist/{with-precision-DVi9325n.cjs.map → with-precision-Dy5W6bdk.cjs.map} +1 -1
- package/dist/{words-C8Rd_80F.cjs → words-B-9EXtsW.cjs} +2 -2
- package/dist/{words-C8Rd_80F.cjs.map → words-B-9EXtsW.cjs.map} +1 -1
- package/dist/{words-CYZ0Lyko.js → words-CN1Qil5U.js} +2 -2
- package/dist/{words-CYZ0Lyko.js.map → words-CN1Qil5U.js.map} +1 -1
- package/dist/zip-with.cjs +1 -1
- package/dist/zip-with.cjs.map +1 -1
- package/dist/zip-with.js +1 -1
- package/dist/zip-with.js.map +1 -1
- package/dist/zip.cjs +1 -1
- package/dist/zip.cjs.map +1 -1
- package/dist/zip.js.map +1 -1
- package/package.json +11 -11
- package/dist/binary-search-cutoff-index-CLFtXYPc.cjs +0 -2
- package/dist/conditional-3wcaMG9k.cjs +0 -2
- package/dist/conditional-3wcaMG9k.cjs.map +0 -1
- package/dist/conditional-CTEJD5TX.js +0 -2
- package/dist/conditional-CTEJD5TX.js.map +0 -1
- package/dist/heap-C0zPQGC0.cjs +0 -2
- package/dist/lazy-data-last-impl-B05ZpguF.cjs +0 -2
- package/dist/swap-in-place-D1vasegg.cjs +0 -2
- package/dist/to-single-BunGuk7o.cjs +0 -2
- package/dist/utility-evaluators-C8koSp9T.cjs +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-prop.cjs","names":["curry"],"sources":["../src/has-prop.ts"],"sourcesContent":["import type { KeysOfUnion, Simplify } from 'type-fest';\nimport type { IsBounded } from './internal/types/is-bounded';\nimport { curry } from './curry';\n\n// Arrays route to the `boolean`-returning overload below: their `keyof`\n// includes prototype methods (`push`, `pop`, …) that aren't own properties\n// at runtime, which would otherwise collapse the predicate's else branch to\n// `never`. The leading `extends readonly unknown[]` filter is mirrored on\n// both the predicate type and the parameter type so the type-predicate\n// assignability check stays satisfied.\ntype NonArray<T> = T extends ReadonlyArray<unknown> ? never : T;\n\ntype HasProp<T, Key extends PropertyKey> = T extends ReadonlyArray<unknown>\n ? never\n : // Distribute over `T`'s union members so members that don't have `Key`\n// drop out of the narrowed type.\n T extends unknown\n ? Key extends keyof T\n ? // `T &` makes the result structurally a subtype of `T`, satisfying\n // the type-predicate assignability check.\n Simplify<T & Required<Pick<T, Key>>>\n : never\n : never;\n\n/**\n * Checks if `data` has a prop `key`.\n *\n * Uses [`Object.hasOwn`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn)\n * which only checks own properties, skipping properties inherited through the\n * prototype chain.\n *\n * - Use `prop` to read the value.\n *\n * @param data - The object to test.\n * @param key - The key to look up.\n * @signature\n * hasProp(data, key)\n * @example\n * hasProp({ a: 1 }, \"a\"); //=> true\n * @dataFirst\n * @category Guard\n */\nexport function hasProp<T extends object, Key extends KeysOfUnion<T>>(\n // Arrays route to the `boolean`-returning overload below: their `keyof`\n // includes prototype methods (`push`, `pop`, …) that aren't own properties\n // at runtime, which would otherwise collapse the predicate's else branch\n // to `never`. Use `hasAtLeast` to narrow array indices and `isArray` to\n // discriminate array vs. object unions.\n data: NonArray<T>,\n // Bounded literal keys narrow; unbounded keys (`string`, template\n // literals, etc.) route to the `boolean`-returning overload below so the\n // predicate doesn't collapse the else-branch to `never`.\n key: IsBounded<Key> extends true ? Key : never,\n): data is HasProp<T, Key>;\nexport function hasProp<T extends object>(\n data: T,\n key: KeysOfUnion<T>,\n): boolean;\n\n/**\n * Checks if `data` has a prop `key`.\n *\n * Uses [`Object.hasOwn`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn)\n * which only checks own properties, skipping properties inherited through the\n * prototype chain.\n *\n * - Use `prop` to read the value.\n *\n * @param key - The key to look up.\n * @signature\n * hasProp(key)(data)\n * @example\n * pipe({ a: 1 }, hasProp(\"a\")); //=> true\n * filter([] as { a?: number }[], hasProp(\"a\")); //=> typed as { a: number }[]\n * @dataLast\n * @category Guard\n */\nexport function hasProp<T extends object, Key extends KeysOfUnion<T>>(\n key: IsBounded<Key> extends true ? Key : never,\n): (data: NonArray<T>) => data is HasProp<T, Key>;\nexport function hasProp<T extends object>(\n key: KeysOfUnion<T>,\n): (data: T) => boolean;\n\nexport function hasProp(...args: ReadonlyArray<unknown>): unknown {\n return curry(hasPropImplementation, args);\n}\n\nfunction hasPropImplementation<T extends object, Key extends KeysOfUnion<T>>(\n data: T,\n key: Key,\n): data is HasProp<T, Key> {\n return Object.hasOwn(data, key);\n}\n"],"mappings":"kGAoFA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAOA,EAAAA,MAAM,EAAuB,CAAI,CAC1C,CAEA,SAAS,EACP,EACA,EACyB,CACzB,OAAO,OAAO,OAAO,EAAM,CAAG,CAChC"}
|
package/dist/has-prop.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-prop.js","names":[],"sources":["../src/has-prop.ts"],"sourcesContent":["import type { KeysOfUnion, Simplify } from 'type-fest';\nimport type { IsBounded } from './internal/types/is-bounded';\nimport { curry } from './curry';\n\n// Arrays route to the `boolean`-returning overload below: their `keyof`\n// includes prototype methods (`push`, `pop`, …) that aren't own properties\n// at runtime, which would otherwise collapse the predicate's else branch to\n// `never`. The leading `extends readonly unknown[]` filter is mirrored on\n// both the predicate type and the parameter type so the type-predicate\n// assignability check stays satisfied.\ntype NonArray<T> = T extends ReadonlyArray<unknown> ? never : T;\n\ntype HasProp<T, Key extends PropertyKey> = T extends ReadonlyArray<unknown>\n ? never\n : // Distribute over `T`'s union members so members that don't have `Key`\n// drop out of the narrowed type.\n T extends unknown\n ? Key extends keyof T\n ? // `T &` makes the result structurally a subtype of `T`, satisfying\n // the type-predicate assignability check.\n Simplify<T & Required<Pick<T, Key>>>\n : never\n : never;\n\n/**\n * Checks if `data` has a prop `key`.\n *\n * Uses [`Object.hasOwn`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn)\n * which only checks own properties, skipping properties inherited through the\n * prototype chain.\n *\n * - Use `prop` to read the value.\n *\n * @param data - The object to test.\n * @param key - The key to look up.\n * @signature\n * hasProp(data, key)\n * @example\n * hasProp({ a: 1 }, \"a\"); //=> true\n * @dataFirst\n * @category Guard\n */\nexport function hasProp<T extends object, Key extends KeysOfUnion<T>>(\n // Arrays route to the `boolean`-returning overload below: their `keyof`\n // includes prototype methods (`push`, `pop`, …) that aren't own properties\n // at runtime, which would otherwise collapse the predicate's else branch\n // to `never`. Use `hasAtLeast` to narrow array indices and `isArray` to\n // discriminate array vs. object unions.\n data: NonArray<T>,\n // Bounded literal keys narrow; unbounded keys (`string`, template\n // literals, etc.) route to the `boolean`-returning overload below so the\n // predicate doesn't collapse the else-branch to `never`.\n key: IsBounded<Key> extends true ? Key : never,\n): data is HasProp<T, Key>;\nexport function hasProp<T extends object>(\n data: T,\n key: KeysOfUnion<T>,\n): boolean;\n\n/**\n * Checks if `data` has a prop `key`.\n *\n * Uses [`Object.hasOwn`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn)\n * which only checks own properties, skipping properties inherited through the\n * prototype chain.\n *\n * - Use `prop` to read the value.\n *\n * @param key - The key to look up.\n * @signature\n * hasProp(key)(data)\n * @example\n * pipe({ a: 1 }, hasProp(\"a\")); //=> true\n * filter([] as { a?: number }[], hasProp(\"a\")); //=> typed as { a: number }[]\n * @dataLast\n * @category Guard\n */\nexport function hasProp<T extends object, Key extends KeysOfUnion<T>>(\n key: IsBounded<Key> extends true ? Key : never,\n): (data: NonArray<T>) => data is HasProp<T, Key>;\nexport function hasProp<T extends object>(\n key: KeysOfUnion<T>,\n): (data: T) => boolean;\n\nexport function hasProp(...args: ReadonlyArray<unknown>): unknown {\n return curry(hasPropImplementation, args);\n}\n\nfunction hasPropImplementation<T extends object, Key extends KeysOfUnion<T>>(\n data: T,\n key: Key,\n): data is HasProp<T, Key> {\n return Object.hasOwn(data, key);\n}\n"],"mappings":"mCAoFA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAO,EAAM,EAAuB,CAAI,CAC1C,CAEA,SAAS,EACP,EACA,EACyB,CACzB,OAAO,OAAO,OAAO,EAAM,CAAG,CAChC"}
|
package/dist/has-sub-object.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./curry.cjs"),t=require("./is-deep-equal.cjs");function n(...t){return e.curry(r,t)}function r(e,n){for(let[r,i]of Object.entries(n))if(!Object.hasOwn(e,r)||!t.isDeepEqual(i,e[r]))return!1;return!0}exports.hasSubObject=n;
|
|
2
2
|
//# sourceMappingURL=has-sub-object.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-sub-object.cjs","names":["curry","isDeepEqual"],"sources":["../src/has-sub-object.ts"],"sourcesContent":["import type { Simplify, Tagged } from 'type-fest';\nimport { curry } from './curry';\nimport { isDeepEqual } from './is-deep-equal';\n\n// eslint-disable-next-line ts/no-unused-vars -- We want to confine the typing to a specific symbol\ndeclare const HAS_SUB_OBJECT_BRAND: unique symbol;\n\ntype HasSubObjectGuard<T, S> = Simplify<\n Tagged<S & T, typeof HAS_SUB_OBJECT_BRAND>\n>;\n\ntype HasSubObjectObjectValue<A, B> = Partial<{\n [Key in keyof A & keyof B]: A[Key] & B[Key] extends
|
|
1
|
+
{"version":3,"file":"has-sub-object.cjs","names":["curry","isDeepEqual"],"sources":["../src/has-sub-object.ts"],"sourcesContent":["import type { IsNever, Simplify, Tagged } from 'type-fest';\nimport { curry } from './curry';\nimport { isDeepEqual } from './is-deep-equal';\n\n// eslint-disable-next-line ts/no-unused-vars -- We want to confine the typing to a specific symbol\ndeclare const HAS_SUB_OBJECT_BRAND: unique symbol;\n\ntype HasSubObjectGuard<T, S> = Simplify<\n Tagged<S & T, typeof HAS_SUB_OBJECT_BRAND>\n>;\n\ntype HasSubObjectObjectValue<A, B> = Partial<{\n [Key in keyof A & keyof B]: IsNever<A[Key] & B[Key]> extends true\n ? B[Key]\n : A[Key] | B[Key] extends object\n ? HasSubObjectObjectValue<A[Key], B[Key]>\n : A[Key] & B[Key] extends object\n ? B[Key]\n : A[Key];\n}> & {\n [Key in\n | Exclude<keyof A, keyof B>\n | Exclude<keyof B, keyof A>]: Key extends keyof B ? B[Key] : never;\n};\n\ntype HasSubObjectData<\n Data,\n SubObject,\n RData = Required<Data>,\n RSubObject = Required<SubObject>,\n> = Partial<{\n [Key in keyof RData & keyof RSubObject]: IsNever<\n RData[Key] & RSubObject[Key]\n > extends true\n ? RSubObject[Key]\n : RData[Key] | RSubObject[Key] extends object\n ? HasSubObjectObjectValue<RData[Key], RSubObject[Key]>\n : RData[Key] & RSubObject[Key] extends object\n ? RSubObject[Key]\n : RData[Key];\n}> & {\n [Key in Exclude<keyof SubObject, keyof Data>]: SubObject[Key];\n};\n\ntype HasSubObjectSubObject<\n SubObject,\n Data,\n RSubObject = Required<SubObject>,\n RData = Required<Data>,\n> = Partial<{\n [Key in keyof RData & keyof RSubObject]: IsNever<\n RData[Key] & RSubObject[Key]\n > extends true\n ? RData[Key]\n : RData[Key] | RSubObject[Key] extends object\n ? HasSubObjectObjectValue<RSubObject[Key], RData[Key]>\n : RData[Key] & RSubObject[Key] extends object\n ? RData[Key]\n : RSubObject[Key];\n}>\n& Record<Exclude<keyof SubObject, keyof Data>, never>;\n\n/**\n * Checks if `subObject` is a sub-object of `object`, which means for every\n * property and value in `subObject`, there's the same property in `object`\n * with an equal value. Equality is checked with `isDeepEqual`.\n *\n * @param data - The object to test.\n * @param subObject - The sub-object to test against.\n * @signature\n * hasSubObject(data, subObject)\n * @example\n * hasSubObject({ a: 1, b: 2, c: 3 }, { a: 1, c: 3 }) //=> true\n * hasSubObject({ a: 1, b: 2, c: 3 }, { b: 4 }) //=> false\n * hasSubObject({ a: 1, b: 2, c: 3 }, {}) //=> true\n * @dataFirst\n * @category Guard\n */\nexport function hasSubObject<\n T extends object,\n S extends HasSubObjectSubObject<S, T>,\n>(data: T, subObject: S): data is HasSubObjectGuard<T, S>;\n\n/**\n * Checks if `subObject` is a sub-object of `object`, which means for every\n * property and value in `subObject`, there's the same property in `object`\n * with an equal value. Equality is checked with `isDeepEqual`.\n *\n * @param subObject - The sub-object to test against.\n * @signature\n * hasSubObject(subObject)(data)\n * @example\n * hasSubObject({ a: 1, c: 3 })({ a: 1, b: 2, c: 3 }) //=> true\n * hasSubObject({ b: 4 })({ a: 1, b: 2, c: 3 }) //=> false\n * hasSubObject({})({ a: 1, b: 2, c: 3 }) //=> true\n * @dataLast\n * @category Guard\n */\nexport function hasSubObject<S extends object>(\n subObject: S,\n): <T extends HasSubObjectData<T, S>>(\n data: T,\n) => data is HasSubObjectGuard<T, S>;\n\nexport function hasSubObject(...args: ReadonlyArray<unknown>): unknown {\n return curry(hasSubObjectImplementation, args);\n}\n\nfunction hasSubObjectImplementation<\n T extends Record<PropertyKey, unknown>,\n S extends Record<PropertyKey, unknown>,\n>(data: T, subObject: S): data is HasSubObjectGuard<T, S> {\n for (const [key, value] of Object.entries(subObject)) {\n if (!Object.hasOwn(data, key)) {\n return false;\n }\n\n if (!isDeepEqual(value, data[key])) {\n return false;\n }\n }\n\n return true;\n}\n"],"mappings":"mIAwGA,SAAgB,EAAa,GAAG,EAAuC,CACrE,OAAOA,EAAAA,MAAM,EAA4B,CAAI,CAC/C,CAEA,SAAS,EAGP,EAAS,EAA+C,CACxD,IAAK,GAAM,CAAC,EAAK,KAAU,OAAO,QAAQ,CAAS,EAKjD,GAJI,CAAC,OAAO,OAAO,EAAM,CAAG,GAIxB,CAACC,EAAAA,YAAY,EAAO,EAAK,EAAI,EAC/B,MAAO,GAIX,MAAO,EACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-sub-object.js","names":[],"sources":["../src/has-sub-object.ts"],"sourcesContent":["import type { Simplify, Tagged } from 'type-fest';\nimport { curry } from './curry';\nimport { isDeepEqual } from './is-deep-equal';\n\n// eslint-disable-next-line ts/no-unused-vars -- We want to confine the typing to a specific symbol\ndeclare const HAS_SUB_OBJECT_BRAND: unique symbol;\n\ntype HasSubObjectGuard<T, S> = Simplify<\n Tagged<S & T, typeof HAS_SUB_OBJECT_BRAND>\n>;\n\ntype HasSubObjectObjectValue<A, B> = Partial<{\n [Key in keyof A & keyof B]: A[Key] & B[Key] extends
|
|
1
|
+
{"version":3,"file":"has-sub-object.js","names":[],"sources":["../src/has-sub-object.ts"],"sourcesContent":["import type { IsNever, Simplify, Tagged } from 'type-fest';\nimport { curry } from './curry';\nimport { isDeepEqual } from './is-deep-equal';\n\n// eslint-disable-next-line ts/no-unused-vars -- We want to confine the typing to a specific symbol\ndeclare const HAS_SUB_OBJECT_BRAND: unique symbol;\n\ntype HasSubObjectGuard<T, S> = Simplify<\n Tagged<S & T, typeof HAS_SUB_OBJECT_BRAND>\n>;\n\ntype HasSubObjectObjectValue<A, B> = Partial<{\n [Key in keyof A & keyof B]: IsNever<A[Key] & B[Key]> extends true\n ? B[Key]\n : A[Key] | B[Key] extends object\n ? HasSubObjectObjectValue<A[Key], B[Key]>\n : A[Key] & B[Key] extends object\n ? B[Key]\n : A[Key];\n}> & {\n [Key in\n | Exclude<keyof A, keyof B>\n | Exclude<keyof B, keyof A>]: Key extends keyof B ? B[Key] : never;\n};\n\ntype HasSubObjectData<\n Data,\n SubObject,\n RData = Required<Data>,\n RSubObject = Required<SubObject>,\n> = Partial<{\n [Key in keyof RData & keyof RSubObject]: IsNever<\n RData[Key] & RSubObject[Key]\n > extends true\n ? RSubObject[Key]\n : RData[Key] | RSubObject[Key] extends object\n ? HasSubObjectObjectValue<RData[Key], RSubObject[Key]>\n : RData[Key] & RSubObject[Key] extends object\n ? RSubObject[Key]\n : RData[Key];\n}> & {\n [Key in Exclude<keyof SubObject, keyof Data>]: SubObject[Key];\n};\n\ntype HasSubObjectSubObject<\n SubObject,\n Data,\n RSubObject = Required<SubObject>,\n RData = Required<Data>,\n> = Partial<{\n [Key in keyof RData & keyof RSubObject]: IsNever<\n RData[Key] & RSubObject[Key]\n > extends true\n ? RData[Key]\n : RData[Key] | RSubObject[Key] extends object\n ? HasSubObjectObjectValue<RSubObject[Key], RData[Key]>\n : RData[Key] & RSubObject[Key] extends object\n ? RData[Key]\n : RSubObject[Key];\n}>\n& Record<Exclude<keyof SubObject, keyof Data>, never>;\n\n/**\n * Checks if `subObject` is a sub-object of `object`, which means for every\n * property and value in `subObject`, there's the same property in `object`\n * with an equal value. Equality is checked with `isDeepEqual`.\n *\n * @param data - The object to test.\n * @param subObject - The sub-object to test against.\n * @signature\n * hasSubObject(data, subObject)\n * @example\n * hasSubObject({ a: 1, b: 2, c: 3 }, { a: 1, c: 3 }) //=> true\n * hasSubObject({ a: 1, b: 2, c: 3 }, { b: 4 }) //=> false\n * hasSubObject({ a: 1, b: 2, c: 3 }, {}) //=> true\n * @dataFirst\n * @category Guard\n */\nexport function hasSubObject<\n T extends object,\n S extends HasSubObjectSubObject<S, T>,\n>(data: T, subObject: S): data is HasSubObjectGuard<T, S>;\n\n/**\n * Checks if `subObject` is a sub-object of `object`, which means for every\n * property and value in `subObject`, there's the same property in `object`\n * with an equal value. Equality is checked with `isDeepEqual`.\n *\n * @param subObject - The sub-object to test against.\n * @signature\n * hasSubObject(subObject)(data)\n * @example\n * hasSubObject({ a: 1, c: 3 })({ a: 1, b: 2, c: 3 }) //=> true\n * hasSubObject({ b: 4 })({ a: 1, b: 2, c: 3 }) //=> false\n * hasSubObject({})({ a: 1, b: 2, c: 3 }) //=> true\n * @dataLast\n * @category Guard\n */\nexport function hasSubObject<S extends object>(\n subObject: S,\n): <T extends HasSubObjectData<T, S>>(\n data: T,\n) => data is HasSubObjectGuard<T, S>;\n\nexport function hasSubObject(...args: ReadonlyArray<unknown>): unknown {\n return curry(hasSubObjectImplementation, args);\n}\n\nfunction hasSubObjectImplementation<\n T extends Record<PropertyKey, unknown>,\n S extends Record<PropertyKey, unknown>,\n>(data: T, subObject: S): data is HasSubObjectGuard<T, S> {\n for (const [key, value] of Object.entries(subObject)) {\n if (!Object.hasOwn(data, key)) {\n return false;\n }\n\n if (!isDeepEqual(value, data[key])) {\n return false;\n }\n }\n\n return true;\n}\n"],"mappings":"oFAwGA,SAAgB,EAAa,GAAG,EAAuC,CACrE,OAAO,EAAM,EAA4B,CAAI,CAC/C,CAEA,SAAS,EAGP,EAAS,EAA+C,CACxD,IAAK,GAAM,CAAC,EAAK,KAAU,OAAO,QAAQ,CAAS,EAKjD,GAJI,CAAC,OAAO,OAAO,EAAM,CAAG,GAIxB,CAAC,EAAY,EAAO,EAAK,EAAI,EAC/B,MAAO,GAIX,MAAO,EACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("./has-at-least.cjs"),t=require("./swap-in-place-CllcD0HG.cjs");function n(e,t){for(let n=Math.floor(e.length/2)-1;n>=0;n--)i(e,n,t)}function r(t,n,r){if(!e.hasAtLeast(t,1))return;let[a]=t;if(!(n(r,a)>=0))return t[0]=r,i(t,0,n),a}function i(e,n,r){let i=n;for(;i*2+1<e.length;){let n=i*2+1,a=r(e[i],e[n])<0?n:i,o=n+1;if(o<e.length&&r(e[a],e[o])<0&&(a=o),a===i)return;t.t(e,i,a),i=a}}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
2
|
+
//# sourceMappingURL=heap-BK0Y5t1Y.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heap-
|
|
1
|
+
{"version":3,"file":"heap-BK0Y5t1Y.cjs","names":["hasAtLeast"],"sources":["../src/internal/heap.ts"],"sourcesContent":["/**\n * Heap related utilities.\n */\n\nimport type { CompareFunction } from './types/compare-function';\nimport { hasAtLeast } from '../has-at-least';\nimport { swapInPlace } from './swap-in-place';\n\n/**\n * Mutates an array into a \"max\"-heap based on `compareFn` so that for any `item` in the heap, `compareFn(heap[0], item) > 0`.\n *\n * @param heap - The array to be heapified. The array would be mutated!\n * @param compareFn - The comparator used to order items in the heap. Use the\n * same function in all calls mutating the same heap otherwise you'd get\n * unexpected results.\n */\nexport function heapify<T>(\n heap: Array<T>,\n compareFn: CompareFunction<T>,\n): void {\n for (let i = Math.floor(heap.length / 2) - 1; i >= 0; i--) {\n heapSiftDown(heap, i, compareFn);\n }\n}\n\n/**\n * Insert an item into a heap if it's \"smaller\" (in regards to `compareFn`) than\n * the current head of the heap (which is the \"largest\" value in the heap). If\n * the item is inserted, the previous head of the heap is returned, otherwise\n * `undefined` is returned and the heap is unchanged.\n *\n * @param heap - A *mutable* array representing a heap (see `heapify`).\n * @param compareFn - The comparator used to order items in the heap. Use the.\n * @param item - The item to be inserted into the heap.\n * @returns `undefined` if the heap is unchanged, or the previous head of the\n * heap if the item was inserted.\n */\nexport function heapMaybeInsert<T>(\n heap: Array<T>,\n compareFn: CompareFunction<T>,\n item: T,\n): T | undefined {\n if (!hasAtLeast(heap, 1)) {\n return undefined;\n }\n\n const [head] = heap;\n\n if (compareFn(item, head) >= 0) {\n // The item shouldn't be inserted into the heap, the heap is unchanged.\n return undefined;\n }\n\n heap[0] = item;\n heapSiftDown(heap, 0, compareFn);\n return head;\n}\n\n/**\n * The main heap operation. Takes a `heap` and an `index` and sifts the item\n * down the heap until it reaches the correct position based on `compareFn`,\n * swapping other items in the process.\n */\nfunction heapSiftDown<T>(\n heap: Array<T>,\n index: number,\n compareFn: CompareFunction<T>,\n): void {\n let currentIndex = index;\n\n // The loop continues while the currentIndex has children in the heap.\n while (currentIndex * 2 + 1 < heap.length) {\n const firstChildIndex = currentIndex * 2 + 1;\n\n let swapIndex\n = compareFn(heap[currentIndex]!, heap[firstChildIndex]!) < 0\n ? // Is the parent \"smaller\" (in regards to `compareFn`) to its child?\n firstChildIndex\n : currentIndex;\n\n const secondChildIndex = firstChildIndex + 1;\n if (\n secondChildIndex < heap.length\n && compareFn(heap[swapIndex]!, heap[secondChildIndex]!) < 0\n ) {\n // Is there a second child? Is it the smallest of the three?\n swapIndex = secondChildIndex;\n }\n\n if (swapIndex === currentIndex) {\n // We assume the array is a heap and the existing order of items satisfies\n // the compareFn so we can stop here.\n return;\n }\n\n swapInPlace(heap, currentIndex, swapIndex);\n\n currentIndex = swapIndex;\n }\n}\n"],"mappings":"gFAgBA,SAAgB,EACd,EACA,EACM,CACN,IAAK,IAAI,EAAI,KAAK,MAAM,EAAK,OAAS,CAAC,EAAI,EAAG,GAAK,EAAG,IACpD,EAAa,EAAM,EAAG,CAAS,CAEnC,CAcA,SAAgB,EACd,EACA,EACA,EACe,CACf,GAAI,CAACA,EAAAA,WAAW,EAAM,CAAC,EACrB,OAGF,GAAM,CAAC,GAAQ,EAEX,OAAU,EAAM,CAAI,GAAK,GAO7B,MAFA,GAAK,GAAK,EACV,EAAa,EAAM,EAAG,CAAS,EACxB,CACT,CAOA,SAAS,EACP,EACA,EACA,EACM,CACN,IAAI,EAAe,EAGnB,KAAO,EAAe,EAAI,EAAI,EAAK,QAAQ,CACzC,IAAM,EAAkB,EAAe,EAAI,EAEvC,EACA,EAAU,EAAK,GAAgB,EAAK,EAAiB,EAAI,EAEzD,EACE,EAEA,EAAmB,EAAkB,EAS3C,GAPE,EAAmB,EAAK,QACrB,EAAU,EAAK,GAAa,EAAK,EAAkB,EAAI,IAG1D,EAAY,GAGV,IAAc,EAGhB,OAGF,EAAA,EAAY,EAAM,EAAc,CAAS,EAEzC,EAAe,CACjB,CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{hasAtLeast as e}from"./has-at-least.js";import{t}from"./swap-in-place-
|
|
2
|
-
//# sourceMappingURL=heap-
|
|
1
|
+
import{hasAtLeast as e}from"./has-at-least.js";import{t}from"./swap-in-place-ubtnp8en.js";function n(e,t){for(let n=Math.floor(e.length/2)-1;n>=0;n--)i(e,n,t)}function r(t,n,r){if(!e(t,1))return;let[a]=t;if(!(n(r,a)>=0))return t[0]=r,i(t,0,n),a}function i(e,n,r){let i=n;for(;i*2+1<e.length;){let n=i*2+1,a=r(e[i],e[n])<0?n:i,o=n+1;if(o<e.length&&r(e[a],e[o])<0&&(a=o),a===i)return;t(e,i,a),i=a}}export{n,r as t};
|
|
2
|
+
//# sourceMappingURL=heap-CL5ahv5n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heap-
|
|
1
|
+
{"version":3,"file":"heap-CL5ahv5n.js","names":[],"sources":["../src/internal/heap.ts"],"sourcesContent":["/**\n * Heap related utilities.\n */\n\nimport type { CompareFunction } from './types/compare-function';\nimport { hasAtLeast } from '../has-at-least';\nimport { swapInPlace } from './swap-in-place';\n\n/**\n * Mutates an array into a \"max\"-heap based on `compareFn` so that for any `item` in the heap, `compareFn(heap[0], item) > 0`.\n *\n * @param heap - The array to be heapified. The array would be mutated!\n * @param compareFn - The comparator used to order items in the heap. Use the\n * same function in all calls mutating the same heap otherwise you'd get\n * unexpected results.\n */\nexport function heapify<T>(\n heap: Array<T>,\n compareFn: CompareFunction<T>,\n): void {\n for (let i = Math.floor(heap.length / 2) - 1; i >= 0; i--) {\n heapSiftDown(heap, i, compareFn);\n }\n}\n\n/**\n * Insert an item into a heap if it's \"smaller\" (in regards to `compareFn`) than\n * the current head of the heap (which is the \"largest\" value in the heap). If\n * the item is inserted, the previous head of the heap is returned, otherwise\n * `undefined` is returned and the heap is unchanged.\n *\n * @param heap - A *mutable* array representing a heap (see `heapify`).\n * @param compareFn - The comparator used to order items in the heap. Use the.\n * @param item - The item to be inserted into the heap.\n * @returns `undefined` if the heap is unchanged, or the previous head of the\n * heap if the item was inserted.\n */\nexport function heapMaybeInsert<T>(\n heap: Array<T>,\n compareFn: CompareFunction<T>,\n item: T,\n): T | undefined {\n if (!hasAtLeast(heap, 1)) {\n return undefined;\n }\n\n const [head] = heap;\n\n if (compareFn(item, head) >= 0) {\n // The item shouldn't be inserted into the heap, the heap is unchanged.\n return undefined;\n }\n\n heap[0] = item;\n heapSiftDown(heap, 0, compareFn);\n return head;\n}\n\n/**\n * The main heap operation. Takes a `heap` and an `index` and sifts the item\n * down the heap until it reaches the correct position based on `compareFn`,\n * swapping other items in the process.\n */\nfunction heapSiftDown<T>(\n heap: Array<T>,\n index: number,\n compareFn: CompareFunction<T>,\n): void {\n let currentIndex = index;\n\n // The loop continues while the currentIndex has children in the heap.\n while (currentIndex * 2 + 1 < heap.length) {\n const firstChildIndex = currentIndex * 2 + 1;\n\n let swapIndex\n = compareFn(heap[currentIndex]!, heap[firstChildIndex]!) < 0\n ? // Is the parent \"smaller\" (in regards to `compareFn`) to its child?\n firstChildIndex\n : currentIndex;\n\n const secondChildIndex = firstChildIndex + 1;\n if (\n secondChildIndex < heap.length\n && compareFn(heap[swapIndex]!, heap[secondChildIndex]!) < 0\n ) {\n // Is there a second child? Is it the smallest of the three?\n swapIndex = secondChildIndex;\n }\n\n if (swapIndex === currentIndex) {\n // We assume the array is a heap and the existing order of items satisfies\n // the compareFn so we can stop here.\n return;\n }\n\n swapInPlace(heap, currentIndex, swapIndex);\n\n currentIndex = swapIndex;\n }\n}\n"],"mappings":"0FAgBA,SAAgB,EACd,EACA,EACM,CACN,IAAK,IAAI,EAAI,KAAK,MAAM,EAAK,OAAS,CAAC,EAAI,EAAG,GAAK,EAAG,IACpD,EAAa,EAAM,EAAG,CAAS,CAEnC,CAcA,SAAgB,EACd,EACA,EACA,EACe,CACf,GAAI,CAAC,EAAW,EAAM,CAAC,EACrB,OAGF,GAAM,CAAC,GAAQ,EAEX,OAAU,EAAM,CAAI,GAAK,GAO7B,MAFA,GAAK,GAAK,EACV,EAAa,EAAM,EAAG,CAAS,EACxB,CACT,CAOA,SAAS,EACP,EACA,EACA,EACM,CACN,IAAI,EAAe,EAGnB,KAAO,EAAe,EAAI,EAAI,EAAK,QAAQ,CACzC,IAAM,EAAkB,EAAe,EAAI,EAEvC,EACA,EAAU,EAAK,GAAgB,EAAK,EAAiB,EAAI,EAEzD,EACE,EAEA,EAAmB,EAAkB,EAS3C,GAPE,EAAmB,EAAK,QACrB,EAAU,EAAK,GAAa,EAAK,EAAkB,EAAI,IAG1D,EAAY,GAGV,IAAc,EAGhB,OAGF,EAAY,EAAM,EAAc,CAAS,EAEzC,EAAe,CACjB,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"human-readable-file-size.cjs","names":[],"sources":["../src/human-readable-file-size.ts"],"sourcesContent":["/**\n * Returns human readable file size.\n *\n * @param bytes the file size in bytes\n * @param base the base (1000 or 1024)\n * @signature\n * P.humanReadableFileSize(bytes, base)\n * @example\n * P.humanReadableFileSize(1000); // => '1.0 kB'\n * P.humanReadableFileSize(2097152, 1024); // => '2.0 Mib'\n * @category String\n */\nexport function humanReadableFileSize(bytes: number, base: 1000 | 1024 = 1000): string {\n if (bytes < base) {\n return `${bytes} B`;\n }\n\n const prefix = base === 1024 ? ['Ki', 'Mi', 'Gi'] : ['k', 'M', 'G'];\n let unit = -1;\n\n while (Math.abs(bytes) >= base && unit < prefix.length - 1) {\n bytes /= base;\n ++unit;\n }\n\n return `${bytes.toFixed(1)} ${prefix[unit]}B`;\n}\n"],"mappings":"mEAYA,SAAgB,EAAsB,EAAe,EAAoB,IAAc,CACrF,GAAI,EAAQ,EACV,MAAO,GAAG,EAAM,IAGlB,IAAM,EAAS,IAAS,KAAO,CAAC,KAAM,KAAM,
|
|
1
|
+
{"version":3,"file":"human-readable-file-size.cjs","names":[],"sources":["../src/human-readable-file-size.ts"],"sourcesContent":["/**\n * Returns human readable file size.\n *\n * @param bytes the file size in bytes\n * @param base the base (1000 or 1024)\n * @signature\n * P.humanReadableFileSize(bytes, base)\n * @example\n * P.humanReadableFileSize(1000); // => '1.0 kB'\n * P.humanReadableFileSize(2097152, 1024); // => '2.0 Mib'\n * @category String\n */\nexport function humanReadableFileSize(bytes: number, base: 1000 | 1024 = 1000): string {\n if (bytes < base) {\n return `${bytes} B`;\n }\n\n const prefix = base === 1024 ? ['Ki', 'Mi', 'Gi'] : ['k', 'M', 'G'];\n let unit = -1;\n\n while (Math.abs(bytes) >= base && unit < prefix.length - 1) {\n bytes /= base;\n ++unit;\n }\n\n return `${bytes.toFixed(1)} ${prefix[unit]}B`;\n}\n"],"mappings":"mEAYA,SAAgB,EAAsB,EAAe,EAAoB,IAAc,CACrF,GAAI,EAAQ,EACV,MAAO,GAAG,EAAM,IAGlB,IAAM,EAAS,IAAS,KAAO,CAAC,KAAM,KAAM,IAAI,EAAI,CAAC,IAAK,IAAK,GAAG,EAC9D,EAAO,GAEX,KAAO,KAAK,IAAI,CAAK,GAAK,GAAQ,EAAO,EAAO,OAAS,GACvD,GAAS,EACT,EAAE,EAGJ,MAAO,GAAG,EAAM,QAAQ,CAAC,EAAE,GAAG,EAAO,GAAM,EAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"human-readable-file-size.js","names":[],"sources":["../src/human-readable-file-size.ts"],"sourcesContent":["/**\n * Returns human readable file size.\n *\n * @param bytes the file size in bytes\n * @param base the base (1000 or 1024)\n * @signature\n * P.humanReadableFileSize(bytes, base)\n * @example\n * P.humanReadableFileSize(1000); // => '1.0 kB'\n * P.humanReadableFileSize(2097152, 1024); // => '2.0 Mib'\n * @category String\n */\nexport function humanReadableFileSize(bytes: number, base: 1000 | 1024 = 1000): string {\n if (bytes < base) {\n return `${bytes} B`;\n }\n\n const prefix = base === 1024 ? ['Ki', 'Mi', 'Gi'] : ['k', 'M', 'G'];\n let unit = -1;\n\n while (Math.abs(bytes) >= base && unit < prefix.length - 1) {\n bytes /= base;\n ++unit;\n }\n\n return `${bytes.toFixed(1)} ${prefix[unit]}B`;\n}\n"],"mappings":"AAYA,SAAgB,EAAsB,EAAe,EAAoB,IAAc,CACrF,GAAI,EAAQ,EACV,MAAO,GAAG,EAAM,IAGlB,IAAM,EAAS,IAAS,KAAO,CAAC,KAAM,KAAM,
|
|
1
|
+
{"version":3,"file":"human-readable-file-size.js","names":[],"sources":["../src/human-readable-file-size.ts"],"sourcesContent":["/**\n * Returns human readable file size.\n *\n * @param bytes the file size in bytes\n * @param base the base (1000 or 1024)\n * @signature\n * P.humanReadableFileSize(bytes, base)\n * @example\n * P.humanReadableFileSize(1000); // => '1.0 kB'\n * P.humanReadableFileSize(2097152, 1024); // => '2.0 Mib'\n * @category String\n */\nexport function humanReadableFileSize(bytes: number, base: 1000 | 1024 = 1000): string {\n if (bytes < base) {\n return `${bytes} B`;\n }\n\n const prefix = base === 1024 ? ['Ki', 'Mi', 'Gi'] : ['k', 'M', 'G'];\n let unit = -1;\n\n while (Math.abs(bytes) >= base && unit < prefix.length - 1) {\n bytes /= base;\n ++unit;\n }\n\n return `${bytes.toFixed(1)} ${prefix[unit]}B`;\n}\n"],"mappings":"AAYA,SAAgB,EAAsB,EAAe,EAAoB,IAAc,CACrF,GAAI,EAAQ,EACV,MAAO,GAAG,EAAM,IAGlB,IAAM,EAAS,IAAS,KAAO,CAAC,KAAM,KAAM,IAAI,EAAI,CAAC,IAAK,IAAK,GAAG,EAC9D,EAAO,GAEX,KAAO,KAAK,IAAI,CAAK,GAAK,GAAQ,EAAO,EAAO,OAAS,GACvD,GAAS,EACT,EAAE,EAGJ,MAAO,GAAG,EAAM,QAAQ,CAAC,EAAE,GAAG,EAAO,GAAM,EAC7C"}
|
package/dist/identity.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.cjs","names":[],"sources":["../src/identity.ts"],"sourcesContent":["// eslint-disable-next-line ts/no-explicit-any -- Accept functions with more than a single parameter too, we use `any` because that catches all possible cases.\ntype IdentityFunction = <T>(firstParameter: T, ...rest: any) => T;\n\nconst identityImplementation: IdentityFunction = (firstParameter) =>\n firstParameter;\n\n/**\n * A function that returns the first argument passed to it.\n *\n * Notice that this is a dataLast impl where the function needs to be invoked\n * to get the \"do nothing\" function.\n *\n * See also:\n * `doNothing` - A function that doesn't return anything.\n * `constant` - A function that ignores the input arguments and returns the same value on every invocation.\n *\n * @signature\n * identity();\n * @example\n * map([1,2,3], identity()); // => [1,2,3]\n * @category Function\n */\nexport function identity(): IdentityFunction {\n // Notice that the exported identity function is just the \"factory\" for the\n // identity function. We do it this way so that all \"Function\" utilities have\n // a similar API where the function is called, and not just used \"headless\".\n // e.g. `identity()` and not `identity`, just like the API for `constant(1)`.\n return identityImplementation;\n}\n"],"mappings":"mEAGA,MAAM,EAA4C,GAChD,EAkBF,SAAgB,GAA6B,CAK3C,OAAO"}
|
|
1
|
+
{"version":3,"file":"identity.cjs","names":[],"sources":["../src/identity.ts"],"sourcesContent":["// eslint-disable-next-line ts/no-explicit-any -- Accept functions with more than a single parameter too, we use `any` because that catches all possible cases.\ntype IdentityFunction = <T>(firstParameter: T, ...rest: any) => T;\n\nconst identityImplementation: IdentityFunction = (firstParameter) =>\n firstParameter;\n\n/**\n * A function that returns the first argument passed to it.\n *\n * Notice that this is a dataLast impl where the function needs to be invoked\n * to get the \"do nothing\" function.\n *\n * See also:\n * `doNothing` - A function that doesn't return anything.\n * `constant` - A function that ignores the input arguments and returns the same value on every invocation.\n *\n * @signature\n * identity();\n * @example\n * map([1,2,3], identity()); // => [1,2,3]\n * @category Function\n */\nexport function identity(): IdentityFunction {\n // Notice that the exported identity function is just the \"factory\" for the\n // identity function. We do it this way so that all \"Function\" utilities have\n // a similar API where the function is called, and not just used \"headless\".\n // e.g. `identity()` and not `identity`, just like the API for `constant(1)`.\n return identityImplementation;\n}\n"],"mappings":"mEAGA,MAAM,EAA4C,GAChD,EAkBF,SAAgB,GAA6B,CAK3C,OAAO,CACT"}
|
package/dist/identity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","names":[],"sources":["../src/identity.ts"],"sourcesContent":["// eslint-disable-next-line ts/no-explicit-any -- Accept functions with more than a single parameter too, we use `any` because that catches all possible cases.\ntype IdentityFunction = <T>(firstParameter: T, ...rest: any) => T;\n\nconst identityImplementation: IdentityFunction = (firstParameter) =>\n firstParameter;\n\n/**\n * A function that returns the first argument passed to it.\n *\n * Notice that this is a dataLast impl where the function needs to be invoked\n * to get the \"do nothing\" function.\n *\n * See also:\n * `doNothing` - A function that doesn't return anything.\n * `constant` - A function that ignores the input arguments and returns the same value on every invocation.\n *\n * @signature\n * identity();\n * @example\n * map([1,2,3], identity()); // => [1,2,3]\n * @category Function\n */\nexport function identity(): IdentityFunction {\n // Notice that the exported identity function is just the \"factory\" for the\n // identity function. We do it this way so that all \"Function\" utilities have\n // a similar API where the function is called, and not just used \"headless\".\n // e.g. `identity()` and not `identity`, just like the API for `constant(1)`.\n return identityImplementation;\n}\n"],"mappings":"AAGA,MAAM,EAA4C,GAChD,EAkBF,SAAgB,GAA6B,CAK3C,OAAO"}
|
|
1
|
+
{"version":3,"file":"identity.js","names":[],"sources":["../src/identity.ts"],"sourcesContent":["// eslint-disable-next-line ts/no-explicit-any -- Accept functions with more than a single parameter too, we use `any` because that catches all possible cases.\ntype IdentityFunction = <T>(firstParameter: T, ...rest: any) => T;\n\nconst identityImplementation: IdentityFunction = (firstParameter) =>\n firstParameter;\n\n/**\n * A function that returns the first argument passed to it.\n *\n * Notice that this is a dataLast impl where the function needs to be invoked\n * to get the \"do nothing\" function.\n *\n * See also:\n * `doNothing` - A function that doesn't return anything.\n * `constant` - A function that ignores the input arguments and returns the same value on every invocation.\n *\n * @signature\n * identity();\n * @example\n * map([1,2,3], identity()); // => [1,2,3]\n * @category Function\n */\nexport function identity(): IdentityFunction {\n // Notice that the exported identity function is just the \"factory\" for the\n // identity function. We do it this way so that all \"Function\" utilities have\n // a similar API where the function is called, and not just used \"headless\".\n // e.g. `identity()` and not `identity`, just like the API for `constant(1)`.\n return identityImplementation;\n}\n"],"mappings":"AAGA,MAAM,EAA4C,GAChD,EAkBF,SAAgB,GAA6B,CAK3C,OAAO,CACT"}
|
package/dist/index-by.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(
|
|
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={};for(let[r,i]of e.entries()){let a=t(i,r,e);n[a]=i}return n}exports.indexBy=t;
|
|
2
2
|
//# sourceMappingURL=index-by.cjs.map
|
package/dist/index-by.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-by.cjs","names":["curry"],"sources":["../src/index-by.ts"],"sourcesContent":["import type { BoundedPartial } from './internal/types/bounded-partial';\nimport { curry } from './curry';\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param data - The array.\n * @param mapper - The indexing function.\n * @signature\n * indexBy(array, fn)\n * @example\n * indexBy(['one', 'two', 'three'], x => x.length) // => {3: 'two', 5: 'three'}\n * @dataFirst\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>>;\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param mapper - The indexing function.\n * @signature\n * indexBy(fn)(array)\n * @example\n * pipe(\n * ['one', 'two', 'three'],\n * indexBy(x => x.length)\n * ) // => {3: 'two', 5: 'three'}\n * @dataLast\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): (data: ReadonlyArray<T>) => BoundedPartial<Record<K, T>>;\n\nexport function indexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(indexByImplementation, args);\n}\n\nfunction indexByImplementation<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>> {\n const out: Partial<Record<K, T>> = {};\n\n for (const [index, item] of data.entries()) {\n const key = mapper(item, index, data);\n out[key] = item;\n }\n\n return out as BoundedPartial<Record<K, T>>;\n}\n"],"mappings":"kGAsDA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAOA,EAAAA,MAAM,EAAuB,
|
|
1
|
+
{"version":3,"file":"index-by.cjs","names":["curry"],"sources":["../src/index-by.ts"],"sourcesContent":["import type { BoundedPartial } from './internal/types/bounded-partial';\nimport { curry } from './curry';\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param data - The array.\n * @param mapper - The indexing function.\n * @signature\n * indexBy(array, fn)\n * @example\n * indexBy(['one', 'two', 'three'], x => x.length) // => {3: 'two', 5: 'three'}\n * @dataFirst\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>>;\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param mapper - The indexing function.\n * @signature\n * indexBy(fn)(array)\n * @example\n * pipe(\n * ['one', 'two', 'three'],\n * indexBy(x => x.length)\n * ) // => {3: 'two', 5: 'three'}\n * @dataLast\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): (data: ReadonlyArray<T>) => BoundedPartial<Record<K, T>>;\n\nexport function indexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(indexByImplementation, args);\n}\n\nfunction indexByImplementation<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>> {\n const out: Partial<Record<K, T>> = {};\n\n for (const [index, item] of data.entries()) {\n const key = mapper(item, index, data);\n out[key] = item;\n }\n\n return out as BoundedPartial<Record<K, T>>;\n}\n"],"mappings":"kGAsDA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAOA,EAAAA,MAAM,EAAuB,CAAI,CAC1C,CAEA,SAAS,EACP,EACA,EAC8B,CAC9B,IAAM,EAA6B,CAAC,EAEpC,IAAK,GAAM,CAAC,EAAO,KAAS,EAAK,QAAQ,EAAG,CAC1C,IAAM,EAAM,EAAO,EAAM,EAAO,CAAI,EACpC,EAAI,GAAO,CACb,CAEA,OAAO,CACT"}
|
package/dist/index-by.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-by.js","names":[],"sources":["../src/index-by.ts"],"sourcesContent":["import type { BoundedPartial } from './internal/types/bounded-partial';\nimport { curry } from './curry';\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param data - The array.\n * @param mapper - The indexing function.\n * @signature\n * indexBy(array, fn)\n * @example\n * indexBy(['one', 'two', 'three'], x => x.length) // => {3: 'two', 5: 'three'}\n * @dataFirst\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>>;\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param mapper - The indexing function.\n * @signature\n * indexBy(fn)(array)\n * @example\n * pipe(\n * ['one', 'two', 'three'],\n * indexBy(x => x.length)\n * ) // => {3: 'two', 5: 'three'}\n * @dataLast\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): (data: ReadonlyArray<T>) => BoundedPartial<Record<K, T>>;\n\nexport function indexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(indexByImplementation, args);\n}\n\nfunction indexByImplementation<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>> {\n const out: Partial<Record<K, T>> = {};\n\n for (const [index, item] of data.entries()) {\n const key = mapper(item, index, data);\n out[key] = item;\n }\n\n return out as BoundedPartial<Record<K, T>>;\n}\n"],"mappings":"mCAsDA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAO,EAAM,EAAuB,
|
|
1
|
+
{"version":3,"file":"index-by.js","names":[],"sources":["../src/index-by.ts"],"sourcesContent":["import type { BoundedPartial } from './internal/types/bounded-partial';\nimport { curry } from './curry';\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param data - The array.\n * @param mapper - The indexing function.\n * @signature\n * indexBy(array, fn)\n * @example\n * indexBy(['one', 'two', 'three'], x => x.length) // => {3: 'two', 5: 'three'}\n * @dataFirst\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>>;\n\n/**\n * Converts a list of objects into an object indexing the objects by the given\n * key.\n *\n * There are several other functions that could be used to build an object from\n * an array:\n * `fromKeys` - Builds an object from an array of *keys* and a mapper for values.\n * `pullObject` - Builds an object from an array of items with mappers for *both* keys and values.\n * `fromEntries` - Builds an object from an array of key-value pairs.\n * Refer to the docs for more details.\n *\n * @param mapper - The indexing function.\n * @signature\n * indexBy(fn)(array)\n * @example\n * pipe(\n * ['one', 'two', 'three'],\n * indexBy(x => x.length)\n * ) // => {3: 'two', 5: 'three'}\n * @dataLast\n * @category Array\n */\nexport function indexBy<T, K extends PropertyKey>(\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): (data: ReadonlyArray<T>) => BoundedPartial<Record<K, T>>;\n\nexport function indexBy(...args: ReadonlyArray<unknown>): unknown {\n return curry(indexByImplementation, args);\n}\n\nfunction indexByImplementation<T, K extends PropertyKey>(\n data: ReadonlyArray<T>,\n mapper: (item: T, index: number, data: ReadonlyArray<T>) => K,\n): BoundedPartial<Record<K, T>> {\n const out: Partial<Record<K, T>> = {};\n\n for (const [index, item] of data.entries()) {\n const key = mapper(item, index, data);\n out[key] = item;\n }\n\n return out as BoundedPartial<Record<K, T>>;\n}\n"],"mappings":"mCAsDA,SAAgB,EAAQ,GAAG,EAAuC,CAChE,OAAO,EAAM,EAAuB,CAAI,CAC1C,CAEA,SAAS,EACP,EACA,EAC8B,CAC9B,IAAM,EAA6B,CAAC,EAEpC,IAAK,GAAM,CAAC,EAAO,KAAS,EAAK,QAAQ,EAAG,CAC1C,IAAM,EAAM,EAAO,EAAM,EAAO,CAAI,EACpC,EAAI,GAAO,CACb,CAEA,OAAO,CACT"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./curry.cjs"),t=require("./add-prop.cjs"),n=require("./add.cjs"),r=require("./all-pass.cjs"),i=require("./any-pass.cjs"),a=require("./capitalize.cjs"),o=require("./ceil.cjs"),s=require("./chunk.cjs"),c=require("./clamp.cjs"),l=require("./clone.cjs"),u=require("./concat.cjs"),d=require("./conditional.cjs"),f=require("./constant.cjs"),p=require("./count-by.cjs"),m=require("./debounce.cjs"),h=require("./default-to.cjs"),g=require("./pipe.cjs"),_=require("./difference-with.cjs"),v=require("./difference.cjs"),y=require("./divide.cjs"),b=require("./do-nothing.cjs"),x=require("./has-at-least.cjs"),S=require("./drop-first-by.cjs"),C=require("./drop-last-while.cjs"),w=require("./drop-last.cjs"),T=require("./drop-while.cjs"),E=require("./drop.cjs"),D=require("./ends-with.cjs"),O=require("./entries.cjs"),k=require("./evolve.cjs"),A=require("./filter.cjs"),j=require("./find-index.cjs"),M=require("./find-last-index.cjs"),N=require("./find-last.cjs"),P=require("./find.cjs"),F=require("./first-by.cjs"),I=require("./first.cjs"),L=require("./flat-map.cjs"),R=require("./flat.cjs"),z=require("./floor.cjs"),B=require("./for-each-obj.cjs"),V=require("./for-each.cjs"),H=require("./from-entries.cjs"),U=require("./from-keys.cjs"),W=require("./funnel.cjs"),G=require("./group-by-prop.cjs"),K=require("./group-by.cjs"),q=require("./has-prop.cjs"),J=require("./is-deep-equal.cjs"),Y=require("./has-sub-object.cjs"),X=require("./human-readable-file-size.cjs"),Z=require("./identity.cjs"),Q=require("./index-by.cjs"),$=require("./intersection.cjs"),ee=require("./intersection-with.cjs"),te=require("./invert.cjs"),ne=require("./is-array.cjs"),re=require("./is-big-int.cjs"),ie=require("./is-boolean.cjs"),ae=require("./is-date.cjs"),oe=require("./is-defined.cjs"),se=require("./is-empty.cjs"),ce=require("./is-emptyish.cjs"),le=require("./is-error.cjs"),ue=require("./is-function.cjs"),de=require("./is-included-in.cjs"),fe=require("./is-non-null.cjs"),pe=require("./is-non-nullish.cjs"),me=require("./is-not.cjs"),he=require("./is-nullish.cjs"),ge=require("./is-number.cjs"),_e=require("./is-object-type.cjs"),ve=require("./is-plain-object.cjs"),ye=require("./is-promise.cjs"),be=require("./is-shallow-equal.cjs"),xe=require("./is-strict-equal.cjs"),Se=require("./is-string.cjs"),Ce=require("./is-symbol.cjs"),we=require("./is-truthy.cjs"),Te=require("./join.cjs"),Ee=require("./key-codes.cjs"),De=require("./keys.cjs"),Oe=require("./last.cjs"),ke=require("./length.cjs"),Ae=require("./map.cjs"),je=require("./map-keys.cjs"),Me=require("./map-to-obj.cjs"),Ne=require("./map-values.cjs"),Pe=require("./map-with-feedback.cjs"),Fe=require("./sum.cjs"),Ie=require("./mean.cjs"),Le=require("./mean-by.cjs"),Re=require("./median.cjs"),ze=require("./merge.cjs"),Be=require("./merge-all.cjs"),Ve=require("./merge-deep.cjs"),He=require("./multiply.cjs"),Ue=require("./nth-by-BrkoqeV2.cjs"),We=require("./obj-of.cjs"),Ge=require("./omit.cjs"),Ke=require("./omit-by.cjs"),qe=require("./once.cjs"),Je=require("./only.cjs"),Ye=require("./partial-bind.cjs"),Xe=require("./partial-last-bind.cjs"),Ze=require("./partition.cjs"),Qe=require("./path-or.cjs"),$e=require("./pick.cjs"),et=require("./pick-by.cjs"),tt=require("./piped.cjs"),nt=require("./product.cjs"),rt=require("./prop.cjs"),it=require("./pull-object.cjs"),at=require("./random-big-int.cjs"),ot=require("./random-integer.cjs"),st=require("./random-string.cjs"),ct=require("./range.cjs"),lt=require("./rank-by.cjs"),ut=require("./reduce.cjs"),dt=require("./reverse.cjs"),ft=require("./round.cjs"),pt=require("./sample.cjs"),mt=require("./set.cjs"),ht=require("./set-path.cjs"),gt=require("./shuffle.cjs"),_t=require("./sleep.cjs"),vt=require("./slice-string.cjs"),yt=require("./slugify.cjs"),bt=require("./sort.cjs"),xt=require("./sort-by.cjs"),St=require("./sorted-index.cjs"),Ct=require("./sorted-index-by.cjs"),wt=require("./sorted-index-with.cjs"),Tt=require("./sorted-last-index.cjs"),Et=require("./sorted-last-index-by.cjs"),Dt=require("./splice.cjs"),Ot=require("./split.cjs"),kt=require("./split-at.cjs"),At=require("./split-when.cjs"),jt=require("./starts-with.cjs"),Mt=require("./string-to-path.cjs"),Nt=require("./subtract.cjs"),Pt=require("./sum-by.cjs"),Ft=require("./swap-indices.cjs"),It=require("./swap-props.cjs"),Lt=require("./take.cjs"),Rt=require("./take-first-by.cjs"),zt=require("./take-last.cjs"),Bt=require("./take-last-while.cjs"),Vt=require("./take-while.cjs"),Ht=require("./tap.cjs"),Ut=require("./times.cjs"),Wt=require("./to-camel-case.cjs"),Gt=require("./to-kebab-case.cjs"),Kt=require("./to-lower-case.cjs"),qt=require("./to-snake-case.cjs"),Jt=require("./to-title-case.cjs"),Yt=require("./to-upper-case.cjs"),Xt=require("./truncate.cjs");require("./type.helpers.cjs");const Zt=require("./uncapitalize.cjs"),Qt=require("./unique.cjs"),$t=require("./unique-by.cjs"),en=require("./unique-with.cjs"),tn=require("./values.cjs"),nn=require("./when.cjs"),rn=require("./zip.cjs"),an=require("./zip-with.cjs"),on=typeof window<`u`;exports.KEY_CODES=Ee.KEY_CODES,exports.add=n.add,exports.addProp=t.addProp,exports.allPass=r.allPass,exports.anyPass=i.anyPass,exports.capitalize=a.capitalize,exports.ceil=o.ceil,exports.chunk=s.chunk,exports.clamp=c.clamp,exports.clone=l.clone,exports.concat=u.concat,exports.conditional=d.conditional,exports.constant=f.constant,exports.countBy=p.countBy,exports.curry=e.curry,exports.debounce=m.debounce,exports.defaultTo=h.defaultTo,exports.difference=v.difference,exports.differenceWith=_.differenceWith,exports.divide=y.divide,exports.doNothing=b.doNothing,exports.drop=E.drop,exports.dropFirstBy=S.dropFirstBy,exports.dropLast=w.dropLast,exports.dropLastWhile=C.dropLastWhile,exports.dropWhile=T.dropWhile,exports.endsWith=D.endsWith,exports.entries=O.entries,exports.evolve=k.evolve,exports.filter=A.filter,exports.find=P.find,exports.findIndex=j.findIndex,exports.findLast=N.findLast,exports.findLastIndex=M.findLastIndex,exports.first=I.first,exports.firstBy=F.firstBy,exports.flat=R.flat,exports.flatMap=L.flatMap,exports.floor=z.floor,exports.forEach=V.forEach,exports.forEachObj=B.forEachObj,exports.fromEntries=H.fromEntries,exports.fromKeys=U.fromKeys,exports.funnel=W.funnel,exports.groupBy=K.groupBy,exports.groupByProp=G.groupByProp,exports.hasAtLeast=x.hasAtLeast,exports.hasProp=q.hasProp,exports.hasSubObject=Y.hasSubObject,exports.humanReadableFileSize=X.humanReadableFileSize,exports.identity=Z.identity,exports.indexBy=Q.indexBy,exports.intersection=$.intersection,exports.intersectionWith=ee.intersectionWith,exports.invert=te.invert,exports.isArray=ne.isArray,exports.isBigInt=re.isBigInt,exports.isBoolean=ie.isBoolean,exports.isBrowser=on,exports.isDate=ae.isDate,exports.isDeepEqual=J.isDeepEqual,exports.isDefined=oe.isDefined,exports.isEmpty=se.isEmpty,exports.isEmptyish=ce.isEmptyish,exports.isError=le.isError,exports.isFunction=ue.isFunction,exports.isIncludedIn=de.isIncludedIn,exports.isNonNull=fe.isNonNull,exports.isNonNullish=pe.isNonNullish,exports.isNot=me.isNot,exports.isNullish=he.isNullish,exports.isNumber=ge.isNumber,exports.isObjectType=_e.isObjectType,exports.isPlainObject=ve.isPlainObject,exports.isPromise=ye.isPromise,exports.isShallowEqual=be.isShallowEqual,exports.isStrictEqual=xe.isStrictEqual,exports.isString=Se.isString,exports.isSymbol=Ce.isSymbol,exports.isTruthy=we.isTruthy,exports.join=Te.join,exports.keys=De.keys,exports.last=Oe.last,exports.length=ke.length,exports.map=Ae.map,exports.mapKeys=je.mapKeys,exports.mapToObj=Me.mapToObj,exports.mapValues=Ne.mapValues,exports.mapWithFeedback=Pe.mapWithFeedback,exports.mean=Ie.mean,exports.meanBy=Le.meanBy,exports.median=Re.median,exports.merge=ze.merge,exports.mergeAll=Be.mergeAll,exports.mergeDeep=Ve.mergeDeep,exports.multiply=He.multiply,exports.nthBy=Ue.t,exports.objOf=We.objOf,exports.omit=Ge.omit,exports.omitBy=Ke.omitBy,exports.once=qe.once,exports.only=Je.only,exports.partialBind=Ye.partialBind,exports.partialLastBind=Xe.partialLastBind,exports.partition=Ze.partition,exports.pathOr=Qe.pathOr,exports.pick=$e.pick,exports.pickBy=et.pickBy,exports.pipe=g.pipe,exports.piped=tt.piped,exports.product=nt.product,exports.prop=rt.prop,exports.pullObject=it.pullObject,exports.randomBigInt=at.randomBigInt,exports.randomInteger=ot.randomInteger,exports.randomString=st.randomString,exports.range=ct.range,exports.rankBy=lt.rankBy,exports.reduce=ut.reduce,exports.reverse=dt.reverse,exports.round=ft.round,exports.sample=pt.sample,exports.set=mt.set,exports.setPath=ht.setPath,exports.shuffle=gt.shuffle,exports.sleep=_t.sleep,exports.sliceString=vt.sliceString,exports.slugify=yt.slugify,exports.sort=bt.sort,exports.sortBy=xt.sortBy,exports.sortedIndex=St.sortedIndex,exports.sortedIndexBy=Ct.sortedIndexBy,exports.sortedIndexWith=wt.sortedIndexWith,exports.sortedLastIndex=Tt.sortedLastIndex,exports.sortedLastIndexBy=Et.sortedLastIndexBy,exports.splice=Dt.splice,exports.split=Ot.split,exports.splitAt=kt.splitAt,exports.splitWhen=At.splitWhen,exports.startsWith=jt.startsWith,exports.stringToPath=Mt.stringToPath,exports.subtract=Nt.subtract,exports.sum=Fe.sum,exports.sumBy=Pt.sumBy,exports.swapIndices=Ft.swapIndices,exports.swapProps=It.swapProps,exports.take=Lt.take,exports.takeFirstBy=Rt.takeFirstBy,exports.takeLast=zt.takeLast,exports.takeLastWhile=Bt.takeLastWhile,exports.takeWhile=Vt.takeWhile,exports.tap=Ht.tap,exports.times=Ut.times,exports.toCamelCase=Wt.toCamelCase,exports.toKebabCase=Gt.toKebabCase,exports.toLowerCase=Kt.toLowerCase,exports.toSnakeCase=qt.toSnakeCase,exports.toTitleCase=Jt.toTitleCase,exports.toUpperCase=Yt.toUpperCase,exports.truncate=Xt.truncate,exports.uncapitalize=Zt.uncapitalize,exports.unique=Qt.unique,exports.uniqueBy=$t.uniqueBy,exports.uniqueWith=en.uniqueWith,exports.values=tn.values,exports.when=nn.when,exports.zip=rn.zip,exports.zipWith=an.zipWith;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from './add';\nexport * from './add-prop';\nexport * from './all-pass';\nexport * from './any-pass';\nexport * from './capitalize';\nexport * from './ceil';\nexport * from './chunk';\nexport * from './clamp';\nexport * from './clone';\nexport * from './concat';\nexport * from './conditional';\nexport * from './constant';\nexport * from './count-by';\nexport * from './curry';\nexport * from './debounce';\nexport * from './default-to';\nexport * from './difference';\nexport * from './difference-with';\nexport * from './divide';\nexport * from './do-nothing';\nexport * from './drop';\nexport * from './drop-first-by';\nexport * from './drop-last';\nexport * from './drop-last-while';\nexport * from './drop-while';\nexport * from './ends-with';\nexport * from './entries';\nexport * from './evolve';\nexport * from './filter';\nexport * from './find';\nexport * from './find-index';\nexport * from './find-last';\nexport * from './find-last-index';\nexport * from './first';\nexport * from './first-by';\nexport * from './flat';\nexport * from './flat-map';\nexport * from './floor';\nexport * from './for-each';\nexport * from './for-each-obj';\nexport * from './from-entries';\nexport * from './from-keys';\nexport * from './funnel';\nexport * from './group-by';\nexport * from './group-by-prop';\nexport * from './has-at-least';\nexport * from './has-sub-object';\nexport * from './human-readable-file-size';\nexport * from './identity';\nexport * from './index-by';\nexport * from './intersection';\nexport * from './intersection-with';\nexport * from './invert';\nexport * from './is-array';\nexport * from './is-big-int';\nexport * from './is-boolean';\nexport * from './is-date';\nexport * from './is-deep-equal';\nexport * from './is-defined';\nexport * from './is-empty';\nexport * from './is-emptyish';\nexport * from './is-error';\nexport * from './is-function';\nexport * from './is-included-in';\nexport * from './is-non-null';\nexport * from './is-non-nullish';\nexport * from './is-not';\nexport * from './is-nullish';\nexport * from './is-number';\nexport * from './is-object-type';\nexport * from './is-plain-object';\nexport * from './is-promise';\nexport * from './is-shallow-equal';\nexport * from './is-strict-equal';\nexport * from './is-string';\nexport * from './is-symbol';\nexport * from './is-truthy';\nexport * from './join';\nexport * from './key-codes';\nexport * from './keys';\nexport * from './last';\nexport * from './length';\nexport * from './map';\nexport * from './map-keys';\nexport * from './map-to-obj';\nexport * from './map-values';\nexport * from './map-with-feedback';\nexport * from './mean';\nexport * from './mean-by';\nexport * from './median';\nexport * from './merge';\nexport * from './merge-all';\nexport * from './merge-deep';\nexport * from './multiply';\nexport * from './nth-by';\nexport * from './obj-of';\nexport * from './omit';\nexport * from './omit-by';\nexport * from './once';\nexport * from './only';\nexport * from './partial-bind';\nexport * from './partial-last-bind';\nexport * from './partition';\nexport * from './path-or';\nexport * from './pick';\nexport * from './pick-by';\nexport * from './pipe';\nexport * from './piped';\nexport * from './product';\nexport * from './prop';\nexport * from './pull-object';\nexport * from './random-big-int';\nexport * from './random-integer';\nexport * from './random-string';\nexport * from './range';\nexport * from './rank-by';\nexport * from './reduce';\nexport * from './reverse';\nexport * from './round';\nexport * from './sample';\nexport * from './set';\nexport * from './set-path';\nexport * from './shuffle';\nexport * from './sleep';\nexport * from './slice-string';\nexport * from './slugify';\nexport * from './sort';\nexport * from './sort-by';\nexport * from './sorted-index';\nexport * from './sorted-index-by';\nexport * from './sorted-index-with';\nexport * from './sorted-last-index';\nexport * from './sorted-last-index-by';\nexport * from './splice';\nexport * from './split';\nexport * from './split-at';\nexport * from './split-when';\nexport * from './starts-with';\nexport * from './string-to-path';\nexport * from './subtract';\nexport * from './sum';\nexport * from './sum-by';\nexport * from './swap-indices';\nexport * from './swap-props';\nexport * from './take';\nexport * from './take-first-by';\nexport * from './take-last';\nexport * from './take-last-while';\nexport * from './take-while';\nexport * from './tap';\nexport * from './times';\nexport * from './to-camel-case';\nexport * from './to-kebab-case';\nexport * from './to-lower-case';\nexport * from './to-snake-case';\nexport * from './to-title-case';\nexport * from './to-upper-case';\nexport * from './truncate';\nexport * from './type.helpers';\nexport * from './uncapitalize';\nexport * from './unique';\nexport * from './unique-by';\nexport * from './unique-with';\nexport * from './values';\nexport * from './when';\nexport * from './zip';\nexport * from './zip-with';\n\nexport const isBrowser = typeof window !== 'undefined';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from './add';\nexport * from './add-prop';\nexport * from './all-pass';\nexport * from './any-pass';\nexport * from './capitalize';\nexport * from './ceil';\nexport * from './chunk';\nexport * from './clamp';\nexport * from './clone';\nexport * from './concat';\nexport * from './conditional';\nexport * from './constant';\nexport * from './count-by';\nexport * from './curry';\nexport * from './debounce';\nexport * from './default-to';\nexport * from './difference';\nexport * from './difference-with';\nexport * from './divide';\nexport * from './do-nothing';\nexport * from './drop';\nexport * from './drop-first-by';\nexport * from './drop-last';\nexport * from './drop-last-while';\nexport * from './drop-while';\nexport * from './ends-with';\nexport * from './entries';\nexport * from './evolve';\nexport * from './filter';\nexport * from './find';\nexport * from './find-index';\nexport * from './find-last';\nexport * from './find-last-index';\nexport * from './first';\nexport * from './first-by';\nexport * from './flat';\nexport * from './flat-map';\nexport * from './floor';\nexport * from './for-each';\nexport * from './for-each-obj';\nexport * from './from-entries';\nexport * from './from-keys';\nexport * from './funnel';\nexport * from './group-by';\nexport * from './group-by-prop';\nexport * from './has-at-least';\nexport * from './has-prop';\nexport * from './has-sub-object';\nexport * from './human-readable-file-size';\nexport * from './identity';\nexport * from './index-by';\nexport * from './intersection';\nexport * from './intersection-with';\nexport * from './invert';\nexport * from './is-array';\nexport * from './is-big-int';\nexport * from './is-boolean';\nexport * from './is-date';\nexport * from './is-deep-equal';\nexport * from './is-defined';\nexport * from './is-empty';\nexport * from './is-emptyish';\nexport * from './is-error';\nexport * from './is-function';\nexport * from './is-included-in';\nexport * from './is-non-null';\nexport * from './is-non-nullish';\nexport * from './is-not';\nexport * from './is-nullish';\nexport * from './is-number';\nexport * from './is-object-type';\nexport * from './is-plain-object';\nexport * from './is-promise';\nexport * from './is-shallow-equal';\nexport * from './is-strict-equal';\nexport * from './is-string';\nexport * from './is-symbol';\nexport * from './is-truthy';\nexport * from './join';\nexport * from './key-codes';\nexport * from './keys';\nexport * from './last';\nexport * from './length';\nexport * from './map';\nexport * from './map-keys';\nexport * from './map-to-obj';\nexport * from './map-values';\nexport * from './map-with-feedback';\nexport * from './mean';\nexport * from './mean-by';\nexport * from './median';\nexport * from './merge';\nexport * from './merge-all';\nexport * from './merge-deep';\nexport * from './multiply';\nexport * from './nth-by';\nexport * from './obj-of';\nexport * from './omit';\nexport * from './omit-by';\nexport * from './once';\nexport * from './only';\nexport * from './partial-bind';\nexport * from './partial-last-bind';\nexport * from './partition';\nexport * from './path-or';\nexport * from './pick';\nexport * from './pick-by';\nexport * from './pipe';\nexport * from './piped';\nexport * from './product';\nexport * from './prop';\nexport * from './pull-object';\nexport * from './random-big-int';\nexport * from './random-integer';\nexport * from './random-string';\nexport * from './range';\nexport * from './rank-by';\nexport * from './reduce';\nexport * from './reverse';\nexport * from './round';\nexport * from './sample';\nexport * from './set';\nexport * from './set-path';\nexport * from './shuffle';\nexport * from './sleep';\nexport * from './slice-string';\nexport * from './slugify';\nexport * from './sort';\nexport * from './sort-by';\nexport * from './sorted-index';\nexport * from './sorted-index-by';\nexport * from './sorted-index-with';\nexport * from './sorted-last-index';\nexport * from './sorted-last-index-by';\nexport * from './splice';\nexport * from './split';\nexport * from './split-at';\nexport * from './split-when';\nexport * from './starts-with';\nexport * from './string-to-path';\nexport * from './subtract';\nexport * from './sum';\nexport * from './sum-by';\nexport * from './swap-indices';\nexport * from './swap-props';\nexport * from './take';\nexport * from './take-first-by';\nexport * from './take-last';\nexport * from './take-last-while';\nexport * from './take-while';\nexport * from './tap';\nexport * from './times';\nexport * from './to-camel-case';\nexport * from './to-kebab-case';\nexport * from './to-lower-case';\nexport * from './to-snake-case';\nexport * from './to-title-case';\nexport * from './to-upper-case';\nexport * from './truncate';\nexport * from './type.helpers';\nexport * from './uncapitalize';\nexport * from './unique';\nexport * from './unique-by';\nexport * from './unique-with';\nexport * from './values';\nexport * from './when';\nexport * from './zip';\nexport * from './zip-with';\n\nexport const isBrowser = typeof window !== 'undefined';\n"],"mappings":"+7JAyKa,GAAY,OAAO,OAAW"}
|