es-toolkit 1.13.1-dev.300 → 1.13.1-dev.301
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/array/index.mjs +35 -35
- package/dist/browser.js +6 -0
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +30 -29
- package/dist/browser.mjs.map +1 -1
- package/dist/chunk-AGDMW65V.mjs +9 -0
- package/dist/chunk-AGDMW65V.mjs.map +1 -0
- package/dist/{chunk-Q4FF3AJS.mjs → chunk-I24736ZF.mjs} +67 -63
- package/dist/{chunk-Q4FF3AJS.mjs.map → chunk-I24736ZF.mjs.map} +1 -1
- package/dist/chunk-Y3ZTWIBR.mjs +1 -0
- package/dist/compat/index.d.mts +1 -0
- package/dist/compat/index.d.ts +1 -0
- package/dist/compat/index.js +7 -0
- package/dist/compat/index.js.map +1 -1
- package/dist/compat/index.mjs +68 -64
- package/dist/function/index.mjs +3 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +69 -65
- package/dist/predicate/index.d.mts +1 -0
- package/dist/predicate/index.d.ts +1 -0
- package/dist/predicate/index.js +7 -0
- package/dist/predicate/index.js.map +1 -1
- package/dist/predicate/index.mjs +8 -4
- package/dist/predicate/isArray.d.mts +24 -0
- package/dist/predicate/isArray.d.ts +24 -0
- package/dist/predicate/isArray.js +33 -0
- package/dist/predicate/isArray.js.map +1 -0
- package/dist/predicate/isArray.mjs +8 -0
- package/dist/predicate/isArray.mjs.map +1 -0
- package/dist/string/index.mjs +6 -6
- package/package.json +1 -1
- package/umd/browser.global.js +1 -1
- package/dist/chunk-B645AYL4.mjs +0 -1
- /package/dist/{chunk-B645AYL4.mjs.map → chunk-Y3ZTWIBR.mjs.map} +0 -0
package/dist/array/index.mjs
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import "../chunk-DDH7K4QM.mjs";
|
|
2
|
-
import {
|
|
3
|
-
zipObject
|
|
4
|
-
} from "../chunk-6GWEY5EL.mjs";
|
|
5
|
-
import {
|
|
6
|
-
zipWith
|
|
7
|
-
} from "../chunk-4KYXHZ4R.mjs";
|
|
8
|
-
import {
|
|
9
|
-
unzip
|
|
10
|
-
} from "../chunk-UYZKMBDO.mjs";
|
|
11
2
|
import {
|
|
12
3
|
unzipWith
|
|
13
4
|
} from "../chunk-IFNXROZR.mjs";
|
|
@@ -27,11 +18,11 @@ import {
|
|
|
27
18
|
zip
|
|
28
19
|
} from "../chunk-IDCUZVJL.mjs";
|
|
29
20
|
import {
|
|
30
|
-
|
|
31
|
-
} from "../chunk-
|
|
21
|
+
zipObject
|
|
22
|
+
} from "../chunk-6GWEY5EL.mjs";
|
|
32
23
|
import {
|
|
33
|
-
|
|
34
|
-
} from "../chunk-
|
|
24
|
+
zipWith
|
|
25
|
+
} from "../chunk-4KYXHZ4R.mjs";
|
|
35
26
|
import {
|
|
36
27
|
toFilled
|
|
37
28
|
} from "../chunk-OP4OAKQJ.mjs";
|
|
@@ -44,9 +35,6 @@ import {
|
|
|
44
35
|
import {
|
|
45
36
|
unionWith
|
|
46
37
|
} from "../chunk-2ZCITDMK.mjs";
|
|
47
|
-
import {
|
|
48
|
-
uniqWith
|
|
49
|
-
} from "../chunk-237HGSZS.mjs";
|
|
50
38
|
import {
|
|
51
39
|
uniq
|
|
52
40
|
} from "../chunk-DVK2N4KC.mjs";
|
|
@@ -54,11 +42,11 @@ import {
|
|
|
54
42
|
uniqBy
|
|
55
43
|
} from "../chunk-B4COTK4K.mjs";
|
|
56
44
|
import {
|
|
57
|
-
|
|
58
|
-
} from "../chunk-
|
|
45
|
+
uniqWith
|
|
46
|
+
} from "../chunk-237HGSZS.mjs";
|
|
59
47
|
import {
|
|
60
|
-
|
|
61
|
-
} from "../chunk-
|
|
48
|
+
unzip
|
|
49
|
+
} from "../chunk-UYZKMBDO.mjs";
|
|
62
50
|
import {
|
|
63
51
|
sample
|
|
64
52
|
} from "../chunk-2KNLZB7V.mjs";
|
|
@@ -80,11 +68,11 @@ import {
|
|
|
80
68
|
takeRight
|
|
81
69
|
} from "../chunk-IQLKIDXF.mjs";
|
|
82
70
|
import {
|
|
83
|
-
|
|
84
|
-
} from "../chunk-
|
|
71
|
+
takeRightWhile
|
|
72
|
+
} from "../chunk-NTLX2MPV.mjs";
|
|
85
73
|
import {
|
|
86
|
-
|
|
87
|
-
} from "../chunk-
|
|
74
|
+
takeWhile
|
|
75
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
88
76
|
import {
|
|
89
77
|
intersectionBy
|
|
90
78
|
} from "../chunk-O6UXZR3U.mjs";
|
|
@@ -104,17 +92,14 @@ import {
|
|
|
104
92
|
minBy
|
|
105
93
|
} from "../chunk-IJD7FE2Z.mjs";
|
|
106
94
|
import {
|
|
107
|
-
|
|
108
|
-
} from "../chunk-
|
|
95
|
+
orderBy
|
|
96
|
+
} from "../chunk-7B7W36UP.mjs";
|
|
109
97
|
import {
|
|
110
|
-
|
|
111
|
-
} from "../chunk-
|
|
98
|
+
partition
|
|
99
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
112
100
|
import {
|
|
113
101
|
flattenDeep
|
|
114
102
|
} from "../chunk-ML727RRJ.mjs";
|
|
115
|
-
import {
|
|
116
|
-
flatten
|
|
117
|
-
} from "../chunk-33MSBDC6.mjs";
|
|
118
103
|
import {
|
|
119
104
|
forEachRight
|
|
120
105
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -125,11 +110,11 @@ import {
|
|
|
125
110
|
head
|
|
126
111
|
} from "../chunk-HM2JT2RX.mjs";
|
|
127
112
|
import {
|
|
128
|
-
|
|
129
|
-
} from "../chunk-
|
|
113
|
+
initial
|
|
114
|
+
} from "../chunk-XPSOKBRZ.mjs";
|
|
130
115
|
import {
|
|
131
|
-
|
|
132
|
-
} from "../chunk-
|
|
116
|
+
intersection
|
|
117
|
+
} from "../chunk-FVVSE2F2.mjs";
|
|
133
118
|
import {
|
|
134
119
|
differenceBy
|
|
135
120
|
} from "../chunk-LVWX5B43.mjs";
|
|
@@ -148,12 +133,27 @@ import {
|
|
|
148
133
|
import {
|
|
149
134
|
dropWhile
|
|
150
135
|
} from "../chunk-LJ2C6MVP.mjs";
|
|
136
|
+
import {
|
|
137
|
+
fill
|
|
138
|
+
} from "../chunk-YFN6KOC4.mjs";
|
|
139
|
+
import {
|
|
140
|
+
flatMap
|
|
141
|
+
} from "../chunk-UY76KTPE.mjs";
|
|
142
|
+
import {
|
|
143
|
+
flatten
|
|
144
|
+
} from "../chunk-33MSBDC6.mjs";
|
|
151
145
|
import {
|
|
152
146
|
chunk
|
|
153
147
|
} from "../chunk-E6C5EZQA.mjs";
|
|
154
148
|
import {
|
|
155
149
|
compact
|
|
156
150
|
} from "../chunk-DTJJIMKJ.mjs";
|
|
151
|
+
import {
|
|
152
|
+
countBy
|
|
153
|
+
} from "../chunk-CRSKT4WW.mjs";
|
|
154
|
+
import {
|
|
155
|
+
difference
|
|
156
|
+
} from "../chunk-JPUKH67K.mjs";
|
|
157
157
|
import "../chunk-24FKGR6U.mjs";
|
|
158
158
|
export {
|
|
159
159
|
chunk,
|
package/dist/browser.js
CHANGED
|
@@ -79,6 +79,7 @@ __export(compat_exports, {
|
|
|
79
79
|
intersectionBy: () => intersectionBy,
|
|
80
80
|
intersectionWith: () => intersectionWith,
|
|
81
81
|
invert: () => invert,
|
|
82
|
+
isArray: () => isArray,
|
|
82
83
|
isEqual: () => isEqual,
|
|
83
84
|
isLength: () => isLength,
|
|
84
85
|
isNil: () => isNil,
|
|
@@ -1024,6 +1025,11 @@ function isLength(value) {
|
|
|
1024
1025
|
return typeof value === "number" && value > -1 && value % 1 === 0 && value <= Number.MAX_SAFE_INTEGER;
|
|
1025
1026
|
}
|
|
1026
1027
|
|
|
1028
|
+
// src/predicate/isArray.ts
|
|
1029
|
+
function isArray(value) {
|
|
1030
|
+
return Array.isArray(value);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1027
1033
|
// src/promise/delay.ts
|
|
1028
1034
|
function delay(ms, { signal } = {}) {
|
|
1029
1035
|
return new Promise((resolve, reject) => {
|