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,598 +0,0 @@
1
- import {
2
- kebabCase
3
- } from "./chunk-EYYZQFOP.mjs";
4
- import {
5
- lowerCase
6
- } from "./chunk-5IKVJGHO.mjs";
7
- import {
8
- snakeCase
9
- } from "./chunk-F3WCQQET.mjs";
10
- import {
11
- startCase
12
- } from "./chunk-QXTNZR7B.mjs";
13
- import {
14
- withTimeout
15
- } from "./chunk-IIDZ3KAJ.mjs";
16
- import {
17
- delay
18
- } from "./chunk-O64NE2P4.mjs";
19
- import {
20
- camelCase
21
- } from "./chunk-Y5V7UAZZ.mjs";
22
- import {
23
- capitalize
24
- } from "./chunk-U56ZOM7L.mjs";
25
- import {
26
- isNull
27
- } from "./chunk-AIRSKN47.mjs";
28
- import {
29
- isUndefined
30
- } from "./chunk-VH2PV426.mjs";
31
- import {
32
- isEqual
33
- } from "./chunk-JYSV56US.mjs";
34
- import {
35
- isLength
36
- } from "./chunk-27QMXBLJ.mjs";
37
- import {
38
- isNil
39
- } from "./chunk-WMM7TZLG.mjs";
40
- import {
41
- isNotNil
42
- } from "./chunk-BMRTZMRE.mjs";
43
- import {
44
- omitBy
45
- } from "./chunk-BCTYOXT7.mjs";
46
- import {
47
- pick
48
- } from "./chunk-HPFDYUGP.mjs";
49
- import {
50
- pickBy
51
- } from "./chunk-6CLH5YZ2.mjs";
52
- import {
53
- clone
54
- } from "./chunk-U4JGKZ56.mjs";
55
- import {
56
- flattenObject
57
- } from "./chunk-XGQWTHW6.mjs";
58
- import {
59
- invert
60
- } from "./chunk-OLX53VEF.mjs";
61
- import {
62
- omit
63
- } from "./chunk-WFZXCGEG.mjs";
64
- import {
65
- round
66
- } from "./chunk-5PMKOZ2F.mjs";
67
- import {
68
- sumBy
69
- } from "./chunk-5L4VWRFX.mjs";
70
- import {
71
- clamp
72
- } from "./chunk-MLCL773E.mjs";
73
- import {
74
- inRange
75
- } from "./chunk-BH6HLGBA.mjs";
76
- import {
77
- meanBy
78
- } from "./chunk-MY4G7R3I.mjs";
79
- import {
80
- mean
81
- } from "./chunk-5ASRKEB4.mjs";
82
- import {
83
- sum
84
- } from "./chunk-2SLTL4KL.mjs";
85
- import {
86
- range
87
- } from "./chunk-DPH2KE6O.mjs";
88
- import {
89
- unzipWith
90
- } from "./chunk-IFNXROZR.mjs";
91
- import {
92
- without
93
- } from "./chunk-PYEYV7BY.mjs";
94
- import {
95
- xor
96
- } from "./chunk-L7FQX5MN.mjs";
97
- import {
98
- xorBy
99
- } from "./chunk-Q47NGNXT.mjs";
100
- import {
101
- xorWith
102
- } from "./chunk-QRSJBBFY.mjs";
103
- import {
104
- zip
105
- } from "./chunk-IDCUZVJL.mjs";
106
- import {
107
- zipObject
108
- } from "./chunk-6GWEY5EL.mjs";
109
- import {
110
- zipWith
111
- } from "./chunk-4KYXHZ4R.mjs";
112
- import {
113
- toFilled
114
- } from "./chunk-OP4OAKQJ.mjs";
115
- import {
116
- union
117
- } from "./chunk-R6QA7PLZ.mjs";
118
- import {
119
- unionBy
120
- } from "./chunk-NFS7RWWE.mjs";
121
- import {
122
- unionWith
123
- } from "./chunk-2ZCITDMK.mjs";
124
- import {
125
- uniq
126
- } from "./chunk-DVK2N4KC.mjs";
127
- import {
128
- uniqBy
129
- } from "./chunk-B4COTK4K.mjs";
130
- import {
131
- uniqWith
132
- } from "./chunk-237HGSZS.mjs";
133
- import {
134
- unzip
135
- } from "./chunk-UYZKMBDO.mjs";
136
- import {
137
- sample
138
- } from "./chunk-2KNLZB7V.mjs";
139
- import {
140
- sampleSize
141
- } from "./chunk-EHSKB6DF.mjs";
142
- import {
143
- randomInt
144
- } from "./chunk-GIWAOOFY.mjs";
145
- import {
146
- random
147
- } from "./chunk-SYWMYQYJ.mjs";
148
- import {
149
- shuffle
150
- } from "./chunk-G7UQ5PUR.mjs";
151
- import {
152
- tail
153
- } from "./chunk-TJ4Z5I7M.mjs";
154
- import {
155
- take
156
- } from "./chunk-ME352XO7.mjs";
157
- import {
158
- takeRight
159
- } from "./chunk-IQLKIDXF.mjs";
160
- import {
161
- takeRightWhile
162
- } from "./chunk-NTLX2MPV.mjs";
163
- import {
164
- takeWhile
165
- } from "./chunk-2IXFGSUA.mjs";
166
- import {
167
- intersectionBy
168
- } from "./chunk-O6UXZR3U.mjs";
169
- import {
170
- intersectionWith
171
- } from "./chunk-XI7KRD2C.mjs";
172
- import {
173
- keyBy
174
- } from "./chunk-AJKZMN2V.mjs";
175
- import {
176
- last
177
- } from "./chunk-KPBQ7OUY.mjs";
178
- import {
179
- maxBy
180
- } from "./chunk-OOKNBU4V.mjs";
181
- import {
182
- minBy
183
- } from "./chunk-IJD7FE2Z.mjs";
184
- import {
185
- orderBy
186
- } from "./chunk-7B7W36UP.mjs";
187
- import {
188
- partition
189
- } from "./chunk-DN3NOZ3H.mjs";
190
- import {
191
- flattenDeep
192
- } from "./chunk-ML727RRJ.mjs";
193
- import {
194
- forEachRight
195
- } from "./chunk-IEA53J7P.mjs";
196
- import {
197
- groupBy
198
- } from "./chunk-E6E4RZLN.mjs";
199
- import {
200
- head
201
- } from "./chunk-HM2JT2RX.mjs";
202
- import {
203
- initial
204
- } from "./chunk-XPSOKBRZ.mjs";
205
- import {
206
- intersection
207
- } from "./chunk-FVVSE2F2.mjs";
208
- import {
209
- differenceBy
210
- } from "./chunk-LVWX5B43.mjs";
211
- import {
212
- differenceWith
213
- } from "./chunk-6NVQAHXP.mjs";
214
- import {
215
- drop
216
- } from "./chunk-3EZAFZG3.mjs";
217
- import {
218
- dropRight
219
- } from "./chunk-OXZCMC5I.mjs";
220
- import {
221
- dropRightWhile
222
- } from "./chunk-M7SBBYV2.mjs";
223
- import {
224
- dropWhile
225
- } from "./chunk-LJ2C6MVP.mjs";
226
- import {
227
- fill
228
- } from "./chunk-YFN6KOC4.mjs";
229
- import {
230
- flatMap
231
- } from "./chunk-UY76KTPE.mjs";
232
- import {
233
- flatten
234
- } from "./chunk-33MSBDC6.mjs";
235
- import {
236
- chunk
237
- } from "./chunk-E6C5EZQA.mjs";
238
- import {
239
- compact
240
- } from "./chunk-DTJJIMKJ.mjs";
241
- import {
242
- countBy
243
- } from "./chunk-CRSKT4WW.mjs";
244
- import {
245
- difference
246
- } from "./chunk-JPUKH67K.mjs";
247
- import {
248
- AbortError
249
- } from "./chunk-DXB7EZUQ.mjs";
250
- import {
251
- TimeoutError
252
- } from "./chunk-KIOYQRMQ.mjs";
253
- import {
254
- negate
255
- } from "./chunk-BOOQBJN2.mjs";
256
- import {
257
- noop
258
- } from "./chunk-LKXCOLNY.mjs";
259
- import {
260
- once
261
- } from "./chunk-CMBC4MXG.mjs";
262
- import {
263
- throttle
264
- } from "./chunk-QOJGMVVR.mjs";
265
- import {
266
- debounce
267
- } from "./chunk-3IP4JVLL.mjs";
268
- import {
269
- __export
270
- } from "./chunk-24FKGR6U.mjs";
271
-
272
- // src/compat/index.ts
273
- var compat_exports = {};
274
- __export(compat_exports, {
275
- AbortError: () => AbortError,
276
- TimeoutError: () => TimeoutError,
277
- camelCase: () => camelCase,
278
- capitalize: () => capitalize,
279
- chunk: () => chunk2,
280
- clamp: () => clamp,
281
- clone: () => clone,
282
- compact: () => compact,
283
- concat: () => concat,
284
- countBy: () => countBy,
285
- debounce: () => debounce,
286
- delay: () => delay,
287
- difference: () => difference2,
288
- differenceBy: () => differenceBy,
289
- differenceWith: () => differenceWith,
290
- drop: () => drop,
291
- dropRight: () => dropRight,
292
- dropRightWhile: () => dropRightWhile,
293
- dropWhile: () => dropWhile,
294
- endsWith: () => endsWith,
295
- fill: () => fill,
296
- first: () => head,
297
- flatMap: () => flatMap,
298
- flatten: () => flatten,
299
- flattenDeep: () => flattenDeep,
300
- flattenObject: () => flattenObject,
301
- forEachRight: () => forEachRight,
302
- get: () => get,
303
- groupBy: () => groupBy,
304
- head: () => head,
305
- inRange: () => inRange,
306
- initial: () => initial,
307
- intersection: () => intersection,
308
- intersectionBy: () => intersectionBy,
309
- intersectionWith: () => intersectionWith,
310
- invert: () => invert,
311
- isEqual: () => isEqual,
312
- isLength: () => isLength,
313
- isNil: () => isNil,
314
- isNotNil: () => isNotNil,
315
- isNull: () => isNull,
316
- isPlainObject: () => isPlainObject,
317
- isUndefined: () => isUndefined,
318
- kebabCase: () => kebabCase,
319
- keyBy: () => keyBy,
320
- last: () => last,
321
- lowerCase: () => lowerCase,
322
- max: () => max,
323
- maxBy: () => maxBy,
324
- mean: () => mean,
325
- meanBy: () => meanBy,
326
- min: () => min,
327
- minBy: () => minBy,
328
- negate: () => negate,
329
- noop: () => noop,
330
- omit: () => omit,
331
- omitBy: () => omitBy,
332
- once: () => once,
333
- orderBy: () => orderBy,
334
- partition: () => partition,
335
- pick: () => pick,
336
- pickBy: () => pickBy,
337
- random: () => random,
338
- randomInt: () => randomInt,
339
- range: () => range,
340
- round: () => round,
341
- sample: () => sample,
342
- sampleSize: () => sampleSize,
343
- set: () => set,
344
- shuffle: () => shuffle,
345
- snakeCase: () => snakeCase,
346
- startCase: () => startCase,
347
- startsWith: () => startsWith,
348
- sum: () => sum,
349
- sumBy: () => sumBy,
350
- tail: () => tail,
351
- take: () => take,
352
- takeRight: () => takeRight,
353
- takeRightWhile: () => takeRightWhile,
354
- takeWhile: () => takeWhile,
355
- throttle: () => throttle,
356
- toFilled: () => toFilled,
357
- union: () => union,
358
- unionBy: () => unionBy,
359
- unionWith: () => unionWith,
360
- uniq: () => uniq,
361
- uniqBy: () => uniqBy,
362
- uniqWith: () => uniqWith,
363
- unzip: () => unzip,
364
- unzipWith: () => unzipWith,
365
- withTimeout: () => withTimeout,
366
- without: () => without,
367
- xor: () => xor,
368
- xorBy: () => xorBy,
369
- xorWith: () => xorWith,
370
- zip: () => zip,
371
- zipObject: () => zipObject,
372
- zipObjectDeep: () => zipObjectDeep,
373
- zipWith: () => zipWith
374
- });
375
-
376
- // src/compat/array/chunk.ts
377
- function chunk2(arr, size = 1) {
378
- size = Math.max(Math.floor(size), 0);
379
- if (size === 0) {
380
- return [];
381
- }
382
- return chunk(arr, size);
383
- }
384
-
385
- // src/compat/array/concat.ts
386
- function concat(...values) {
387
- return flatten(values);
388
- }
389
-
390
- // src/compat/array/difference.ts
391
- function difference2(arr, ...values) {
392
- const arr1 = arr;
393
- const arr2 = flatten(values);
394
- return difference(arr1, arr2);
395
- }
396
-
397
- // src/compat/_internal/isIndex.ts
398
- var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
399
- function isIndex(value) {
400
- switch (typeof value) {
401
- case "number": {
402
- return Number.isInteger(value) && value >= 0 && value < Number.MAX_SAFE_INTEGER;
403
- }
404
- case "symbol": {
405
- return false;
406
- }
407
- case "string": {
408
- return IS_UNSIGNED_INTEGER.test(value);
409
- }
410
- }
411
- }
412
-
413
- // src/compat/_internal/toPath.ts
414
- function toPath(deepKey) {
415
- const ESCAPE_REGEXP = /\\(\\)?/g;
416
- const PROPERTY_REGEXP = RegExp(
417
- // Match anything that isn't a dot or bracket.
418
- `[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,
419
- "g"
420
- );
421
- const result = [];
422
- if (deepKey[0] === ".") {
423
- result.push("");
424
- }
425
- let match;
426
- let lastIndex = 0;
427
- let count = 0;
428
- while ((match = PROPERTY_REGEXP.exec(deepKey)) !== null) {
429
- let [key, expr, quote, substr] = match;
430
- if (quote) {
431
- key = substr.replace(ESCAPE_REGEXP, "$1");
432
- } else if (expr) {
433
- key = expr;
434
- }
435
- result.push(key);
436
- if (PROPERTY_REGEXP.lastIndex === lastIndex) {
437
- PROPERTY_REGEXP.lastIndex++;
438
- } else {
439
- lastIndex = PROPERTY_REGEXP.lastIndex;
440
- }
441
- }
442
- return result;
443
- }
444
-
445
- // src/compat/object/set.ts
446
- function set(obj, path, value) {
447
- const resolvedPath = Array.isArray(path) ? path : typeof path === "string" ? toPath(path) : [path];
448
- let current = obj;
449
- for (let i = 0; i < resolvedPath.length - 1; i++) {
450
- const key = resolvedPath[i];
451
- const nextKey = resolvedPath[i + 1];
452
- if (current[key] == null) {
453
- current[key] = isIndex(nextKey) ? [] : {};
454
- }
455
- current = current[key];
456
- }
457
- const lastKey = resolvedPath[resolvedPath.length - 1];
458
- current[lastKey] = value;
459
- return obj;
460
- }
461
-
462
- // src/compat/array/zipObjectDeep.ts
463
- function zipObjectDeep(keys, values) {
464
- const result = {};
465
- const zipped = zip(keys, values);
466
- for (let i = 0; i < zipped.length; i++) {
467
- const [key, value] = zipped[i];
468
- if (key != null) {
469
- set(result, key, value);
470
- }
471
- }
472
- return result;
473
- }
474
-
475
- // src/compat/_internal/isDeepKey.ts
476
- var IS_PLAIN = /^\w*$/;
477
- var IS_DEEP = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
478
- function isDeepKey(key) {
479
- switch (typeof key) {
480
- case "number":
481
- case "symbol": {
482
- return false;
483
- }
484
- case "string": {
485
- return !IS_PLAIN.test(key) && IS_DEEP.test(key);
486
- }
487
- }
488
- }
489
-
490
- // src/compat/object/get.ts
491
- function get(object, path, defaultValue) {
492
- let resolvedPath;
493
- if (Array.isArray(path)) {
494
- resolvedPath = path;
495
- } else if (typeof path === "string" && isDeepKey(path) && (object == null ? void 0 : object[path]) == null) {
496
- resolvedPath = toPath(path);
497
- } else {
498
- resolvedPath = [path];
499
- }
500
- if (resolvedPath.length === 0) {
501
- return defaultValue;
502
- }
503
- let current = object;
504
- let index;
505
- for (index = 0; index < resolvedPath.length && current != null; index++) {
506
- let key = resolvedPath[index];
507
- if (Object.is(key.valueOf(), -0)) {
508
- key = "-0";
509
- }
510
- current = current[key];
511
- }
512
- if (current === null && index === resolvedPath.length) {
513
- return current;
514
- }
515
- return current != null ? current : defaultValue;
516
- }
517
-
518
- // src/compat/predicate/isPlainObject.ts
519
- function isPlainObject(object) {
520
- var _a;
521
- if (typeof object !== "object") {
522
- return false;
523
- }
524
- if (object == null) {
525
- return false;
526
- }
527
- if (Object.getPrototypeOf(object) === null) {
528
- return true;
529
- }
530
- if (object.toString() !== "[object Object]") {
531
- const tag = object[Symbol.toStringTag];
532
- if (tag == null) {
533
- return false;
534
- }
535
- const isTagReadonly = !((_a = Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)) == null ? void 0 : _a.writable);
536
- if (isTagReadonly) {
537
- return false;
538
- }
539
- return object.toString() === `[object ${tag}]`;
540
- }
541
- let proto = object;
542
- while (Object.getPrototypeOf(proto) !== null) {
543
- proto = Object.getPrototypeOf(proto);
544
- }
545
- return Object.getPrototypeOf(object) === proto;
546
- }
547
-
548
- // src/compat/string/startsWith.ts
549
- var startsWith = (str, target, position = 0) => {
550
- return str.startsWith(target, position);
551
- };
552
-
553
- // src/compat/string/endsWith.ts
554
- var endsWith = (str, target, position = str.length) => {
555
- return str.endsWith(target, position);
556
- };
557
-
558
- // src/compat/math/max.ts
559
- function max(items = []) {
560
- let maxElement = items[0];
561
- let max2 = void 0;
562
- for (const element of items) {
563
- if (max2 == null || element > max2) {
564
- max2 = element;
565
- maxElement = element;
566
- }
567
- }
568
- return maxElement;
569
- }
570
-
571
- // src/compat/math/min.ts
572
- function min(items = []) {
573
- let minElement = items[0];
574
- let min2 = void 0;
575
- for (const element of items) {
576
- if (min2 == null || element < min2) {
577
- min2 = element;
578
- minElement = element;
579
- }
580
- }
581
- return minElement;
582
- }
583
-
584
- export {
585
- chunk2 as chunk,
586
- concat,
587
- difference2 as difference,
588
- set,
589
- zipObjectDeep,
590
- get,
591
- isPlainObject,
592
- startsWith,
593
- endsWith,
594
- max,
595
- min,
596
- compat_exports
597
- };
598
- //# sourceMappingURL=chunk-BJWAMCFH.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/compat/index.ts","../src/compat/array/chunk.ts","../src/compat/array/concat.ts","../src/compat/array/difference.ts","../src/compat/_internal/isIndex.ts","../src/compat/_internal/toPath.ts","../src/compat/object/set.ts","../src/compat/array/zipObjectDeep.ts","../src/compat/_internal/isDeepKey.ts","../src/compat/object/get.ts","../src/compat/predicate/isPlainObject.ts","../src/compat/string/startsWith.ts","../src/compat/string/endsWith.ts","../src/compat/math/max.ts","../src/compat/math/min.ts"],"sourcesContent":["/**\n * es-toolkit compatibility layer with lodash (WIP)\n * ====================================\n * ```tsx\n * // es-toolkit/compat aims to provide 100% feature parity with lodash\n * import { chunk } from 'es-toolkit/compat';\n *\n * chunk([1, 2, 3, 4], 0);\n * // Returns [], which is identical to lodash\n * ```\n *\n * `es-toolkit/compat` will offer complete compatibility with lodash, ensuring a seamless transition.\n *\n * To guarantee identical behavior, `es-toolkit/compat` will be thoroughly tested using actual lodash test cases.\n *\n * The primary goal of `es-toolkit/compat` is to serve as a drop-in replacement for lodash.\n *\n * It's important to note that while `es-toolkit/compat` will mirror the behavior of lodash functions with 100% accuracy,\n * it will deliberately omit unsafe features, such as:\n *\n * - Implicit type casting from an empty string `''` to 0 or false, and similar cases.\n *\n * @module\n */\nexport * from '../index.ts';\n\nexport { chunk } from './array/chunk.ts';\nexport { concat } from './array/concat.ts';\nexport { difference } from './array/difference.ts';\nexport { zipObjectDeep } from './array/zipObjectDeep.ts';\nexport { head as first } from '../index.ts';\n\nexport { get } from './object/get.ts';\nexport { set } from './object/set.ts';\n\nexport { isPlainObject } from './predicate/isPlainObject.ts';\n\nexport { startsWith } from './string/startsWith.ts';\nexport { endsWith } from './string/endsWith.ts';\n\nexport { max } from './math/max.ts';\nexport { min } from './math/min.ts';\n","import { chunk as chunkToolkit } from '../../array/chunk.ts';\n\n/**\n * Splits an array into smaller arrays of a specified length.\n *\n * This function takes an input array and divides it into multiple smaller arrays,\n * each of a specified length. If the input array cannot be evenly divided,\n * the final sub-array will contain the remaining elements.\n *\n * @template T The type of elements in the array.\n * @param {T[]} arr - The array to be chunked into smaller arrays.\n * @param {number} size - The size of each smaller array. Must be a positive integer.\n * @returns {T[][]} A two-dimensional array where each sub-array has a maximum length of `size`.\n * @throws {Error} Throws an error if `size` is not a positive integer.\n *\n * @example\n * // Splits an array of numbers into sub-arrays of length 2\n * chunk([1, 2, 3, 4, 5], 2);\n * // Returns: [[1, 2], [3, 4], [5]]\n *\n * @example\n * // Splits an array of strings into sub-arrays of length 3\n * chunk(['a', 'b', 'c', 'd', 'e', 'f', 'g'], 3);\n * // Returns: [['a', 'b', 'c'], ['d', 'e', 'f'], ['g']]\n */\nexport function chunk<T>(arr: readonly T[], size: number = 1): T[][] {\n size = Math.max(Math.floor(size), 0);\n\n if (size === 0) {\n return [];\n }\n\n return chunkToolkit(arr, size);\n}\n","import { flatten } from \"../../array/flatten.ts\";\n\n/**\n * Concatenates multiple arrays and values into a single array.\n *\n * @template T The type of elements in the array.\n * @param {...(T | readonly T[])} values - The values and/or arrays to concatenate.\n * @returns {T[]} A new array containing all the input values.\n * \n * @example\n * // Concatenate individual values\n * concat(1, 2, 3); \n * // returns [1, 2, 3]\n *\n * @example\n * // Concatenate arrays of values\n * concat([1, 2], [3, 4]);\n * // returns [1, 2, 3, 4]\n *\n * @example\n * // Concatenate a mix of individual values and arrays\n * concat(1, [2, 3], 4);\n * // returns [1, 2, 3, 4]\n *\n * @example\n * // Concatenate nested arrays\n * concat([1, [2, 3]], 4);\n * // returns [1, [2, 3], 4]\n */\nexport function concat<T>(...values: Array<T | readonly T[]>): T[] {\n return flatten(values) as T[];\n}\n","import { difference as differenceToolkit } from '../../array/difference.ts';\nimport { flatten } from '../../array/flatten.ts';\n\nexport function difference<T>(arr: readonly T[], ...values: Array<readonly T[]>): T[] {\n const arr1 = arr;\n const arr2 = flatten(values);\n\n return differenceToolkit(arr1, arr2);\n}","const IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\\d*)$/\n\nexport function isIndex(value: PropertyKey) {\n switch (typeof value) {\n case 'number': {\n return Number.isInteger(value) && value >= 0 && value < Number.MAX_SAFE_INTEGER;\n }\n case 'symbol': {\n return false;\n }\n case 'string': {\n return IS_UNSIGNED_INTEGER.test(value);\n }\n }\n}","/**\n * Converts a deep key string into an array of path segments.\n *\n * This function takes a string representing a deep key (e.g., 'a.b.c' or 'a[b][c]') and breaks it down into an array of strings, each representing a segment of the path.\n *\n * @param deepKey - The deep key string to convert.\n * @returns An array of strings, each representing a segment of the path.\n *\n * Examples:\n *\n * toPath('a.b.c') // Returns ['a', 'b', 'c']\n * toPath('a[b][c]') // Returns ['a', 'b', 'c']\n * toPath('.a.b.c') // Returns ['', 'a', 'b', 'c']\n * toPath('a[\"b.c\"].d') // Returns ['a', 'b.c', 'd']\n * toPath('') // Returns []\n * toPath('.a[b].c.d[e][\"f.g\"].h') // Returns ['', 'a', 'b', 'c', 'd', 'e', 'f.g', 'h']\n */\nexport function toPath(deepKey: string): string[] {\n const ESCAPE_REGEXP = /\\\\(\\\\)?/g;\n const PROPERTY_REGEXP = RegExp(\n // Match anything that isn't a dot or bracket.\n \"[^.[\\\\]]+\" +\n \"|\" +\n // Or match property names within brackets.\n \"\\\\[(?:\" +\n // Match a non-string expression.\n \"([^\\\"'][^[]*)\" +\n \"|\" +\n // Or match strings (supports escaping characters).\n \"([\\\"'])((?:(?!\\\\2)[^\\\\\\\\]|\\\\\\\\.)*?)\\\\2\" +\n \")\\\\]\" +\n \"|\" +\n // Or match \"\" as the space between consecutive dots or empty brackets.\n \"(?=(?:\\\\.|\\\\[\\\\])(?:\\\\.|\\\\[\\\\]|$))\",\n \"g\",\n );\n\n const result: string[] = [];\n\n if (deepKey[0] === \".\") {\n result.push(\"\");\n }\n\n let match: RegExpExecArray | null;\n let lastIndex = 0;\n let count = 0;\n\n while ((match = PROPERTY_REGEXP.exec(deepKey)) !== null) {\n let [key, expr, quote, substr] = match;\n\n if (quote) {\n key = substr.replace(ESCAPE_REGEXP, \"$1\");\n } else if (expr) {\n key = expr;\n }\n\n result.push(key);\n\n if (PROPERTY_REGEXP.lastIndex === lastIndex) {\n PROPERTY_REGEXP.lastIndex++;\n } else {\n lastIndex = PROPERTY_REGEXP.lastIndex;\n }\n }\n\n return result;\n}\n","import { isIndex } from \"../_internal/isIndex.ts\";\nimport { toPath } from \"../_internal/toPath.ts\";\n\n/**\n * Sets the value at the specified path of the given object. If any part of the path does not exist, it will be created.\n *\n * @template T - The type of the object.\n * @param {Settable} obj - The object to modify.\n * @param {Path} path - The path of the property to set.\n * @param {any} value - The value to set.\n * @returns {T} - The modified object.\n *\n * @example\n * // Set a value in a nested object\n * const obj = { a: { b: { c: 3 } } };\n * set(obj, 'a.b.c', 4);\n * console.log(obj.a.b.c); // 4\n *\n * @example\n * // Set a value in an array\n * const arr = [1, 2, 3];\n * set(arr, 1, 4);\n * console.log(arr[1]); // 4\n *\n * @example\n * // Create non-existent path and set value\n * const obj = {};\n * set(obj, 'a.b.c', 4);\n * console.log(obj); // { a: { b: { c: 4 } } }\n */\nexport function set<T>(obj: object, path: PropertyKey | readonly PropertyKey[], value: unknown): T;\nexport function set<T extends object>(obj: T, path: PropertyKey | readonly PropertyKey[], value: unknown): T {\n const resolvedPath = Array.isArray(path)\n ? path\n : typeof path === 'string'\n ? toPath(path)\n : [path];\n\n let current: any = obj;\n\n for (let i = 0; i < resolvedPath.length - 1; i++) {\n const key = resolvedPath[i];\n const nextKey = resolvedPath[i + 1];\n\n if (current[key] == null) {\n current[key] = isIndex(nextKey) ? [] : {};\n }\n\n current = current[key];\n }\n\n const lastKey = resolvedPath[resolvedPath.length - 1];\n current[lastKey] = value;\n\n return obj;\n}\n","import { zip } from \"../../array/zip.ts\";\nimport { set } from \"../object/set.ts\";\n\n/**\n * Creates a deeply nested object given arrays of paths and values.\n *\n * This function takes two arrays: one containing arrays of property paths, and the other containing corresponding values.\n * It returns a new object where paths from the first array are used as key paths to set values, with corresponding elements from the second array as values.\n * Paths can be dot-separated strings or arrays of property names.\n * \n * If the `keys` array is longer than the `values` array, the remaining keys will have `undefined` as their values.\n *\n * @template V - The type of elements in the array.\n * @param {string[] | string[][]} keys - An array of property paths, each path can be a dot-separated string or an array of property names.\n * @param {V[]} values - An array of values corresponding to the property paths.\n * @returns {object} A new object composed of the given property paths and values.\n *\n * @example\n * const paths = ['a.b.c', 'd.e.f'];\n * const values = [1, 2];\n * const result = zipObjectDeep(paths, values);\n * // result will be { a: { b: { c: 1 } }, d: { e: { f: 2 } } }\n *\n * @example\n * const paths = [['a', 'b', 'c'], ['d', 'e', 'f']];\n * const values = [1, 2];\n * const result = zipObjectDeep(paths, values);\n * // result will be { a: { b: { c: 1 } }, d: { e: { f: 2 } } }\n * \n * @example\n * const paths = ['a.b[0].c', 'a.b[1].d'];\n * const values = [1, 2];\n * const result = zipObjectDeep(paths, values);\n * // result will be { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\nexport function zipObjectDeep<P extends string | number | symbol, V>(keys: P[], values: V[]): { [K in P]: V } {\n const result = {} as { [K in P]: V };\n const zipped = zip(keys, values);\n\n for (let i = 0; i < zipped.length; i++) {\n const [key, value] = zipped[i];\n\n if (key != null) {\n set(result, key, value);\n }\n }\n\n return result;\n}\n","const IS_PLAIN = /^\\w*$/;\nconst IS_DEEP = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/;\n\n/**\n * Checks if a given key is a deep key.\n *\n * A deep key is a string that contains a dot (.) or square brackets with a property accessor.\n *\n * @param key - The key to check.\n * @returns {boolean} - Returns true if the key is a deep key, otherwise false.\n *\n * Examples:\n *\n * isDeepKey('a.b') // true\n * isDeepKey('a[b]') // true\n * isDeepKey('a') // false\n * isDeepKey(123) // false\n * isDeepKey('a.b.c') // true\n * isDeepKey('a[b][c]') // true\n */\nexport function isDeepKey(key: PropertyKey): boolean {\n switch (typeof key) {\n case \"number\":\n case \"symbol\": {\n return false;\n }\n case \"string\": {\n return !IS_PLAIN.test(key) && IS_DEEP.test(key);\n }\n }\n}\n","import { isDeepKey } from \"../_internal/isDeepKey.ts\";\nimport { toPath } from \"../_internal/toPath.ts\";\nimport type { Get } from \"./get.types.ts\";\n\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K - The type of the key in the object.\n * @template D - The type of the default value.\n * \n * @param {T} object - The object to query.\n * @param {K | [K]} path - The path of the property to get.\n * @returns {T[K]} - Returns the resolved value.\n */\nexport function get<T extends object, K extends keyof T>(object: T, path: K | [K]): T[K];\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K - The type of the key in the object.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {K | [K]} path - The path of the property to get.\n * @returns {T[K] | undefined} - Returns the resolved value.\n */\nexport function get<T extends object, K extends keyof T>(object: T | null | undefined, path: K | [K]): T[K] | undefined;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K - The type of the key in the object.\n * @template D - The type of the default value.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {K | [K]} path - The path of the property to get.\n * @param {D} defaultValue - The value returned if the resolved value is undefined.\n * @returns {Exclude<T[K], undefined> | D} - Returns the resolved value.\n */\nexport function get<T extends object, K extends keyof T, D>(object: T | null | undefined, path: K | [K], defaultValue: D): Exclude<T[K], undefined> | D;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * \n * @param {T} object - The object to query.\n * @param {[K1, K2]} path - The path of the property to get.\n * @returns {T[K1][K2]} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1]>(object: T, path: [K1, K2]): T[K1][K2];\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {[K1, K2]} path - The path of the property to get.\n * @returns {T[K1][K2] | undefined} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1]>(object: T | null | undefined, path: [K1, K2]): T[K1][K2] | undefined;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * @template D - The type of the default value.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {[K1, K2]} path - The path of the property to get.\n * @param {D} defaultValue - The value returned if the resolved value is undefined.\n * @returns {Exclude<T[K1][K2], undefined> | D} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1], D>(object: T | null | undefined, path: [K1, K2], defaultValue: D): Exclude<T[K1][K2], undefined> | D;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * @template K3 - The type of the third key in the object.\n * \n * @param {T} object - The object to query.\n * @param {[K1, K2, K3]} path - The path of the property to get.\n * @returns {T[K1][K2][K3]} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(object: T, path: [K1, K2, K3]): T[K1][K2][K3];\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * @template K3 - The type of the third key in the object.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {[K1, K2, K3]} path - The path of the property to get.\n * @returns {T[K1][K2][K3] | undefined} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2]>(object: T | null | undefined, path: [K1, K2, K3]): T[K1][K2][K3] | undefined;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * @template K3 - The type of the third key in the object.\n * @template D - The type of the default value.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {[K1, K2, K3]} path - The path of the property to get.\n * @param {D} defaultValue - The value returned if the resolved value is undefined.\n * @returns {Exclude<T[K1][K2][K3], undefined> | D} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], D>(object: T | null | undefined, path: [K1, K2, K3], defaultValue: D): Exclude<T[K1][K2][K3], undefined> | D;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * @template K3 - The type of the third key in the object.\n * @template K4 - The type of the fourth key in the object.\n * \n * @param {T} object - The object to query.\n * @param {[K1, K2, K3, K4]} path - The path of the property to get.\n * @returns {T[K1][K2][K3][K4]} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], K4 extends keyof T[K1][K2][K3]>(object: T, path: [K1, K2, K3, K4]): T[K1][K2][K3][K4];\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * @template K3 - The type of the third key in the object.\n * @template K4 - The type of the fourth key in the object.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {[K1, K2, K3, K4]} path - The path of the property to get.\n * @returns {T[K1][K2][K3][K4] | undefined} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], K4 extends keyof T[K1][K2][K3]>(object: T | null | undefined, path: [K1, K2, K3, K4]): T[K1][K2][K3][K4] | undefined;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template K1 - The type of the first key in the object.\n * @template K2 - The type of the second key in the object.\n * @template K3 - The type of the third key in the object.\n * @template K4 - The type of the fourth key in the object.\n * @template D - The type of the default value.\n * \n * @param {T | null | undefined} object - The object to query.\n * @param {[K1, K2, K3, K4]} path - The path of the property to get.\n * @param {D} defaultValue - The value returned if the resolved value is undefined.\n * @returns {Exclude<T[K1][K2][K3][K4], undefined> | D} - Returns the resolved value.\n */\nexport function get<T extends object, K1 extends keyof T, K2 extends keyof T[K1], K3 extends keyof T[K1][K2], K4 extends keyof T[K1][K2][K3], D>(object: T | null | undefined, path: [K1, K2, K3, K4], defaultValue: D): Exclude<T[K1][K2][K3][K4], undefined> | D;\n/**\n * Retrieves the value at a given path from an object with numeric keys. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the value.\n * \n * @param {Record<number, T>} object - The object to query.\n * @param {number} path - The path of the property to get.\n * @returns {T} - Returns the resolved value.\n */\nexport function get<T>(object: Record<number, T>, path: number): T;\n/**\n * Retrieves the value at a given path from an object with numeric keys. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the value.\n * \n * @param {Record<number, T> | null | undefined} object - The object to query.\n * @param {number} path - The path of the property to get.\n * @returns {T | undefined} - Returns the resolved value.\n */\nexport function get<T>(object: Record<number, T> | null | undefined, path: number): T | undefined;\n/**\n * Retrieves the value at a given path from an object with numeric keys. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the value.\n * @template D - The type of the default value.\n * \n * @param {Record<number, T> | null | undefined} object - The object to query.\n * @param {number} path - The path of the property to get.\n * @param {D} defaultValue - The value returned if the resolved value is undefined.\n * @returns {T | D} - Returns the resolved value.\n */\nexport function get<T, D>(object: Record<number, T> | null | undefined, path: number, defaultValue: D): T | D;\n/**\n * Retrieves the value at a given path from a null or undefined object, returning the default value.\n * \n * @template D - The type of the default value.\n * \n * @param {null | undefined} object - The object to query.\n * @param {PropertyKey} path - The path of the property to get.\n * @param {D} defaultValue - The value returned if the resolved value is undefined.\n * @returns {D} - Returns the default value.\n */\nexport function get<D>(object: null | undefined, path: PropertyKey, defaultValue: D): D;\n/**\n * Retrieves the value at a given path from a null or undefined object, returning undefined.\n * \n * @param {null | undefined} object - The object to query.\n * @param {PropertyKey} path - The path of the property to get.\n * @returns {undefined} - Returns undefined.\n */\nexport function get(object: null | undefined, path: PropertyKey): undefined;\n/**\n * Retrieves the value at a given path from a string-keyed object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template P - The type of the path.\n * \n * @param {T} data - The object to query.\n * @param {P} path - The path of the property to get.\n * @returns {string extends P ? any : Get<T, P>} - Returns the resolved value.\n */\nexport function get<T, P extends string>(data: T, path: P): string extends P ? any : Get<T, P>;\n/**\n * Retrieves the value at a given path from a string-keyed object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @template T - The type of the object.\n * @template P - The type of the path.\n * @template D - The type of the default value.\n * \n * @param {T} data - The object to query.\n * @param {P} path - The path of the property to get.\n * @param {D} defaultValue - The value returned if the resolved value is undefined.\n * @returns {Exclude<Get<T, P>, null | undefined> | D} - Returns the resolved value.\n */\nexport function get<T, P extends string, D = Get<T, P>>(data: T, path: P, defaultValue: D): Exclude<Get<T, P>, null | undefined> | D;\n/**\n * Retrieves the value at a given path from an object. If the resolved value is undefined, the defaultValue is returned instead.\n * \n * @param {unknown} object - The object to query.\n * @param {PropertyKey | readonly PropertyKey[]} path - The path of the property to get.\n * @param {unknown} [defaultValue] - The value returned if the resolved value is undefined.\n * @returns {any} - Returns the resolved value.\n */\nexport function get(object: unknown, path: PropertyKey | readonly PropertyKey[], defaultValue?: unknown): any;\nexport function get(object: any, path: PropertyKey | readonly PropertyKey[], defaultValue?: any): any {\n let resolvedPath;\n\n if (Array.isArray(path)) {\n resolvedPath = path;\n } else if (typeof path === 'string' && isDeepKey(path) && object?.[path] == null) {\n resolvedPath = toPath(path);\n } else {\n resolvedPath = [path];\n }\n\n if (resolvedPath.length === 0) {\n return defaultValue;\n }\n\n let current = object;\n let index;\n\n for (index = 0; index < resolvedPath.length && current != null; index++) {\n let key = resolvedPath[index];\n\n if (Object.is(key.valueOf(), -0)) {\n key = '-0';\n }\n\n current = current[key];\n }\n\n if (current === null && index === resolvedPath.length) {\n return current;\n }\n\n return current ?? defaultValue;\n}","/**\n * Checks if a given value is a plain object.\n * \n * A plain object is an object created by the `{}` literal, `new Object()`, or\n * `Object.create(null)`. \n * \n * This function also handles objects with custom\n * `Symbol.toStringTag` properties.\n * \n * `Symbol.toStringTag` is a built-in symbol that a constructor can use to customize the\n * default string description of objects.\n * \n * @param {unknown} [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(isPlainObject(new Map())); // false\n */\nexport function isPlainObject(object?: unknown): 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 // @ts-ignore\n const tag = object[Symbol.toStringTag];\n\n if (tag == null) {\n return false;\n }\n\n const isTagReadonly = !Object.getOwnPropertyDescriptor(object, Symbol.toStringTag)?.writable;\n\n if (isTagReadonly) {\n return false;\n }\n\n return object.toString() === `[object ${tag}]`;\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}","/**\n * Checks if a string contains another string at the beginning of the string.\n *\n * Checks if one string startsWith another string. Optional position parameter to start searching from a certain index.\n *\n * @param {string} str - The string that might contain the target string.\n * @param {string} target - The string to search for.\n * @param {number} position - An optional offset to start searching in the str string\n * @returns {boolean} - True if the str string starts with the target string.\n *\n * @example\n * const isPrefix = startsWith('fooBar', 'foo') // returns true\n * const isPrefix = startsWith('fooBar', 'bar') // returns false\n * const isPrefix = startsWith('fooBar', 'abc') // returns false\n * const isPrefix = startsWith('fooBar', 'Bar', 2) // returns true\n * const isPrefix = startsWith('fooBar', 'Bar', 5) // returns false\n */\nexport const startsWith = (str: string, target: string, position: number = 0): boolean => {\n return str.startsWith(target, position);\n};\n","/**\n * Checks if a string contains another string at the end of the string.\n *\n * Checks if one string endsWith another string. Optional position parameter to offset searching before a certain index.\n *\n * @param {string} str - The string that might contain the target string.\n * @param {string} target - The string to search for.\n * @param {number} position - An optional position from the start to search up to this index\n * @returns {boolean} - True if the str string ends with the target string.\n *\n * @example\n * const isPrefix = endsWith('fooBar', 'foo') // returns true\n * const isPrefix = endsWith('fooBar', 'bar') // returns false\n * const isPrefix = endsWith('fooBar', 'abc') // returns false\n * const isPrefix = endsWith('fooBar', 'foo', 3) // returns true\n * const isPrefix = endsWith('fooBar', 'abc', 5) // returns false\n */\nexport const endsWith = (str: string, target: string, position: number = str.length): boolean => {\n return str.endsWith(target, position);\n};\n","/**\n * Finds the element in an array that has the maximum value.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} items The array of elements to search.\n * @returns {T} The element with the maximum value.\n * @example\n * // Returns 9\n * max([3, 1, 4, 1, 5, 9])\n *\n * @example\n * // Returns 8\n * max([0, -3, 2, 8, 7])\n */\nexport function max<T>(items: readonly T[] = []): T {\n let maxElement = items[0];\n let max = undefined;\n\n for (const element of items) {\n if (max == null || element > max) {\n max = element;\n maxElement = element;\n }\n }\n\n return maxElement;\n}\n","/**\n * Finds the element in an array that has the minimum value.\n *\n * @template T - The type of elements in the array.\n * @param {T[]} items The array of elements to search.\n * @returns {T} The element with the minimum value.\n * @example\n * // Returns 1\n * min([3, 1, 4, 1, 5, 9])\n *\n * @example\n * // Returns -3\n * min([0, -3, 2, 8, 7])\n */\nexport function min<T>(items: readonly T[] = []): T {\n let minElement = items[0];\n let min = undefined;\n\n for (const element of items) {\n if (min == null || element < min) {\n min = element;\n minElement = element;\n }\n }\n\n return minElement;\n}"],"mappings":"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","names":["chunk","difference","chunk","difference","max","min"]}
@@ -1,9 +0,0 @@
1
- // src/predicate/isNotNil.ts
2
- function isNotNil(x) {
3
- return x !== null && x !== void 0;
4
- }
5
-
6
- export {
7
- isNotNil
8
- };
9
- //# sourceMappingURL=chunk-BMRTZMRE.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/predicate/isNotNil.ts"],"sourcesContent":["/**\n * Checks if the given value is not null nor undefined.\n *\n * The main use of this function is to be used with TypeScript as a type predicate.\n *\n * @template T - The type of value.\n * @param {T | null | undefined} x - The value to test if it is not null nor undefined.\n * @returns {x is T} True if the value is not null nor undefined, false otherwise.\n *\n * @example\n * // Here the type of `arr` is (number | undefined)[]\n * const arr = [1, undefined, 3];\n * // Here the type of `result` is number[]\n * const result = arr.filter(isNotNil);\n * // result will be [1, 3]\n */\nexport function isNotNil<T>(x: T | null | undefined): x is T {\n return x !== null && x !== undefined;\n}\n"],"mappings":";AAgBO,SAAS,SAAY,GAAiC;AAC3D,SAAO,MAAM,QAAQ,MAAM;AAC7B;","names":[]}