es-toolkit 1.13.1-dev.318 → 1.13.1-dev.321

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 (210) hide show
  1. package/dist/array/chunk.mjs +1 -1
  2. package/dist/array/compact.mjs +1 -1
  3. package/dist/array/countBy.js +1 -2
  4. package/dist/array/countBy.js.map +1 -1
  5. package/dist/array/countBy.mjs +2 -2
  6. package/dist/array/difference.mjs +1 -1
  7. package/dist/array/differenceBy.mjs +1 -1
  8. package/dist/array/differenceWith.mjs +1 -1
  9. package/dist/array/drop.mjs +1 -1
  10. package/dist/array/dropRight.mjs +1 -1
  11. package/dist/array/dropRightWhile.mjs +1 -1
  12. package/dist/array/dropWhile.mjs +1 -1
  13. package/dist/array/fill.mjs +1 -1
  14. package/dist/array/flatMap.mjs +1 -1
  15. package/dist/array/flatten.mjs +1 -1
  16. package/dist/array/flattenDeep.mjs +1 -1
  17. package/dist/array/forEachRight.mjs +1 -1
  18. package/dist/array/groupBy.mjs +1 -1
  19. package/dist/array/head.mjs +1 -1
  20. package/dist/array/index.js +1 -2
  21. package/dist/array/index.js.map +1 -1
  22. package/dist/array/index.mjs +2 -2
  23. package/dist/array/initial.mjs +1 -1
  24. package/dist/array/intersection.mjs +1 -1
  25. package/dist/array/intersectionBy.mjs +1 -1
  26. package/dist/array/intersectionWith.mjs +1 -1
  27. package/dist/array/keyBy.mjs +1 -1
  28. package/dist/array/last.mjs +1 -1
  29. package/dist/array/maxBy.mjs +1 -1
  30. package/dist/array/minBy.mjs +1 -1
  31. package/dist/array/orderBy.mjs +1 -1
  32. package/dist/array/partition.mjs +1 -1
  33. package/dist/array/sample.mjs +1 -1
  34. package/dist/array/sampleSize.mjs +1 -1
  35. package/dist/array/shuffle.mjs +1 -1
  36. package/dist/array/tail.mjs +1 -1
  37. package/dist/array/take.mjs +1 -1
  38. package/dist/array/takeRight.mjs +1 -1
  39. package/dist/array/takeRightWhile.mjs +1 -1
  40. package/dist/array/takeWhile.mjs +1 -1
  41. package/dist/array/toFilled.mjs +1 -1
  42. package/dist/array/union.mjs +1 -1
  43. package/dist/array/unionBy.mjs +1 -1
  44. package/dist/array/unionWith.mjs +1 -1
  45. package/dist/array/uniq.mjs +1 -1
  46. package/dist/array/uniqBy.mjs +1 -1
  47. package/dist/array/uniqWith.mjs +1 -1
  48. package/dist/array/unzip.mjs +1 -1
  49. package/dist/array/unzipWith.mjs +1 -1
  50. package/dist/array/without.mjs +1 -1
  51. package/dist/array/xor.mjs +1 -1
  52. package/dist/array/xorBy.mjs +1 -1
  53. package/dist/array/xorWith.mjs +1 -1
  54. package/dist/array/zip.mjs +1 -1
  55. package/dist/array/zipObject.mjs +1 -1
  56. package/dist/array/zipWith.mjs +1 -1
  57. package/dist/browser.js +33 -58
  58. package/dist/browser.js.map +1 -1
  59. package/dist/browser.mjs +19 -17
  60. package/dist/browser.mjs.map +1 -1
  61. package/dist/{chunk-QXTNZR7B.mjs → chunk-3SBT6WDU.mjs} +2 -2
  62. package/dist/{chunk-O64NE2P4.mjs → chunk-4DFAGGIM.mjs} +3 -3
  63. package/dist/{chunk-O64NE2P4.mjs.map → chunk-4DFAGGIM.mjs.map} +1 -1
  64. package/dist/{chunk-Y5V7UAZZ.mjs → chunk-4ZES5T6V.mjs} +4 -4
  65. package/dist/{chunk-EYYZQFOP.mjs → chunk-ET33L3MQ.mjs} +2 -2
  66. package/dist/chunk-EZYYB34V.mjs +17 -0
  67. package/dist/{chunk-CVVZHOJX.mjs.map → chunk-EZYYB34V.mjs.map} +1 -1
  68. package/dist/{chunk-36ZJSTNA.mjs → chunk-IGM5IABU.mjs} +37 -24
  69. package/dist/chunk-IGM5IABU.mjs.map +1 -0
  70. package/dist/{chunk-F3WCQQET.mjs → chunk-IWXZI3QT.mjs} +2 -2
  71. package/dist/chunk-J5LGTIGS.mjs +10 -0
  72. package/dist/{chunk-5CPXZFCB.mjs → chunk-K5WL54BY.mjs} +2 -2
  73. package/dist/{chunk-5CPXZFCB.mjs.map → chunk-K5WL54BY.mjs.map} +1 -1
  74. package/dist/{chunk-3IP4JVLL.mjs → chunk-MSHSKENG.mjs} +3 -3
  75. package/dist/{chunk-3IP4JVLL.mjs.map → chunk-MSHSKENG.mjs.map} +1 -1
  76. package/dist/{chunk-WVQ7YVRK.mjs → chunk-OG2RLT5U.mjs} +2 -3
  77. package/dist/{chunk-WVQ7YVRK.mjs.map → chunk-OG2RLT5U.mjs.map} +1 -1
  78. package/dist/chunk-R6GLTTAB.mjs +9 -0
  79. package/dist/chunk-R6GLTTAB.mjs.map +1 -0
  80. package/dist/{chunk-5IKVJGHO.mjs → chunk-RTFTLCF3.mjs} +2 -2
  81. package/dist/chunk-SXFMQQ6F.mjs +9 -0
  82. package/dist/chunk-SXFMQQ6F.mjs.map +1 -0
  83. package/dist/{chunk-WFZXCGEG.mjs → chunk-YOPFSFTD.mjs} +2 -6
  84. package/dist/{chunk-WFZXCGEG.mjs.map → chunk-YOPFSFTD.mjs.map} +1 -1
  85. package/dist/chunk-YXD3AQAK.mjs +1 -0
  86. package/dist/{chunk-CRSKT4WW.mjs → chunk-Z7HWEOQX.mjs} +2 -3
  87. package/dist/{chunk-CRSKT4WW.mjs.map → chunk-Z7HWEOQX.mjs.map} +1 -1
  88. package/dist/chunk-ZPNX2QDE.mjs +13 -0
  89. package/dist/{chunk-IIDZ3KAJ.mjs.map → chunk-ZPNX2QDE.mjs.map} +1 -1
  90. package/dist/compat/index.d.mts +20 -1
  91. package/dist/compat/index.d.ts +20 -1
  92. package/dist/compat/index.js +35 -57
  93. package/dist/compat/index.js.map +1 -1
  94. package/dist/compat/index.mjs +30 -23
  95. package/dist/error/AbortError.mjs +1 -1
  96. package/dist/error/TimeoutError.mjs +1 -1
  97. package/dist/error/index.mjs +1 -1
  98. package/dist/function/after.mjs +1 -1
  99. package/dist/function/debounce.js +2 -2
  100. package/dist/function/debounce.js.map +1 -1
  101. package/dist/function/debounce.mjs +2 -2
  102. package/dist/function/index.js +2 -2
  103. package/dist/function/index.js.map +1 -1
  104. package/dist/function/index.mjs +2 -2
  105. package/dist/function/negate.mjs +1 -1
  106. package/dist/function/noop.mjs +1 -1
  107. package/dist/function/once.mjs +1 -1
  108. package/dist/function/throttle.mjs +1 -1
  109. package/dist/index.d.mts +2 -0
  110. package/dist/index.d.ts +2 -0
  111. package/dist/index.js +27 -53
  112. package/dist/index.js.map +1 -1
  113. package/dist/index.mjs +30 -22
  114. package/dist/math/clamp.mjs +1 -1
  115. package/dist/math/inRange.mjs +1 -1
  116. package/dist/math/index.mjs +1 -1
  117. package/dist/math/mean.mjs +1 -1
  118. package/dist/math/meanBy.mjs +1 -1
  119. package/dist/math/random.mjs +1 -1
  120. package/dist/math/randomInt.mjs +1 -1
  121. package/dist/math/range.mjs +1 -1
  122. package/dist/math/round.mjs +1 -1
  123. package/dist/math/sum.mjs +1 -1
  124. package/dist/math/sumBy.mjs +1 -1
  125. package/dist/object/clone.mjs +1 -1
  126. package/dist/object/cloneDeep.js +1 -1
  127. package/dist/object/cloneDeep.js.map +1 -1
  128. package/dist/object/cloneDeep.mjs +2 -2
  129. package/dist/object/flattenObject.mjs +1 -1
  130. package/dist/object/index.js +2 -16
  131. package/dist/object/index.js.map +1 -1
  132. package/dist/object/index.mjs +3 -3
  133. package/dist/object/invert.mjs +1 -1
  134. package/dist/object/omit.js +1 -15
  135. package/dist/object/omit.js.map +1 -1
  136. package/dist/object/omit.mjs +2 -2
  137. package/dist/object/omitBy.mjs +1 -1
  138. package/dist/object/pick.mjs +1 -1
  139. package/dist/object/pickBy.mjs +1 -1
  140. package/dist/predicate/index.d.mts +2 -0
  141. package/dist/predicate/index.d.ts +2 -0
  142. package/dist/predicate/index.js +14 -0
  143. package/dist/predicate/index.js.map +1 -1
  144. package/dist/predicate/index.mjs +12 -4
  145. package/dist/predicate/isArrayLike.mjs +1 -1
  146. package/dist/predicate/isEqual.mjs +1 -1
  147. package/dist/predicate/isFunction.mjs +1 -1
  148. package/dist/predicate/isLength.mjs +1 -1
  149. package/dist/predicate/isNil.mjs +1 -1
  150. package/dist/predicate/isNotNil.mjs +1 -1
  151. package/dist/predicate/isNull.mjs +1 -1
  152. package/dist/predicate/isPlainObject.mjs +1 -1
  153. package/dist/predicate/isPrimitive.d.mts +17 -0
  154. package/dist/predicate/isPrimitive.d.ts +17 -0
  155. package/dist/predicate/isPrimitive.js +33 -0
  156. package/dist/predicate/isPrimitive.js.map +1 -0
  157. package/dist/predicate/isPrimitive.mjs +8 -0
  158. package/dist/predicate/isPrimitive.mjs.map +1 -0
  159. package/dist/predicate/isTypedArray.d.mts +19 -0
  160. package/dist/predicate/isTypedArray.d.ts +19 -0
  161. package/dist/predicate/isTypedArray.js +33 -0
  162. package/dist/predicate/isTypedArray.js.map +1 -0
  163. package/dist/predicate/isTypedArray.mjs +8 -0
  164. package/dist/predicate/isTypedArray.mjs.map +1 -0
  165. package/dist/predicate/isUndefined.mjs +1 -1
  166. package/dist/promise/delay.js +2 -2
  167. package/dist/promise/delay.js.map +1 -1
  168. package/dist/promise/delay.mjs +2 -2
  169. package/dist/promise/index.js +7 -31
  170. package/dist/promise/index.js.map +1 -1
  171. package/dist/promise/index.mjs +4 -4
  172. package/dist/promise/timeout.js +5 -27
  173. package/dist/promise/timeout.js.map +1 -1
  174. package/dist/promise/timeout.mjs +3 -3
  175. package/dist/promise/withTimeout.js +7 -31
  176. package/dist/promise/withTimeout.js.map +1 -1
  177. package/dist/promise/withTimeout.mjs +4 -4
  178. package/dist/string/camelCase.js +1 -2
  179. package/dist/string/camelCase.js.map +1 -1
  180. package/dist/string/camelCase.mjs +3 -3
  181. package/dist/string/capitalize.mjs +1 -1
  182. package/dist/string/index.js +1 -2
  183. package/dist/string/index.js.map +1 -1
  184. package/dist/string/index.mjs +11 -11
  185. package/dist/string/kebabCase.js +1 -2
  186. package/dist/string/kebabCase.js.map +1 -1
  187. package/dist/string/kebabCase.mjs +3 -3
  188. package/dist/string/lowerCase.js +1 -2
  189. package/dist/string/lowerCase.js.map +1 -1
  190. package/dist/string/lowerCase.mjs +3 -3
  191. package/dist/string/snakeCase.js +1 -2
  192. package/dist/string/snakeCase.js.map +1 -1
  193. package/dist/string/snakeCase.mjs +3 -3
  194. package/dist/string/startCase.js +1 -2
  195. package/dist/string/startCase.js.map +1 -1
  196. package/dist/string/startCase.mjs +3 -3
  197. package/package.json +1 -1
  198. package/umd/browser.global.js +1 -1
  199. package/dist/chunk-24FKGR6U.mjs +0 -47
  200. package/dist/chunk-36ZJSTNA.mjs.map +0 -1
  201. package/dist/chunk-CVVZHOJX.mjs +0 -22
  202. package/dist/chunk-IIDZ3KAJ.mjs +0 -18
  203. package/dist/chunk-U4JWMVQK.mjs +0 -1
  204. /package/dist/{chunk-QXTNZR7B.mjs.map → chunk-3SBT6WDU.mjs.map} +0 -0
  205. /package/dist/{chunk-Y5V7UAZZ.mjs.map → chunk-4ZES5T6V.mjs.map} +0 -0
  206. /package/dist/{chunk-EYYZQFOP.mjs.map → chunk-ET33L3MQ.mjs.map} +0 -0
  207. /package/dist/{chunk-F3WCQQET.mjs.map → chunk-IWXZI3QT.mjs.map} +0 -0
  208. /package/dist/{chunk-24FKGR6U.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  209. /package/dist/{chunk-5IKVJGHO.mjs.map → chunk-RTFTLCF3.mjs.map} +0 -0
  210. /package/dist/{chunk-U4JWMVQK.mjs.map → chunk-YXD3AQAK.mjs.map} +0 -0
@@ -126,7 +126,7 @@ import {
126
126
  } from "../chunk-HM2JT2RX.mjs";
127
127
  import {
128
128
  countBy
129
- } from "../chunk-CRSKT4WW.mjs";
129
+ } from "../chunk-Z7HWEOQX.mjs";
130
130
  import {
131
131
  difference
132
132
  } from "../chunk-JPUKH67K.mjs";
@@ -154,7 +154,7 @@ import {
154
154
  import {
155
155
  compact
156
156
  } from "../chunk-DTJJIMKJ.mjs";
157
- import "../chunk-24FKGR6U.mjs";
157
+ import "../chunk-J5LGTIGS.mjs";
158
158
  export {
159
159
  chunk,
160
160
  compact,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  initial
3
3
  } from "../chunk-XPSOKBRZ.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  initial
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  intersection
3
3
  } from "../chunk-FVVSE2F2.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  intersection
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  intersectionBy
3
3
  } from "../chunk-O6UXZR3U.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  intersectionBy
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  intersectionWith
3
3
  } from "../chunk-XI7KRD2C.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  intersectionWith
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  keyBy
3
3
  } from "../chunk-AJKZMN2V.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  keyBy
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  last
3
3
  } from "../chunk-KPBQ7OUY.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  last
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  maxBy
3
3
  } from "../chunk-OOKNBU4V.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  maxBy
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  minBy
3
3
  } from "../chunk-IJD7FE2Z.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  minBy
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  orderBy
3
3
  } from "../chunk-7B7W36UP.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  orderBy
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  partition
3
3
  } from "../chunk-DN3NOZ3H.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  partition
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  sample
3
3
  } from "../chunk-2KNLZB7V.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  sample
7
7
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-EHSKB6DF.mjs";
4
4
  import "../chunk-GIWAOOFY.mjs";
5
5
  import "../chunk-SYWMYQYJ.mjs";
6
- import "../chunk-24FKGR6U.mjs";
6
+ import "../chunk-J5LGTIGS.mjs";
7
7
  export {
8
8
  sampleSize
9
9
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  shuffle
3
3
  } from "../chunk-G7UQ5PUR.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  shuffle
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  tail
3
3
  } from "../chunk-TJ4Z5I7M.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  tail
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  take
3
3
  } from "../chunk-ME352XO7.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  take
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  takeRight
3
3
  } from "../chunk-N3QYJX4T.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  takeRight
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  takeRightWhile
3
3
  } from "../chunk-NTLX2MPV.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  takeRightWhile
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  takeWhile
3
3
  } from "../chunk-2IXFGSUA.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  takeWhile
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  toFilled
3
3
  } from "../chunk-OP4OAKQJ.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  toFilled
7
7
  };
@@ -2,7 +2,7 @@ import {
2
2
  union
3
3
  } from "../chunk-R6QA7PLZ.mjs";
4
4
  import "../chunk-DVK2N4KC.mjs";
5
- import "../chunk-24FKGR6U.mjs";
5
+ import "../chunk-J5LGTIGS.mjs";
6
6
  export {
7
7
  union
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unionBy
3
3
  } from "../chunk-NFS7RWWE.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  unionBy
7
7
  };
@@ -2,7 +2,7 @@ import {
2
2
  unionWith
3
3
  } from "../chunk-2ZCITDMK.mjs";
4
4
  import "../chunk-237HGSZS.mjs";
5
- import "../chunk-24FKGR6U.mjs";
5
+ import "../chunk-J5LGTIGS.mjs";
6
6
  export {
7
7
  unionWith
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  uniq
3
3
  } from "../chunk-DVK2N4KC.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  uniq
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  uniqBy
3
3
  } from "../chunk-B4COTK4K.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  uniqBy
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  uniqWith
3
3
  } from "../chunk-237HGSZS.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  uniqWith
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unzip
3
3
  } from "../chunk-UYZKMBDO.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  unzip
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unzipWith
3
3
  } from "../chunk-IFNXROZR.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  unzipWith
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  without
3
3
  } from "../chunk-PYEYV7BY.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  without
7
7
  };
@@ -5,7 +5,7 @@ import "../chunk-R6QA7PLZ.mjs";
5
5
  import "../chunk-DVK2N4KC.mjs";
6
6
  import "../chunk-FVVSE2F2.mjs";
7
7
  import "../chunk-JPUKH67K.mjs";
8
- import "../chunk-24FKGR6U.mjs";
8
+ import "../chunk-J5LGTIGS.mjs";
9
9
  export {
10
10
  xor
11
11
  };
@@ -4,7 +4,7 @@ import {
4
4
  import "../chunk-NFS7RWWE.mjs";
5
5
  import "../chunk-O6UXZR3U.mjs";
6
6
  import "../chunk-LVWX5B43.mjs";
7
- import "../chunk-24FKGR6U.mjs";
7
+ import "../chunk-J5LGTIGS.mjs";
8
8
  export {
9
9
  xorBy
10
10
  };
@@ -5,7 +5,7 @@ import "../chunk-2ZCITDMK.mjs";
5
5
  import "../chunk-237HGSZS.mjs";
6
6
  import "../chunk-XI7KRD2C.mjs";
7
7
  import "../chunk-6NVQAHXP.mjs";
8
- import "../chunk-24FKGR6U.mjs";
8
+ import "../chunk-J5LGTIGS.mjs";
9
9
  export {
10
10
  xorWith
11
11
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  zip
3
3
  } from "../chunk-OLORW442.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  zip
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  zipObject
3
3
  } from "../chunk-6GWEY5EL.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  zipObject
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  zipWith
3
3
  } from "../chunk-4KYXHZ4R.mjs";
4
- import "../chunk-24FKGR6U.mjs";
4
+ import "../chunk-J5LGTIGS.mjs";
5
5
  export {
6
6
  zipWith
7
7
  };
package/dist/browser.js CHANGED
@@ -1,44 +1,9 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
6
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7
- var __spreadValues = (a, b) => {
8
- for (var prop in b || (b = {}))
9
- if (__hasOwnProp.call(b, prop))
10
- __defNormalProp(a, prop, b[prop]);
11
- if (__getOwnPropSymbols)
12
- for (var prop of __getOwnPropSymbols(b)) {
13
- if (__propIsEnum.call(b, prop))
14
- __defNormalProp(a, prop, b[prop]);
15
- }
16
- return a;
17
- };
18
3
  var __export = (target, all) => {
19
4
  for (var name in all)
20
5
  __defProp(target, name, { get: all[name], enumerable: true });
21
6
  };
22
- var __async = (__this, __arguments, generator) => {
23
- return new Promise((resolve, reject) => {
24
- var fulfilled = (value) => {
25
- try {
26
- step(generator.next(value));
27
- } catch (e) {
28
- reject(e);
29
- }
30
- };
31
- var rejected = (value) => {
32
- try {
33
- step(generator.throw(value));
34
- } catch (e) {
35
- reject(e);
36
- }
37
- };
38
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
39
- step((generator = generator.apply(__this, __arguments)).next());
40
- });
41
- };
42
7
 
43
8
  // src/compat/index.ts
44
9
  var compat_exports = {};
@@ -90,6 +55,8 @@ __export(compat_exports, {
90
55
  isNotNil: () => isNotNil,
91
56
  isNull: () => isNull,
92
57
  isPlainObject: () => isPlainObject2,
58
+ isPrimitive: () => isPrimitive3,
59
+ isTypedArray: () => isTypedArray3,
93
60
  isUndefined: () => isUndefined,
94
61
  kebabCase: () => kebabCase,
95
62
  keyBy: () => keyBy,
@@ -177,11 +144,10 @@ function compact(arr) {
177
144
 
178
145
  // src/array/countBy.ts
179
146
  function countBy(arr, mapper) {
180
- var _a;
181
147
  const result = {};
182
148
  for (const item of arr) {
183
149
  const key = mapper(item);
184
- result[key] = ((_a = result[key]) != null ? _a : 0) + 1;
150
+ result[key] = (result[key] ?? 0) + 1;
185
151
  }
186
152
  return result;
187
153
  }
@@ -712,7 +678,7 @@ function debounce(func, debounceMs, { signal } = {}) {
712
678
  if (timeoutId !== null) {
713
679
  clearTimeout(timeoutId);
714
680
  }
715
- if (signal == null ? void 0 : signal.aborted) {
681
+ if (signal?.aborted) {
716
682
  return;
717
683
  }
718
684
  timeoutId = setTimeout(() => {
@@ -729,7 +695,7 @@ function debounce(func, debounceMs, { signal } = {}) {
729
695
  timeoutId = null;
730
696
  }
731
697
  };
732
- signal == null ? void 0 : signal.addEventListener("abort", onAbort, { once: true });
698
+ signal?.addEventListener("abort", onAbort, { once: true });
733
699
  return debounced;
734
700
  }
735
701
 
@@ -847,7 +813,7 @@ function range(start, end, step) {
847
813
 
848
814
  // src/object/omit.ts
849
815
  function omit(obj, keys) {
850
- const result = __spreadValues({}, obj);
816
+ const result = { ...obj };
851
817
  for (const key of keys) {
852
818
  delete result[key];
853
819
  }
@@ -1017,7 +983,7 @@ function cloneDeepHelper(obj, clonedObj) {
1017
983
  for (const key in obj) {
1018
984
  if (Object.prototype.hasOwnProperty.call(obj, key)) {
1019
985
  const descriptor = Object.getOwnPropertyDescriptor(obj, key);
1020
- if (((descriptor == null ? void 0 : descriptor.writable) || (descriptor == null ? void 0 : descriptor.set)) && typeof (descriptor == null ? void 0 : descriptor.value) !== "function") {
986
+ if ((descriptor?.writable || descriptor?.set) && typeof descriptor?.value !== "function") {
1021
987
  clonedObj[key] = cloneDeep(obj[key]);
1022
988
  }
1023
989
  }
@@ -1142,6 +1108,16 @@ function isArrayLike(value) {
1142
1108
  return value != null && typeof value !== "function" && isLength(value.length);
1143
1109
  }
1144
1110
 
1111
+ // src/predicate/isTypedArray.ts
1112
+ function isTypedArray2(x) {
1113
+ 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;
1114
+ }
1115
+
1116
+ // src/predicate/isPrimitive.ts
1117
+ function isPrimitive3(value) {
1118
+ return value == null || typeof value !== "object" && typeof value !== "function";
1119
+ }
1120
+
1145
1121
  // src/promise/delay.ts
1146
1122
  function delay(ms, { signal } = {}) {
1147
1123
  return new Promise((resolve, reject) => {
@@ -1152,27 +1128,23 @@ function delay(ms, { signal } = {}) {
1152
1128
  clearTimeout(timeoutId);
1153
1129
  abortError();
1154
1130
  };
1155
- if (signal == null ? void 0 : signal.aborted) {
1131
+ if (signal?.aborted) {
1156
1132
  return abortError();
1157
1133
  }
1158
1134
  const timeoutId = setTimeout(resolve, ms);
1159
- signal == null ? void 0 : signal.addEventListener("abort", abortHandler, { once: true });
1135
+ signal?.addEventListener("abort", abortHandler, { once: true });
1160
1136
  });
1161
1137
  }
1162
1138
 
1163
1139
  // src/promise/timeout.ts
1164
- function timeout(ms) {
1165
- return __async(this, null, function* () {
1166
- yield delay(ms);
1167
- throw new TimeoutError();
1168
- });
1140
+ async function timeout(ms) {
1141
+ await delay(ms);
1142
+ throw new TimeoutError();
1169
1143
  }
1170
1144
 
1171
1145
  // src/promise/withTimeout.ts
1172
- function withTimeout(run, ms) {
1173
- return __async(this, null, function* () {
1174
- return Promise.race([run(), timeout(ms)]);
1175
- });
1146
+ async function withTimeout(run, ms) {
1147
+ return Promise.race([run(), timeout(ms)]);
1176
1148
  }
1177
1149
 
1178
1150
  // src/string/capitalize.ts
@@ -1183,8 +1155,7 @@ var capitalize = (str) => {
1183
1155
  // src/string/_internal/getWords.ts
1184
1156
  var CASE_SPLIT_PATTERN = /[A-Z]?[a-z]+|[0-9]+|[A-Z]+(?![a-z])/g;
1185
1157
  function getWords(str) {
1186
- var _a;
1187
- return Array.from((_a = str.match(CASE_SPLIT_PATTERN)) != null ? _a : []);
1158
+ return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
1188
1159
  }
1189
1160
 
1190
1161
  // src/string/camelCase.ts
@@ -1366,7 +1337,7 @@ function get(object, path, defaultValue) {
1366
1337
  let resolvedPath;
1367
1338
  if (Array.isArray(path)) {
1368
1339
  resolvedPath = path;
1369
- } else if (typeof path === "string" && isDeepKey(path) && (object == null ? void 0 : object[path]) == null) {
1340
+ } else if (typeof path === "string" && isDeepKey(path) && object?.[path] == null) {
1370
1341
  resolvedPath = toPath(path);
1371
1342
  } else {
1372
1343
  resolvedPath = [path];
@@ -1386,12 +1357,11 @@ function get(object, path, defaultValue) {
1386
1357
  if (current === null && index === resolvedPath.length) {
1387
1358
  return current;
1388
1359
  }
1389
- return current != null ? current : defaultValue;
1360
+ return current ?? defaultValue;
1390
1361
  }
1391
1362
 
1392
1363
  // src/compat/predicate/isPlainObject.ts
1393
1364
  function isPlainObject2(object) {
1394
- var _a;
1395
1365
  if (typeof object !== "object") {
1396
1366
  return false;
1397
1367
  }
@@ -1406,7 +1376,7 @@ function isPlainObject2(object) {
1406
1376
  if (tag == null) {
1407
1377
  return false;
1408
1378
  }
1409
- const isTagReadonly = !((_a = Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)) == null ? void 0 : _a.writable);
1379
+ const isTagReadonly = !Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)?.writable;
1410
1380
  if (isTagReadonly) {
1411
1381
  return false;
1412
1382
  }
@@ -1424,6 +1394,11 @@ function isArray(value) {
1424
1394
  return Array.isArray(value);
1425
1395
  }
1426
1396
 
1397
+ // src/compat/predicate/isTypedArray.ts
1398
+ function isTypedArray3(x) {
1399
+ return isTypedArray2(x);
1400
+ }
1401
+
1427
1402
  // src/compat/string/startsWith.ts
1428
1403
  var startsWith = (str, target, position = 0) => {
1429
1404
  return str.startsWith(target, position);