es-toolkit 1.13.1-dev.317 → 1.13.1-dev.320

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.
Files changed (58) hide show
  1. package/dist/array/index.mjs +49 -49
  2. package/dist/browser.js +101 -0
  3. package/dist/browser.js.map +1 -1
  4. package/dist/browser.mjs +45 -43
  5. package/dist/browser.mjs.map +1 -1
  6. package/dist/chunk-5CPXZFCB.mjs +93 -0
  7. package/dist/chunk-5CPXZFCB.mjs.map +1 -0
  8. package/dist/chunk-STL6TD3L.mjs +1 -0
  9. package/dist/chunk-SXFMQQ6F.mjs +9 -0
  10. package/dist/chunk-SXFMQQ6F.mjs.map +1 -0
  11. package/dist/{chunk-HKO7DEJK.mjs → chunk-YNJH6GEG.mjs} +98 -84
  12. package/dist/chunk-YNJH6GEG.mjs.map +1 -0
  13. package/dist/chunk-YXAOYIRV.mjs +1 -0
  14. package/dist/compat/index.d.mts +20 -1
  15. package/dist/compat/index.d.ts +20 -1
  16. package/dist/compat/index.js +103 -0
  17. package/dist/compat/index.js.map +1 -1
  18. package/dist/compat/index.mjs +98 -91
  19. package/dist/error/index.mjs +3 -3
  20. package/dist/function/index.mjs +9 -9
  21. package/dist/index.d.mts +2 -0
  22. package/dist/index.d.ts +2 -0
  23. package/dist/index.js +98 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +98 -90
  26. package/dist/object/cloneDeep.d.mts +64 -0
  27. package/dist/object/cloneDeep.d.ts +64 -0
  28. package/dist/object/cloneDeep.js +117 -0
  29. package/dist/object/cloneDeep.js.map +1 -0
  30. package/dist/object/cloneDeep.mjs +8 -0
  31. package/dist/object/cloneDeep.mjs.map +1 -0
  32. package/dist/object/index.d.mts +1 -0
  33. package/dist/object/index.d.ts +1 -0
  34. package/dist/object/index.js +91 -0
  35. package/dist/object/index.js.map +1 -1
  36. package/dist/object/index.mjs +8 -4
  37. package/dist/predicate/index.d.mts +1 -0
  38. package/dist/predicate/index.d.ts +1 -0
  39. package/dist/predicate/index.js +7 -0
  40. package/dist/predicate/index.js.map +1 -1
  41. package/dist/predicate/index.mjs +8 -4
  42. package/dist/predicate/isTypedArray.d.mts +19 -0
  43. package/dist/predicate/isTypedArray.d.ts +19 -0
  44. package/dist/predicate/isTypedArray.js +33 -0
  45. package/dist/predicate/isTypedArray.js.map +1 -0
  46. package/dist/predicate/isTypedArray.mjs +8 -0
  47. package/dist/predicate/isTypedArray.mjs.map +1 -0
  48. package/dist/promise/index.mjs +1 -1
  49. package/dist/promise/timeout.mjs +1 -1
  50. package/dist/promise/withTimeout.mjs +1 -1
  51. package/dist/string/index.mjs +6 -6
  52. package/package.json +1 -1
  53. package/umd/browser.global.js +1 -1
  54. package/dist/chunk-54TK5BIS.mjs +0 -1
  55. package/dist/chunk-HKO7DEJK.mjs.map +0 -1
  56. package/dist/chunk-U4JWMVQK.mjs +0 -1
  57. /package/dist/{chunk-54TK5BIS.mjs.map → chunk-STL6TD3L.mjs.map} +0 -0
  58. /package/dist/{chunk-U4JWMVQK.mjs.map → chunk-YXAOYIRV.mjs.map} +0 -0
@@ -7,14 +7,29 @@ import {
7
7
  get,
8
8
  isArray,
9
9
  isPlainObject,
10
+ isTypedArray,
10
11
  max,
11
12
  min,
12
13
  set,
13
14
  startsWith,
14
15
  zipObjectDeep
15
- } from "../chunk-HKO7DEJK.mjs";
16
+ } from "../chunk-YNJH6GEG.mjs";
16
17
  import "../chunk-NKLIE2OI.mjs";
18
+ import "../chunk-4OIZM4HS.mjs";
19
+ import {
20
+ withTimeout
21
+ } from "../chunk-IIDZ3KAJ.mjs";
22
+ import "../chunk-CVVZHOJX.mjs";
23
+ import {
24
+ delay
25
+ } from "../chunk-O64NE2P4.mjs";
17
26
  import "../chunk-XT74R35S.mjs";
27
+ import {
28
+ lowerCase
29
+ } from "../chunk-5IKVJGHO.mjs";
30
+ import {
31
+ snakeCase
32
+ } from "../chunk-F3WCQQET.mjs";
18
33
  import {
19
34
  startCase
20
35
  } from "../chunk-QXTNZR7B.mjs";
@@ -27,22 +42,11 @@ import {
27
42
  import {
28
43
  kebabCase
29
44
  } from "../chunk-EYYZQFOP.mjs";
30
- import {
31
- lowerCase
32
- } from "../chunk-5IKVJGHO.mjs";
33
- import {
34
- snakeCase
35
- } from "../chunk-F3WCQQET.mjs";
36
45
  import "../chunk-WVQ7YVRK.mjs";
37
- import "../chunk-4OIZM4HS.mjs";
46
+ import "../chunk-STL6TD3L.mjs";
38
47
  import {
39
- withTimeout
40
- } from "../chunk-IIDZ3KAJ.mjs";
41
- import "../chunk-CVVZHOJX.mjs";
42
- import {
43
- delay
44
- } from "../chunk-O64NE2P4.mjs";
45
- import "../chunk-U4JWMVQK.mjs";
48
+ isFunction
49
+ } from "../chunk-74CREQXW.mjs";
46
50
  import {
47
51
  isNil
48
52
  } from "../chunk-WMM7TZLG.mjs";
@@ -52,6 +56,7 @@ import {
52
56
  import {
53
57
  isNull
54
58
  } from "../chunk-AIRSKN47.mjs";
59
+ import "../chunk-SXFMQQ6F.mjs";
55
60
  import {
56
61
  isUndefined
57
62
  } from "../chunk-VH2PV426.mjs";
@@ -64,10 +69,10 @@ import {
64
69
  import {
65
70
  isEqual
66
71
  } from "../chunk-JYSV56US.mjs";
72
+ import "../chunk-YXAOYIRV.mjs";
67
73
  import {
68
- isFunction
69
- } from "../chunk-74CREQXW.mjs";
70
- import "../chunk-54TK5BIS.mjs";
74
+ invert
75
+ } from "../chunk-OLX53VEF.mjs";
71
76
  import {
72
77
  omit
73
78
  } from "../chunk-WFZXCGEG.mjs";
@@ -83,13 +88,13 @@ import {
83
88
  import {
84
89
  clone
85
90
  } from "../chunk-VRUTBJYS.mjs";
91
+ import {
92
+ cloneDeep
93
+ } from "../chunk-5CPXZFCB.mjs";
86
94
  import {
87
95
  flattenObject
88
96
  } from "../chunk-XGQWTHW6.mjs";
89
97
  import "../chunk-MIGAC7F4.mjs";
90
- import {
91
- invert
92
- } from "../chunk-OLX53VEF.mjs";
93
98
  import "../chunk-FUS75PJ7.mjs";
94
99
  import {
95
100
  range
@@ -115,19 +120,33 @@ import {
115
120
  import {
116
121
  sum
117
122
  } from "../chunk-2SLTL4KL.mjs";
118
- import "../chunk-DDH7K4QM.mjs";
123
+ import "../chunk-F47GLYUU.mjs";
119
124
  import {
120
- zipWith
121
- } from "../chunk-4KYXHZ4R.mjs";
125
+ TimeoutError
126
+ } from "../chunk-KIOYQRMQ.mjs";
127
+ import "../chunk-ZA2XI3OV.mjs";
122
128
  import {
123
- unzip
124
- } from "../chunk-UYZKMBDO.mjs";
129
+ throttle
130
+ } from "../chunk-QOJGMVVR.mjs";
125
131
  import {
126
- unzipWith
127
- } from "../chunk-IFNXROZR.mjs";
132
+ after
133
+ } from "../chunk-OGZMEWPR.mjs";
128
134
  import {
129
- without
130
- } from "../chunk-PYEYV7BY.mjs";
135
+ debounce
136
+ } from "../chunk-3IP4JVLL.mjs";
137
+ import {
138
+ negate
139
+ } from "../chunk-BOOQBJN2.mjs";
140
+ import {
141
+ noop
142
+ } from "../chunk-LKXCOLNY.mjs";
143
+ import {
144
+ once
145
+ } from "../chunk-CMBC4MXG.mjs";
146
+ import {
147
+ AbortError
148
+ } from "../chunk-DXB7EZUQ.mjs";
149
+ import "../chunk-DDH7K4QM.mjs";
131
150
  import {
132
151
  xor
133
152
  } from "../chunk-L7FQX5MN.mjs";
@@ -144,23 +163,14 @@ import {
144
163
  zipObject
145
164
  } from "../chunk-6GWEY5EL.mjs";
146
165
  import {
147
- takeWhile
148
- } from "../chunk-2IXFGSUA.mjs";
149
- import {
150
- toFilled
151
- } from "../chunk-OP4OAKQJ.mjs";
152
- import {
153
- union
154
- } from "../chunk-R6QA7PLZ.mjs";
166
+ zipWith
167
+ } from "../chunk-4KYXHZ4R.mjs";
155
168
  import {
156
169
  unionBy
157
170
  } from "../chunk-NFS7RWWE.mjs";
158
171
  import {
159
172
  unionWith
160
173
  } from "../chunk-2ZCITDMK.mjs";
161
- import {
162
- uniq
163
- } from "../chunk-DVK2N4KC.mjs";
164
174
  import {
165
175
  uniqBy
166
176
  } from "../chunk-B4COTK4K.mjs";
@@ -168,20 +178,14 @@ import {
168
178
  uniqWith
169
179
  } from "../chunk-237HGSZS.mjs";
170
180
  import {
171
- partition
172
- } from "../chunk-DN3NOZ3H.mjs";
173
- import {
174
- sample
175
- } from "../chunk-2KNLZB7V.mjs";
176
- import {
177
- sampleSize
178
- } from "../chunk-EHSKB6DF.mjs";
181
+ unzip
182
+ } from "../chunk-UYZKMBDO.mjs";
179
183
  import {
180
- randomInt
181
- } from "../chunk-GIWAOOFY.mjs";
184
+ unzipWith
185
+ } from "../chunk-IFNXROZR.mjs";
182
186
  import {
183
- random
184
- } from "../chunk-SYWMYQYJ.mjs";
187
+ without
188
+ } from "../chunk-PYEYV7BY.mjs";
185
189
  import {
186
190
  shuffle
187
191
  } from "../chunk-G7UQ5PUR.mjs";
@@ -198,14 +202,17 @@ import {
198
202
  takeRightWhile
199
203
  } from "../chunk-NTLX2MPV.mjs";
200
204
  import {
201
- intersection
202
- } from "../chunk-FVVSE2F2.mjs";
205
+ takeWhile
206
+ } from "../chunk-2IXFGSUA.mjs";
203
207
  import {
204
- intersectionBy
205
- } from "../chunk-O6UXZR3U.mjs";
208
+ toFilled
209
+ } from "../chunk-OP4OAKQJ.mjs";
206
210
  import {
207
- intersectionWith
208
- } from "../chunk-XI7KRD2C.mjs";
211
+ union
212
+ } from "../chunk-R6QA7PLZ.mjs";
213
+ import {
214
+ uniq
215
+ } from "../chunk-DVK2N4KC.mjs";
209
216
  import {
210
217
  keyBy
211
218
  } from "../chunk-AJKZMN2V.mjs";
@@ -222,14 +229,20 @@ import {
222
229
  orderBy
223
230
  } from "../chunk-7B7W36UP.mjs";
224
231
  import {
225
- flatMap
226
- } from "../chunk-UY76KTPE.mjs";
232
+ partition
233
+ } from "../chunk-DN3NOZ3H.mjs";
227
234
  import {
228
- flattenDeep
229
- } from "../chunk-ML727RRJ.mjs";
235
+ sample
236
+ } from "../chunk-2KNLZB7V.mjs";
230
237
  import {
231
- flatten
232
- } from "../chunk-33MSBDC6.mjs";
238
+ sampleSize
239
+ } from "../chunk-EHSKB6DF.mjs";
240
+ import {
241
+ randomInt
242
+ } from "../chunk-GIWAOOFY.mjs";
243
+ import {
244
+ random
245
+ } from "../chunk-SYWMYQYJ.mjs";
233
246
  import {
234
247
  forEachRight
235
248
  } from "../chunk-IEA53J7P.mjs";
@@ -242,13 +255,15 @@ import {
242
255
  import {
243
256
  initial
244
257
  } from "../chunk-XPSOKBRZ.mjs";
245
- import "../chunk-JPUKH67K.mjs";
246
258
  import {
247
- differenceBy
248
- } from "../chunk-LVWX5B43.mjs";
259
+ intersection
260
+ } from "../chunk-FVVSE2F2.mjs";
249
261
  import {
250
- differenceWith
251
- } from "../chunk-6NVQAHXP.mjs";
262
+ intersectionBy
263
+ } from "../chunk-O6UXZR3U.mjs";
264
+ import {
265
+ intersectionWith
266
+ } from "../chunk-XI7KRD2C.mjs";
252
267
  import {
253
268
  drop
254
269
  } from "../chunk-3EZAFZG3.mjs";
@@ -262,19 +277,15 @@ import {
262
277
  dropWhile
263
278
  } from "../chunk-LJ2C6MVP.mjs";
264
279
  import "../chunk-YFN6KOC4.mjs";
265
- import "../chunk-ZA2XI3OV.mjs";
266
- import {
267
- negate
268
- } from "../chunk-BOOQBJN2.mjs";
269
280
  import {
270
- noop
271
- } from "../chunk-LKXCOLNY.mjs";
281
+ flatMap
282
+ } from "../chunk-UY76KTPE.mjs";
272
283
  import {
273
- once
274
- } from "../chunk-CMBC4MXG.mjs";
284
+ flattenDeep
285
+ } from "../chunk-ML727RRJ.mjs";
275
286
  import {
276
- throttle
277
- } from "../chunk-QOJGMVVR.mjs";
287
+ flatten
288
+ } from "../chunk-33MSBDC6.mjs";
278
289
  import "../chunk-E6C5EZQA.mjs";
279
290
  import {
280
291
  compact
@@ -282,19 +293,13 @@ import {
282
293
  import {
283
294
  countBy
284
295
  } from "../chunk-CRSKT4WW.mjs";
285
- import "../chunk-F47GLYUU.mjs";
286
- import {
287
- AbortError
288
- } from "../chunk-DXB7EZUQ.mjs";
289
- import {
290
- TimeoutError
291
- } from "../chunk-KIOYQRMQ.mjs";
296
+ import "../chunk-JPUKH67K.mjs";
292
297
  import {
293
- after
294
- } from "../chunk-OGZMEWPR.mjs";
298
+ differenceBy
299
+ } from "../chunk-LVWX5B43.mjs";
295
300
  import {
296
- debounce
297
- } from "../chunk-3IP4JVLL.mjs";
301
+ differenceWith
302
+ } from "../chunk-6NVQAHXP.mjs";
298
303
  import "../chunk-24FKGR6U.mjs";
299
304
  export {
300
305
  AbortError,
@@ -305,6 +310,7 @@ export {
305
310
  chunk,
306
311
  clamp,
307
312
  clone,
313
+ cloneDeep,
308
314
  compact,
309
315
  concat,
310
316
  countBy,
@@ -343,6 +349,7 @@ export {
343
349
  isNotNil,
344
350
  isNull,
345
351
  isPlainObject,
352
+ isTypedArray,
346
353
  isUndefined,
347
354
  kebabCase,
348
355
  keyBy,
@@ -1,10 +1,10 @@
1
1
  import "../chunk-F47GLYUU.mjs";
2
- import {
3
- AbortError
4
- } from "../chunk-DXB7EZUQ.mjs";
5
2
  import {
6
3
  TimeoutError
7
4
  } from "../chunk-KIOYQRMQ.mjs";
5
+ import {
6
+ AbortError
7
+ } from "../chunk-DXB7EZUQ.mjs";
8
8
  import "../chunk-24FKGR6U.mjs";
9
9
  export {
10
10
  AbortError,
@@ -1,13 +1,4 @@
1
1
  import "../chunk-ZA2XI3OV.mjs";
2
- import {
3
- negate
4
- } from "../chunk-BOOQBJN2.mjs";
5
- import {
6
- noop
7
- } from "../chunk-LKXCOLNY.mjs";
8
- import {
9
- once
10
- } from "../chunk-CMBC4MXG.mjs";
11
2
  import {
12
3
  throttle
13
4
  } from "../chunk-QOJGMVVR.mjs";
@@ -17,6 +8,15 @@ import {
17
8
  import {
18
9
  debounce
19
10
  } from "../chunk-3IP4JVLL.mjs";
11
+ import {
12
+ negate
13
+ } from "../chunk-BOOQBJN2.mjs";
14
+ import {
15
+ noop
16
+ } from "../chunk-LKXCOLNY.mjs";
17
+ import {
18
+ once
19
+ } from "../chunk-CMBC4MXG.mjs";
20
20
  import "../chunk-24FKGR6U.mjs";
21
21
  export {
22
22
  after,
package/dist/index.d.mts CHANGED
@@ -73,6 +73,7 @@ export { pick } from './object/pick.mjs';
73
73
  export { pickBy } from './object/pickBy.mjs';
74
74
  export { invert } from './object/invert.mjs';
75
75
  export { clone } from './object/clone.mjs';
76
+ export { cloneDeep } from './object/cloneDeep.mjs';
76
77
  export { flattenObject } from './object/flattenObject.mjs';
77
78
  export { isEqual } from './predicate/isEqual.mjs';
78
79
  export { isNil } from './predicate/isNil.mjs';
@@ -83,6 +84,7 @@ export { isLength } from './predicate/isLength.mjs';
83
84
  export { isPlainObject } from './predicate/isPlainObject.mjs';
84
85
  export { isFunction } from './predicate/isFunction.mjs';
85
86
  export { isArrayLike } from './predicate/isArrayLike.mjs';
87
+ export { isTypedArray } from './predicate/isTypedArray.mjs';
86
88
  export { delay } from './promise/delay.mjs';
87
89
  export { withTimeout } from './promise/withTimeout.mjs';
88
90
  export { camelCase } from './string/camelCase.mjs';
package/dist/index.d.ts CHANGED
@@ -73,6 +73,7 @@ export { pick } from './object/pick.js';
73
73
  export { pickBy } from './object/pickBy.js';
74
74
  export { invert } from './object/invert.js';
75
75
  export { clone } from './object/clone.js';
76
+ export { cloneDeep } from './object/cloneDeep.js';
76
77
  export { flattenObject } from './object/flattenObject.js';
77
78
  export { isEqual } from './predicate/isEqual.js';
78
79
  export { isNil } from './predicate/isNil.js';
@@ -83,6 +84,7 @@ export { isLength } from './predicate/isLength.js';
83
84
  export { isPlainObject } from './predicate/isPlainObject.js';
84
85
  export { isFunction } from './predicate/isFunction.js';
85
86
  export { isArrayLike } from './predicate/isArrayLike.js';
87
+ export { isTypedArray } from './predicate/isTypedArray.js';
86
88
  export { delay } from './promise/delay.js';
87
89
  export { withTimeout } from './promise/withTimeout.js';
88
90
  export { camelCase } from './string/camelCase.js';
package/dist/index.js CHANGED
@@ -62,6 +62,7 @@ __export(src_exports, {
62
62
  chunk: () => chunk,
63
63
  clamp: () => clamp,
64
64
  clone: () => clone,
65
+ cloneDeep: () => cloneDeep,
65
66
  compact: () => compact,
66
67
  countBy: () => countBy,
67
68
  debounce: () => debounce,
@@ -95,6 +96,7 @@ __export(src_exports, {
95
96
  isNotNil: () => isNotNil,
96
97
  isNull: () => isNull,
97
98
  isPlainObject: () => isPlainObject,
99
+ isTypedArray: () => isTypedArray2,
98
100
  isUndefined: () => isUndefined,
99
101
  kebabCase: () => kebabCase,
100
102
  keyBy: () => keyBy,
@@ -939,6 +941,95 @@ function isPrimitive(value) {
939
941
  return value == null || typeof value !== "object" && typeof value !== "function";
940
942
  }
941
943
 
944
+ // src/object/cloneDeep.ts
945
+ function cloneDeep(obj) {
946
+ if (isPrimitive2(obj)) {
947
+ return obj;
948
+ }
949
+ if (Array.isArray(obj)) {
950
+ return obj.map((item) => cloneDeep(item));
951
+ }
952
+ if (obj instanceof Date) {
953
+ return new Date(obj.getTime());
954
+ }
955
+ if (obj instanceof RegExp) {
956
+ return new RegExp(obj.source, obj.flags);
957
+ }
958
+ if (obj instanceof Map) {
959
+ const result = /* @__PURE__ */ new Map();
960
+ for (const [key, value] of obj.entries()) {
961
+ result.set(key, cloneDeep(value));
962
+ }
963
+ return result;
964
+ }
965
+ if (obj instanceof Set) {
966
+ const result = /* @__PURE__ */ new Set();
967
+ for (const value of obj.values()) {
968
+ result.add(cloneDeep(value));
969
+ }
970
+ return result;
971
+ }
972
+ if (isTypedArray(obj)) {
973
+ const result = new (Object.getPrototypeOf(obj)).constructor(obj.length);
974
+ for (let i = 0; i < obj.length; i++) {
975
+ result[i] = cloneDeep(obj[i]);
976
+ }
977
+ return result;
978
+ }
979
+ if (obj instanceof ArrayBuffer || obj instanceof SharedArrayBuffer) {
980
+ return obj.slice(0);
981
+ }
982
+ if (obj instanceof DataView) {
983
+ const result = new DataView(obj.buffer.slice(0));
984
+ cloneDeepHelper(obj, result);
985
+ return result;
986
+ }
987
+ if (typeof File !== "undefined" && obj instanceof File) {
988
+ const result = new File([obj], obj.name, { type: obj.type });
989
+ cloneDeepHelper(obj, result);
990
+ return result;
991
+ }
992
+ if (obj instanceof Blob) {
993
+ const result = new Blob([obj], { type: obj.type });
994
+ cloneDeepHelper(obj, result);
995
+ return result;
996
+ }
997
+ if (obj instanceof Error) {
998
+ const result = new obj.constructor();
999
+ result.message = obj.message;
1000
+ result.name = obj.name;
1001
+ result.stack = obj.stack;
1002
+ result.cause = obj.cause;
1003
+ cloneDeepHelper(obj, result);
1004
+ return result;
1005
+ }
1006
+ if (typeof obj === "object" && obj !== null) {
1007
+ const result = {};
1008
+ cloneDeepHelper(obj, result);
1009
+ return result;
1010
+ }
1011
+ if (typeof obj === "function") {
1012
+ return void 0;
1013
+ }
1014
+ return obj;
1015
+ }
1016
+ function isPrimitive2(value) {
1017
+ return value == null || typeof value !== "object" && typeof value !== "function";
1018
+ }
1019
+ function cloneDeepHelper(obj, clonedObj) {
1020
+ for (const key in obj) {
1021
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
1022
+ const descriptor = Object.getOwnPropertyDescriptor(obj, key);
1023
+ if (((descriptor == null ? void 0 : descriptor.writable) || (descriptor == null ? void 0 : descriptor.set)) && typeof (descriptor == null ? void 0 : descriptor.value) !== "function") {
1024
+ clonedObj[key] = cloneDeep(obj[key]);
1025
+ }
1026
+ }
1027
+ }
1028
+ }
1029
+ function isTypedArray(obj) {
1030
+ return obj instanceof Uint8Array || obj instanceof Uint8ClampedArray || obj instanceof Uint16Array || obj instanceof Uint32Array || obj instanceof BigUint64Array || obj instanceof Int8Array || obj instanceof Int16Array || obj instanceof Int32Array || obj instanceof BigInt64Array || obj instanceof Float32Array || obj instanceof Float64Array;
1031
+ }
1032
+
942
1033
  // src/predicate/isPlainObject.ts
943
1034
  function isPlainObject(object) {
944
1035
  if (typeof object !== "object") {
@@ -1054,6 +1145,11 @@ function isArrayLike(value) {
1054
1145
  return value != null && typeof value !== "function" && isLength(value.length);
1055
1146
  }
1056
1147
 
1148
+ // src/predicate/isTypedArray.ts
1149
+ function isTypedArray2(x) {
1150
+ return x instanceof Uint8Array || x instanceof Uint8ClampedArray || x instanceof Uint16Array || x instanceof Uint32Array || x instanceof BigUint64Array || x instanceof Int8Array || x instanceof Int16Array || x instanceof Int32Array || x instanceof BigInt64Array || x instanceof Float32Array || x instanceof Float64Array;
1151
+ }
1152
+
1057
1153
  // src/promise/delay.ts
1058
1154
  function delay(ms, { signal } = {}) {
1059
1155
  return new Promise((resolve, reject) => {
@@ -1153,6 +1249,7 @@ function startCase(str) {
1153
1249
  chunk,
1154
1250
  clamp,
1155
1251
  clone,
1252
+ cloneDeep,
1156
1253
  compact,
1157
1254
  countBy,
1158
1255
  debounce,
@@ -1186,6 +1283,7 @@ function startCase(str) {
1186
1283
  isNotNil,
1187
1284
  isNull,
1188
1285
  isPlainObject,
1286
+ isTypedArray,
1189
1287
  isUndefined,
1190
1288
  kebabCase,
1191
1289
  keyBy,