es-toolkit 1.13.1 → 1.14.0-dev.399

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 (807) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/_chunk/index-CwRt_M.js +46 -0
  3. package/dist/_chunk/initial-BTrQy1.js +514 -0
  4. package/dist/_chunk/isFunction-Cw_tLG.js +246 -0
  5. package/dist/_chunk/isTypedArray-BBEkFl.js +43 -0
  6. package/dist/_chunk/randomInt-CF7bZK.js +19 -0
  7. package/dist/array/chunk.mjs +15 -8
  8. package/dist/array/compact.d.mts +1 -1
  9. package/dist/array/compact.d.ts +1 -1
  10. package/dist/array/compact.mjs +11 -8
  11. package/dist/array/countBy.mjs +10 -8
  12. package/dist/array/difference.mjs +6 -8
  13. package/dist/array/differenceBy.mjs +8 -8
  14. package/dist/array/differenceWith.mjs +9 -8
  15. package/dist/array/drop.mjs +6 -8
  16. package/dist/array/dropRight.mjs +9 -8
  17. package/dist/array/dropRightWhile.mjs +10 -8
  18. package/dist/array/dropWhile.mjs +9 -8
  19. package/dist/array/fill.d.mts +1 -0
  20. package/dist/array/fill.d.ts +1 -0
  21. package/dist/array/fill.mjs +11 -8
  22. package/dist/array/flatMap.mjs +7 -9
  23. package/dist/array/flatten.mjs +18 -8
  24. package/dist/array/flattenDeep.mjs +7 -9
  25. package/dist/array/forEachRight.mjs +8 -8
  26. package/dist/array/groupBy.mjs +13 -8
  27. package/dist/array/head.d.mts +1 -0
  28. package/dist/array/head.d.ts +1 -0
  29. package/dist/array/head.mjs +5 -8
  30. package/dist/array/index.d.mts +1 -0
  31. package/dist/array/index.d.ts +1 -0
  32. package/dist/array/index.js +58 -652
  33. package/dist/array/index.mjs +52 -211
  34. package/dist/array/initial.mjs +8 -8
  35. package/dist/array/intersection.mjs +8 -8
  36. package/dist/array/intersectionBy.mjs +6 -8
  37. package/dist/array/intersectionWith.mjs +9 -8
  38. package/dist/array/isSubset.d.mts +26 -0
  39. package/dist/array/isSubset.d.ts +26 -0
  40. package/dist/array/isSubset.mjs +7 -0
  41. package/dist/array/keyBy.mjs +10 -8
  42. package/dist/array/last.d.mts +1 -0
  43. package/dist/array/last.d.ts +1 -0
  44. package/dist/array/last.mjs +5 -8
  45. package/dist/array/maxBy.mjs +14 -8
  46. package/dist/array/minBy.mjs +14 -8
  47. package/dist/array/orderBy.mjs +25 -8
  48. package/dist/array/partition.mjs +15 -8
  49. package/dist/array/sample.mjs +6 -8
  50. package/dist/array/sampleSize.mjs +20 -10
  51. package/dist/array/shuffle.mjs +10 -8
  52. package/dist/array/tail.d.mts +9 -4
  53. package/dist/array/tail.d.ts +9 -4
  54. package/dist/array/tail.mjs +13 -8
  55. package/dist/array/take.mjs +5 -8
  56. package/dist/array/takeRight.d.mts +2 -2
  57. package/dist/array/takeRight.d.ts +2 -2
  58. package/dist/array/takeRight.mjs +8 -8
  59. package/dist/array/takeRightWhile.mjs +10 -8
  60. package/dist/array/takeWhile.mjs +12 -8
  61. package/dist/array/toFilled.d.mts +5 -3
  62. package/dist/array/toFilled.d.ts +5 -3
  63. package/dist/array/toFilled.mjs +12 -8
  64. package/dist/array/union.mjs +7 -9
  65. package/dist/array/unionBy.mjs +12 -8
  66. package/dist/array/unionWith.mjs +7 -9
  67. package/dist/array/uniq.mjs +5 -8
  68. package/dist/array/uniqBy.mjs +12 -8
  69. package/dist/array/uniqWith.mjs +12 -8
  70. package/dist/array/unzip.d.mts +3 -2
  71. package/dist/array/unzip.d.ts +3 -2
  72. package/dist/array/unzip.mjs +18 -8
  73. package/dist/array/unzipWith.mjs +14 -8
  74. package/dist/array/without.mjs +6 -8
  75. package/dist/array/xor.mjs +9 -12
  76. package/dist/array/xorBy.mjs +11 -11
  77. package/dist/array/xorWith.mjs +11 -12
  78. package/dist/array/zip.d.mts +1 -0
  79. package/dist/array/zip.d.ts +1 -0
  80. package/dist/array/zip.mjs +14 -8
  81. package/dist/array/zipObject.d.mts +1 -1
  82. package/dist/array/zipObject.d.ts +1 -1
  83. package/dist/array/zipObject.mjs +9 -8
  84. package/dist/array/zipWith.d.mts +5 -0
  85. package/dist/array/zipWith.d.ts +5 -0
  86. package/dist/array/zipWith.mjs +13 -8
  87. package/dist/browser.global.js +2 -0
  88. package/dist/browser.global.js.map +1 -0
  89. package/dist/compat/_internal/getSymbols.mjs +6 -0
  90. package/dist/compat/_internal/getTag.mjs +8 -0
  91. package/dist/compat/_internal/identity.mjs +5 -0
  92. package/dist/compat/_internal/isArrayMatch.mjs +24 -0
  93. package/dist/compat/_internal/isDeepKey.mjs +15 -0
  94. package/dist/compat/_internal/isIndex.mjs +16 -0
  95. package/dist/compat/_internal/isMapMatch.mjs +18 -0
  96. package/dist/compat/_internal/isSetMatch.mjs +13 -0
  97. package/dist/compat/_internal/tags.mjs +28 -0
  98. package/dist/compat/_internal/toPath.mjs +40 -0
  99. package/dist/compat/array/chunk.d.mts +26 -0
  100. package/dist/compat/array/chunk.d.ts +26 -0
  101. package/dist/compat/array/chunk.mjs +11 -0
  102. package/dist/compat/array/concat.d.mts +30 -0
  103. package/dist/compat/array/concat.d.ts +30 -0
  104. package/dist/compat/array/concat.mjs +7 -0
  105. package/dist/compat/array/difference.d.mts +3 -0
  106. package/dist/compat/array/difference.d.ts +3 -0
  107. package/dist/compat/array/difference.mjs +10 -0
  108. package/dist/compat/array/fill.d.mts +33 -0
  109. package/dist/compat/array/fill.d.ts +33 -0
  110. package/dist/compat/array/fill.mjs +15 -0
  111. package/dist/compat/array/flatten.d.mts +19 -0
  112. package/dist/compat/array/flatten.d.ts +19 -0
  113. package/dist/compat/array/flatten.mjs +29 -0
  114. package/dist/compat/array/flattenDeep.d.mts +25 -0
  115. package/dist/compat/array/flattenDeep.d.ts +25 -0
  116. package/dist/compat/array/flattenDeep.mjs +7 -0
  117. package/dist/compat/array/flattenDepth.d.mts +19 -0
  118. package/dist/compat/array/flattenDepth.d.ts +19 -0
  119. package/dist/compat/array/flattenDepth.mjs +7 -0
  120. package/dist/compat/array/size.d.mts +39 -0
  121. package/dist/compat/array/size.d.ts +39 -0
  122. package/dist/compat/array/size.mjs +13 -0
  123. package/dist/compat/array/zipObjectDeep.d.mts +37 -0
  124. package/dist/compat/array/zipObjectDeep.d.ts +37 -0
  125. package/dist/compat/array/zipObjectDeep.mjs +16 -0
  126. package/dist/compat/function/ary.d.mts +11 -0
  127. package/dist/compat/function/ary.d.ts +11 -0
  128. package/dist/compat/function/ary.mjs +13 -0
  129. package/dist/compat/function/bind.d.mts +32 -0
  130. package/dist/compat/function/bind.d.ts +32 -0
  131. package/dist/compat/function/bind.mjs +27 -0
  132. package/dist/compat/index.d.mts +37 -472
  133. package/dist/compat/index.d.ts +37 -472
  134. package/dist/compat/index.js +513 -1333
  135. package/dist/compat/index.mjs +121 -391
  136. package/dist/compat/math/max.d.mts +19 -0
  137. package/dist/compat/math/max.d.ts +19 -0
  138. package/dist/compat/math/max.mjs +13 -0
  139. package/dist/compat/math/min.d.mts +19 -0
  140. package/dist/compat/math/min.d.ts +19 -0
  141. package/dist/compat/math/min.mjs +13 -0
  142. package/dist/compat/object/get.d.mts +247 -0
  143. package/dist/compat/object/get.d.ts +247 -0
  144. package/dist/compat/object/get.mjs +33 -0
  145. package/dist/compat/object/get.types.d.mts +9 -0
  146. package/dist/compat/object/get.types.d.ts +9 -0
  147. package/dist/compat/object/mapKeys.d.mts +39 -0
  148. package/dist/compat/object/mapKeys.d.ts +39 -0
  149. package/dist/compat/object/mapKeys.mjs +20 -0
  150. package/dist/compat/object/mapValues.d.mts +40 -0
  151. package/dist/compat/object/mapValues.d.ts +40 -0
  152. package/dist/compat/object/mapValues.mjs +20 -0
  153. package/dist/compat/object/property.d.mts +19 -0
  154. package/dist/compat/object/property.d.ts +19 -0
  155. package/dist/compat/object/property.mjs +9 -0
  156. package/dist/compat/object/set.d.mts +30 -0
  157. package/dist/compat/object/set.d.ts +30 -0
  158. package/dist/compat/object/set.mjs +24 -0
  159. package/dist/compat/predicate/isArguments.d.mts +23 -0
  160. package/dist/compat/predicate/isArguments.d.ts +23 -0
  161. package/dist/compat/predicate/isArguments.mjs +7 -0
  162. package/dist/compat/predicate/isArray.d.mts +23 -0
  163. package/dist/compat/predicate/isArray.d.ts +23 -0
  164. package/dist/compat/predicate/isArray.mjs +5 -0
  165. package/dist/compat/predicate/isArrayLike.d.mts +17 -0
  166. package/dist/compat/predicate/isArrayLike.d.ts +17 -0
  167. package/dist/compat/predicate/isArrayLike.mjs +8 -0
  168. package/dist/compat/predicate/isBoolean.d.mts +25 -0
  169. package/dist/compat/predicate/isBoolean.d.ts +25 -0
  170. package/dist/compat/predicate/isBoolean.mjs +13 -0
  171. package/dist/compat/predicate/isMatch.d.mts +31 -0
  172. package/dist/compat/predicate/isMatch.d.ts +31 -0
  173. package/dist/compat/predicate/isMatch.mjs +57 -0
  174. package/dist/compat/predicate/isObjectLike.d.mts +26 -0
  175. package/dist/compat/predicate/isObjectLike.d.ts +26 -0
  176. package/dist/compat/predicate/isObjectLike.mjs +5 -0
  177. package/dist/compat/predicate/isPlainObject.d.mts +25 -0
  178. package/dist/compat/predicate/isPlainObject.d.ts +25 -0
  179. package/dist/compat/predicate/isPlainObject.mjs +29 -0
  180. package/dist/compat/predicate/isTypedArray.d.mts +19 -0
  181. package/dist/compat/predicate/isTypedArray.d.ts +19 -0
  182. package/dist/compat/predicate/isTypedArray.mjs +7 -0
  183. package/dist/compat/predicate/matches.d.mts +27 -0
  184. package/dist/compat/predicate/matches.d.ts +27 -0
  185. package/dist/compat/predicate/matches.mjs +11 -0
  186. package/dist/compat/string/endsWith.d.mts +20 -0
  187. package/dist/compat/string/endsWith.d.ts +20 -0
  188. package/dist/compat/string/endsWith.mjs +5 -0
  189. package/dist/compat/string/padStart.d.mts +20 -0
  190. package/dist/compat/string/padStart.d.ts +20 -0
  191. package/dist/compat/string/padStart.mjs +5 -0
  192. package/dist/compat/string/startsWith.d.mts +20 -0
  193. package/dist/compat/string/startsWith.d.ts +20 -0
  194. package/dist/compat/string/startsWith.mjs +5 -0
  195. package/dist/error/AbortError.mjs +8 -8
  196. package/dist/error/TimeoutError.mjs +8 -8
  197. package/dist/function/after.d.mts +31 -0
  198. package/dist/function/after.d.ts +31 -0
  199. package/dist/function/after.mjs +14 -0
  200. package/dist/function/ary.d.mts +12 -0
  201. package/dist/function/ary.d.ts +12 -0
  202. package/dist/function/ary.mjs +7 -0
  203. package/dist/function/before.d.mts +31 -0
  204. package/dist/function/before.d.ts +31 -0
  205. package/dist/function/before.mjs +14 -0
  206. package/dist/function/debounce.mjs +28 -8
  207. package/dist/function/index.d.mts +4 -0
  208. package/dist/function/index.d.ts +4 -0
  209. package/dist/function/index.js +93 -88
  210. package/dist/function/index.mjs +9 -25
  211. package/dist/function/negate.mjs +5 -8
  212. package/dist/function/noop.mjs +3 -8
  213. package/dist/function/once.mjs +15 -8
  214. package/dist/function/throttle.mjs +13 -8
  215. package/dist/function/unary.d.mts +10 -0
  216. package/dist/function/unary.d.ts +10 -0
  217. package/dist/function/unary.mjs +7 -0
  218. package/dist/index.d.mts +12 -0
  219. package/dist/index.d.ts +12 -0
  220. package/dist/index.js +120 -1210
  221. package/dist/index.mjs +102 -375
  222. package/dist/math/clamp.mjs +8 -8
  223. package/dist/math/inRange.mjs +12 -8
  224. package/dist/math/index.js +58 -115
  225. package/dist/math/index.mjs +10 -45
  226. package/dist/math/mean.mjs +7 -9
  227. package/dist/math/meanBy.mjs +8 -10
  228. package/dist/math/random.mjs +12 -8
  229. package/dist/math/randomInt.mjs +7 -9
  230. package/dist/math/range.mjs +20 -8
  231. package/dist/math/round.mjs +9 -8
  232. package/dist/math/sum.mjs +9 -8
  233. package/dist/math/sumBy.mjs +8 -9
  234. package/dist/object/clone.mjs +39 -8
  235. package/dist/object/cloneDeep.d.mts +49 -0
  236. package/dist/object/cloneDeep.d.ts +49 -0
  237. package/dist/object/cloneDeep.mjs +113 -0
  238. package/dist/object/flattenObject.mjs +28 -9
  239. package/dist/object/index.d.mts +3 -0
  240. package/dist/object/index.d.ts +3 -0
  241. package/dist/object/index.js +230 -165
  242. package/dist/object/index.mjs +10 -34
  243. package/dist/object/invert.mjs +12 -8
  244. package/dist/object/mapKeys.d.mts +21 -0
  245. package/dist/object/mapKeys.d.ts +21 -0
  246. package/dist/object/mapKeys.mjs +12 -0
  247. package/dist/object/mapValues.d.mts +21 -0
  248. package/dist/object/mapValues.d.ts +21 -0
  249. package/dist/object/mapValues.mjs +12 -0
  250. package/dist/object/omit.mjs +9 -8
  251. package/dist/object/omitBy.mjs +12 -8
  252. package/dist/object/pick.mjs +9 -8
  253. package/dist/object/pickBy.mjs +12 -8
  254. package/dist/predicate/index.d.mts +4 -0
  255. package/dist/predicate/index.d.ts +4 -0
  256. package/dist/predicate/index.js +17 -126
  257. package/dist/predicate/index.mjs +11 -35
  258. package/dist/predicate/isBoolean.d.mts +25 -0
  259. package/dist/predicate/isBoolean.d.ts +25 -0
  260. package/dist/predicate/isBoolean.mjs +5 -0
  261. package/dist/predicate/isEqual.d.mts +1 -1
  262. package/dist/predicate/isEqual.d.ts +1 -1
  263. package/dist/predicate/isEqual.mjs +177 -10
  264. package/dist/predicate/isFunction.d.mts +16 -0
  265. package/dist/predicate/isFunction.d.ts +16 -0
  266. package/dist/predicate/isFunction.mjs +5 -0
  267. package/dist/predicate/isLength.d.mts +21 -0
  268. package/dist/predicate/isLength.d.ts +21 -0
  269. package/dist/predicate/isLength.mjs +5 -8
  270. package/dist/predicate/isNil.mjs +5 -8
  271. package/dist/predicate/isNotNil.mjs +5 -8
  272. package/dist/predicate/isNull.mjs +5 -8
  273. package/dist/predicate/isPlainObject.mjs +21 -8
  274. package/dist/predicate/isPrimitive.d.mts +17 -0
  275. package/dist/predicate/isPrimitive.d.ts +17 -0
  276. package/dist/predicate/isPrimitive.mjs +5 -0
  277. package/dist/predicate/isTypedArray.d.mts +19 -0
  278. package/dist/predicate/isTypedArray.d.ts +19 -0
  279. package/dist/predicate/isTypedArray.mjs +15 -0
  280. package/dist/predicate/isUndefined.mjs +5 -8
  281. package/dist/promise/delay.mjs +20 -9
  282. package/dist/promise/index.js +5 -96
  283. package/dist/promise/index.mjs +2 -16
  284. package/dist/promise/timeout.mjs +9 -11
  285. package/dist/promise/withTimeout.mjs +7 -12
  286. package/dist/string/_internal/getWords.mjs +6 -0
  287. package/dist/string/camelCase.mjs +13 -10
  288. package/dist/string/capitalize.mjs +4 -7
  289. package/dist/string/index.js +41 -78
  290. package/dist/string/index.mjs +6 -30
  291. package/dist/string/kebabCase.mjs +7 -8
  292. package/dist/string/lowerCase.mjs +7 -8
  293. package/dist/string/snakeCase.mjs +7 -8
  294. package/dist/string/startCase.mjs +20 -9
  295. package/package.json +13 -4
  296. package/dist/array/chunk.js +0 -43
  297. package/dist/array/chunk.js.map +0 -1
  298. package/dist/array/chunk.mjs.map +0 -1
  299. package/dist/array/compact.js +0 -39
  300. package/dist/array/compact.js.map +0 -1
  301. package/dist/array/compact.mjs.map +0 -1
  302. package/dist/array/countBy.js +0 -39
  303. package/dist/array/countBy.js.map +0 -1
  304. package/dist/array/countBy.mjs.map +0 -1
  305. package/dist/array/difference.js +0 -34
  306. package/dist/array/difference.js.map +0 -1
  307. package/dist/array/difference.mjs.map +0 -1
  308. package/dist/array/differenceBy.js +0 -36
  309. package/dist/array/differenceBy.js.map +0 -1
  310. package/dist/array/differenceBy.mjs.map +0 -1
  311. package/dist/array/differenceWith.js +0 -37
  312. package/dist/array/differenceWith.js.map +0 -1
  313. package/dist/array/differenceWith.mjs.map +0 -1
  314. package/dist/array/drop.js +0 -34
  315. package/dist/array/drop.js.map +0 -1
  316. package/dist/array/drop.mjs.map +0 -1
  317. package/dist/array/dropRight.js +0 -37
  318. package/dist/array/dropRight.js.map +0 -1
  319. package/dist/array/dropRight.mjs.map +0 -1
  320. package/dist/array/dropRightWhile.js +0 -38
  321. package/dist/array/dropRightWhile.js.map +0 -1
  322. package/dist/array/dropRightWhile.mjs.map +0 -1
  323. package/dist/array/dropWhile.js +0 -37
  324. package/dist/array/dropWhile.js.map +0 -1
  325. package/dist/array/dropWhile.mjs.map +0 -1
  326. package/dist/array/fill.js +0 -39
  327. package/dist/array/fill.js.map +0 -1
  328. package/dist/array/fill.mjs.map +0 -1
  329. package/dist/array/flatMap.js +0 -52
  330. package/dist/array/flatMap.js.map +0 -1
  331. package/dist/array/flatMap.mjs.map +0 -1
  332. package/dist/array/flatten.js +0 -45
  333. package/dist/array/flatten.js.map +0 -1
  334. package/dist/array/flatten.mjs.map +0 -1
  335. package/dist/array/flattenDeep.js +0 -52
  336. package/dist/array/flattenDeep.js.map +0 -1
  337. package/dist/array/flattenDeep.mjs.map +0 -1
  338. package/dist/array/forEachRight.js +0 -36
  339. package/dist/array/forEachRight.js.map +0 -1
  340. package/dist/array/forEachRight.mjs.map +0 -1
  341. package/dist/array/groupBy.js +0 -41
  342. package/dist/array/groupBy.js.map +0 -1
  343. package/dist/array/groupBy.mjs.map +0 -1
  344. package/dist/array/head.js +0 -33
  345. package/dist/array/head.js.map +0 -1
  346. package/dist/array/head.mjs.map +0 -1
  347. package/dist/array/index.js.map +0 -1
  348. package/dist/array/index.mjs.map +0 -1
  349. package/dist/array/initial.js +0 -36
  350. package/dist/array/initial.js.map +0 -1
  351. package/dist/array/initial.mjs.map +0 -1
  352. package/dist/array/intersection.js +0 -36
  353. package/dist/array/intersection.js.map +0 -1
  354. package/dist/array/intersection.mjs.map +0 -1
  355. package/dist/array/intersectionBy.js +0 -34
  356. package/dist/array/intersectionBy.js.map +0 -1
  357. package/dist/array/intersectionBy.mjs.map +0 -1
  358. package/dist/array/intersectionWith.js +0 -37
  359. package/dist/array/intersectionWith.js.map +0 -1
  360. package/dist/array/intersectionWith.mjs.map +0 -1
  361. package/dist/array/keyBy.js +0 -38
  362. package/dist/array/keyBy.js.map +0 -1
  363. package/dist/array/keyBy.mjs.map +0 -1
  364. package/dist/array/last.js +0 -33
  365. package/dist/array/last.js.map +0 -1
  366. package/dist/array/last.mjs.map +0 -1
  367. package/dist/array/maxBy.js +0 -42
  368. package/dist/array/maxBy.js.map +0 -1
  369. package/dist/array/maxBy.mjs.map +0 -1
  370. package/dist/array/minBy.js +0 -42
  371. package/dist/array/minBy.js.map +0 -1
  372. package/dist/array/minBy.mjs.map +0 -1
  373. package/dist/array/orderBy.js +0 -53
  374. package/dist/array/orderBy.js.map +0 -1
  375. package/dist/array/orderBy.mjs.map +0 -1
  376. package/dist/array/partition.js +0 -42
  377. package/dist/array/partition.js.map +0 -1
  378. package/dist/array/partition.mjs.map +0 -1
  379. package/dist/array/sample.js +0 -34
  380. package/dist/array/sample.js.map +0 -1
  381. package/dist/array/sample.mjs.map +0 -1
  382. package/dist/array/sampleSize.js +0 -65
  383. package/dist/array/sampleSize.js.map +0 -1
  384. package/dist/array/sampleSize.mjs.map +0 -1
  385. package/dist/array/shuffle.js +0 -38
  386. package/dist/array/shuffle.js.map +0 -1
  387. package/dist/array/shuffle.mjs.map +0 -1
  388. package/dist/array/tail.js +0 -41
  389. package/dist/array/tail.js.map +0 -1
  390. package/dist/array/tail.mjs.map +0 -1
  391. package/dist/array/take.js +0 -33
  392. package/dist/array/take.js.map +0 -1
  393. package/dist/array/take.mjs.map +0 -1
  394. package/dist/array/takeRight.js +0 -36
  395. package/dist/array/takeRight.js.map +0 -1
  396. package/dist/array/takeRight.mjs.map +0 -1
  397. package/dist/array/takeRightWhile.js +0 -38
  398. package/dist/array/takeRightWhile.js.map +0 -1
  399. package/dist/array/takeRightWhile.mjs.map +0 -1
  400. package/dist/array/takeWhile.js +0 -40
  401. package/dist/array/takeWhile.js.map +0 -1
  402. package/dist/array/takeWhile.mjs.map +0 -1
  403. package/dist/array/toFilled.js +0 -40
  404. package/dist/array/toFilled.js.map +0 -1
  405. package/dist/array/toFilled.mjs.map +0 -1
  406. package/dist/array/union.js +0 -40
  407. package/dist/array/union.js.map +0 -1
  408. package/dist/array/union.mjs.map +0 -1
  409. package/dist/array/unionBy.js +0 -40
  410. package/dist/array/unionBy.js.map +0 -1
  411. package/dist/array/unionBy.mjs.map +0 -1
  412. package/dist/array/unionWith.js +0 -47
  413. package/dist/array/unionWith.js.map +0 -1
  414. package/dist/array/unionWith.mjs.map +0 -1
  415. package/dist/array/uniq.js +0 -33
  416. package/dist/array/uniq.js.map +0 -1
  417. package/dist/array/uniq.mjs.map +0 -1
  418. package/dist/array/uniqBy.js +0 -40
  419. package/dist/array/uniqBy.js.map +0 -1
  420. package/dist/array/uniqBy.mjs.map +0 -1
  421. package/dist/array/uniqWith.js +0 -40
  422. package/dist/array/uniqWith.js.map +0 -1
  423. package/dist/array/uniqWith.mjs.map +0 -1
  424. package/dist/array/unzip.js +0 -46
  425. package/dist/array/unzip.js.map +0 -1
  426. package/dist/array/unzip.mjs.map +0 -1
  427. package/dist/array/unzipWith.js +0 -42
  428. package/dist/array/unzipWith.js.map +0 -1
  429. package/dist/array/unzipWith.mjs.map +0 -1
  430. package/dist/array/without.js +0 -34
  431. package/dist/array/without.js.map +0 -1
  432. package/dist/array/without.mjs.map +0 -1
  433. package/dist/array/xor.js +0 -59
  434. package/dist/array/xor.js.map +0 -1
  435. package/dist/array/xor.mjs.map +0 -1
  436. package/dist/array/xorBy.js +0 -63
  437. package/dist/array/xorBy.js.map +0 -1
  438. package/dist/array/xorBy.mjs.map +0 -1
  439. package/dist/array/xorWith.js +0 -72
  440. package/dist/array/xorWith.js.map +0 -1
  441. package/dist/array/xorWith.mjs.map +0 -1
  442. package/dist/array/zip.js +0 -42
  443. package/dist/array/zip.js.map +0 -1
  444. package/dist/array/zip.mjs.map +0 -1
  445. package/dist/array/zipObject.js +0 -37
  446. package/dist/array/zipObject.js.map +0 -1
  447. package/dist/array/zipObject.mjs.map +0 -1
  448. package/dist/array/zipWith.js +0 -41
  449. package/dist/array/zipWith.js.map +0 -1
  450. package/dist/array/zipWith.mjs.map +0 -1
  451. package/dist/browser.d.mts +0 -2
  452. package/dist/browser.d.ts +0 -2
  453. package/dist/browser.js +0 -1325
  454. package/dist/browser.js.map +0 -1
  455. package/dist/browser.mjs +0 -109
  456. package/dist/browser.mjs.map +0 -1
  457. package/dist/chunk-236H5JZJ.mjs +0 -1
  458. package/dist/chunk-236H5JZJ.mjs.map +0 -1
  459. package/dist/chunk-237HGSZS.mjs +0 -16
  460. package/dist/chunk-237HGSZS.mjs.map +0 -1
  461. package/dist/chunk-24FKGR6U.mjs +0 -47
  462. package/dist/chunk-24FKGR6U.mjs.map +0 -1
  463. package/dist/chunk-27QMXBLJ.mjs +0 -9
  464. package/dist/chunk-27QMXBLJ.mjs.map +0 -1
  465. package/dist/chunk-2IXFGSUA.mjs +0 -16
  466. package/dist/chunk-2IXFGSUA.mjs.map +0 -1
  467. package/dist/chunk-2KNLZB7V.mjs +0 -10
  468. package/dist/chunk-2KNLZB7V.mjs.map +0 -1
  469. package/dist/chunk-2SLTL4KL.mjs +0 -13
  470. package/dist/chunk-2SLTL4KL.mjs.map +0 -1
  471. package/dist/chunk-2ZCITDMK.mjs +0 -13
  472. package/dist/chunk-2ZCITDMK.mjs.map +0 -1
  473. package/dist/chunk-33MSBDC6.mjs +0 -21
  474. package/dist/chunk-33MSBDC6.mjs.map +0 -1
  475. package/dist/chunk-3EZAFZG3.mjs +0 -10
  476. package/dist/chunk-3EZAFZG3.mjs.map +0 -1
  477. package/dist/chunk-3IP4JVLL.mjs +0 -32
  478. package/dist/chunk-3IP4JVLL.mjs.map +0 -1
  479. package/dist/chunk-4KYXHZ4R.mjs +0 -17
  480. package/dist/chunk-4KYXHZ4R.mjs.map +0 -1
  481. package/dist/chunk-4OIZM4HS.mjs +0 -1
  482. package/dist/chunk-4OIZM4HS.mjs.map +0 -1
  483. package/dist/chunk-54TK5BIS.mjs +0 -1
  484. package/dist/chunk-54TK5BIS.mjs.map +0 -1
  485. package/dist/chunk-5ASRKEB4.mjs +0 -13
  486. package/dist/chunk-5ASRKEB4.mjs.map +0 -1
  487. package/dist/chunk-5IKVJGHO.mjs +0 -14
  488. package/dist/chunk-5IKVJGHO.mjs.map +0 -1
  489. package/dist/chunk-5L4VWRFX.mjs +0 -14
  490. package/dist/chunk-5L4VWRFX.mjs.map +0 -1
  491. package/dist/chunk-5PMKOZ2F.mjs +0 -13
  492. package/dist/chunk-5PMKOZ2F.mjs.map +0 -1
  493. package/dist/chunk-6CLH5YZ2.mjs +0 -16
  494. package/dist/chunk-6CLH5YZ2.mjs.map +0 -1
  495. package/dist/chunk-6GWEY5EL.mjs +0 -13
  496. package/dist/chunk-6GWEY5EL.mjs.map +0 -1
  497. package/dist/chunk-6NVQAHXP.mjs +0 -13
  498. package/dist/chunk-6NVQAHXP.mjs.map +0 -1
  499. package/dist/chunk-7B7W36UP.mjs +0 -29
  500. package/dist/chunk-7B7W36UP.mjs.map +0 -1
  501. package/dist/chunk-AIRSKN47.mjs +0 -9
  502. package/dist/chunk-AIRSKN47.mjs.map +0 -1
  503. package/dist/chunk-AJKZMN2V.mjs +0 -14
  504. package/dist/chunk-AJKZMN2V.mjs.map +0 -1
  505. package/dist/chunk-B4COTK4K.mjs +0 -16
  506. package/dist/chunk-B4COTK4K.mjs.map +0 -1
  507. package/dist/chunk-B645AYL4.mjs +0 -1
  508. package/dist/chunk-B645AYL4.mjs.map +0 -1
  509. package/dist/chunk-BCTYOXT7.mjs +0 -16
  510. package/dist/chunk-BCTYOXT7.mjs.map +0 -1
  511. package/dist/chunk-BH6HLGBA.mjs +0 -16
  512. package/dist/chunk-BH6HLGBA.mjs.map +0 -1
  513. package/dist/chunk-BJWAMCFH.mjs +0 -598
  514. package/dist/chunk-BJWAMCFH.mjs.map +0 -1
  515. package/dist/chunk-BMRTZMRE.mjs +0 -9
  516. package/dist/chunk-BMRTZMRE.mjs.map +0 -1
  517. package/dist/chunk-BOOQBJN2.mjs +0 -9
  518. package/dist/chunk-BOOQBJN2.mjs.map +0 -1
  519. package/dist/chunk-CMBC4MXG.mjs +0 -19
  520. package/dist/chunk-CMBC4MXG.mjs.map +0 -1
  521. package/dist/chunk-CRSKT4WW.mjs +0 -15
  522. package/dist/chunk-CRSKT4WW.mjs.map +0 -1
  523. package/dist/chunk-CVVZHOJX.mjs +0 -22
  524. package/dist/chunk-CVVZHOJX.mjs.map +0 -1
  525. package/dist/chunk-DDH7K4QM.mjs +0 -1
  526. package/dist/chunk-DDH7K4QM.mjs.map +0 -1
  527. package/dist/chunk-DN3NOZ3H.mjs +0 -18
  528. package/dist/chunk-DN3NOZ3H.mjs.map +0 -1
  529. package/dist/chunk-DPH2KE6O.mjs +0 -24
  530. package/dist/chunk-DPH2KE6O.mjs.map +0 -1
  531. package/dist/chunk-DTJJIMKJ.mjs +0 -15
  532. package/dist/chunk-DTJJIMKJ.mjs.map +0 -1
  533. package/dist/chunk-DVK2N4KC.mjs +0 -9
  534. package/dist/chunk-DVK2N4KC.mjs.map +0 -1
  535. package/dist/chunk-DXB7EZUQ.mjs +0 -12
  536. package/dist/chunk-DXB7EZUQ.mjs.map +0 -1
  537. package/dist/chunk-E6C5EZQA.mjs +0 -19
  538. package/dist/chunk-E6C5EZQA.mjs.map +0 -1
  539. package/dist/chunk-E6E4RZLN.mjs +0 -17
  540. package/dist/chunk-E6E4RZLN.mjs.map +0 -1
  541. package/dist/chunk-EHSKB6DF.mjs +0 -26
  542. package/dist/chunk-EHSKB6DF.mjs.map +0 -1
  543. package/dist/chunk-EYYZQFOP.mjs +0 -14
  544. package/dist/chunk-EYYZQFOP.mjs.map +0 -1
  545. package/dist/chunk-F3WCQQET.mjs +0 -14
  546. package/dist/chunk-F3WCQQET.mjs.map +0 -1
  547. package/dist/chunk-F47GLYUU.mjs +0 -1
  548. package/dist/chunk-F47GLYUU.mjs.map +0 -1
  549. package/dist/chunk-FUS75PJ7.mjs +0 -1
  550. package/dist/chunk-FUS75PJ7.mjs.map +0 -1
  551. package/dist/chunk-FVVSE2F2.mjs +0 -12
  552. package/dist/chunk-FVVSE2F2.mjs.map +0 -1
  553. package/dist/chunk-G7UQ5PUR.mjs +0 -14
  554. package/dist/chunk-G7UQ5PUR.mjs.map +0 -1
  555. package/dist/chunk-GIWAOOFY.mjs +0 -13
  556. package/dist/chunk-GIWAOOFY.mjs.map +0 -1
  557. package/dist/chunk-HM2JT2RX.mjs +0 -9
  558. package/dist/chunk-HM2JT2RX.mjs.map +0 -1
  559. package/dist/chunk-HPFDYUGP.mjs +0 -13
  560. package/dist/chunk-HPFDYUGP.mjs.map +0 -1
  561. package/dist/chunk-IDCUZVJL.mjs +0 -18
  562. package/dist/chunk-IDCUZVJL.mjs.map +0 -1
  563. package/dist/chunk-IEA53J7P.mjs +0 -12
  564. package/dist/chunk-IEA53J7P.mjs.map +0 -1
  565. package/dist/chunk-IFNXROZR.mjs +0 -18
  566. package/dist/chunk-IFNXROZR.mjs.map +0 -1
  567. package/dist/chunk-IIDZ3KAJ.mjs +0 -18
  568. package/dist/chunk-IIDZ3KAJ.mjs.map +0 -1
  569. package/dist/chunk-IJD7FE2Z.mjs +0 -18
  570. package/dist/chunk-IJD7FE2Z.mjs.map +0 -1
  571. package/dist/chunk-IQLKIDXF.mjs +0 -12
  572. package/dist/chunk-IQLKIDXF.mjs.map +0 -1
  573. package/dist/chunk-JPUKH67K.mjs +0 -10
  574. package/dist/chunk-JPUKH67K.mjs.map +0 -1
  575. package/dist/chunk-JYSV56US.mjs +0 -41
  576. package/dist/chunk-JYSV56US.mjs.map +0 -1
  577. package/dist/chunk-KIOYQRMQ.mjs +0 -12
  578. package/dist/chunk-KIOYQRMQ.mjs.map +0 -1
  579. package/dist/chunk-KPBQ7OUY.mjs +0 -9
  580. package/dist/chunk-KPBQ7OUY.mjs.map +0 -1
  581. package/dist/chunk-L7FQX5MN.mjs +0 -19
  582. package/dist/chunk-L7FQX5MN.mjs.map +0 -1
  583. package/dist/chunk-LJ2C6MVP.mjs +0 -13
  584. package/dist/chunk-LJ2C6MVP.mjs.map +0 -1
  585. package/dist/chunk-LKXCOLNY.mjs +0 -8
  586. package/dist/chunk-LKXCOLNY.mjs.map +0 -1
  587. package/dist/chunk-LVWX5B43.mjs +0 -12
  588. package/dist/chunk-LVWX5B43.mjs.map +0 -1
  589. package/dist/chunk-M7SBBYV2.mjs +0 -14
  590. package/dist/chunk-M7SBBYV2.mjs.map +0 -1
  591. package/dist/chunk-ME352XO7.mjs +0 -9
  592. package/dist/chunk-ME352XO7.mjs.map +0 -1
  593. package/dist/chunk-MIGAC7F4.mjs +0 -25
  594. package/dist/chunk-MIGAC7F4.mjs.map +0 -1
  595. package/dist/chunk-ML727RRJ.mjs +0 -13
  596. package/dist/chunk-ML727RRJ.mjs.map +0 -1
  597. package/dist/chunk-MLCL773E.mjs +0 -12
  598. package/dist/chunk-MLCL773E.mjs.map +0 -1
  599. package/dist/chunk-MY4G7R3I.mjs +0 -14
  600. package/dist/chunk-MY4G7R3I.mjs.map +0 -1
  601. package/dist/chunk-NFS7RWWE.mjs +0 -16
  602. package/dist/chunk-NFS7RWWE.mjs.map +0 -1
  603. package/dist/chunk-NKLIE2OI.mjs +0 -1
  604. package/dist/chunk-NKLIE2OI.mjs.map +0 -1
  605. package/dist/chunk-NTLX2MPV.mjs +0 -14
  606. package/dist/chunk-NTLX2MPV.mjs.map +0 -1
  607. package/dist/chunk-O64NE2P4.mjs +0 -26
  608. package/dist/chunk-O64NE2P4.mjs.map +0 -1
  609. package/dist/chunk-O6UXZR3U.mjs +0 -10
  610. package/dist/chunk-O6UXZR3U.mjs.map +0 -1
  611. package/dist/chunk-OLX53VEF.mjs +0 -16
  612. package/dist/chunk-OLX53VEF.mjs.map +0 -1
  613. package/dist/chunk-OOKNBU4V.mjs +0 -18
  614. package/dist/chunk-OOKNBU4V.mjs.map +0 -1
  615. package/dist/chunk-OP4OAKQJ.mjs +0 -16
  616. package/dist/chunk-OP4OAKQJ.mjs.map +0 -1
  617. package/dist/chunk-OXZCMC5I.mjs +0 -13
  618. package/dist/chunk-OXZCMC5I.mjs.map +0 -1
  619. package/dist/chunk-PYEYV7BY.mjs +0 -10
  620. package/dist/chunk-PYEYV7BY.mjs.map +0 -1
  621. package/dist/chunk-Q47NGNXT.mjs +0 -21
  622. package/dist/chunk-Q47NGNXT.mjs.map +0 -1
  623. package/dist/chunk-QOJGMVVR.mjs +0 -17
  624. package/dist/chunk-QOJGMVVR.mjs.map +0 -1
  625. package/dist/chunk-QRSJBBFY.mjs +0 -21
  626. package/dist/chunk-QRSJBBFY.mjs.map +0 -1
  627. package/dist/chunk-QXTNZR7B.mjs +0 -25
  628. package/dist/chunk-QXTNZR7B.mjs.map +0 -1
  629. package/dist/chunk-R6QA7PLZ.mjs +0 -13
  630. package/dist/chunk-R6QA7PLZ.mjs.map +0 -1
  631. package/dist/chunk-SYWMYQYJ.mjs +0 -16
  632. package/dist/chunk-SYWMYQYJ.mjs.map +0 -1
  633. package/dist/chunk-TJ4Z5I7M.mjs +0 -17
  634. package/dist/chunk-TJ4Z5I7M.mjs.map +0 -1
  635. package/dist/chunk-U4JGKZ56.mjs +0 -41
  636. package/dist/chunk-U4JGKZ56.mjs.map +0 -1
  637. package/dist/chunk-U56ZOM7L.mjs +0 -9
  638. package/dist/chunk-U56ZOM7L.mjs.map +0 -1
  639. package/dist/chunk-UY76KTPE.mjs +0 -13
  640. package/dist/chunk-UY76KTPE.mjs.map +0 -1
  641. package/dist/chunk-UYZKMBDO.mjs +0 -22
  642. package/dist/chunk-UYZKMBDO.mjs.map +0 -1
  643. package/dist/chunk-VH2PV426.mjs +0 -9
  644. package/dist/chunk-VH2PV426.mjs.map +0 -1
  645. package/dist/chunk-WFZXCGEG.mjs +0 -17
  646. package/dist/chunk-WFZXCGEG.mjs.map +0 -1
  647. package/dist/chunk-WMM7TZLG.mjs +0 -9
  648. package/dist/chunk-WMM7TZLG.mjs.map +0 -1
  649. package/dist/chunk-WVQ7YVRK.mjs +0 -11
  650. package/dist/chunk-WVQ7YVRK.mjs.map +0 -1
  651. package/dist/chunk-XGQWTHW6.mjs +0 -34
  652. package/dist/chunk-XGQWTHW6.mjs.map +0 -1
  653. package/dist/chunk-XI7KRD2C.mjs +0 -13
  654. package/dist/chunk-XI7KRD2C.mjs.map +0 -1
  655. package/dist/chunk-XPSOKBRZ.mjs +0 -12
  656. package/dist/chunk-XPSOKBRZ.mjs.map +0 -1
  657. package/dist/chunk-XT74R35S.mjs +0 -1
  658. package/dist/chunk-XT74R35S.mjs.map +0 -1
  659. package/dist/chunk-Y5V7UAZZ.mjs +0 -21
  660. package/dist/chunk-Y5V7UAZZ.mjs.map +0 -1
  661. package/dist/chunk-YFN6KOC4.mjs +0 -15
  662. package/dist/chunk-YFN6KOC4.mjs.map +0 -1
  663. package/dist/compat/index.js.map +0 -1
  664. package/dist/compat/index.mjs.map +0 -1
  665. package/dist/error/AbortError.js +0 -36
  666. package/dist/error/AbortError.js.map +0 -1
  667. package/dist/error/AbortError.mjs.map +0 -1
  668. package/dist/error/TimeoutError.js +0 -36
  669. package/dist/error/TimeoutError.js.map +0 -1
  670. package/dist/error/TimeoutError.mjs.map +0 -1
  671. package/dist/error/index.d.mts +0 -2
  672. package/dist/error/index.d.ts +0 -2
  673. package/dist/error/index.js +0 -48
  674. package/dist/error/index.js.map +0 -1
  675. package/dist/error/index.mjs +0 -13
  676. package/dist/error/index.mjs.map +0 -1
  677. package/dist/function/debounce.js +0 -56
  678. package/dist/function/debounce.js.map +0 -1
  679. package/dist/function/debounce.mjs.map +0 -1
  680. package/dist/function/index.js.map +0 -1
  681. package/dist/function/index.mjs.map +0 -1
  682. package/dist/function/negate.js +0 -33
  683. package/dist/function/negate.js.map +0 -1
  684. package/dist/function/negate.mjs.map +0 -1
  685. package/dist/function/noop.js +0 -32
  686. package/dist/function/noop.js.map +0 -1
  687. package/dist/function/noop.mjs.map +0 -1
  688. package/dist/function/once.js +0 -43
  689. package/dist/function/once.js.map +0 -1
  690. package/dist/function/once.mjs.map +0 -1
  691. package/dist/function/throttle.js +0 -41
  692. package/dist/function/throttle.js.map +0 -1
  693. package/dist/function/throttle.mjs.map +0 -1
  694. package/dist/index.js.map +0 -1
  695. package/dist/index.mjs.map +0 -1
  696. package/dist/math/clamp.js +0 -36
  697. package/dist/math/clamp.js.map +0 -1
  698. package/dist/math/clamp.mjs.map +0 -1
  699. package/dist/math/inRange.js +0 -40
  700. package/dist/math/inRange.js.map +0 -1
  701. package/dist/math/inRange.mjs.map +0 -1
  702. package/dist/math/index.js.map +0 -1
  703. package/dist/math/index.mjs.map +0 -1
  704. package/dist/math/mean.js +0 -44
  705. package/dist/math/mean.js.map +0 -1
  706. package/dist/math/mean.mjs.map +0 -1
  707. package/dist/math/meanBy.js +0 -50
  708. package/dist/math/meanBy.js.map +0 -1
  709. package/dist/math/meanBy.mjs.map +0 -1
  710. package/dist/math/random.js +0 -40
  711. package/dist/math/random.js.map +0 -1
  712. package/dist/math/random.mjs.map +0 -1
  713. package/dist/math/randomInt.js +0 -47
  714. package/dist/math/randomInt.js.map +0 -1
  715. package/dist/math/randomInt.mjs.map +0 -1
  716. package/dist/math/range.js +0 -48
  717. package/dist/math/range.js.map +0 -1
  718. package/dist/math/range.mjs.map +0 -1
  719. package/dist/math/round.js +0 -37
  720. package/dist/math/round.js.map +0 -1
  721. package/dist/math/round.mjs.map +0 -1
  722. package/dist/math/sum.js +0 -37
  723. package/dist/math/sum.js.map +0 -1
  724. package/dist/math/sum.mjs.map +0 -1
  725. package/dist/math/sumBy.js +0 -45
  726. package/dist/math/sumBy.js.map +0 -1
  727. package/dist/math/sumBy.mjs.map +0 -1
  728. package/dist/object/clone.js +0 -65
  729. package/dist/object/clone.js.map +0 -1
  730. package/dist/object/clone.mjs.map +0 -1
  731. package/dist/object/flattenObject.js +0 -77
  732. package/dist/object/flattenObject.js.map +0 -1
  733. package/dist/object/flattenObject.mjs.map +0 -1
  734. package/dist/object/index.js.map +0 -1
  735. package/dist/object/index.mjs.map +0 -1
  736. package/dist/object/invert.js +0 -40
  737. package/dist/object/invert.js.map +0 -1
  738. package/dist/object/invert.mjs.map +0 -1
  739. package/dist/object/omit.js +0 -51
  740. package/dist/object/omit.js.map +0 -1
  741. package/dist/object/omit.mjs.map +0 -1
  742. package/dist/object/omitBy.js +0 -40
  743. package/dist/object/omitBy.js.map +0 -1
  744. package/dist/object/omitBy.mjs.map +0 -1
  745. package/dist/object/pick.js +0 -37
  746. package/dist/object/pick.js.map +0 -1
  747. package/dist/object/pick.mjs.map +0 -1
  748. package/dist/object/pickBy.js +0 -40
  749. package/dist/object/pickBy.js.map +0 -1
  750. package/dist/object/pickBy.mjs.map +0 -1
  751. package/dist/predicate/index.js.map +0 -1
  752. package/dist/predicate/index.mjs.map +0 -1
  753. package/dist/predicate/isEqual.js +0 -73
  754. package/dist/predicate/isEqual.js.map +0 -1
  755. package/dist/predicate/isEqual.mjs.map +0 -1
  756. package/dist/predicate/isLength.js +0 -33
  757. package/dist/predicate/isLength.js.map +0 -1
  758. package/dist/predicate/isLength.mjs.map +0 -1
  759. package/dist/predicate/isNil.js +0 -33
  760. package/dist/predicate/isNil.js.map +0 -1
  761. package/dist/predicate/isNil.mjs.map +0 -1
  762. package/dist/predicate/isNotNil.js +0 -33
  763. package/dist/predicate/isNotNil.js.map +0 -1
  764. package/dist/predicate/isNotNil.mjs.map +0 -1
  765. package/dist/predicate/isNull.js +0 -33
  766. package/dist/predicate/isNull.js.map +0 -1
  767. package/dist/predicate/isNull.mjs.map +0 -1
  768. package/dist/predicate/isPlainObject.js +0 -49
  769. package/dist/predicate/isPlainObject.js.map +0 -1
  770. package/dist/predicate/isPlainObject.mjs.map +0 -1
  771. package/dist/predicate/isUndefined.js +0 -33
  772. package/dist/predicate/isUndefined.js.map +0 -1
  773. package/dist/predicate/isUndefined.mjs.map +0 -1
  774. package/dist/promise/delay.js +0 -56
  775. package/dist/promise/delay.js.map +0 -1
  776. package/dist/promise/delay.mjs.map +0 -1
  777. package/dist/promise/index.js.map +0 -1
  778. package/dist/promise/index.mjs.map +0 -1
  779. package/dist/promise/timeout.d.mts +0 -10
  780. package/dist/promise/timeout.d.ts +0 -10
  781. package/dist/promise/timeout.js +0 -92
  782. package/dist/promise/timeout.js.map +0 -1
  783. package/dist/promise/timeout.mjs.map +0 -1
  784. package/dist/promise/withTimeout.js +0 -99
  785. package/dist/promise/withTimeout.js.map +0 -1
  786. package/dist/promise/withTimeout.mjs.map +0 -1
  787. package/dist/string/camelCase.js +0 -52
  788. package/dist/string/camelCase.js.map +0 -1
  789. package/dist/string/camelCase.mjs.map +0 -1
  790. package/dist/string/capitalize.js +0 -33
  791. package/dist/string/capitalize.js.map +0 -1
  792. package/dist/string/capitalize.mjs.map +0 -1
  793. package/dist/string/index.js.map +0 -1
  794. package/dist/string/index.mjs.map +0 -1
  795. package/dist/string/kebabCase.js +0 -43
  796. package/dist/string/kebabCase.js.map +0 -1
  797. package/dist/string/kebabCase.mjs.map +0 -1
  798. package/dist/string/lowerCase.js +0 -43
  799. package/dist/string/lowerCase.js.map +0 -1
  800. package/dist/string/lowerCase.mjs.map +0 -1
  801. package/dist/string/snakeCase.js +0 -43
  802. package/dist/string/snakeCase.js.map +0 -1
  803. package/dist/string/snakeCase.mjs.map +0 -1
  804. package/dist/string/startCase.js +0 -54
  805. package/dist/string/startCase.js.map +0 -1
  806. package/dist/string/startCase.mjs.map +0 -1
  807. package/umd/browser.global.js +0 -2
@@ -1,41 +0,0 @@
1
- import {
2
- union
3
- } from "./chunk-R6QA7PLZ.mjs";
4
-
5
- // src/predicate/isEqual.ts
6
- function isEqual(a, b) {
7
- if (Object.is(a, b)) {
8
- return true;
9
- }
10
- if (a instanceof Date && b instanceof Date) {
11
- return a.getTime() === b.getTime();
12
- }
13
- if (a instanceof RegExp && b instanceof RegExp) {
14
- return a.source === b.source && a.flags === b.flags;
15
- }
16
- if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) {
17
- return false;
18
- }
19
- const aKeys = Object.keys(a);
20
- const bKeys = Object.keys(b);
21
- if (aKeys.length !== bKeys.length) {
22
- return false;
23
- }
24
- if (union(aKeys, bKeys).length !== aKeys.length) {
25
- return false;
26
- }
27
- for (let i = 0; i < aKeys.length; i++) {
28
- const propKey = aKeys[i];
29
- const aProp = a[propKey];
30
- const bProp = b[propKey];
31
- if (!isEqual(aProp, bProp)) {
32
- return false;
33
- }
34
- }
35
- return true;
36
- }
37
-
38
- export {
39
- isEqual
40
- };
41
- //# sourceMappingURL=chunk-JYSV56US.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/predicate/isEqual.ts"],"sourcesContent":["import { union } from \"../array/union.ts\";\n\n/**\n * Checks if two values are equal, including support for `Date`, `RegExp`, and deep object comparison.\n *\n * @param {unknown} a - The first value to compare.\n * @param {unknown} b - The second value to compare.\n * @returns {boolean} `true` if the values are equal, otherwise `false`.\n *\n * @example\n * isEqual(1, 1); // true\n * isEqual({ a: 1 }, { a: 1 }); // true\n * isEqual(/abc/g, /abc/g); // true\n * isEqual(new Date('2020-01-01'), new Date('2020-01-01')); // true\n * isEqual([1, 2, 3], [1, 2, 3]); // true\n */\nexport function isEqual(a: unknown, b: unknown): boolean {\n if (Object.is(a, b)) {\n return true;\n }\n\n if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime();\n }\n\n if (a instanceof RegExp && b instanceof RegExp) {\n return a.source === b.source && a.flags === b.flags;\n }\n\n if (typeof a !== 'object' || typeof b !== 'object' || a === null || b === null) {\n return false;\n }\n\n const aKeys = Object.keys(a as object);\n const bKeys = Object.keys(b as object);\n\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n\n // check if all keys in both arrays match\n if (union(aKeys, bKeys).length !== aKeys.length) {\n return false;\n }\n\n for (let i = 0; i < aKeys.length; i++) {\n const propKey = aKeys[i];\n const aProp = (a as any)[propKey];\n const bProp = (b as any)[propKey];\n \n if (!isEqual(aProp, bProp)) {\n return false;\n }\n }\n\n return true;\n}\n"],"mappings":";;;;;AAgBO,SAAS,QAAQ,GAAY,GAAqB;AACvD,MAAI,OAAO,GAAG,GAAG,CAAC,GAAG;AACnB,WAAO;AAAA,EACT;AAEA,MAAI,aAAa,QAAQ,aAAa,MAAM;AAC1C,WAAO,EAAE,QAAQ,MAAM,EAAE,QAAQ;AAAA,EACnC;AAEA,MAAI,aAAa,UAAU,aAAa,QAAQ;AAC9C,WAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE;AAAA,EAChD;AAEA,MAAI,OAAO,MAAM,YAAY,OAAO,MAAM,YAAY,MAAM,QAAQ,MAAM,MAAM;AAC9E,WAAO;AAAA,EACT;AAEA,QAAM,QAAQ,OAAO,KAAK,CAAW;AACrC,QAAM,QAAQ,OAAO,KAAK,CAAW;AAErC,MAAI,MAAM,WAAW,MAAM,QAAQ;AACjC,WAAO;AAAA,EACT;AAGA,MAAI,MAAM,OAAO,KAAK,EAAE,WAAW,MAAM,QAAQ;AAC/C,WAAO;AAAA,EACT;AAEA,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACrC,UAAM,UAAU,MAAM,CAAC;AACvB,UAAM,QAAS,EAAU,OAAO;AAChC,UAAM,QAAS,EAAU,OAAO;AAEhC,QAAI,CAAC,QAAQ,OAAO,KAAK,GAAG;AAC1B,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/error/TimeoutError.ts
2
- var TimeoutError = class extends Error {
3
- constructor(message = "The operation was timed out") {
4
- super(message);
5
- this.name = "TimeoutError";
6
- }
7
- };
8
-
9
- export {
10
- TimeoutError
11
- };
12
- //# sourceMappingURL=chunk-KIOYQRMQ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/error/TimeoutError.ts"],"sourcesContent":["/**\n * An error class representing an timeout operation.\n * @augments Error\n */\nexport class TimeoutError extends Error {\n constructor(message = 'The operation was timed out') {\n super(message);\n this.name = 'TimeoutError';\n }\n}\n"],"mappings":";AAIO,IAAM,eAAN,cAA2B,MAAM;AAAA,EACtC,YAAY,UAAU,+BAA+B;AACnD,UAAM,OAAO;AACb,SAAK,OAAO;AAAA,EACd;AACF;","names":[]}
@@ -1,9 +0,0 @@
1
- // src/array/last.ts
2
- function last(arr) {
3
- return arr[arr.length - 1];
4
- }
5
-
6
- export {
7
- last
8
- };
9
- //# sourceMappingURL=chunk-KPBQ7OUY.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/last.ts"],"sourcesContent":["/**\n * Returns the last element of an array.\n *\n * This function takes an array and returns the last element of the array.\n * If the array is empty, the function returns `undefined`.\n *\n * Unlike some implementations, this function is optimized for performance\n * by directly accessing the last index of the array.\n *\n * @param {T[]} arr - The array from which to get the last element.\n * @returns {T | undefined} The last element of the array, or `undefined` if the array is empty.\n *\n * @example\n * const arr = [1, 2, 3];\n * const lastElement = last(arr);\n * // lastElement will be 3\n *\n * const emptyArr: number[] = [];\n * const noElement = last(emptyArr);\n * // noElement will be undefined\n */\n\nexport function last<T>(arr: readonly [...T[], T]): T;\nexport function last<T>(arr: readonly T[]): T | undefined;\nexport function last<T>(arr: readonly T[]): T | undefined {\n return arr[arr.length - 1];\n}\n"],"mappings":";AAwBO,SAAS,KAAQ,KAAkC;AACxD,SAAO,IAAI,IAAI,SAAS,CAAC;AAC3B;","names":[]}
@@ -1,19 +0,0 @@
1
- import {
2
- union
3
- } from "./chunk-R6QA7PLZ.mjs";
4
- import {
5
- intersection
6
- } from "./chunk-FVVSE2F2.mjs";
7
- import {
8
- difference
9
- } from "./chunk-JPUKH67K.mjs";
10
-
11
- // src/array/xor.ts
12
- function xor(arr1, arr2) {
13
- return difference(union(arr1, arr2), intersection(arr1, arr2));
14
- }
15
-
16
- export {
17
- xor
18
- };
19
- //# sourceMappingURL=chunk-L7FQX5MN.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/xor.ts"],"sourcesContent":["import { difference } from './difference.ts';\nimport { intersection } from './intersection.ts';\nimport { union } from './union.ts';\n\n/**\n * Computes the symmetric difference between two arrays. The symmetric difference is the set of elements\n * which are in either of the arrays, but not in their intersection.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr1 - The first array.\n * @param {T[]} arr2 - The second array.\n * @returns {T[]} An array containing the elements that are present in either `arr1` or `arr2` but not in both.\n *\n * @example\n * // Returns [1, 2, 5, 6]\n * xor([1, 2, 3, 4], [3, 4, 5, 6]);\n *\n * @example\n * // Returns ['a', 'c']\n * xor(['a', 'b'], ['b', 'c']);\n */\nexport function xor<T>(arr1: readonly T[], arr2: readonly T[]): T[] {\n return difference(union(arr1, arr2), intersection(arr1, arr2));\n}\n"],"mappings":";;;;;;;;;;;AAqBO,SAAS,IAAO,MAAoB,MAAyB;AAClE,SAAO,WAAW,MAAM,MAAM,IAAI,GAAG,aAAa,MAAM,IAAI,CAAC;AAC/D;","names":[]}
@@ -1,13 +0,0 @@
1
- // src/array/dropWhile.ts
2
- function dropWhile(arr, canContinueDropping) {
3
- const dropEndIndex = arr.findIndex((item) => !canContinueDropping(item));
4
- if (dropEndIndex === -1) {
5
- return [];
6
- }
7
- return arr.slice(dropEndIndex);
8
- }
9
-
10
- export {
11
- dropWhile
12
- };
13
- //# sourceMappingURL=chunk-LJ2C6MVP.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/dropWhile.ts"],"sourcesContent":["/**\n * Removes elements from the beginning of an array until the predicate returns false.\n *\n * This function iterates over an array and drops elements from the start until the provided\n * predicate function returns false. It then returns a new array with the remaining elements.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr - The array from which to drop elements.\n * @param {(item: T) => boolean} canContinueDropping - A predicate function that determines\n * whether to continue dropping elements. The function is called with each element, and dropping\n * continues as long as it returns true.\n * @returns {T[]} A new array with the elements remaining after the predicate returns false.\n *\n * @example\n * const array = [1, 2, 3, 4, 5];\n * const result = dropWhile(array, x => x < 3);\n * // result will be [3, 4, 5] since elements less than 3 are dropped.\n */\nexport function dropWhile<T>(arr: readonly T[], canContinueDropping: (item: T) => boolean): T[] {\n const dropEndIndex = arr.findIndex(item => !canContinueDropping(item));\n if (dropEndIndex === -1) {\n return [];\n }\n\n return arr.slice(dropEndIndex);\n}\n"],"mappings":";AAkBO,SAAS,UAAa,KAAmB,qBAAgD;AAC9F,QAAM,eAAe,IAAI,UAAU,UAAQ,CAAC,oBAAoB,IAAI,CAAC;AACrE,MAAI,iBAAiB,IAAI;AACvB,WAAO,CAAC;AAAA,EACV;AAEA,SAAO,IAAI,MAAM,YAAY;AAC/B;","names":[]}
@@ -1,8 +0,0 @@
1
- // src/function/noop.ts
2
- function noop() {
3
- }
4
-
5
- export {
6
- noop
7
- };
8
- //# sourceMappingURL=chunk-LKXCOLNY.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/function/noop.ts"],"sourcesContent":["/**\n * A no-operation function that does nothing.\n * This can be used as a placeholder or default function.\n *\n * @example\n * noop(); // Does nothing\n *\n * @returns {void} This function does not return anything.\n */\nexport function noop(): void {}\n"],"mappings":";AASO,SAAS,OAAa;AAAC;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/array/differenceBy.ts
2
- function differenceBy(firstArr, secondArr, mapper) {
3
- const mappedSecondSet = new Set(secondArr.map((item) => mapper(item)));
4
- return firstArr.filter((item) => {
5
- return !mappedSecondSet.has(mapper(item));
6
- });
7
- }
8
-
9
- export {
10
- differenceBy
11
- };
12
- //# sourceMappingURL=chunk-LVWX5B43.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/differenceBy.ts"],"sourcesContent":["/**\n * Computes the difference between two arrays after mapping their elements through a provided function.\n *\n * This function takes two arrays and a mapper function. It returns a new array containing the elements\n * that are present in the first array but not in the second array, based on the identity calculated\n * by the mapper function.\n *\n * Essentially, it filters out any elements from the first array that, when\n * mapped, match an element in the mapped version of the second array.\n *\n * @template T, U\n * @param {T[]} firstArr - The primary array from which to derive the difference.\n * @param {T[]} secondArr - The array containing elements to be excluded from the first array.\n * @param {(value: T) => U} mapper - The function to map the elements of both arrays. This function\n * is applied to each element in both arrays, and the comparison is made based on the mapped values.\n * @returns {T[]} A new array containing the elements from the first array that do not have a corresponding\n * mapped identity in the second array.\n *\n * @example\n * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];\n * const array2 = [{ id: 2 }, { id: 4 }];\n * const mapper = item => item.id;\n * const result = differenceBy(array1, array2, mapper);\n * // result will be [{ id: 1 }, { id: 3 }] since the elements with id 2 are in both arrays and are excluded from the result.\n */\nexport function differenceBy<T, U>(firstArr: readonly T[], secondArr: readonly T[], mapper: (value: T) => U): T[] {\n const mappedSecondSet = new Set(secondArr.map(item => mapper(item)));\n\n return firstArr.filter(item => {\n return !mappedSecondSet.has(mapper(item));\n });\n}\n"],"mappings":";AAyBO,SAAS,aAAmB,UAAwB,WAAyB,QAA8B;AAChH,QAAM,kBAAkB,IAAI,IAAI,UAAU,IAAI,UAAQ,OAAO,IAAI,CAAC,CAAC;AAEnE,SAAO,SAAS,OAAO,UAAQ;AAC7B,WAAO,CAAC,gBAAgB,IAAI,OAAO,IAAI,CAAC;AAAA,EAC1C,CAAC;AACH;","names":[]}
@@ -1,14 +0,0 @@
1
- // src/array/dropRightWhile.ts
2
- function dropRightWhile(arr, canContinueDropping) {
3
- for (let i = arr.length - 1; i >= 0; i--) {
4
- if (!canContinueDropping(arr[i])) {
5
- return arr.slice(0, i + 1);
6
- }
7
- }
8
- return [];
9
- }
10
-
11
- export {
12
- dropRightWhile
13
- };
14
- //# sourceMappingURL=chunk-M7SBBYV2.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/dropRightWhile.ts"],"sourcesContent":["/**\n * Removes elements from the end of an array until the predicate returns false.\n *\n * This function iterates over an array from the end and drops elements until the provided\n * predicate function returns false. It then returns a new array with the remaining elements.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr - The array from which to drop elements.\n * @param {(item: T) => boolean} canContinueDropping - A predicate function that determines\n * whether to continue dropping elements. The function is called with each element from the end,\n * and dropping continues as long as it returns true.\n * @returns {T[]} A new array with the elements remaining after the predicate returns false.\n *\n * @example\n * const array = [1, 2, 3, 4, 5];\n * const result = dropRightWhile(array, x => x > 3);\n * // result will be [1, 2, 3] since elements greater than 3 are dropped from the end.\n */\nexport function dropRightWhile<T>(arr: readonly T[], canContinueDropping: (item: T) => boolean): T[] {\n for (let i = arr.length - 1; i >= 0; i--) {\n if (!canContinueDropping(arr[i])) {\n return arr.slice(0, i + 1);\n }\n }\n\n return [];\n}\n"],"mappings":";AAkBO,SAAS,eAAkB,KAAmB,qBAAgD;AACnG,WAAS,IAAI,IAAI,SAAS,GAAG,KAAK,GAAG,KAAK;AACxC,QAAI,CAAC,oBAAoB,IAAI,CAAC,CAAC,GAAG;AAChC,aAAO,IAAI,MAAM,GAAG,IAAI,CAAC;AAAA,IAC3B;AAAA,EACF;AAEA,SAAO,CAAC;AACV;","names":[]}
@@ -1,9 +0,0 @@
1
- // src/array/take.ts
2
- function take(arr, count) {
3
- return arr.slice(0, count);
4
- }
5
-
6
- export {
7
- take
8
- };
9
- //# sourceMappingURL=chunk-ME352XO7.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/take.ts"],"sourcesContent":["/**\n * Returns a new array containing the first `count` elements from the input array `arr`.\n * If `count` is greater than the length of `arr`, the entire array is returned.\n *\n * @template T - Type of elements in the input array.\n *\n * @param {T[]} arr - The array to take elements from.\n * @param {number} count - The number of elements to take.\n * @returns {T[]} A new array containing the first `count` elements from `arr`.\n *\n * @example\n * // Returns [1, 2, 3]\n * take([1, 2, 3, 4, 5], 3);\n *\n * @example\n * // Returns ['a', 'b']\n * take(['a', 'b', 'c'], 2);\n *\n * @example\n * // Returns [1, 2, 3]\n * take([1, 2, 3], 5);\n */\nexport function take<T>(arr: readonly T[], count: number): T[] {\n return arr.slice(0, count);\n}\n"],"mappings":";AAsBO,SAAS,KAAQ,KAAmB,OAAoB;AAC7D,SAAO,IAAI,MAAM,GAAG,KAAK;AAC3B;","names":[]}
@@ -1,25 +0,0 @@
1
- // src/predicate/isPlainObject.ts
2
- function isPlainObject(object) {
3
- if (typeof object !== "object") {
4
- return false;
5
- }
6
- if (object == null) {
7
- return false;
8
- }
9
- if (Object.getPrototypeOf(object) === null) {
10
- return true;
11
- }
12
- if (object.toString() !== "[object Object]") {
13
- return false;
14
- }
15
- let proto = object;
16
- while (Object.getPrototypeOf(proto) !== null) {
17
- proto = Object.getPrototypeOf(proto);
18
- }
19
- return Object.getPrototypeOf(object) === proto;
20
- }
21
-
22
- export {
23
- isPlainObject
24
- };
25
- //# sourceMappingURL=chunk-MIGAC7F4.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/predicate/isPlainObject.ts"],"sourcesContent":["/**\n * Checks if a given value is a plain object.\n * \n * @param {object} object - The value to check.\n * @returns {boolean} - True if the value is a plain object, otherwise false.\n * \n * @example\n * console.log(isPlainObject({})); // true\n * console.log(isPlainObject([])); // false\n * console.log(isPlainObject(null)); // false\n * console.log(isPlainObject(Object.create(null))); // true\n * console.log(Buffer.from('hello, world')); // false\n */\nexport function isPlainObject(object: object): boolean {\n if (typeof object !== 'object') {\n return false;\n }\n\n if (object == null) {\n return false;\n }\n\n if (Object.getPrototypeOf(object) === null) {\n return true;\n }\n\n if (object.toString() !== '[object Object]') {\n return false;\n }\n\n let proto = object;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(object) === proto;\n}"],"mappings":";AAaO,SAAS,cAAc,QAAyB;AACrD,MAAI,OAAO,WAAW,UAAU;AAC9B,WAAO;AAAA,EACT;AAEA,MAAI,UAAU,MAAM;AAClB,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,eAAe,MAAM,MAAM,MAAM;AAC1C,WAAO;AAAA,EACT;AAEA,MAAI,OAAO,SAAS,MAAM,mBAAmB;AAC3C,WAAO;AAAA,EACT;AAEA,MAAI,QAAQ;AAEZ,SAAO,OAAO,eAAe,KAAK,MAAM,MAAM;AAC5C,YAAQ,OAAO,eAAe,KAAK;AAAA,EACrC;AAEA,SAAO,OAAO,eAAe,MAAM,MAAM;AAC3C;","names":[]}
@@ -1,13 +0,0 @@
1
- import {
2
- flatten
3
- } from "./chunk-33MSBDC6.mjs";
4
-
5
- // src/array/flattenDeep.ts
6
- function flattenDeep(arr) {
7
- return flatten(arr, Infinity);
8
- }
9
-
10
- export {
11
- flattenDeep
12
- };
13
- //# sourceMappingURL=chunk-ML727RRJ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/flattenDeep.ts"],"sourcesContent":["import { flatten } from './flatten.ts';\n\n/**\n * Utility type for recursively unpacking nested array types to extract the type of the innermost element\n *\n * @example\n * ExtractNestedArrayType<(number | (number | number[])[])[]>\n * // number\n *\n * ExtractNestedArrayType<(boolean | (string | number[])[])[]>\n * // string | number | boolean\n */\ntype ExtractNestedArrayType<T> = T extends ReadonlyArray<infer U> ? ExtractNestedArrayType<U> : T;\n\n/**\n * Flattens all depths of a nested array.\n *\n * @template T - The type of elements within the array.\n * @param {T[]} arr - The array to flatten.\n * @returns {Array<ExtractNestedArrayType<T>>} A new array that has been flattened.\n *\n * @example\n * const arr = flattenDeep([1, [2, [3]], [4, [5, 6]]]);\n * // Returns: [1, 2, 3, 4, 5, 6]\n */\nexport function flattenDeep<T>(arr: readonly T[]): Array<ExtractNestedArrayType<T>> {\n return flatten(arr, Infinity) as Array<ExtractNestedArrayType<T>>;\n}\n"],"mappings":";;;;;AAyBO,SAAS,YAAe,KAAqD;AAClF,SAAO,QAAQ,KAAK,QAAQ;AAC9B;","names":[]}
@@ -1,12 +0,0 @@
1
- // src/math/clamp.ts
2
- function clamp(value, bound1, bound2) {
3
- if (bound2 == null) {
4
- return Math.min(value, bound1);
5
- }
6
- return Math.min(Math.max(value, bound1), bound2);
7
- }
8
-
9
- export {
10
- clamp
11
- };
12
- //# sourceMappingURL=chunk-MLCL773E.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/math/clamp.ts"],"sourcesContent":["/**\n * Clamps a number within the inclusive lower and upper bounds.\n *\n * This function takes a number and two bounds, and returns the number clamped within the specified bounds.\n * If only one bound is provided, it returns the minimum of the value and the bound.\n *\n * @param {number} value - The number to clamp.\n * @param {number} minimum - The minimum bound to clamp the number.\n * @param {number} maximum - The maximum bound to clamp the number.\n * @returns {number} The clamped number within the specified bounds.\n *\n * @example\n * const result1 = clamp(10, 5); // result1 will be 5, as 10 is clamped to the bound 5\n * const result2 = clamp(10, 5, 15); // result2 will be 10, as it is within the bounds 5 and 15\n * const result3 = clamp(2, 5, 15); // result3 will be 5, as 2 is clamped to the lower bound 5\n * const result4 = clamp(20, 5, 15); // result4 will be 15, as 20 is clamped to the upper bound 15\n */\nexport function clamp(value: number, maximum: number): number;\nexport function clamp(value: number, minimum: number, maximum: number): number;\nexport function clamp(value: number, bound1: number, bound2?: number): number {\n if (bound2 == null) {\n return Math.min(value, bound1);\n }\n\n return Math.min(Math.max(value, bound1), bound2);\n}\n"],"mappings":";AAmBO,SAAS,MAAM,OAAe,QAAgB,QAAyB;AAC5E,MAAI,UAAU,MAAM;AAClB,WAAO,KAAK,IAAI,OAAO,MAAM;AAAA,EAC/B;AAEA,SAAO,KAAK,IAAI,KAAK,IAAI,OAAO,MAAM,GAAG,MAAM;AACjD;","names":[]}
@@ -1,14 +0,0 @@
1
- import {
2
- mean
3
- } from "./chunk-5ASRKEB4.mjs";
4
-
5
- // src/math/meanBy.ts
6
- function meanBy(items, getValue) {
7
- const nums = items.map((x) => getValue(x));
8
- return mean(nums);
9
- }
10
-
11
- export {
12
- meanBy
13
- };
14
- //# sourceMappingURL=chunk-MY4G7R3I.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/math/meanBy.ts"],"sourcesContent":["import { mean } from './mean.ts';\n\n/**\n * Calculates the average of an array of numbers when applying\n * the `getValue` function to each element.\n *\n * If the array is empty, this function returns `NaN`.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} items An array to calculate the average.\n * @param {(element: T) => number} getValue A function that selects a numeric value from each element.\n * @returns {number} The average of all the numbers as determined by the `getValue` function.\n *\n * @example\n * meanBy([{ a: 1 }, { a: 2 }, { a: 3 }], x => x.a); // Returns: 2\n * meanBy([], x => x.a); // Returns: NaN\n */\nexport function meanBy<T>(items: readonly T[], getValue: (element: T) => number): number {\n const nums = items.map(x => getValue(x));\n\n return mean(nums);\n}\n"],"mappings":";;;;;AAiBO,SAAS,OAAU,OAAqB,UAA0C;AACvF,QAAM,OAAO,MAAM,IAAI,OAAK,SAAS,CAAC,CAAC;AAEvC,SAAO,KAAK,IAAI;AAClB;","names":[]}
@@ -1,16 +0,0 @@
1
- // src/array/unionBy.ts
2
- function unionBy(arr1, arr2, mapper) {
3
- const map = /* @__PURE__ */ new Map();
4
- for (const item of [...arr1, ...arr2]) {
5
- const key = mapper(item);
6
- if (!map.has(key)) {
7
- map.set(key, item);
8
- }
9
- }
10
- return Array.from(map.values());
11
- }
12
-
13
- export {
14
- unionBy
15
- };
16
- //# sourceMappingURL=chunk-NFS7RWWE.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/unionBy.ts"],"sourcesContent":["/**\n * Creates an array of unique values, in order, from all given arrays using a provided mapping function to determine equality.\n *\n * @template T - The type of elements in the array.\n * @template U - The type of mapped elements.\n * @param {T[]} arr1 - The first array.\n * @param {T[]} arr2 - The second array.\n * @param {(item: T) => U} mapper - The function to map array elements to comparison values.\n * @returns {T[]} A new array containing the union of unique elements from `arr1` and `arr2`, based on the values returned by the mapping function.\n *\n * @example\n * // Custom mapping function for numbers (modulo comparison)\n * const moduloMapper = (x) => x % 3;\n * unionBy([1, 2, 3], [4, 5, 6], moduloMapper);\n * // Returns [1, 2, 3]\n *\n * @example\n * // Custom mapping function for objects with an 'id' property\n * const idMapper = (obj) => obj.id;\n * unionBy([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], idMapper);\n * // Returns [{ id: 1 }, { id: 2 }, { id: 3 }]\n */\nexport function unionBy<T, U>(arr1: readonly T[], arr2: readonly T[], mapper: (item: T) => U): T[] {\n const map = new Map<U, T>();\n\n for (const item of [...arr1, ...arr2]) {\n const key = mapper(item);\n\n if (!map.has(key)) {\n map.set(key, item);\n }\n }\n\n return Array.from(map.values());\n}\n"],"mappings":";AAsBO,SAAS,QAAc,MAAoB,MAAoB,QAA6B;AACjG,QAAM,MAAM,oBAAI,IAAU;AAE1B,aAAW,QAAQ,CAAC,GAAG,MAAM,GAAG,IAAI,GAAG;AACrC,UAAM,MAAM,OAAO,IAAI;AAEvB,QAAI,CAAC,IAAI,IAAI,GAAG,GAAG;AACjB,UAAI,IAAI,KAAK,IAAI;AAAA,IACnB;AAAA,EACF;AAEA,SAAO,MAAM,KAAK,IAAI,OAAO,CAAC;AAChC;","names":[]}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-NKLIE2OI.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,14 +0,0 @@
1
- // src/array/takeRightWhile.ts
2
- function takeRightWhile(arr, shouldContinueTaking) {
3
- for (let i = arr.length - 1; i >= 0; i--) {
4
- if (!shouldContinueTaking(arr[i])) {
5
- return arr.slice(i + 1);
6
- }
7
- }
8
- return arr.slice();
9
- }
10
-
11
- export {
12
- takeRightWhile
13
- };
14
- //# sourceMappingURL=chunk-NTLX2MPV.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/takeRightWhile.ts"],"sourcesContent":["/**\n * Takes elements from the end of the array while the predicate function returns `true`.\n *\n * @template T - Type of elements in the input array.\n *\n * @param {T[]} arr - The array to take elements from.\n * @param {function(T): boolean} shouldContinueTaking - The function invoked per element.\n * @returns {T[]} A new array containing the elements taken from the end while the predicate returns `true`.\n *\n * @example\n * // Returns [3, 2, 1]\n * takeRightWhile([5, 4, 3, 2, 1], n => n < 4);\n *\n * @example\n * // Returns []\n * takeRightWhile([1, 2, 3], n => n > 3);\n */\nexport function takeRightWhile<T>(arr: readonly T[], shouldContinueTaking: (item: T) => boolean): T[] {\n for (let i = arr.length - 1; i >= 0; i--) {\n if (!shouldContinueTaking(arr[i])) {\n return arr.slice(i + 1);\n }\n }\n\n return arr.slice();\n}\n"],"mappings":";AAiBO,SAAS,eAAkB,KAAmB,sBAAiD;AACpG,WAAS,IAAI,IAAI,SAAS,GAAG,KAAK,GAAG,KAAK;AACxC,QAAI,CAAC,qBAAqB,IAAI,CAAC,CAAC,GAAG;AACjC,aAAO,IAAI,MAAM,IAAI,CAAC;AAAA,IACxB;AAAA,EACF;AAEA,SAAO,IAAI,MAAM;AACnB;","names":[]}
@@ -1,26 +0,0 @@
1
- import {
2
- AbortError
3
- } from "./chunk-DXB7EZUQ.mjs";
4
-
5
- // src/promise/delay.ts
6
- function delay(ms, { signal } = {}) {
7
- return new Promise((resolve, reject) => {
8
- const abortError = () => {
9
- reject(new AbortError());
10
- };
11
- const abortHandler = () => {
12
- clearTimeout(timeoutId);
13
- abortError();
14
- };
15
- if (signal == null ? void 0 : signal.aborted) {
16
- return abortError();
17
- }
18
- const timeoutId = setTimeout(resolve, ms);
19
- signal == null ? void 0 : signal.addEventListener("abort", abortHandler, { once: true });
20
- });
21
- }
22
-
23
- export {
24
- delay
25
- };
26
- //# sourceMappingURL=chunk-O64NE2P4.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/promise/delay.ts"],"sourcesContent":["import { AbortError } from '../error/AbortError.ts';\n\ninterface DelayOptions {\n signal?: AbortSignal;\n}\n\n/**\n * Delays the execution of code for a specified number of milliseconds.\n *\n * This function returns a Promise that resolves after the specified delay, allowing you to use it\n * with async/await to pause execution.\n *\n * @param {number} ms - The number of milliseconds to delay.\n * @param {DelayOptions} options - The options object.\n * @param {AbortSignal} options.signal - An optional AbortSignal to cancel the delay.\n * @returns {Promise<void>} A Promise that resolves after the specified delay.\n *\n * @example\n * async function foo() {\n * console.log('Start');\n * await delay(1000); // Delays execution for 1 second\n * console.log('End');\n * }\n *\n * foo();\n *\n * // With AbortSignal\n * const controller = new AbortController();\n * const { signal } = controller;\n *\n * setTimeout(() => controller.abort(), 50); // Will cancel the delay after 50ms\n * try {\n * await delay(100, { signal });\n * } catch (error) {\n * console.error(error); // Will log 'AbortError'\n * }\n * }\n */\nexport function delay(ms: number, { signal }: DelayOptions = {}): Promise<void> {\n return new Promise((resolve, reject) => {\n const abortError = () => {\n reject(new AbortError());\n };\n\n const abortHandler = () => {\n clearTimeout(timeoutId);\n abortError();\n };\n\n if (signal?.aborted) {\n return abortError();\n }\n\n const timeoutId = setTimeout(resolve, ms);\n\n signal?.addEventListener('abort', abortHandler, { once: true });\n });\n}\n"],"mappings":";;;;;AAsCO,SAAS,MAAM,IAAY,EAAE,OAAO,IAAkB,CAAC,GAAkB;AAC9E,SAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,aAAa,MAAM;AACvB,aAAO,IAAI,WAAW,CAAC;AAAA,IACzB;AAEA,UAAM,eAAe,MAAM;AACzB,mBAAa,SAAS;AACtB,iBAAW;AAAA,IACb;AAEA,QAAI,iCAAQ,SAAS;AACnB,aAAO,WAAW;AAAA,IACpB;AAEA,UAAM,YAAY,WAAW,SAAS,EAAE;AAExC,qCAAQ,iBAAiB,SAAS,cAAc,EAAE,MAAM,KAAK;AAAA,EAC/D,CAAC;AACH;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/array/intersectionBy.ts
2
- function intersectionBy(firstArr, secondArr, mapper) {
3
- const mappedSecondSet = new Set(secondArr.map(mapper));
4
- return firstArr.filter((item) => mappedSecondSet.has(mapper(item)));
5
- }
6
-
7
- export {
8
- intersectionBy
9
- };
10
- //# sourceMappingURL=chunk-O6UXZR3U.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/intersectionBy.ts"],"sourcesContent":["/**\n * Returns the intersection of two arrays based on a mapping function.\n *\n * This function takes two arrays and a mapping function. It returns a new array containing\n * the elements from the first array that, when mapped using the provided function, have matching\n * mapped elements in the second array. It effectively filters out any elements from the first array\n * that do not have corresponding mapped values in the second array.\n *\n * @template T - The type of elements in the array.\n * @template U - The type of mapped elements.\n * @param {T[]} firstArr - The first array to compare.\n * @param {T[]} secondArr - The second array to compare.\n * @param {(item: T) => U} mapper - A function to map the elements of both arrays for comparison.\n * @returns {T[]} A new array containing the elements from the first array that have corresponding mapped values in the second array.\n *\n * @example\n * const array1 = [{ id: 1 }, { id: 2 }, { id: 3 }];\n * const array2 = [{ id: 2 }, { id: 4 }];\n * const mapper = item => item.id;\n * const result = intersectionBy(array1, array2, mapper);\n * // result will be [{ id: 2 }] since only this element has a matching id in both arrays.\n */\nexport function intersectionBy<T, U>(firstArr: readonly T[], secondArr: readonly T[], mapper: (item: T) => U): T[] {\n const mappedSecondSet = new Set(secondArr.map(mapper));\n return firstArr.filter(item => mappedSecondSet.has(mapper(item)));\n}\n"],"mappings":";AAsBO,SAAS,eAAqB,UAAwB,WAAyB,QAA6B;AACjH,QAAM,kBAAkB,IAAI,IAAI,UAAU,IAAI,MAAM,CAAC;AACrD,SAAO,SAAS,OAAO,UAAQ,gBAAgB,IAAI,OAAO,IAAI,CAAC,CAAC;AAClE;","names":[]}
@@ -1,16 +0,0 @@
1
- // src/object/invert.ts
2
- function invert(obj) {
3
- const result = {};
4
- const keys = Object.keys(obj);
5
- for (let i = 0; i < keys.length; i++) {
6
- const key = keys[i];
7
- const value = obj[key];
8
- result[value] = key;
9
- }
10
- return result;
11
- }
12
-
13
- export {
14
- invert
15
- };
16
- //# sourceMappingURL=chunk-OLX53VEF.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/object/invert.ts"],"sourcesContent":["/**\n * Inverts the keys and values of an object. The keys of the input object become the values of the output object and vice versa.\n *\n * This function takes an object and creates a new object by inverting its keys and values. If the input object has duplicate values,\n * the key of the last occurrence will be used as the value for the new key in the output object. It effectively creates a reverse mapping\n * of the input object's key-value pairs.\n *\n * @template K - Type of the keys in the input object (string, number, symbol)\n * @template V - Type of the values in the input object (string, number, symbol)\n * @param {Record<K, V>} obj - The input object whose keys and values are to be inverted\n * @returns {{ [key in V]: K }} - A new object with keys and values inverted\n *\n * @example\n * invert({ a: 1, b: 2, c: 3 }); // { 1: 'a', 2: 'b', 3: 'c' }\n * invert({ 1: 'a', 2: 'b', 3: 'c' }); // { a: '1', b: '2', c: '3' }\n * invert({ a: 1, 2: 'b', c: 3, 4: 'd' }); // { 1: 'a', b: '2', 3: 'c', d: '4' }\n * invert({ a: Symbol('sym1'), b: Symbol('sym2') }); // { [Symbol('sym1')]: 'a', [Symbol('sym2')]: 'b' }\n */\nexport function invert<K extends PropertyKey, V extends PropertyKey>(obj: Record<K, V>): { [key in V]: K } {\n const result = {} as { [key in V]: K };\n\n const keys = Object.keys(obj) as K[];\n \n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const value = obj[key];\n result[value] = key;\n }\n\n return result;\n}\n"],"mappings":";AAkBO,SAAS,OAAqD,KAAsC;AACzG,QAAM,SAAS,CAAC;AAEhB,QAAM,OAAO,OAAO,KAAK,GAAG;AAE5B,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;AACpC,UAAM,MAAM,KAAK,CAAC;AAClB,UAAM,QAAQ,IAAI,GAAG;AACrB,WAAO,KAAK,IAAI;AAAA,EAClB;AAEA,SAAO;AACT;","names":[]}
@@ -1,18 +0,0 @@
1
- // src/array/maxBy.ts
2
- function maxBy(items, getValue) {
3
- let maxElement = items[0];
4
- let max = -Infinity;
5
- for (const element of items) {
6
- const value = getValue(element);
7
- if (value > max) {
8
- max = value;
9
- maxElement = element;
10
- }
11
- }
12
- return maxElement;
13
- }
14
-
15
- export {
16
- maxBy
17
- };
18
- //# sourceMappingURL=chunk-OOKNBU4V.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/maxBy.ts"],"sourcesContent":["/**\n * Finds the element in an array that has the maximum value when applying\n * the `getValue` function to each element.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} items The array of elements to search.\n * @param {(element: T) => number} getValue A function that selects a numeric value from each element.\n * @returns {T} The element with the maximum value as determined by the `getValue` function.\n * @example\n * maxBy([{ a: 1 }, { a: 2 }, { a: 3 }], x => x.a); // Returns: { a: 3 }\n * maxBy([], x => x.a); // Returns: undefined\n */\nexport function maxBy<T>(items: T[], getValue: (element: T) => number): T {\n let maxElement = items[0];\n let max = -Infinity;\n\n for (const element of items) {\n const value = getValue(element);\n if (value > max) {\n max = value;\n maxElement = element;\n }\n }\n\n return maxElement;\n}\n"],"mappings":";AAYO,SAAS,MAAS,OAAY,UAAqC;AACxE,MAAI,aAAa,MAAM,CAAC;AACxB,MAAI,MAAM;AAEV,aAAW,WAAW,OAAO;AAC3B,UAAM,QAAQ,SAAS,OAAO;AAC9B,QAAI,QAAQ,KAAK;AACf,YAAM;AACN,mBAAa;AAAA,IACf;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,16 +0,0 @@
1
- // src/array/toFilled.ts
2
- function toFilled(arr, value, start = 0, end = arr.length) {
3
- const length = arr.length;
4
- const finalStart = Math.max(start >= 0 ? start : length + start, 0);
5
- const finalEnd = Math.min(end >= 0 ? end : length + end, length);
6
- const newArr = arr.slice();
7
- for (let i = finalStart; i < finalEnd; i++) {
8
- newArr[i] = value;
9
- }
10
- return newArr;
11
- }
12
-
13
- export {
14
- toFilled
15
- };
16
- //# sourceMappingURL=chunk-OP4OAKQJ.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/toFilled.ts"],"sourcesContent":["/**\n * Creates a new array filled with the specified value from the start position up to, but not including, the end position.\n * This function does not mutate the original array.\n *\n * @param {Array<T>} arr - The array to base the new array on.\n * @param {U} value - The value to fill the new array with.\n * @param {number} [start=0] - The start position. Defaults to 0.\n * @param {number} [end=arr.length] - The end position. Defaults to the array's length.\n * @returns {Array<T | U>} The new array with the filled values.\n *\n * @example\n * const array = [1, 2, 3, 4, 5];\n * let result = toFilled(array, '*', 2);\n * console.log(result); // [1, 2, '*', '*', '*']\n * console.log(array); // [1, 2, 3, 4, 5]\n *\n * result = toFilled(array, '*', 1, 4);\n * console.log(result); // [1, '*', '*', '*', 5]\n * console.log(array); // [1, 2, 3, 4, 5]\n *\n * result = toFilled(array, '*');\n * console.log(result); // ['*', '*', '*', '*', '*']\n * console.log(array); // [1, 2, 3, 4, 5]\n *\n * result = toFilled(array, '*', -4, -1);\n * console.log(result); // [1, '*', '*', '*', 5]\n * console.log(array); // [1, 2, 3, 4, 5]\n */\n\nexport function toFilled<T, U>(arr: T[], value: U): Array<T | U>;\nexport function toFilled<T, U>(arr: T[], value: U, start: number): Array<T | U>;\nexport function toFilled<T, U>(arr: T[], value: U, start: number, end: number): Array<T | U>;\nexport function toFilled<T, U>(arr: T[], value: U, start = 0, end = arr.length): Array<T | U> {\n const length = arr.length;\n const finalStart = Math.max(start >= 0 ? start : length + start, 0);\n const finalEnd = Math.min(end >= 0 ? end : length + end, length);\n\n const newArr: Array<T | U> = arr.slice();\n\n for (let i = finalStart; i < finalEnd; i++) {\n newArr[i] = value;\n }\n\n return newArr;\n}\n"],"mappings":";AAgCO,SAAS,SAAe,KAAU,OAAU,QAAQ,GAAG,MAAM,IAAI,QAAsB;AAC5F,QAAM,SAAS,IAAI;AACnB,QAAM,aAAa,KAAK,IAAI,SAAS,IAAI,QAAQ,SAAS,OAAO,CAAC;AAClE,QAAM,WAAW,KAAK,IAAI,OAAO,IAAI,MAAM,SAAS,KAAK,MAAM;AAE/D,QAAM,SAAuB,IAAI,MAAM;AAEvC,WAAS,IAAI,YAAY,IAAI,UAAU,KAAK;AAC1C,WAAO,CAAC,IAAI;AAAA,EACd;AAEA,SAAO;AACT;","names":[]}
@@ -1,13 +0,0 @@
1
- // src/array/dropRight.ts
2
- function dropRight(arr, itemsCount) {
3
- itemsCount = Math.min(-itemsCount, 0);
4
- if (itemsCount === 0) {
5
- return arr.slice();
6
- }
7
- return arr.slice(0, itemsCount);
8
- }
9
-
10
- export {
11
- dropRight
12
- };
13
- //# sourceMappingURL=chunk-OXZCMC5I.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/dropRight.ts"],"sourcesContent":["/**\n * Removes a specified number of elements from the end of an array and returns the rest.\n *\n * This function takes an array and a number, and returns a new array with the specified number\n * of elements removed from the end.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} arr - The array from which to drop elements.\n * @param {number} itemsCount - The number of elements to drop from the end of the array.\n * @returns {T[]} A new array with the specified number of elements removed from the end.\n *\n * @example\n * const array = [1, 2, 3, 4, 5];\n * const result = dropRight(array, 2);\n * // result will be [1, 2, 3] since the last two elements are dropped.\n */\nexport function dropRight<T>(arr: readonly T[], itemsCount: number): T[] {\n itemsCount = Math.min(-itemsCount, 0);\n\n if (itemsCount === 0) {\n return arr.slice();\n }\n\n return arr.slice(0, itemsCount);\n}\n"],"mappings":";AAgBO,SAAS,UAAa,KAAmB,YAAyB;AACvE,eAAa,KAAK,IAAI,CAAC,YAAY,CAAC;AAEpC,MAAI,eAAe,GAAG;AACpB,WAAO,IAAI,MAAM;AAAA,EACnB;AAEA,SAAO,IAAI,MAAM,GAAG,UAAU;AAChC;","names":[]}
@@ -1,10 +0,0 @@
1
- // src/array/without.ts
2
- function without(array, ...values) {
3
- const valuesSet = new Set(values);
4
- return array.filter((item) => !valuesSet.has(item));
5
- }
6
-
7
- export {
8
- without
9
- };
10
- //# sourceMappingURL=chunk-PYEYV7BY.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/without.ts"],"sourcesContent":["/**\n * Creates an array that excludes all specified values.\n *\n * It correctly excludes `NaN`, as it compares values using [SameValueZero](https://tc39.es/ecma262/multipage/abstract-operations.html#sec-samevaluezero).\n *\n * @template T The type of elements in the array.\n * @param {T[]} array - The array to filter.\n * @param {...T[]} values - The values to exclude.\n * @returns {T[]} A new array without the specified values.\n *\n * @example\n * // Removes the specified values from the array\n * without([1, 2, 3, 4, 5], 2, 4);\n * // Returns: [1, 3, 5]\n *\n * @example\n * // Removes specified string values from the array\n * without(['a', 'b', 'c', 'a'], 'a');\n * // Returns: ['b', 'c']\n */\nexport function without<T>(array: readonly T[], ...values: T[]): T[] {\n const valuesSet = new Set(values);\n return array.filter(item => !valuesSet.has(item));\n}\n"],"mappings":";AAoBO,SAAS,QAAW,UAAwB,QAAkB;AACnE,QAAM,YAAY,IAAI,IAAI,MAAM;AAChC,SAAO,MAAM,OAAO,UAAQ,CAAC,UAAU,IAAI,IAAI,CAAC;AAClD;","names":[]}
@@ -1,21 +0,0 @@
1
- import {
2
- unionBy
3
- } from "./chunk-NFS7RWWE.mjs";
4
- import {
5
- intersectionBy
6
- } from "./chunk-O6UXZR3U.mjs";
7
- import {
8
- differenceBy
9
- } from "./chunk-LVWX5B43.mjs";
10
-
11
- // src/array/xorBy.ts
12
- function xorBy(arr1, arr2, mapper) {
13
- const union = unionBy(arr1, arr2, mapper);
14
- const intersection = intersectionBy(arr1, arr2, mapper);
15
- return differenceBy(union, intersection, mapper);
16
- }
17
-
18
- export {
19
- xorBy
20
- };
21
- //# sourceMappingURL=chunk-Q47NGNXT.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/xorBy.ts"],"sourcesContent":["import { differenceBy } from './differenceBy.ts';\nimport { intersectionBy } from './intersectionBy.ts';\nimport { unionBy } from './unionBy.ts';\n\n/**\n * Computes the symmetric difference between two arrays using a custom mapping function.\n * The symmetric difference is the set of elements which are in either of the arrays,\n * but not in their intersection, determined by the result of the mapping function.\n *\n * @template T - Type of elements in the input arrays.\n * @template U - Type of the values returned by the mapping function.\n *\n * @param {T[]} arr1 - The first array.\n * @param {T[]} arr2 - The second array.\n * @param {(item: T) => U} mapper - The function to map array elements to comparison values.\n * @returns {T[]} An array containing the elements that are present in either `arr1` or `arr2` but not in both, based on the values returned by the mapping function.\n *\n * @example\n * // Custom mapping function for objects with an 'id' property\n * const idMapper = obj => obj.id;\n * xorBy([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], idMapper);\n * // Returns [{ id: 1 }, { id: 3 }]\n */\nexport function xorBy<T, U>(arr1: readonly T[], arr2: readonly T[], mapper: (item: T) => U): T[] {\n const union = unionBy(arr1, arr2, mapper);\n const intersection = intersectionBy(arr1, arr2, mapper);\n\n return differenceBy(union, intersection, mapper);\n}\n"],"mappings":";;;;;;;;;;;AAuBO,SAAS,MAAY,MAAoB,MAAoB,QAA6B;AAC/F,QAAM,QAAQ,QAAQ,MAAM,MAAM,MAAM;AACxC,QAAM,eAAe,eAAe,MAAM,MAAM,MAAM;AAEtD,SAAO,aAAa,OAAO,cAAc,MAAM;AACjD;","names":[]}
@@ -1,17 +0,0 @@
1
- // src/function/throttle.ts
2
- function throttle(func, throttleMs) {
3
- let lastCallTime;
4
- const throttledFunction = function(...args) {
5
- const now = Date.now();
6
- if (lastCallTime == null || now - lastCallTime >= throttleMs) {
7
- lastCallTime = now;
8
- func(...args);
9
- }
10
- };
11
- return throttledFunction;
12
- }
13
-
14
- export {
15
- throttle
16
- };
17
- //# sourceMappingURL=chunk-QOJGMVVR.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/function/throttle.ts"],"sourcesContent":["/**\n * Creates a throttled function that only invokes the provided function at most once\n * per every `throttleMs` milliseconds. Subsequent calls to the throttled function\n * within the wait time will not trigger the execution of the original function.\n *\n * @template F - The type of function.\n * @param {F} func - The function to throttle.\n * @param {number} throttleMs - The number of milliseconds to throttle executions to.\n * @returns {F} A new throttled function that accepts the same parameters as the original function.\n *\n * @example\n * const throttledFunction = throttle(() => {\n * console.log('Function executed');\n * }, 1000);\n *\n * // Will log 'Function executed' immediately\n * throttledFunction();\n *\n * // Will not log anything as it is within the throttle time\n * throttledFunction();\n *\n * // After 1 second\n * setTimeout(() => {\n * throttledFunction(); // Will log 'Function executed'\n * }, 1000);\n */\nexport function throttle<F extends (...args: any[]) => void>(func: F, throttleMs: number): F {\n let lastCallTime: number | null;\n\n const throttledFunction = function (...args: Parameters<F>) {\n const now = Date.now();\n\n if (lastCallTime == null || now - lastCallTime >= throttleMs) {\n lastCallTime = now;\n func(...args);\n }\n } as F;\n\n return throttledFunction;\n}\n"],"mappings":";AA0BO,SAAS,SAA6C,MAAS,YAAuB;AAC3F,MAAI;AAEJ,QAAM,oBAAoB,YAAa,MAAqB;AAC1D,UAAM,MAAM,KAAK,IAAI;AAErB,QAAI,gBAAgB,QAAQ,MAAM,gBAAgB,YAAY;AAC5D,qBAAe;AACf,WAAK,GAAG,IAAI;AAAA,IACd;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,21 +0,0 @@
1
- import {
2
- unionWith
3
- } from "./chunk-2ZCITDMK.mjs";
4
- import {
5
- intersectionWith
6
- } from "./chunk-XI7KRD2C.mjs";
7
- import {
8
- differenceWith
9
- } from "./chunk-6NVQAHXP.mjs";
10
-
11
- // src/array/xorWith.ts
12
- function xorWith(arr1, arr2, areElementsEqual) {
13
- const union = unionWith(arr1, arr2, areElementsEqual);
14
- const intersection = intersectionWith(arr1, arr2, areElementsEqual);
15
- return differenceWith(union, intersection, areElementsEqual);
16
- }
17
-
18
- export {
19
- xorWith
20
- };
21
- //# sourceMappingURL=chunk-QRSJBBFY.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/array/xorWith.ts"],"sourcesContent":["import { differenceWith } from './differenceWith.ts';\nimport { intersectionWith } from './intersectionWith.ts';\nimport { unionWith } from './unionWith.ts';\n\n/**\n * Computes the symmetric difference between two arrays using a custom equality function.\n * The symmetric difference is the set of elements which are in either of the arrays,\n * but not in their intersection.\n *\n * @template T - Type of elements in the input arrays.\n *\n * @param {T[]} arr1 - The first array.\n * @param {T[]} arr2 - The second array.\n * @param {(item1: T, item2: T) => boolean} areElementsEqual - The custom equality function to compare elements.\n * @returns {T[]} An array containing the elements that are present in either `arr1` or `arr2` but not in both, based on the custom equality function.\n *\n * @example\n * // Custom equality function for objects with an 'id' property\n * const areObjectsEqual = (a, b) => a.id === b.id;\n * xorWith([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], areObjectsEqual);\n * // Returns [{ id: 1 }, { id: 3 }]\n */\nexport function xorWith<T>(\n arr1: readonly T[],\n arr2: readonly T[],\n areElementsEqual: (item1: T, item2: T) => boolean\n): T[] {\n const union = unionWith(arr1, arr2, areElementsEqual);\n const intersection = intersectionWith(arr1, arr2, areElementsEqual);\n\n return differenceWith(union, intersection, areElementsEqual);\n}\n"],"mappings":";;;;;;;;;;;AAsBO,SAAS,QACd,MACA,MACA,kBACK;AACL,QAAM,QAAQ,UAAU,MAAM,MAAM,gBAAgB;AACpD,QAAM,eAAe,iBAAiB,MAAM,MAAM,gBAAgB;AAElE,SAAO,eAAe,OAAO,cAAc,gBAAgB;AAC7D;","names":[]}
@@ -1,25 +0,0 @@
1
- import {
2
- getWords
3
- } from "./chunk-WVQ7YVRK.mjs";
4
-
5
- // src/string/startCase.ts
6
- function startCase(str) {
7
- const words = getWords(str.trim());
8
- let result = "";
9
- for (const word of words) {
10
- if (result) {
11
- result += " ";
12
- }
13
- if (word === word.toUpperCase()) {
14
- result += word;
15
- } else {
16
- result += word[0].toUpperCase() + word.slice(1).toLowerCase();
17
- }
18
- }
19
- return result;
20
- }
21
-
22
- export {
23
- startCase
24
- };
25
- //# sourceMappingURL=chunk-QXTNZR7B.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/string/startCase.ts"],"sourcesContent":["import { getWords } from './_internal/getWords.ts';\n\n/**\n * Converts the first character of each word in a string to uppercase and the remaining characters to lowercase.\n *\n * Start case is the naming convention in which each word is written with an initial capital letter.\n * @param {string} str - The string to convert.\n * @returns {string} The converted string.\n *\n * @example\n * const result1 = startCase('hello world'); // result will be 'Hello World'\n * const result2 = startCase('HELLO WORLD'); // result will be 'Hello World'\n * const result3 = startCase('hello-world'); // result will be 'Hello World'\n * const result4 = startCase('hello_world'); // result will be 'Hello World'\n */\nexport function startCase(str: string): string {\n const words = getWords(str.trim());\n let result = '';\n for (const word of words) {\n if (result) {\n result += ' ';\n }\n if (word === word.toUpperCase()) {\n result += word;\n } else {\n result += word[0].toUpperCase() + word.slice(1).toLowerCase();\n }\n }\n return result;\n}\n"],"mappings":";;;;;AAeO,SAAS,UAAU,KAAqB;AAC7C,QAAM,QAAQ,SAAS,IAAI,KAAK,CAAC;AACjC,MAAI,SAAS;AACb,aAAW,QAAQ,OAAO;AACxB,QAAI,QAAQ;AACV,gBAAU;AAAA,IACZ;AACA,QAAI,SAAS,KAAK,YAAY,GAAG;AAC/B,gBAAU;AAAA,IACZ,OAAO;AACL,gBAAU,KAAK,CAAC,EAAE,YAAY,IAAI,KAAK,MAAM,CAAC,EAAE,YAAY;AAAA,IAC9D;AAAA,EACF;AACA,SAAO;AACT;","names":[]}