@vinicunca/perkakas 1.0.3 → 1.0.5
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.d.cts +1 -1
- package/dist/add-prop.d.ts +1 -1
- package/dist/chunk-3DFX2FQG.cjs +1 -0
- package/dist/chunk-4WU7JGWS.cjs +1 -0
- package/dist/chunk-AACZ5UGG.cjs +1 -0
- package/dist/chunk-AKGWT6GC.js +1 -0
- package/dist/chunk-BT3FI7L7.js +1 -0
- package/dist/chunk-D5B5IQRS.js +1 -0
- package/dist/{chunk-XQOKSJ5R.cjs → chunk-E6RBEL5Z.cjs} +1 -1
- package/dist/chunk-EPHUNAE5.js +1 -0
- package/dist/chunk-G7BJFBAZ.cjs +1 -0
- package/dist/{chunk-YIUDV3OA.cjs → chunk-HTO3K3VA.cjs} +1 -1
- package/dist/chunk-IABWIMQT.js +1 -0
- package/dist/chunk-IOSBDH5J.cjs +1 -0
- package/dist/chunk-KAA6IVBL.js +1 -0
- package/dist/chunk-MADDQNAR.cjs +1 -0
- package/dist/chunk-OJ2QGTFS.js +1 -0
- package/dist/chunk-PFLGL4YP.js +1 -0
- package/dist/chunk-QT66COHU.js +1 -0
- package/dist/chunk-QTQTKNWA.js +1 -0
- package/dist/chunk-RJAVPEJT.cjs +1 -0
- package/dist/chunk-U2BXIRBJ.js +1 -0
- package/dist/chunk-VN2OAM2N.js +1 -0
- package/dist/chunk-VPG3W5JH.cjs +1 -0
- package/dist/chunk-WQDEYM64.js +1 -0
- package/dist/chunk-WRKGH4XX.js +1 -0
- package/dist/chunk-Y3WI7FPB.cjs +1 -0
- package/dist/chunk-Z5UEQBZP.cjs +1 -0
- package/dist/chunk-Z6HCXPKS.cjs +1 -0
- package/dist/chunk-ZO4ND36N.cjs +1 -0
- package/dist/chunk.cjs +1 -1
- package/dist/chunk.d.cts +91 -5
- package/dist/chunk.d.ts +91 -5
- package/dist/chunk.js +1 -1
- package/dist/chunk.spec-d.cjs +1 -1
- package/dist/chunk.spec-d.js +1 -1
- package/dist/concat.d.cts +1 -1
- package/dist/concat.d.ts +1 -1
- package/dist/conditional.d.cts +1 -1
- package/dist/conditional.d.ts +1 -1
- package/dist/conditional.spec-d.cjs +1 -1
- package/dist/conditional.spec-d.js +1 -1
- package/dist/drop-first-by.d.cts +1 -1
- package/dist/drop-first-by.d.ts +1 -1
- package/dist/drop-last-while.cjs +1 -1
- package/dist/drop-last-while.d.cts +5 -2
- package/dist/drop-last-while.d.ts +5 -2
- package/dist/drop-last-while.js +1 -1
- package/dist/drop-last-while.spec-d.cjs +1 -0
- package/dist/drop-last-while.spec-d.d.cts +2 -0
- package/dist/drop-last-while.spec-d.d.ts +2 -0
- package/dist/drop-last-while.spec-d.js +1 -0
- package/dist/drop-last.cjs +1 -1
- package/dist/drop-last.d.cts +5 -2
- package/dist/drop-last.d.ts +5 -2
- package/dist/drop-last.js +1 -1
- package/dist/drop-last.spec-d.cjs +1 -0
- package/dist/drop-last.spec-d.d.cts +2 -0
- package/dist/drop-last.spec-d.d.ts +2 -0
- package/dist/drop-last.spec-d.js +1 -0
- package/dist/drop-while.cjs +1 -1
- package/dist/drop-while.d.cts +5 -2
- package/dist/drop-while.d.ts +5 -2
- package/dist/drop-while.js +1 -1
- package/dist/drop-while.spec-d.cjs +1 -0
- package/dist/drop-while.spec-d.d.cts +2 -0
- package/dist/drop-while.spec-d.d.ts +2 -0
- package/dist/drop-while.spec-d.js +1 -0
- package/dist/drop.cjs +1 -1
- package/dist/drop.d.cts +23 -2
- package/dist/drop.d.ts +23 -2
- package/dist/drop.js +1 -1
- package/dist/drop.spec-d.cjs +1 -0
- package/dist/drop.spec-d.d.cts +2 -0
- package/dist/drop.spec-d.d.ts +2 -0
- package/dist/drop.spec-d.js +1 -0
- package/dist/evolve.d.cts +1 -1
- package/dist/evolve.d.ts +1 -1
- package/dist/first-by.d.cts +1 -1
- package/dist/first-by.d.ts +1 -1
- package/dist/first.d.cts +1 -1
- package/dist/first.d.ts +1 -1
- package/dist/flat.d.cts +1 -1
- package/dist/flat.d.ts +1 -1
- package/dist/for-each-obj.d.cts +1 -1
- package/dist/for-each-obj.d.ts +1 -1
- package/dist/for-each.d.cts +1 -1
- package/dist/for-each.d.ts +1 -1
- package/dist/from-entries.d.cts +1 -1
- package/dist/from-entries.d.ts +1 -1
- package/dist/from-keys.d.cts +1 -1
- package/dist/from-keys.d.ts +1 -1
- package/dist/group-by.d.cts +1 -1
- package/dist/group-by.d.ts +1 -1
- package/dist/has-at-least.d.cts +1 -1
- package/dist/has-at-least.d.ts +1 -1
- package/dist/has-sub-object.d.cts +1 -1
- package/dist/has-sub-object.d.ts +1 -1
- package/dist/index-by.d.cts +1 -1
- package/dist/index-by.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/is-array.d.cts +1 -1
- package/dist/is-array.d.ts +1 -1
- package/dist/is-big-int.d.cts +1 -1
- package/dist/is-big-int.d.ts +1 -1
- package/dist/is-boolean.d.cts +1 -1
- package/dist/is-boolean.d.ts +1 -1
- package/dist/is-empty.d.cts +1 -1
- package/dist/is-empty.d.ts +1 -1
- package/dist/is-included-in.d.cts +1 -1
- package/dist/is-included-in.d.ts +1 -1
- package/dist/is-nullish.d.cts +1 -1
- package/dist/is-nullish.d.ts +1 -1
- package/dist/is-number.d.cts +1 -1
- package/dist/is-number.d.ts +1 -1
- package/dist/is-object-type.d.cts +1 -1
- package/dist/is-object-type.d.ts +1 -1
- package/dist/is-plain-object.d.cts +1 -1
- package/dist/is-plain-object.d.ts +1 -1
- package/dist/is-string.d.cts +1 -1
- package/dist/is-string.d.ts +1 -1
- package/dist/is-symbol.d.cts +1 -1
- package/dist/is-symbol.d.ts +1 -1
- package/dist/keys.d.cts +1 -1
- package/dist/keys.d.ts +1 -1
- package/dist/last.d.cts +1 -1
- package/dist/last.d.ts +1 -1
- package/dist/map-keys.d.cts +1 -1
- package/dist/map-keys.d.ts +1 -1
- package/dist/map-values.d.cts +1 -1
- package/dist/map-values.d.ts +1 -1
- package/dist/map-with-feedback.d.cts +1 -1
- package/dist/map-with-feedback.d.ts +1 -1
- package/dist/map.d.cts +1 -1
- package/dist/map.d.ts +1 -1
- package/dist/nth-by.d.cts +1 -1
- package/dist/nth-by.d.ts +1 -1
- package/dist/omit-by.d.cts +1 -1
- package/dist/omit-by.d.ts +1 -1
- package/dist/only.d.cts +1 -1
- package/dist/only.d.ts +1 -1
- package/dist/pick-by.d.cts +1 -1
- package/dist/pick-by.d.ts +1 -1
- package/dist/product.d.cts +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/pull-object.d.cts +1 -1
- package/dist/pull-object.d.ts +1 -1
- package/dist/random-integer.cjs +1 -0
- package/dist/random-integer.d.cts +20 -0
- package/dist/random-integer.d.ts +20 -0
- package/dist/random-integer.js +1 -0
- package/dist/random-integer.spec-d.cjs +1 -0
- package/dist/random-integer.spec-d.d.cts +2 -0
- package/dist/random-integer.spec-d.d.ts +2 -0
- package/dist/random-integer.spec-d.js +1 -0
- package/dist/rank-by.d.cts +1 -1
- package/dist/rank-by.d.ts +1 -1
- package/dist/sample.d.cts +1 -1
- package/dist/sample.d.ts +1 -1
- package/dist/set.d.cts +1 -1
- package/dist/set.d.ts +1 -1
- package/dist/shuffle.cjs +1 -1
- package/dist/shuffle.d.cts +5 -2
- package/dist/shuffle.d.ts +5 -2
- package/dist/shuffle.js +1 -1
- package/dist/shuffle.spec-d.cjs +1 -0
- package/dist/shuffle.spec-d.d.cts +2 -0
- package/dist/shuffle.spec-d.d.ts +2 -0
- package/dist/shuffle.spec-d.js +1 -0
- package/dist/sort-by.d.cts +1 -1
- package/dist/sort-by.d.ts +1 -1
- package/dist/sort.d.cts +1 -1
- package/dist/sort.d.ts +1 -1
- package/dist/sum.d.cts +1 -1
- package/dist/sum.d.ts +1 -1
- package/dist/swap-indices.d.cts +1 -1
- package/dist/swap-indices.d.ts +1 -1
- package/dist/take-first-by.d.cts +1 -1
- package/dist/take-first-by.d.ts +1 -1
- package/dist/take-last-while.cjs +1 -1
- package/dist/take-last-while.d.cts +5 -2
- package/dist/take-last-while.d.ts +5 -2
- package/dist/take-last-while.js +1 -1
- package/dist/take-last-while.spec-d-.cjs +1 -0
- package/dist/take-last-while.spec-d-.d.cts +2 -0
- package/dist/take-last-while.spec-d-.d.ts +2 -0
- package/dist/take-last-while.spec-d-.js +1 -0
- package/dist/take-last.cjs +1 -1
- package/dist/take-last.d.cts +5 -2
- package/dist/take-last.d.ts +5 -2
- package/dist/take-last.js +1 -1
- package/dist/take-last.spec-d.cjs +1 -0
- package/dist/take-last.spec-d.d.cts +2 -0
- package/dist/take-last.spec-d.d.ts +2 -0
- package/dist/take-last.spec-d.js +1 -0
- package/dist/take-while.cjs +1 -1
- package/dist/take-while.d.cts +5 -2
- package/dist/take-while.d.ts +5 -2
- package/dist/take-while.js +1 -1
- package/dist/take-white.spec-d.cjs +1 -0
- package/dist/take-white.spec-d.d.cts +2 -0
- package/dist/take-white.spec-d.d.ts +2 -0
- package/dist/take-white.spec-d.js +1 -0
- package/dist/take.cjs +1 -1
- package/dist/take.d.cts +5 -2
- package/dist/take.d.ts +5 -2
- package/dist/take.js +1 -1
- package/dist/take.spec-d.cjs +1 -0
- package/dist/take.spec-d.d.cts +2 -0
- package/dist/take.spec-d.d.ts +2 -0
- package/dist/take.spec-d.js +1 -0
- package/dist/tap.spec-d.cjs +1 -1
- package/dist/tap.spec-d.js +1 -1
- package/dist/{types-BMu1PIvo.d.cts → types-CC8iZVKO.d.cts} +56 -3
- package/dist/{types-BMu1PIvo.d.ts → types-CC8iZVKO.d.ts} +56 -3
- package/dist/unique-by.cjs +1 -1
- package/dist/unique-by.d.cts +5 -2
- package/dist/unique-by.d.ts +5 -2
- package/dist/unique-by.js +1 -1
- package/dist/unique-with.cjs +1 -1
- package/dist/unique-with.d.cts +5 -2
- package/dist/unique-with.d.ts +5 -2
- package/dist/unique-with.js +1 -1
- package/dist/unique.cjs +1 -1
- package/dist/unique.d.cts +6 -3
- package/dist/unique.d.ts +6 -3
- package/dist/unique.js +1 -1
- package/dist/values.d.cts +1 -1
- package/dist/values.d.ts +1 -1
- package/dist/zip-with.d.cts +1 -1
- package/dist/zip-with.d.ts +1 -1
- package/dist/zip.d.cts +1 -1
- package/dist/zip.d.ts +1 -1
- package/package.json +12 -12
- package/dist/chunk-3UUZWCRS.cjs +0 -1
- package/dist/chunk-65DHT5Z7.cjs +0 -1
- package/dist/chunk-66KQORMS.js +0 -1
- package/dist/chunk-AE5HI6VG.cjs +0 -1
- package/dist/chunk-CIF6WEFP.js +0 -1
- package/dist/chunk-COBRSP66.js +0 -1
- package/dist/chunk-DUKQ2ODK.js +0 -1
- package/dist/chunk-DWPHE3F2.cjs +0 -1
- package/dist/chunk-HUWRVMPE.js +0 -1
- package/dist/chunk-LIKMH7XD.js +0 -1
- package/dist/chunk-LOPUNSWJ.js +0 -1
- package/dist/chunk-MENOHSYF.js +0 -1
- package/dist/chunk-NNK6R67E.cjs +0 -1
- package/dist/chunk-P7OXTPPH.cjs +0 -1
- package/dist/chunk-QTCQZ7LU.js +0 -1
- package/dist/chunk-RSJJRJTH.cjs +0 -1
- package/dist/chunk-TR5T6KUC.js +0 -1
- package/dist/chunk-U5EQP4BO.cjs +0 -1
- package/dist/chunk-VNLOBA2B.cjs +0 -1
- package/dist/chunk-X6AB3I7Z.cjs +0 -1
- package/dist/chunk-YQKPA3BB.js +0 -1
- package/dist/chunk-YWSZXRUY.js +0 -1
- package/dist/chunk-Z7EBGO2B.js +0 -1
- package/dist/chunk-ZCFTW5HO.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as Rr}from"./chunk-WQDEYM64.js";import{a as Ur}from"./chunk-22S2LZ25.js";import{a as Wr}from"./chunk-PSXTTF2V.js";import{a as Vr}from"./chunk-QQQIEYAH.js";import{a as Mr}from"./chunk-JL33LZPL.js";import{a as Nr}from"./chunk-MA4ZCOG3.js";import{a as Or}from"./chunk-6GVFMZ2X.js";import{a as Pr}from"./chunk-IKXLQXFZ.js";import{a as Qr}from"./chunk-N4VSV73E.js";import{a as Sr}from"./chunk-WRKGH4XX.js";import{a as Tr}from"./chunk-AKGWT6GC.js";import{a as Fr}from"./chunk-ENIRKKU6.js";import{a as Gr}from"./chunk-MZWACWOX.js";import{a as Hr}from"./chunk-KDSNKESQ.js";import{a as Ir}from"./chunk-R5K7KY5K.js";import{a as Jr}from"./chunk-MQH2LHSB.js";import{a as Lr}from"./chunk-L5GWUR4G.js";import{a as Kr}from"./chunk-CUJA7FM4.js";import"./chunk-YD2H56BT.js";import{a as Dr}from"./chunk-KAA6IVBL.js";import{a as Cr}from"./chunk-OJ2QGTFS.js";import{a as Er}from"./chunk-VN2OAM2N.js";import{a as zr}from"./chunk-EPHUNAE5.js";import{a as jr}from"./chunk-AEN2DN32.js";import{a as lr}from"./chunk-ZX74SXNB.js";import{a as kr}from"./chunk-2T576V7A.js";import{a as qr}from"./chunk-FKSROXF4.js";import{a as vr}from"./chunk-3T7K3EKS.js";import{a as Ar}from"./chunk-KJ42LLSJ.js";import{a as Br}from"./chunk-7UJXFFOU.js";import{a as br}from"./chunk-SDXTQQIO.js";import{a as gr}from"./chunk-FKWGRK76.js";import{a as ar}from"./chunk-RBODUO3Q.js";import{a as hr}from"./chunk-CZLV6ZLZ.js";import{a as dr}from"./chunk-XUU6IYML.js";import{a as wr}from"./chunk-EM2UX3KN.js";import{a as cr}from"./chunk-XWX4B5PF.js";import{a as sr}from"./chunk-Q4GWEOZM.js";import{a as yr}from"./chunk-YMNBZZDN.js";import{a as ur}from"./chunk-D5VBQ4IX.js";import"./chunk-YQTXLMPM.js";import{a as pr}from"./chunk-PFLGL4YP.js";import{a as xr}from"./chunk-6SYP2DRD.js";import{a as mr}from"./chunk-FGVDZJ7U.js";import{a as nr}from"./chunk-XSSRBOMF.js";import{a as or}from"./chunk-43F3C5SP.js";import{a as rr}from"./chunk-F7KW3CUF.js";import{a as er}from"./chunk-E2NINCLI.js";import{a as tr,b as fr}from"./chunk-QHGCU3LJ.js";import{a as Xo}from"./chunk-MKM3UJUV.js";import{a as Yo}from"./chunk-QT66COHU.js";import{a as Zo}from"./chunk-JK22NVTR.js";import{a as _o}from"./chunk-GU2VTZ37.js";import{a as $o}from"./chunk-TBMLJPXO.js";import{a as To}from"./chunk-ZUNMUNQT.js";import{a as Vo}from"./chunk-JLRJ44YR.js";import{a as Wo}from"./chunk-KG2TAX4E.js";import{a as ir}from"./chunk-J3YPWVVQ.js";import{a as Po}from"./chunk-C6IMN7SF.js";import{a as Qo}from"./chunk-VNU4MGEF.js";import{a as Ro}from"./chunk-PL6B6X5G.js";import{a as So}from"./chunk-D7G6PMA5.js";import{a as Uo}from"./chunk-LWPEZ7RI.js";import{a as Lo}from"./chunk-MBYBX5B3.js";import{a as Mo}from"./chunk-3DPIEAUX.js";import{a as No}from"./chunk-UNG2JJTE.js";import{a as Oo}from"./chunk-ZIF7K2PC.js";import{a as Ho}from"./chunk-7H4T2OX5.js";import{a as Jo}from"./chunk-7P7RJIIO.js";import{a as Ko}from"./chunk-QIYBHLRA.js";import{a as Io}from"./chunk-5HAUJEIR.js";import{a as Do}from"./chunk-5NG5PDAH.js";import{a as Eo}from"./chunk-JNFB7I2A.js";import{a as Fo}from"./chunk-ZA4IP5S7.js";import{a as Go}from"./chunk-LSXNPOLD.js";import{a as qo}from"./chunk-RFHE6DOJ.js";import{a as vo}from"./chunk-YTZNH65O.js";import{a as zo}from"./chunk-BQA4B5JX.js";import{a as Ao}from"./chunk-C4EDF27A.js";import{a as Co}from"./chunk-IYUNRFZS.js";import{a as jo}from"./chunk-2ADWP73S.js";import{a as ko}from"./chunk-HU67VIVI.js";import{a as lo}from"./chunk-YBJMFRB6.js";import{a as bo}from"./chunk-EBS4GCKX.js";import{a as go}from"./chunk-HLL46USD.js";import{a as Bo}from"./chunk-6BKLAQWR.js";import{a as ho}from"./chunk-HFNVS6OX.js";import{a as ao}from"./chunk-G73S4IVJ.js";import{a as wo}from"./chunk-UVAWCZB6.js";import{a as co}from"./chunk-7EMQYM4A.js";import{a as uo}from"./chunk-VPHS3T3W.js";import{a as yo}from"./chunk-75K2QEB3.js";import{a as no}from"./chunk-AZUJCNUP.js";import{a as io}from"./chunk-F3EZ6NQM.js";import{a as so}from"./chunk-DNSXSQCO.js";import{a as to}from"./chunk-PKGL5JK6.js";import{a as po}from"./chunk-L5AJZHZ7.js";import{a as xo}from"./chunk-5KMAUZSO.js";import{a as mo}from"./chunk-QID4F4QT.js";import{a as ro}from"./chunk-4YJCXB4Y.js";import{a as eo}from"./chunk-7R7W43BD.js";import{a as fo}from"./chunk-BRLENORL.js";import{a as Z}from"./chunk-TT2VLICK.js";import{a as _}from"./chunk-FQ3EXU24.js";import{a as oo}from"./chunk-ZSI3ZTMX.js";import{a as $}from"./chunk-YTNT635N.js";import{a as U}from"./chunk-A62OZTSJ.js";import{a as V}from"./chunk-C27FZNUV.js";import{a as W}from"./chunk-HLKCHMAO.js";import{a as X}from"./chunk-T2LJNGWI.js";import{a as Y}from"./chunk-5ILJAWGC.js";import{a as Q}from"./chunk-HFZNXHUH.js";import{a as R}from"./chunk-BF6VQFQK.js";import{a as S}from"./chunk-LHHGOIQC.js";import"./chunk-SME5FGMA.js";import{a as T}from"./chunk-VFU6P7NI.js";import{a as G}from"./chunk-PWOIVNVI.js";import{a as M}from"./chunk-QIM2PMWS.js";import{a as L}from"./chunk-7DDJ7DZF.js";import{a as K}from"./chunk-KTMLSQQ7.js";import{a as J}from"./chunk-QRDGUNHT.js";import{a as I}from"./chunk-J6L2AOTY.js";import{a as H}from"./chunk-VJMHXGZD.js";import{a as N}from"./chunk-BGPRJNRQ.js";import{a as O}from"./chunk-52GYNLEB.js";import{a as P}from"./chunk-XOWF2B3H.js";import{a as C}from"./chunk-QTQTKNWA.js";import{a as D}from"./chunk-U2BXIRBJ.js";import{a as E}from"./chunk-IABWIMQT.js";import{a as F}from"./chunk-D5B5IQRS.js";import{a as k}from"./chunk-WUAU3LTQ.js";import{a as j}from"./chunk-ENPSKQUH.js";import{a as l}from"./chunk-UNKQWZT6.js";import{a as q}from"./chunk-LG37S75J.js";import"./chunk-C6L5NLLB.js";import{a as v}from"./chunk-P3LGW6WA.js";import{a as z}from"./chunk-PHKKU45J.js";import{a as A}from"./chunk-IA53O34Y.js";import"./chunk-JU4UCCME.js";import"./chunk-UYH64IBH.js";import{a as m}from"./chunk-UO2ELCGC.js";import{a as n}from"./chunk-5XZK5BDM.js";import{a as d}from"./chunk-QU5PCAYZ.js";import{a as y}from"./chunk-Q2HW4RVT.js";import{a as c}from"./chunk-QPP664N4.js";import{a as u}from"./chunk-TBXEXWSK.js";import{a as b,b as g}from"./chunk-USNHLUEU.js";import{a as B}from"./chunk-UYLVIAK4.js";import{a as w}from"./chunk-J5PNUDDU.js";import{a}from"./chunk-6ALZHU2N.js";import"./chunk-MYLYERXO.js";import"./chunk-JXXXUJM5.js";import{a as s}from"./chunk-73BYESBE.js";import{a as i}from"./chunk-H2E5GCCP.js";import{a as h}from"./chunk-T5XG33UI.js";import{a as r}from"./chunk-7JDXDFFQ.js";import{a as e}from"./chunk-SVOK32ZP.js";import{a as t}from"./chunk-EV7KEYHC.js";import{a as f}from"./chunk-X7HV6BKN.js";import{a as p}from"./chunk-L4KSN3W4.js";import"./chunk-KCUIAELF.js";import{a as x}from"./chunk-BT3FI7L7.js";import{a as o}from"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";var Xr=typeof window<"u";export{zo as KEY_CODES,e as add,r as addProp,t as allPass,f as anyPass,p as ceil,x as chunk,m as clamp,n as clone,d as concat,i as conditional,h as constant,o as curry,j as debounce,q as difference,l as differenceWith,v as divide,z as doNothing,F as drop,A as dropFirstBy,D as dropLast,C as dropLastWhile,E as dropWhile,G as entries,H as evolve,N as filter,R as find,O as findIndex,Q as findLast,P as findLastIndex,S as first,w as firstBy,U as flat,T as flatMap,V as floor,X as forEach,W as forEachObj,Y as fromEntries,Z as fromKeys,_ as groupBy,s as hasAtLeast,oo as hasSubObject,ro as humanReadableFileSize,k as identity,eo as indexBy,to as intersection,fo as intersectionWith,po as invert,xo as isArray,mo as isBigInt,no as isBoolean,Xr as isBrowser,io as isDate,$ as isDeepEqual,so as isDefined,wo as isEmpty,co as isError,uo as isFunction,yo as isIncludedIn,Bo as isNonNull,c as isNonNullish,ao as isNot,u as isNullish,y as isNumber,bo as isObjectType,go as isPlainObject,ho as isPromise,jo as isShallowEqual,ko as isStrictEqual,B as isString,lo as isSymbol,qo as isTruthy,vo as join,Ao as keys,Co as last,I as length,J as map,Do as mapKeys,Eo as mapToObj,Fo as mapValues,Go as mapWithFeedback,Ho as meanBy,Io as merge,Jo as mergeAll,Ko as mergeDeep,Lo as multiply,Mo as nthBy,No as objOf,K as omit,Oo as omitBy,Po as once,Qo as only,Ro as partition,So as pathOr,To as pick,Uo as pickBy,a as pipe,Vo as piped,Wo as product,b as prop,g as propImplementation,Xo as pullObject,Yo as randomInteger,Zo as randomString,_o as range,$o as rankBy,L as reduce,or as reverse,rr as round,er as sample,M as set,tr as setPath,fr as setPathImplementation,pr as shuffle,xr as sleep,mr as sliceString,nr as slugify,dr as sort,ir as sortBy,sr as sortedIndex,wr as sortedIndexBy,cr as sortedIndexWith,ur as sortedLastIndex,yr as sortedLastIndexBy,Br as splice,ar as split,br as splitAt,gr as splitWhen,hr as stringToPath,jr as subtract,kr as sum,lr as sumBy,qr as swapIndices,vr as swapProps,zr as take,Ar as takeFirstBy,Cr as takeLast,Dr as takeLastWhile,Er as takeWhile,Fr as tap,Gr as times,Hr as toCamelCase,Ir as toCapitalCase,Jr as toConstantCase,Lr as toKebabCase,Kr as toNoCase,Mr as toPascalCase,Nr as toPascalSnakeCase,Or as toSentenceCase,Pr as toSnakeCase,Qr as toTrainCase,Rr as unique,Sr as uniqueBy,Tr as uniqueWith,Ur as values,Vr as zip,Wr as zipWith};
|
package/dist/is-array.d.cts
CHANGED
package/dist/is-array.d.ts
CHANGED
package/dist/is-big-int.d.cts
CHANGED
package/dist/is-big-int.d.ts
CHANGED
package/dist/is-boolean.d.cts
CHANGED
package/dist/is-boolean.d.ts
CHANGED
package/dist/is-empty.d.cts
CHANGED
package/dist/is-empty.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsLiteral } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer,
|
|
2
|
+
import { I as IterableContainer, e as IsUnion } from './types-CC8iZVKO.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A "constant" tuple is a type that has a single runtime value that can fulfil
|
package/dist/is-included-in.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IsLiteral } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer,
|
|
2
|
+
import { I as IterableContainer, e as IsUnion } from './types-CC8iZVKO.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A "constant" tuple is a type that has a single runtime value that can fulfil
|
package/dist/is-nullish.d.cts
CHANGED
package/dist/is-nullish.d.ts
CHANGED
package/dist/is-number.d.cts
CHANGED
package/dist/is-number.d.ts
CHANGED
package/dist/is-object-type.d.ts
CHANGED
package/dist/is-string.d.cts
CHANGED
package/dist/is-string.d.ts
CHANGED
package/dist/is-symbol.d.cts
CHANGED
package/dist/is-symbol.d.ts
CHANGED
package/dist/keys.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
1
|
+
import { I as IterableContainer, b as EnumerableStringKeyOf } from './types-CC8iZVKO.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Keys<T> = T extends IterableContainer ? ArrayKeys<T> : ObjectKeys<T>;
|
package/dist/keys.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer,
|
|
1
|
+
import { I as IterableContainer, b as EnumerableStringKeyOf } from './types-CC8iZVKO.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Keys<T> = T extends IterableContainer ? ArrayKeys<T> : ObjectKeys<T>;
|
package/dist/last.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LastArrayElement } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer } from './types-
|
|
2
|
+
import { I as IterableContainer } from './types-CC8iZVKO.cjs';
|
|
3
3
|
|
|
4
4
|
type Last<T extends IterableContainer> = LastArrayElement<T, T extends readonly [] ? never : undefined>;
|
|
5
5
|
/**
|
package/dist/last.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LastArrayElement } from 'type-fest';
|
|
2
|
-
import { I as IterableContainer } from './types-
|
|
2
|
+
import { I as IterableContainer } from './types-CC8iZVKO.js';
|
|
3
3
|
|
|
4
4
|
type Last<T extends IterableContainer> = LastArrayElement<T, T extends readonly [] ? never : undefined>;
|
|
5
5
|
/**
|
package/dist/map-keys.d.cts
CHANGED
package/dist/map-keys.d.ts
CHANGED
package/dist/map-values.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf } from './types-CC8iZVKO.cjs';
|
|
3
3
|
|
|
4
4
|
type MappedValues<T extends object, Value> = Simplify<{
|
|
5
5
|
-readonly [P in keyof T as `${P extends number | string ? P : never}`]: Value;
|
package/dist/map-values.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf } from './types-CC8iZVKO.js';
|
|
3
3
|
|
|
4
4
|
type MappedValues<T extends object, Value> = Simplify<{
|
|
5
5
|
-readonly [P in keyof T as `${P extends number | string ? P : never}`]: Value;
|
package/dist/map.d.cts
CHANGED
package/dist/map.d.ts
CHANGED
package/dist/nth-by.d.cts
CHANGED
package/dist/nth-by.d.ts
CHANGED
package/dist/omit-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-CC8iZVKO.cjs';
|
|
3
3
|
|
|
4
4
|
type PickSymbolKeys<T extends object> = {
|
|
5
5
|
-readonly [P in keyof T as P extends symbol ? P : never]: T[P];
|
package/dist/omit-by.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-CC8iZVKO.js';
|
|
3
3
|
|
|
4
4
|
type PickSymbolKeys<T extends object> = {
|
|
5
5
|
-readonly [P in keyof T as P extends symbol ? P : never]: T[P];
|
package/dist/only.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-CC8iZVKO.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
|
package/dist/only.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-CC8iZVKO.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Only<T extends IterableContainer> = T extends readonly [...Array<unknown>, unknown, unknown] | readonly [] | readonly [unknown, ...Array<unknown>, unknown] | readonly [unknown, unknown, ...Array<unknown>] ? undefined : T extends readonly [unknown] ? T[number] : T[number] | undefined;
|
package/dist/pick-by.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-CC8iZVKO.cjs';
|
|
3
3
|
|
|
4
4
|
type EnumerableKey<T> = `${T extends number | string ? T : never}`;
|
|
5
5
|
type EnumeratedPartial<T> = T extends unknown ? Simplify<IfBoundedRecord<T, {
|
package/dist/pick-by.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Simplify, IfNever } from 'type-fest';
|
|
2
|
-
import { E as EnumerableStringKeyedValueOf,
|
|
2
|
+
import { E as EnumerableStringKeyedValueOf, b as EnumerableStringKeyOf, f as IfBoundedRecord, R as ReconstructedRecord } from './types-CC8iZVKO.js';
|
|
3
3
|
|
|
4
4
|
type EnumerableKey<T> = `${T extends number | string ? T : never}`;
|
|
5
5
|
type EnumeratedPartial<T> = T extends unknown ? Simplify<IfBoundedRecord<T, {
|
package/dist/product.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-CC8iZVKO.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Product<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 1 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 1 | bigint : number;
|
package/dist/product.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-CC8iZVKO.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Product<T extends IterableContainer<bigint> | IterableContainer<number>> = T extends readonly [] ? 1 : T extends readonly [bigint, ...ReadonlyArray<unknown>] ? bigint : T[number] extends bigint ? 1 | bigint : number;
|
package/dist/pull-object.d.cts
CHANGED
package/dist/pull-object.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkIOSBDH5Jcjs = require('./chunk-IOSBDH5J.cjs');exports.randomInteger = _chunkIOSBDH5Jcjs.a;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Or, IsNever, NonNegativeInteger, IsEqual, GreaterThan, GreaterThanOrEqual, IntRange } from 'type-fest';
|
|
2
|
+
|
|
3
|
+
type RandomInteger<From extends number, To extends number> = Or<IsNever<NonNegativeInteger<From>>, IsNever<NonNegativeInteger<To>>> extends true ? number : IsEqual<From, To> extends true ? From : GreaterThan<From, To> extends true ? never : GreaterThanOrEqual<To, 1000> extends true ? number : IntRange<From, To> | To;
|
|
4
|
+
/**
|
|
5
|
+
* Generate a random integer between `from` and `to` (inclusive).
|
|
6
|
+
*
|
|
7
|
+
* @param from - The minimum value.
|
|
8
|
+
* @param to - The maximum value.
|
|
9
|
+
* @returns The random integer.
|
|
10
|
+
* @signature
|
|
11
|
+
* P.randomInt(from, to)
|
|
12
|
+
* @example
|
|
13
|
+
* P.randomInt(1, 10) // => 5
|
|
14
|
+
* P.randomInt(1.5, 2.6) // => 2
|
|
15
|
+
* @dataFirst
|
|
16
|
+
* @category Number
|
|
17
|
+
*/
|
|
18
|
+
declare function randomInteger<From extends number, To extends number>(from: From, to: To): RandomInteger<From, To>;
|
|
19
|
+
|
|
20
|
+
export { randomInteger };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Or, IsNever, NonNegativeInteger, IsEqual, GreaterThan, GreaterThanOrEqual, IntRange } from 'type-fest';
|
|
2
|
+
|
|
3
|
+
type RandomInteger<From extends number, To extends number> = Or<IsNever<NonNegativeInteger<From>>, IsNever<NonNegativeInteger<To>>> extends true ? number : IsEqual<From, To> extends true ? From : GreaterThan<From, To> extends true ? never : GreaterThanOrEqual<To, 1000> extends true ? number : IntRange<From, To> | To;
|
|
4
|
+
/**
|
|
5
|
+
* Generate a random integer between `from` and `to` (inclusive).
|
|
6
|
+
*
|
|
7
|
+
* @param from - The minimum value.
|
|
8
|
+
* @param to - The maximum value.
|
|
9
|
+
* @returns The random integer.
|
|
10
|
+
* @signature
|
|
11
|
+
* P.randomInt(from, to)
|
|
12
|
+
* @example
|
|
13
|
+
* P.randomInt(1, 10) // => 5
|
|
14
|
+
* P.randomInt(1.5, 2.6) // => 2
|
|
15
|
+
* @dataFirst
|
|
16
|
+
* @category Number
|
|
17
|
+
*/
|
|
18
|
+
declare function randomInteger<From extends number, To extends number>(from: From, to: To): RandomInteger<From, To>;
|
|
19
|
+
|
|
20
|
+
export { randomInteger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"./chunk-QT66COHU.js";export{a as randomInteger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkIOSBDH5Jcjs = require('./chunk-IOSBDH5J.cjs');test("returns number when from is float",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, .5,1)).toEqualTypeOf()});test("returns number when to is float",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,1.5)).toEqualTypeOf()});test("returns never when from is greater than to",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 10,1)).toEqualTypeOf()});test("returns the range as union for valid range (0-999)",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 0,5)).toEqualTypeOf(),expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 998,999)).toEqualTypeOf()});test("returns the same value when to equals from",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,1)).toEqualTypeOf()});test("returns the same value when to equals from and out of range",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1e4,1e4)).toEqualTypeOf()});test("Returns number for large max (to >= 1000)",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,1001)).toEqualTypeOf()});test("Returns number when from is a negative integer",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, -1,1)).toEqualTypeOf()});test("Returns number when to is a negative integer",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,-1)).toEqualTypeOf()});test("Returns number when from is a negative decimal",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, -1.5,1)).toEqualTypeOf()});test("Returns number when to is a negative decimal",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,-1.5)).toEqualTypeOf()});test("Returns number when from is number",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,5)).toEqualTypeOf()});test("Returns number when to is number",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,5)).toEqualTypeOf()});test("Returns number when from and to are number",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1,5)).toEqualTypeOf()});test("Returns number when from and to are very big numbers",()=>{expectTypeOf(_chunkIOSBDH5Jcjs.a.call(void 0, 1e10,10000000001)).toEqualTypeOf()});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./chunk-QT66COHU.js";test("returns number when from is float",()=>{expectTypeOf(e(.5,1)).toEqualTypeOf()});test("returns number when to is float",()=>{expectTypeOf(e(1,1.5)).toEqualTypeOf()});test("returns never when from is greater than to",()=>{expectTypeOf(e(10,1)).toEqualTypeOf()});test("returns the range as union for valid range (0-999)",()=>{expectTypeOf(e(0,5)).toEqualTypeOf(),expectTypeOf(e(998,999)).toEqualTypeOf()});test("returns the same value when to equals from",()=>{expectTypeOf(e(1,1)).toEqualTypeOf()});test("returns the same value when to equals from and out of range",()=>{expectTypeOf(e(1e4,1e4)).toEqualTypeOf()});test("Returns number for large max (to >= 1000)",()=>{expectTypeOf(e(1,1001)).toEqualTypeOf()});test("Returns number when from is a negative integer",()=>{expectTypeOf(e(-1,1)).toEqualTypeOf()});test("Returns number when to is a negative integer",()=>{expectTypeOf(e(1,-1)).toEqualTypeOf()});test("Returns number when from is a negative decimal",()=>{expectTypeOf(e(-1.5,1)).toEqualTypeOf()});test("Returns number when to is a negative decimal",()=>{expectTypeOf(e(1,-1.5)).toEqualTypeOf()});test("Returns number when from is number",()=>{expectTypeOf(e(1,5)).toEqualTypeOf()});test("Returns number when to is number",()=>{expectTypeOf(e(1,5)).toEqualTypeOf()});test("Returns number when from and to are number",()=>{expectTypeOf(e(1,5)).toEqualTypeOf()});test("Returns number when from and to are very big numbers",()=>{expectTypeOf(e(1e10,10000000001)).toEqualTypeOf()});
|
package/dist/rank-by.d.cts
CHANGED
package/dist/rank-by.d.ts
CHANGED
package/dist/sample.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-CC8iZVKO.cjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Sampled<T extends IterableContainer, N extends number> = number extends N ? SampledGeneric<T> : undefined extends T[N] ? T : SampledLiteral<T, N>;
|
package/dist/sample.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IterableContainer } from './types-
|
|
1
|
+
import { I as IterableContainer } from './types-CC8iZVKO.js';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
4
|
type Sampled<T extends IterableContainer, N extends number> = number extends N ? SampledGeneric<T> : undefined extends T[N] ? T : SampledLiteral<T, N>;
|
package/dist/set.d.cts
CHANGED
package/dist/set.d.ts
CHANGED
package/dist/shuffle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4WU7JGWScjs = require('./chunk-4WU7JGWS.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');exports.shuffle = _chunk4WU7JGWScjs.a;
|
package/dist/shuffle.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer, g as ReorderedArray } from './types-CC8iZVKO.cjs';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
3
6
|
*
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
* @dataFirst
|
|
10
13
|
* @category Array
|
|
11
14
|
*/
|
|
12
|
-
declare function shuffle<T>(items:
|
|
15
|
+
declare function shuffle<T extends IterableContainer>(items: T): ReorderedArray<T>;
|
|
13
16
|
/**
|
|
14
17
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
15
18
|
*
|
|
@@ -20,6 +23,6 @@ declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
|
|
|
20
23
|
* @dataLast
|
|
21
24
|
* @category Array
|
|
22
25
|
*/
|
|
23
|
-
declare function shuffle
|
|
26
|
+
declare function shuffle(): <T extends IterableContainer>(items: T) => ReorderedArray<T>;
|
|
24
27
|
|
|
25
28
|
export { shuffle };
|
package/dist/shuffle.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { I as IterableContainer, g as ReorderedArray } from './types-CC8iZVKO.js';
|
|
2
|
+
import 'type-fest';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
3
6
|
*
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
* @dataFirst
|
|
10
13
|
* @category Array
|
|
11
14
|
*/
|
|
12
|
-
declare function shuffle<T>(items:
|
|
15
|
+
declare function shuffle<T extends IterableContainer>(items: T): ReorderedArray<T>;
|
|
13
16
|
/**
|
|
14
17
|
* Shuffles the input array, returning a new array with the same elements in a random order.
|
|
15
18
|
*
|
|
@@ -20,6 +23,6 @@ declare function shuffle<T>(items: ReadonlyArray<T>): Array<T>;
|
|
|
20
23
|
* @dataLast
|
|
21
24
|
* @category Array
|
|
22
25
|
*/
|
|
23
|
-
declare function shuffle
|
|
26
|
+
declare function shuffle(): <T extends IterableContainer>(items: T) => ReorderedArray<T>;
|
|
24
27
|
|
|
25
28
|
export { shuffle };
|
package/dist/shuffle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-PFLGL4YP.js";import"./chunk-JFXZ246Y.js";import"./chunk-KQGY2DBY.js";export{a as shuffle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunk4WU7JGWScjs = require('./chunk-4WU7JGWS.cjs');var _chunkI6VXEY44cjs = require('./chunk-I6VXEY44.cjs');require('./chunk-3X6SAJDQ.cjs');require('./chunk-Y74ER22O.cjs');require('./chunk-7T4AVFYJ.cjs');test("regular array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()});test("non-empty tail-rest array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1]);expectTypeOf(e).toEqualTypeOf()});test("non-empty head-rest array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1]);expectTypeOf(e).toEqualTypeOf()});test("fixed size tuple",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, [1,"a",!0]);expectTypeOf(e).toEqualTypeOf()});it("removes readonlyness from array",()=>{let e=_chunk4WU7JGWScjs.a.call(void 0, []);expectTypeOf(e).toEqualTypeOf()});it("infers type via a pipe",()=>{let e=_chunkI6VXEY44cjs.a.call(void 0, ["a",1,!0],_chunk4WU7JGWScjs.a.call(void 0, ));expectTypeOf(e).toEqualTypeOf()});
|