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/compat/index.mjs
CHANGED
|
@@ -10,9 +10,15 @@ import {
|
|
|
10
10
|
set,
|
|
11
11
|
startsWith,
|
|
12
12
|
zipObjectDeep
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-I24736ZF.mjs";
|
|
14
14
|
import "../chunk-NKLIE2OI.mjs";
|
|
15
15
|
import "../chunk-XT74R35S.mjs";
|
|
16
|
+
import {
|
|
17
|
+
camelCase
|
|
18
|
+
} from "../chunk-Y5V7UAZZ.mjs";
|
|
19
|
+
import {
|
|
20
|
+
capitalize
|
|
21
|
+
} from "../chunk-U56ZOM7L.mjs";
|
|
16
22
|
import {
|
|
17
23
|
kebabCase
|
|
18
24
|
} from "../chunk-EYYZQFOP.mjs";
|
|
@@ -25,6 +31,7 @@ import {
|
|
|
25
31
|
import {
|
|
26
32
|
startCase
|
|
27
33
|
} from "../chunk-QXTNZR7B.mjs";
|
|
34
|
+
import "../chunk-WVQ7YVRK.mjs";
|
|
28
35
|
import "../chunk-4OIZM4HS.mjs";
|
|
29
36
|
import {
|
|
30
37
|
withTimeout
|
|
@@ -33,20 +40,19 @@ import "../chunk-CVVZHOJX.mjs";
|
|
|
33
40
|
import {
|
|
34
41
|
delay
|
|
35
42
|
} from "../chunk-O64NE2P4.mjs";
|
|
43
|
+
import "../chunk-Y3ZTWIBR.mjs";
|
|
36
44
|
import {
|
|
37
|
-
|
|
38
|
-
} from "../chunk-
|
|
39
|
-
import {
|
|
40
|
-
capitalize
|
|
41
|
-
} from "../chunk-U56ZOM7L.mjs";
|
|
42
|
-
import "../chunk-WVQ7YVRK.mjs";
|
|
43
|
-
import "../chunk-B645AYL4.mjs";
|
|
45
|
+
isNotNil
|
|
46
|
+
} from "../chunk-BMRTZMRE.mjs";
|
|
44
47
|
import {
|
|
45
48
|
isNull
|
|
46
49
|
} from "../chunk-AIRSKN47.mjs";
|
|
47
50
|
import {
|
|
48
51
|
isUndefined
|
|
49
52
|
} from "../chunk-VH2PV426.mjs";
|
|
53
|
+
import {
|
|
54
|
+
isArray
|
|
55
|
+
} from "../chunk-AGDMW65V.mjs";
|
|
50
56
|
import {
|
|
51
57
|
isEqual
|
|
52
58
|
} from "../chunk-JYSV56US.mjs";
|
|
@@ -56,9 +62,6 @@ import {
|
|
|
56
62
|
import {
|
|
57
63
|
isNil
|
|
58
64
|
} from "../chunk-WMM7TZLG.mjs";
|
|
59
|
-
import {
|
|
60
|
-
isNotNil
|
|
61
|
-
} from "../chunk-BMRTZMRE.mjs";
|
|
62
65
|
import "../chunk-54TK5BIS.mjs";
|
|
63
66
|
import {
|
|
64
67
|
omitBy
|
|
@@ -107,32 +110,7 @@ import {
|
|
|
107
110
|
import {
|
|
108
111
|
range
|
|
109
112
|
} from "../chunk-DPH2KE6O.mjs";
|
|
110
|
-
import "../chunk-236H5JZJ.mjs";
|
|
111
|
-
import {
|
|
112
|
-
debounce
|
|
113
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
114
|
-
import {
|
|
115
|
-
negate
|
|
116
|
-
} from "../chunk-BOOQBJN2.mjs";
|
|
117
|
-
import {
|
|
118
|
-
noop
|
|
119
|
-
} from "../chunk-LKXCOLNY.mjs";
|
|
120
|
-
import {
|
|
121
|
-
once
|
|
122
|
-
} from "../chunk-CMBC4MXG.mjs";
|
|
123
|
-
import {
|
|
124
|
-
throttle
|
|
125
|
-
} from "../chunk-QOJGMVVR.mjs";
|
|
126
113
|
import "../chunk-DDH7K4QM.mjs";
|
|
127
|
-
import {
|
|
128
|
-
zipObject
|
|
129
|
-
} from "../chunk-6GWEY5EL.mjs";
|
|
130
|
-
import {
|
|
131
|
-
zipWith
|
|
132
|
-
} from "../chunk-4KYXHZ4R.mjs";
|
|
133
|
-
import {
|
|
134
|
-
unzip
|
|
135
|
-
} from "../chunk-UYZKMBDO.mjs";
|
|
136
114
|
import {
|
|
137
115
|
unzipWith
|
|
138
116
|
} from "../chunk-IFNXROZR.mjs";
|
|
@@ -152,11 +130,11 @@ import {
|
|
|
152
130
|
zip
|
|
153
131
|
} from "../chunk-IDCUZVJL.mjs";
|
|
154
132
|
import {
|
|
155
|
-
|
|
156
|
-
} from "../chunk-
|
|
133
|
+
zipObject
|
|
134
|
+
} from "../chunk-6GWEY5EL.mjs";
|
|
157
135
|
import {
|
|
158
|
-
|
|
159
|
-
} from "../chunk-
|
|
136
|
+
zipWith
|
|
137
|
+
} from "../chunk-4KYXHZ4R.mjs";
|
|
160
138
|
import {
|
|
161
139
|
toFilled
|
|
162
140
|
} from "../chunk-OP4OAKQJ.mjs";
|
|
@@ -169,9 +147,6 @@ import {
|
|
|
169
147
|
import {
|
|
170
148
|
unionWith
|
|
171
149
|
} from "../chunk-2ZCITDMK.mjs";
|
|
172
|
-
import {
|
|
173
|
-
uniqWith
|
|
174
|
-
} from "../chunk-237HGSZS.mjs";
|
|
175
150
|
import {
|
|
176
151
|
uniq
|
|
177
152
|
} from "../chunk-DVK2N4KC.mjs";
|
|
@@ -179,11 +154,11 @@ import {
|
|
|
179
154
|
uniqBy
|
|
180
155
|
} from "../chunk-B4COTK4K.mjs";
|
|
181
156
|
import {
|
|
182
|
-
|
|
183
|
-
} from "../chunk-
|
|
157
|
+
uniqWith
|
|
158
|
+
} from "../chunk-237HGSZS.mjs";
|
|
184
159
|
import {
|
|
185
|
-
|
|
186
|
-
} from "../chunk-
|
|
160
|
+
unzip
|
|
161
|
+
} from "../chunk-UYZKMBDO.mjs";
|
|
187
162
|
import {
|
|
188
163
|
sample
|
|
189
164
|
} from "../chunk-2KNLZB7V.mjs";
|
|
@@ -209,11 +184,11 @@ import {
|
|
|
209
184
|
takeRight
|
|
210
185
|
} from "../chunk-IQLKIDXF.mjs";
|
|
211
186
|
import {
|
|
212
|
-
|
|
213
|
-
} from "../chunk-
|
|
187
|
+
takeRightWhile
|
|
188
|
+
} from "../chunk-NTLX2MPV.mjs";
|
|
214
189
|
import {
|
|
215
|
-
|
|
216
|
-
} from "../chunk-
|
|
190
|
+
takeWhile
|
|
191
|
+
} from "../chunk-2IXFGSUA.mjs";
|
|
217
192
|
import {
|
|
218
193
|
intersectionBy
|
|
219
194
|
} from "../chunk-O6UXZR3U.mjs";
|
|
@@ -233,17 +208,14 @@ import {
|
|
|
233
208
|
minBy
|
|
234
209
|
} from "../chunk-IJD7FE2Z.mjs";
|
|
235
210
|
import {
|
|
236
|
-
|
|
237
|
-
} from "../chunk-
|
|
211
|
+
orderBy
|
|
212
|
+
} from "../chunk-7B7W36UP.mjs";
|
|
238
213
|
import {
|
|
239
|
-
|
|
240
|
-
} from "../chunk-
|
|
214
|
+
partition
|
|
215
|
+
} from "../chunk-DN3NOZ3H.mjs";
|
|
241
216
|
import {
|
|
242
217
|
flattenDeep
|
|
243
218
|
} from "../chunk-ML727RRJ.mjs";
|
|
244
|
-
import {
|
|
245
|
-
flatten
|
|
246
|
-
} from "../chunk-33MSBDC6.mjs";
|
|
247
219
|
import {
|
|
248
220
|
forEachRight
|
|
249
221
|
} from "../chunk-IEA53J7P.mjs";
|
|
@@ -254,9 +226,11 @@ import {
|
|
|
254
226
|
head
|
|
255
227
|
} from "../chunk-HM2JT2RX.mjs";
|
|
256
228
|
import {
|
|
257
|
-
|
|
258
|
-
} from "../chunk-
|
|
259
|
-
import
|
|
229
|
+
initial
|
|
230
|
+
} from "../chunk-XPSOKBRZ.mjs";
|
|
231
|
+
import {
|
|
232
|
+
intersection
|
|
233
|
+
} from "../chunk-FVVSE2F2.mjs";
|
|
260
234
|
import {
|
|
261
235
|
differenceBy
|
|
262
236
|
} from "../chunk-LVWX5B43.mjs";
|
|
@@ -275,6 +249,23 @@ import {
|
|
|
275
249
|
import {
|
|
276
250
|
dropWhile
|
|
277
251
|
} from "../chunk-LJ2C6MVP.mjs";
|
|
252
|
+
import {
|
|
253
|
+
fill
|
|
254
|
+
} from "../chunk-YFN6KOC4.mjs";
|
|
255
|
+
import {
|
|
256
|
+
flatMap
|
|
257
|
+
} from "../chunk-UY76KTPE.mjs";
|
|
258
|
+
import {
|
|
259
|
+
flatten
|
|
260
|
+
} from "../chunk-33MSBDC6.mjs";
|
|
261
|
+
import "../chunk-E6C5EZQA.mjs";
|
|
262
|
+
import {
|
|
263
|
+
compact
|
|
264
|
+
} from "../chunk-DTJJIMKJ.mjs";
|
|
265
|
+
import {
|
|
266
|
+
countBy
|
|
267
|
+
} from "../chunk-CRSKT4WW.mjs";
|
|
268
|
+
import "../chunk-JPUKH67K.mjs";
|
|
278
269
|
import "../chunk-F47GLYUU.mjs";
|
|
279
270
|
import {
|
|
280
271
|
AbortError
|
|
@@ -282,10 +273,22 @@ import {
|
|
|
282
273
|
import {
|
|
283
274
|
TimeoutError
|
|
284
275
|
} from "../chunk-KIOYQRMQ.mjs";
|
|
285
|
-
import "../chunk-
|
|
276
|
+
import "../chunk-236H5JZJ.mjs";
|
|
286
277
|
import {
|
|
287
|
-
|
|
288
|
-
} from "../chunk-
|
|
278
|
+
negate
|
|
279
|
+
} from "../chunk-BOOQBJN2.mjs";
|
|
280
|
+
import {
|
|
281
|
+
noop
|
|
282
|
+
} from "../chunk-LKXCOLNY.mjs";
|
|
283
|
+
import {
|
|
284
|
+
once
|
|
285
|
+
} from "../chunk-CMBC4MXG.mjs";
|
|
286
|
+
import {
|
|
287
|
+
throttle
|
|
288
|
+
} from "../chunk-QOJGMVVR.mjs";
|
|
289
|
+
import {
|
|
290
|
+
debounce
|
|
291
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
289
292
|
import "../chunk-24FKGR6U.mjs";
|
|
290
293
|
export {
|
|
291
294
|
AbortError,
|
|
@@ -324,6 +327,7 @@ export {
|
|
|
324
327
|
intersectionBy,
|
|
325
328
|
intersectionWith,
|
|
326
329
|
invert,
|
|
330
|
+
isArray,
|
|
327
331
|
isEqual,
|
|
328
332
|
isLength,
|
|
329
333
|
isNil,
|
package/dist/function/index.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import "../chunk-236H5JZJ.mjs";
|
|
2
|
-
import {
|
|
3
|
-
debounce
|
|
4
|
-
} from "../chunk-3IP4JVLL.mjs";
|
|
5
2
|
import {
|
|
6
3
|
negate
|
|
7
4
|
} from "../chunk-BOOQBJN2.mjs";
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
import {
|
|
15
12
|
throttle
|
|
16
13
|
} from "../chunk-QOJGMVVR.mjs";
|
|
14
|
+
import {
|
|
15
|
+
debounce
|
|
16
|
+
} from "../chunk-3IP4JVLL.mjs";
|
|
17
17
|
import "../chunk-24FKGR6U.mjs";
|
|
18
18
|
export {
|
|
19
19
|
debounce,
|
package/dist/index.d.mts
CHANGED
|
@@ -80,6 +80,7 @@ export { isNull } from './predicate/isNull.mjs';
|
|
|
80
80
|
export { isUndefined } from './predicate/isUndefined.mjs';
|
|
81
81
|
export { isLength } from './predicate/isLength.mjs';
|
|
82
82
|
export { isPlainObject } from './predicate/isPlainObject.mjs';
|
|
83
|
+
export { isArray } from './predicate/isArray.mjs';
|
|
83
84
|
export { delay } from './promise/delay.mjs';
|
|
84
85
|
export { withTimeout } from './promise/withTimeout.mjs';
|
|
85
86
|
export { camelCase } from './string/camelCase.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export { isNull } from './predicate/isNull.js';
|
|
|
80
80
|
export { isUndefined } from './predicate/isUndefined.js';
|
|
81
81
|
export { isLength } from './predicate/isLength.js';
|
|
82
82
|
export { isPlainObject } from './predicate/isPlainObject.js';
|
|
83
|
+
export { isArray } from './predicate/isArray.js';
|
|
83
84
|
export { delay } from './promise/delay.js';
|
|
84
85
|
export { withTimeout } from './promise/withTimeout.js';
|
|
85
86
|
export { camelCase } from './string/camelCase.js';
|
package/dist/index.js
CHANGED
|
@@ -86,6 +86,7 @@ __export(src_exports, {
|
|
|
86
86
|
intersectionBy: () => intersectionBy,
|
|
87
87
|
intersectionWith: () => intersectionWith,
|
|
88
88
|
invert: () => invert,
|
|
89
|
+
isArray: () => isArray,
|
|
89
90
|
isEqual: () => isEqual,
|
|
90
91
|
isLength: () => isLength,
|
|
91
92
|
isNil: () => isNil,
|
|
@@ -1027,6 +1028,11 @@ function isLength(value) {
|
|
|
1027
1028
|
return typeof value === "number" && value > -1 && value % 1 === 0 && value <= Number.MAX_SAFE_INTEGER;
|
|
1028
1029
|
}
|
|
1029
1030
|
|
|
1031
|
+
// src/predicate/isArray.ts
|
|
1032
|
+
function isArray(value) {
|
|
1033
|
+
return Array.isArray(value);
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1030
1036
|
// src/promise/delay.ts
|
|
1031
1037
|
function delay(ms, { signal } = {}) {
|
|
1032
1038
|
return new Promise((resolve, reject) => {
|
|
@@ -1150,6 +1156,7 @@ function startCase(str) {
|
|
|
1150
1156
|
intersectionBy,
|
|
1151
1157
|
intersectionWith,
|
|
1152
1158
|
invert,
|
|
1159
|
+
isArray,
|
|
1153
1160
|
isEqual,
|
|
1154
1161
|
isLength,
|
|
1155
1162
|
isNil,
|