es-toolkit 1.0.3-dev.38 → 1.0.3

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 (470) hide show
  1. package/dist/array/chunk.d.ts +1 -3
  2. package/dist/array/chunk.spec.d.ts +1 -0
  3. package/dist/array/difference.d.ts +1 -3
  4. package/dist/array/difference.spec.d.ts +1 -0
  5. package/dist/array/differenceBy.d.ts +1 -3
  6. package/dist/array/differenceBy.spec.d.ts +1 -0
  7. package/dist/array/differenceWith.d.ts +1 -3
  8. package/dist/array/differenceWith.spec.d.ts +1 -0
  9. package/dist/array/drop.d.ts +1 -3
  10. package/dist/array/drop.spec.d.ts +1 -0
  11. package/dist/array/dropRight.d.ts +1 -3
  12. package/dist/array/dropRight.spec.d.ts +1 -0
  13. package/dist/array/dropRightWhile.d.ts +1 -3
  14. package/dist/array/dropRightWhile.spec.d.ts +1 -0
  15. package/dist/array/dropWhile.d.ts +1 -3
  16. package/dist/array/dropWhile.spec.d.ts +1 -0
  17. package/dist/array/groupBy.d.ts +1 -3
  18. package/dist/array/groupBy.spec.d.ts +1 -0
  19. package/dist/array/index.d.ts +30 -30
  20. package/dist/array/index.js +842 -199
  21. package/dist/array/intersection.d.ts +1 -3
  22. package/dist/array/intersection.spec.d.ts +1 -0
  23. package/dist/array/intersectionBy.d.ts +1 -3
  24. package/dist/array/intersectionBy.spec.d.ts +1 -0
  25. package/dist/array/intersectionWith.d.ts +1 -3
  26. package/dist/array/intersectionWith.spec.d.ts +1 -0
  27. package/dist/array/partition.d.ts +1 -3
  28. package/dist/array/partition.spec.d.ts +1 -0
  29. package/dist/array/sample.d.ts +1 -3
  30. package/dist/array/sample.spec.d.ts +1 -0
  31. package/dist/array/shuffle.d.ts +1 -3
  32. package/dist/array/shuffle.spec.d.ts +1 -0
  33. package/dist/array/take.d.ts +1 -3
  34. package/dist/array/take.spec.d.ts +1 -0
  35. package/dist/array/takeRight.d.ts +1 -3
  36. package/dist/array/takeRight.spec.d.ts +1 -0
  37. package/dist/array/takeRightWhile.d.ts +1 -3
  38. package/dist/array/takeRightWhile.spec.d.ts +1 -0
  39. package/dist/array/takeWhile.d.ts +1 -3
  40. package/dist/array/takeWhile.spec.d.ts +1 -0
  41. package/dist/array/union.d.ts +1 -3
  42. package/dist/array/union.spec.d.ts +1 -0
  43. package/dist/array/unionBy.d.ts +1 -3
  44. package/dist/array/unionBy.spec.d.ts +1 -0
  45. package/dist/array/unionWith.d.ts +1 -3
  46. package/dist/array/unionWith.spec.d.ts +1 -0
  47. package/dist/array/uniq.d.ts +1 -3
  48. package/dist/array/uniq.spec.d.ts +1 -0
  49. package/dist/array/uniqBy.d.ts +1 -3
  50. package/dist/array/uniqBy.spec.d.ts +1 -0
  51. package/dist/array/uniqWith.d.ts +1 -3
  52. package/dist/array/uniqWith.spec.d.ts +1 -0
  53. package/dist/array/xor.d.ts +1 -3
  54. package/dist/array/xor.spec.d.ts +1 -0
  55. package/dist/array/xorBy.d.ts +1 -3
  56. package/dist/array/xorBy.spec.d.ts +1 -0
  57. package/dist/array/xorWith.d.ts +1 -3
  58. package/dist/array/xorWith.spec.d.ts +1 -0
  59. package/dist/array/zip.d.ts +4 -6
  60. package/dist/array/zip.spec.d.ts +1 -0
  61. package/dist/array/zipWith.d.ts +4 -6
  62. package/dist/array/zipWith.spec.d.ts +1 -0
  63. package/dist/function/debounce.d.ts +1 -3
  64. package/dist/function/debounce.spec.d.ts +1 -0
  65. package/dist/function/index.d.ts +3 -3
  66. package/dist/function/index.js +78 -47
  67. package/dist/function/once.d.ts +1 -3
  68. package/dist/function/once.spec.d.ts +1 -0
  69. package/dist/function/throttle.d.ts +1 -3
  70. package/dist/function/throttle.spec.d.ts +1 -0
  71. package/dist/index.d.ts +6 -45
  72. package/dist/index.js +1271 -288
  73. package/dist/math/clamp.d.ts +2 -4
  74. package/dist/math/clamp.spec.d.ts +1 -0
  75. package/dist/math/index.d.ts +3 -3
  76. package/dist/math/index.js +132 -41
  77. package/dist/math/round.d.ts +1 -3
  78. package/dist/math/round.spec.d.ts +1 -0
  79. package/dist/math/sum.d.ts +1 -3
  80. package/dist/math/sum.spec.d.ts +1 -0
  81. package/dist/object/index.d.ts +4 -4
  82. package/dist/object/index.js +256 -62
  83. package/dist/object/omit.d.ts +1 -3
  84. package/dist/object/omit.spec.d.ts +1 -0
  85. package/dist/object/omitBy.d.ts +1 -3
  86. package/dist/object/omitBy.spec.d.ts +1 -0
  87. package/dist/object/pick.d.ts +1 -3
  88. package/dist/object/pick.spec.d.ts +1 -0
  89. package/dist/object/pickBy.d.ts +1 -3
  90. package/dist/object/pickBy.spec.d.ts +1 -0
  91. package/dist/predicate/index.d.ts +4 -4
  92. package/dist/predicate/index.js +84 -42
  93. package/dist/predicate/isNil.d.ts +1 -3
  94. package/dist/predicate/isNil.spec.d.ts +1 -0
  95. package/dist/predicate/isNotNil.d.ts +1 -3
  96. package/dist/predicate/isNotNil.spec.d.ts +1 -0
  97. package/dist/predicate/isNull.d.ts +1 -3
  98. package/dist/predicate/isNull.spec.d.ts +1 -0
  99. package/dist/predicate/isUndefined.d.ts +1 -3
  100. package/dist/predicate/isUndefined.spec.d.ts +1 -0
  101. package/dist/promise/delay.d.ts +1 -3
  102. package/dist/promise/delay.spec.d.ts +1 -0
  103. package/dist/promise/index.d.ts +1 -1
  104. package/dist/promise/index.js +23 -31
  105. package/esm/_virtual/_rollupPluginBabelHelpers.mjs +163 -0
  106. package/esm/array/_virtual/_rollupPluginBabelHelpers.mjs +78 -0
  107. package/{dist/array/chunk.d.mts → esm/array/chunk.mjs} +13 -1
  108. package/{dist/array/difference.d.mts → esm/array/difference.mjs} +12 -8
  109. package/{dist/array/differenceBy.d.mts → esm/array/differenceBy.mjs} +17 -10
  110. package/{dist/array/differenceWith.d.mts → esm/array/differenceWith.mjs} +12 -6
  111. package/{dist/array/drop.d.mts → esm/array/drop.mjs} +6 -4
  112. package/{dist/array/dropRight.d.mts → esm/array/dropRight.mjs} +5 -3
  113. package/{dist/array/dropRightWhile.d.mts → esm/array/dropRightWhile.mjs} +11 -5
  114. package/{dist/array/dropWhile.d.mts → esm/array/dropWhile.mjs} +10 -5
  115. package/{dist/array/groupBy.d.mts → esm/array/groupBy.mjs} +26 -5
  116. package/{dist/array/intersection.d.mts → esm/array/intersection.mjs} +8 -4
  117. package/{dist/array/intersectionBy.d.mts → esm/array/intersectionBy.mjs} +12 -5
  118. package/{dist/array/intersectionWith.d.mts → esm/array/intersectionWith.mjs} +12 -6
  119. package/{dist/array/partition.d.mts → esm/array/partition.mjs} +30 -8
  120. package/{dist/array/sample.d.mts → esm/array/sample.mjs} +5 -2
  121. package/{dist/array/shuffle.d.mts → esm/array/shuffle.mjs} +13 -2
  122. package/{dist/array/take.d.mts → esm/array/take.mjs} +7 -5
  123. package/{dist/array/takeRight.d.mts → esm/array/takeRight.mjs} +10 -5
  124. package/{dist/array/takeRightWhile.d.mts → esm/array/takeRightWhile.mjs} +12 -5
  125. package/{dist/array/takeWhile.d.mts → esm/array/takeWhile.mjs} +21 -1
  126. package/{dist/array/union.d.mts → esm/array/union.mjs} +7 -3
  127. package/{dist/array/unionBy.d.mts → esm/array/unionBy.mjs} +16 -4
  128. package/{dist/array/unionWith.d.mts → esm/array/unionWith.mjs} +8 -4
  129. package/esm/array/uniq.mjs +37 -0
  130. package/{dist/array/uniqBy.d.mts → esm/array/uniqBy.mjs} +7 -1
  131. package/esm/array/uniqWith.mjs +39 -0
  132. package/{dist/array/xor.d.mts → esm/array/xor.mjs} +10 -4
  133. package/{dist/array/xorBy.d.mts → esm/array/xorBy.mjs} +13 -5
  134. package/{dist/array/xorWith.d.mts → esm/array/xorWith.mjs} +13 -5
  135. package/esm/array/zip.mjs +52 -0
  136. package/{dist/array/zipWith.d.mts → esm/array/zipWith.mjs} +26 -6
  137. package/{dist/function/debounce.d.mts → esm/function/debounce.mjs} +18 -5
  138. package/{dist/function/once.d.mts → esm/function/once.mjs} +14 -2
  139. package/{dist/function/throttle.d.mts → esm/function/throttle.mjs} +13 -3
  140. package/esm/math/_virtual/_rollupPluginBabelHelpers.mjs +66 -0
  141. package/{dist/math/clamp.d.mts → esm/math/clamp.mjs} +7 -2
  142. package/{dist/math/round.d.mts → esm/math/round.mjs} +7 -3
  143. package/esm/math/sum.mjs +33 -0
  144. package/esm/object/_virtual/_rollupPluginBabelHelpers.mjs +151 -0
  145. package/{dist/object/omit.d.mts → esm/object/omit.mjs} +19 -2
  146. package/{dist/object/omitBy.d.mts → esm/object/omitBy.mjs} +18 -4
  147. package/{dist/object/pick.d.mts → esm/object/pick.mjs} +19 -2
  148. package/{dist/object/pickBy.d.mts → esm/object/pickBy.mjs} +18 -4
  149. package/{dist/predicate/isNil.d.mts → esm/predicate/isNil.mjs} +6 -4
  150. package/{dist/predicate/isNotNil.d.mts → esm/predicate/isNotNil.mjs} +4 -2
  151. package/{dist/predicate/isNull.d.mts → esm/predicate/isNull.mjs} +6 -4
  152. package/{dist/predicate/isUndefined.d.mts → esm/predicate/isUndefined.mjs} +6 -4
  153. package/{dist/promise/delay.d.mts → esm/promise/delay.mjs} +8 -4
  154. package/package.json +49 -120
  155. package/dist/array/chunk.js +0 -43
  156. package/dist/array/chunk.js.map +0 -1
  157. package/dist/array/chunk.mjs +0 -8
  158. package/dist/array/chunk.mjs.map +0 -1
  159. package/dist/array/difference.js +0 -35
  160. package/dist/array/difference.js.map +0 -1
  161. package/dist/array/difference.mjs +0 -8
  162. package/dist/array/difference.mjs.map +0 -1
  163. package/dist/array/differenceBy.js +0 -36
  164. package/dist/array/differenceBy.js.map +0 -1
  165. package/dist/array/differenceBy.mjs +0 -8
  166. package/dist/array/differenceBy.mjs.map +0 -1
  167. package/dist/array/differenceWith.js +0 -37
  168. package/dist/array/differenceWith.js.map +0 -1
  169. package/dist/array/differenceWith.mjs +0 -8
  170. package/dist/array/differenceWith.mjs.map +0 -1
  171. package/dist/array/drop.js +0 -33
  172. package/dist/array/drop.js.map +0 -1
  173. package/dist/array/drop.mjs +0 -8
  174. package/dist/array/drop.mjs.map +0 -1
  175. package/dist/array/dropRight.js +0 -33
  176. package/dist/array/dropRight.js.map +0 -1
  177. package/dist/array/dropRight.mjs +0 -8
  178. package/dist/array/dropRight.mjs.map +0 -1
  179. package/dist/array/dropRightWhile.js +0 -43
  180. package/dist/array/dropRightWhile.js.map +0 -1
  181. package/dist/array/dropRightWhile.mjs +0 -9
  182. package/dist/array/dropRightWhile.mjs.map +0 -1
  183. package/dist/array/dropWhile.js +0 -34
  184. package/dist/array/dropWhile.js.map +0 -1
  185. package/dist/array/dropWhile.mjs +0 -8
  186. package/dist/array/dropWhile.mjs.map +0 -1
  187. package/dist/array/groupBy.js +0 -41
  188. package/dist/array/groupBy.js.map +0 -1
  189. package/dist/array/groupBy.mjs +0 -8
  190. package/dist/array/groupBy.mjs.map +0 -1
  191. package/dist/array/index.js.map +0 -1
  192. package/dist/array/index.mjs +0 -125
  193. package/dist/array/index.mjs.map +0 -1
  194. package/dist/array/intersection.js +0 -35
  195. package/dist/array/intersection.js.map +0 -1
  196. package/dist/array/intersection.mjs +0 -8
  197. package/dist/array/intersection.mjs.map +0 -1
  198. package/dist/array/intersectionBy.js +0 -36
  199. package/dist/array/intersectionBy.js.map +0 -1
  200. package/dist/array/intersectionBy.mjs +0 -8
  201. package/dist/array/intersectionBy.mjs.map +0 -1
  202. package/dist/array/intersectionWith.js +0 -37
  203. package/dist/array/intersectionWith.js.map +0 -1
  204. package/dist/array/intersectionWith.mjs +0 -8
  205. package/dist/array/intersectionWith.mjs.map +0 -1
  206. package/dist/array/partition.js +0 -42
  207. package/dist/array/partition.js.map +0 -1
  208. package/dist/array/partition.mjs +0 -8
  209. package/dist/array/partition.mjs.map +0 -1
  210. package/dist/array/sample.js +0 -34
  211. package/dist/array/sample.js.map +0 -1
  212. package/dist/array/sample.mjs +0 -8
  213. package/dist/array/sample.mjs.map +0 -1
  214. package/dist/array/shuffle.js +0 -37
  215. package/dist/array/shuffle.js.map +0 -1
  216. package/dist/array/shuffle.mjs +0 -8
  217. package/dist/array/shuffle.mjs.map +0 -1
  218. package/dist/array/take.js +0 -33
  219. package/dist/array/take.js.map +0 -1
  220. package/dist/array/take.mjs +0 -8
  221. package/dist/array/take.mjs.map +0 -1
  222. package/dist/array/takeRight.js +0 -36
  223. package/dist/array/takeRight.js.map +0 -1
  224. package/dist/array/takeRight.mjs +0 -8
  225. package/dist/array/takeRight.mjs.map +0 -1
  226. package/dist/array/takeRightWhile.js +0 -38
  227. package/dist/array/takeRightWhile.js.map +0 -1
  228. package/dist/array/takeRightWhile.mjs +0 -8
  229. package/dist/array/takeRightWhile.mjs.map +0 -1
  230. package/dist/array/takeWhile.js +0 -40
  231. package/dist/array/takeWhile.js.map +0 -1
  232. package/dist/array/takeWhile.mjs +0 -8
  233. package/dist/array/takeWhile.mjs.map +0 -1
  234. package/dist/array/union.js +0 -47
  235. package/dist/array/union.js.map +0 -1
  236. package/dist/array/union.mjs +0 -9
  237. package/dist/array/union.mjs.map +0 -1
  238. package/dist/array/unionBy.js +0 -40
  239. package/dist/array/unionBy.js.map +0 -1
  240. package/dist/array/unionBy.mjs +0 -8
  241. package/dist/array/unionBy.mjs.map +0 -1
  242. package/dist/array/unionWith.js +0 -47
  243. package/dist/array/unionWith.js.map +0 -1
  244. package/dist/array/unionWith.mjs +0 -9
  245. package/dist/array/unionWith.mjs.map +0 -1
  246. package/dist/array/uniq.d.mts +0 -17
  247. package/dist/array/uniq.js +0 -40
  248. package/dist/array/uniq.js.map +0 -1
  249. package/dist/array/uniq.mjs +0 -8
  250. package/dist/array/uniq.mjs.map +0 -1
  251. package/dist/array/uniqBy.js +0 -47
  252. package/dist/array/uniqBy.js.map +0 -1
  253. package/dist/array/uniqBy.mjs +0 -9
  254. package/dist/array/uniqBy.mjs.map +0 -1
  255. package/dist/array/uniqWith.d.mts +0 -14
  256. package/dist/array/uniqWith.js +0 -40
  257. package/dist/array/uniqWith.js.map +0 -1
  258. package/dist/array/uniqWith.mjs +0 -8
  259. package/dist/array/uniqWith.mjs.map +0 -1
  260. package/dist/array/xor.js +0 -66
  261. package/dist/array/xor.js.map +0 -1
  262. package/dist/array/xor.mjs +0 -12
  263. package/dist/array/xor.mjs.map +0 -1
  264. package/dist/array/xorBy.js +0 -65
  265. package/dist/array/xorBy.js.map +0 -1
  266. package/dist/array/xorBy.mjs +0 -11
  267. package/dist/array/xorBy.mjs.map +0 -1
  268. package/dist/array/xorWith.js +0 -72
  269. package/dist/array/xorWith.js.map +0 -1
  270. package/dist/array/xorWith.mjs +0 -12
  271. package/dist/array/xorWith.mjs.map +0 -1
  272. package/dist/array/zip.d.mts +0 -27
  273. package/dist/array/zip.js +0 -42
  274. package/dist/array/zip.js.map +0 -1
  275. package/dist/array/zip.mjs +0 -8
  276. package/dist/array/zip.mjs.map +0 -1
  277. package/dist/array/zipWith.js +0 -41
  278. package/dist/array/zipWith.js.map +0 -1
  279. package/dist/array/zipWith.mjs +0 -8
  280. package/dist/array/zipWith.mjs.map +0 -1
  281. package/dist/chunk-2KXLTAVK.mjs +0 -16
  282. package/dist/chunk-2KXLTAVK.mjs.map +0 -1
  283. package/dist/chunk-2MM5EJJX.mjs +0 -21
  284. package/dist/chunk-2MM5EJJX.mjs.map +0 -1
  285. package/dist/chunk-2VB6XU3I.mjs +0 -12
  286. package/dist/chunk-2VB6XU3I.mjs.map +0 -1
  287. package/dist/chunk-35TWSMYS.mjs +0 -19
  288. package/dist/chunk-35TWSMYS.mjs.map +0 -1
  289. package/dist/chunk-5JWSGT4R.mjs +0 -18
  290. package/dist/chunk-5JWSGT4R.mjs.map +0 -1
  291. package/dist/chunk-724PNXPR.mjs +0 -13
  292. package/dist/chunk-724PNXPR.mjs.map +0 -1
  293. package/dist/chunk-7GWOR247.mjs +0 -11
  294. package/dist/chunk-7GWOR247.mjs.map +0 -1
  295. package/dist/chunk-7OZZODAE.mjs +0 -19
  296. package/dist/chunk-7OZZODAE.mjs.map +0 -1
  297. package/dist/chunk-7PPND7QY.mjs +0 -16
  298. package/dist/chunk-7PPND7QY.mjs.map +0 -1
  299. package/dist/chunk-7SJHJHBN.mjs +0 -11
  300. package/dist/chunk-7SJHJHBN.mjs.map +0 -1
  301. package/dist/chunk-ARWKEQMQ.mjs +0 -19
  302. package/dist/chunk-ARWKEQMQ.mjs.map +0 -1
  303. package/dist/chunk-ARZ5BDR6.mjs +0 -1
  304. package/dist/chunk-ARZ5BDR6.mjs.map +0 -1
  305. package/dist/chunk-BAJC3BM7.mjs +0 -12
  306. package/dist/chunk-BAJC3BM7.mjs.map +0 -1
  307. package/dist/chunk-EAI4DDCQ.mjs +0 -16
  308. package/dist/chunk-EAI4DDCQ.mjs.map +0 -1
  309. package/dist/chunk-EAI6NLXI.mjs +0 -12
  310. package/dist/chunk-EAI6NLXI.mjs.map +0 -1
  311. package/dist/chunk-EJGAXTF7.mjs +0 -1
  312. package/dist/chunk-EJGAXTF7.mjs.map +0 -1
  313. package/dist/chunk-FUWEG5ZM.mjs +0 -9
  314. package/dist/chunk-FUWEG5ZM.mjs.map +0 -1
  315. package/dist/chunk-GJM7F3TH.mjs +0 -13
  316. package/dist/chunk-GJM7F3TH.mjs.map +0 -1
  317. package/dist/chunk-HQF6OFGM.mjs +0 -9
  318. package/dist/chunk-HQF6OFGM.mjs.map +0 -1
  319. package/dist/chunk-IJLQVGW4.mjs +0 -1
  320. package/dist/chunk-IJLQVGW4.mjs.map +0 -1
  321. package/dist/chunk-J3NTLMAE.mjs +0 -10
  322. package/dist/chunk-J3NTLMAE.mjs.map +0 -1
  323. package/dist/chunk-JMLFPGZ3.mjs +0 -13
  324. package/dist/chunk-JMLFPGZ3.mjs.map +0 -1
  325. package/dist/chunk-L4Y3G6AJ.mjs +0 -23
  326. package/dist/chunk-L4Y3G6AJ.mjs.map +0 -1
  327. package/dist/chunk-LAZNLIBJ.mjs +0 -10
  328. package/dist/chunk-LAZNLIBJ.mjs.map +0 -1
  329. package/dist/chunk-MAJSPFA6.mjs +0 -1
  330. package/dist/chunk-MAJSPFA6.mjs.map +0 -1
  331. package/dist/chunk-NEMQJ2GF.mjs +0 -18
  332. package/dist/chunk-NEMQJ2GF.mjs.map +0 -1
  333. package/dist/chunk-NK2262VG.mjs +0 -9
  334. package/dist/chunk-NK2262VG.mjs.map +0 -1
  335. package/dist/chunk-NSYWEYWT.mjs +0 -13
  336. package/dist/chunk-NSYWEYWT.mjs.map +0 -1
  337. package/dist/chunk-NYVT33DR.mjs +0 -9
  338. package/dist/chunk-NYVT33DR.mjs.map +0 -1
  339. package/dist/chunk-OBMK7JO2.mjs +0 -13
  340. package/dist/chunk-OBMK7JO2.mjs.map +0 -1
  341. package/dist/chunk-PTQLD7TG.mjs +0 -11
  342. package/dist/chunk-PTQLD7TG.mjs.map +0 -1
  343. package/dist/chunk-PWMHSN27.mjs +0 -14
  344. package/dist/chunk-PWMHSN27.mjs.map +0 -1
  345. package/dist/chunk-QRQPLMV4.mjs +0 -16
  346. package/dist/chunk-QRQPLMV4.mjs.map +0 -1
  347. package/dist/chunk-R5DNKXDI.mjs +0 -21
  348. package/dist/chunk-R5DNKXDI.mjs.map +0 -1
  349. package/dist/chunk-RK6PRCEJ.mjs +0 -12
  350. package/dist/chunk-RK6PRCEJ.mjs.map +0 -1
  351. package/dist/chunk-RLDY4N3Q.mjs +0 -13
  352. package/dist/chunk-RLDY4N3Q.mjs.map +0 -1
  353. package/dist/chunk-RU3RXBUC.mjs +0 -17
  354. package/dist/chunk-RU3RXBUC.mjs.map +0 -1
  355. package/dist/chunk-S767XFOS.mjs +0 -10
  356. package/dist/chunk-S767XFOS.mjs.map +0 -1
  357. package/dist/chunk-SGSQKXDO.mjs +0 -15
  358. package/dist/chunk-SGSQKXDO.mjs.map +0 -1
  359. package/dist/chunk-SYQTG4N4.mjs +0 -1
  360. package/dist/chunk-SYQTG4N4.mjs.map +0 -1
  361. package/dist/chunk-T5JCRGXA.mjs +0 -1
  362. package/dist/chunk-T5JCRGXA.mjs.map +0 -1
  363. package/dist/chunk-TOLR2FNF.mjs +0 -13
  364. package/dist/chunk-TOLR2FNF.mjs.map +0 -1
  365. package/dist/chunk-UNX3KZO2.mjs +0 -17
  366. package/dist/chunk-UNX3KZO2.mjs.map +0 -1
  367. package/dist/chunk-UZP4YX7I.mjs +0 -17
  368. package/dist/chunk-UZP4YX7I.mjs.map +0 -1
  369. package/dist/chunk-VACGGQOL.mjs +0 -9
  370. package/dist/chunk-VACGGQOL.mjs.map +0 -1
  371. package/dist/chunk-VAKCSKGR.mjs +0 -17
  372. package/dist/chunk-VAKCSKGR.mjs.map +0 -1
  373. package/dist/chunk-VJGGYY4Y.mjs +0 -13
  374. package/dist/chunk-VJGGYY4Y.mjs.map +0 -1
  375. package/dist/chunk-WFQ3LAHQ.mjs +0 -9
  376. package/dist/chunk-WFQ3LAHQ.mjs.map +0 -1
  377. package/dist/chunk-XS4ZPJMT.mjs +0 -21
  378. package/dist/chunk-XS4ZPJMT.mjs.map +0 -1
  379. package/dist/chunk-XW452I77.mjs +0 -16
  380. package/dist/chunk-XW452I77.mjs.map +0 -1
  381. package/dist/chunk-YMNXRH52.mjs +0 -9
  382. package/dist/chunk-YMNXRH52.mjs.map +0 -1
  383. package/dist/chunk-Z4IO7EIH.mjs +0 -16
  384. package/dist/chunk-Z4IO7EIH.mjs.map +0 -1
  385. package/dist/function/debounce.js +0 -47
  386. package/dist/function/debounce.js.map +0 -1
  387. package/dist/function/debounce.mjs +0 -8
  388. package/dist/function/debounce.mjs.map +0 -1
  389. package/dist/function/index.js.map +0 -1
  390. package/dist/function/index.mjs +0 -17
  391. package/dist/function/index.mjs.map +0 -1
  392. package/dist/function/once.js +0 -43
  393. package/dist/function/once.js.map +0 -1
  394. package/dist/function/once.mjs +0 -8
  395. package/dist/function/once.mjs.map +0 -1
  396. package/dist/function/throttle.js +0 -41
  397. package/dist/function/throttle.js.map +0 -1
  398. package/dist/function/throttle.mjs +0 -8
  399. package/dist/function/throttle.mjs.map +0 -1
  400. package/dist/index.js.map +0 -1
  401. package/dist/index.mjs +0 -190
  402. package/dist/index.mjs.map +0 -1
  403. package/dist/math/clamp.js +0 -36
  404. package/dist/math/clamp.js.map +0 -1
  405. package/dist/math/clamp.mjs +0 -8
  406. package/dist/math/clamp.mjs.map +0 -1
  407. package/dist/math/index.js.map +0 -1
  408. package/dist/math/index.mjs +0 -17
  409. package/dist/math/index.mjs.map +0 -1
  410. package/dist/math/round.js +0 -34
  411. package/dist/math/round.js.map +0 -1
  412. package/dist/math/round.mjs +0 -8
  413. package/dist/math/round.mjs.map +0 -1
  414. package/dist/math/sum.d.mts +0 -16
  415. package/dist/math/sum.js +0 -37
  416. package/dist/math/sum.js.map +0 -1
  417. package/dist/math/sum.mjs +0 -8
  418. package/dist/math/sum.mjs.map +0 -1
  419. package/dist/object/index.js.map +0 -1
  420. package/dist/object/index.mjs +0 -21
  421. package/dist/object/index.mjs.map +0 -1
  422. package/dist/object/omit.js +0 -51
  423. package/dist/object/omit.js.map +0 -1
  424. package/dist/object/omit.mjs +0 -8
  425. package/dist/object/omit.mjs.map +0 -1
  426. package/dist/object/omitBy.js +0 -40
  427. package/dist/object/omitBy.js.map +0 -1
  428. package/dist/object/omitBy.mjs +0 -8
  429. package/dist/object/omitBy.mjs.map +0 -1
  430. package/dist/object/pick.js +0 -37
  431. package/dist/object/pick.js.map +0 -1
  432. package/dist/object/pick.mjs +0 -8
  433. package/dist/object/pick.mjs.map +0 -1
  434. package/dist/object/pickBy.js +0 -40
  435. package/dist/object/pickBy.js.map +0 -1
  436. package/dist/object/pickBy.mjs +0 -8
  437. package/dist/object/pickBy.mjs.map +0 -1
  438. package/dist/predicate/index.js.map +0 -1
  439. package/dist/predicate/index.mjs +0 -21
  440. package/dist/predicate/index.mjs.map +0 -1
  441. package/dist/predicate/isNil.js +0 -33
  442. package/dist/predicate/isNil.js.map +0 -1
  443. package/dist/predicate/isNil.mjs +0 -8
  444. package/dist/predicate/isNil.mjs.map +0 -1
  445. package/dist/predicate/isNotNil.js +0 -33
  446. package/dist/predicate/isNotNil.js.map +0 -1
  447. package/dist/predicate/isNotNil.mjs +0 -8
  448. package/dist/predicate/isNotNil.mjs.map +0 -1
  449. package/dist/predicate/isNull.js +0 -33
  450. package/dist/predicate/isNull.js.map +0 -1
  451. package/dist/predicate/isNull.mjs +0 -8
  452. package/dist/predicate/isNull.mjs.map +0 -1
  453. package/dist/predicate/isUndefined.js +0 -33
  454. package/dist/predicate/isUndefined.js.map +0 -1
  455. package/dist/predicate/isUndefined.mjs +0 -8
  456. package/dist/predicate/isUndefined.mjs.map +0 -1
  457. package/dist/promise/delay.js +0 -35
  458. package/dist/promise/delay.js.map +0 -1
  459. package/dist/promise/delay.mjs +0 -8
  460. package/dist/promise/delay.mjs.map +0 -1
  461. package/dist/promise/index.js.map +0 -1
  462. package/dist/promise/index.mjs +0 -9
  463. package/dist/promise/index.mjs.map +0 -1
  464. /package/{dist/array/index.d.mts → esm/array/index.mjs} +0 -0
  465. /package/{dist/function/index.d.mts → esm/function/index.mjs} +0 -0
  466. /package/{dist/index.d.mts → esm/index.mjs} +0 -0
  467. /package/{dist/math/index.d.mts → esm/math/index.mjs} +0 -0
  468. /package/{dist/object/index.d.mts → esm/object/index.mjs} +0 -0
  469. /package/{dist/predicate/index.d.mts → esm/predicate/index.mjs} +0 -0
  470. /package/{dist/promise/index.d.mts → esm/promise/index.mjs} +0 -0
@@ -15,6 +15,4 @@
15
15
  * const result = intersection(array1, array2);
16
16
  * // result will be [3, 4, 5] since these elements are in both arrays.
17
17
  */
18
- declare function intersection<T>(firstArr: T[], secondArr: T[]): T[];
19
-
20
- export { intersection };
18
+ export declare function intersection<T>(firstArr: T[], secondArr: T[]): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -18,6 +18,4 @@
18
18
  * const result = intersectionBy(array1, array2, mapper);
19
19
  * // result will be [{ id: 2 }] since only this element has a matching id in both arrays.
20
20
  */
21
- declare function intersectionBy<T, U>(firstArr: T[], secondArr: T[], mapper: (item: T) => U): T[];
22
-
23
- export { intersectionBy };
21
+ export declare function intersectionBy<T, U>(firstArr: T[], secondArr: T[], mapper: (item: T) => U): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -19,6 +19,4 @@
19
19
  * const result = intersectionWith(array1, array2, areItemsEqual);
20
20
  * // result will be [{ id: 2 }] since this element has a matching id in both arrays.
21
21
  */
22
- declare function intersectionWith<T>(firstArr: T[], secondArr: T[], areItemsEqual: (x: T, y: T) => boolean): T[];
23
-
24
- export { intersectionWith };
22
+ export declare function intersectionWith<T>(firstArr: T[], secondArr: T[], areItemsEqual: (x: T, y: T) => boolean): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -19,6 +19,4 @@
19
19
  * const [even, odd] = partition(array, isEven);
20
20
  * // even will be [2, 4], and odd will be [1, 3, 5]
21
21
  */
22
- declare function partition<T>(arr: T[], isInTruthy: (value: T) => boolean): [truthy: T[], falsy: T[]];
23
-
24
- export { partition };
22
+ export declare function partition<T>(arr: T[], isInTruthy: (value: T) => boolean): [truthy: T[], falsy: T[]];
@@ -0,0 +1 @@
1
+ export {};
@@ -11,6 +11,4 @@
11
11
  * const randomElement = sample(array);
12
12
  * // randomElement will be one of the elements from the array, selected randomly.
13
13
  */
14
- declare function sample<T>(arr: T[]): T;
15
-
16
- export { sample };
14
+ export declare function sample<T>(arr: T[]): T;
@@ -0,0 +1 @@
1
+ export {};
@@ -11,6 +11,4 @@
11
11
  * const shuffledArray = shuffle(array);
12
12
  * // shuffledArray will be a new array with elements of array in random order, e.g., [3, 1, 4, 5, 2]
13
13
  */
14
- declare function shuffle<T>(arr: T[]): T[];
15
-
16
- export { shuffle };
14
+ export declare function shuffle<T>(arr: T[]): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -20,6 +20,4 @@
20
20
  * // Returns [1, 2, 3]
21
21
  * take([1, 2, 3], 5);
22
22
  */
23
- declare function take<T>(arr: T[], count: number): T[];
24
-
25
- export { take };
23
+ export declare function take<T>(arr: T[], count: number): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -18,6 +18,4 @@
18
18
  * // Returns [1, 2, 3]
19
19
  * takeRight([1, 2, 3], 5);
20
20
  */
21
- declare function takeRight<T>(arr: T[], count: number): T[];
22
-
23
- export { takeRight };
21
+ export declare function takeRight<T>(arr: T[], count: number): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -15,6 +15,4 @@
15
15
  * // Returns []
16
16
  * takeRightWhile([1, 2, 3], n => n > 3);
17
17
  */
18
- declare function takeRightWhile<T>(arr: T[], shouldContinueTaking: (item: T) => boolean): T[];
19
-
20
- export { takeRightWhile };
18
+ export declare function takeRightWhile<T>(arr: T[], shouldContinueTaking: (item: T) => boolean): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -16,6 +16,4 @@
16
16
  * // Returns []
17
17
  * takeWhile([1, 2, 3, 4], x => x > 3);
18
18
  */
19
- declare function takeWhile<T>(arr: T[], shouldContinueTaking: (element: T) => boolean): T[];
20
-
21
- export { takeWhile };
19
+ export declare function takeWhile<T>(arr: T[], shouldContinueTaking: (element: T) => boolean): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -14,6 +14,4 @@
14
14
  * const result = union(array1, array2);
15
15
  * // result will be [1, 2, 3, 4, 5]
16
16
  */
17
- declare function union<T>(arr1: T[], arr2: T[]): T[];
18
-
19
- export { union };
17
+ export declare function union<T>(arr1: T[], arr2: T[]): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -18,6 +18,4 @@
18
18
  * unionBy([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], idMapper);
19
19
  * // Returns [{ id: 1 }, { id: 2 }, { id: 3 }]
20
20
  */
21
- declare function unionBy<T, U>(arr1: T[], arr2: T[], mapper: (item: T) => U): T[];
22
-
23
- export { unionBy };
21
+ export declare function unionBy<T, U>(arr1: T[], arr2: T[], mapper: (item: T) => U): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -17,6 +17,4 @@
17
17
  * const result = unionWith(array1, array2, areItemsEqual);
18
18
  * // result will be [{ id: 1 }, { id: 2 }, { id: 3 }] since { id: 2 } is considered equal in both arrays
19
19
  */
20
- declare function unionWith<T>(arr1: T[], arr2: T[], areItemsEqual: (item1: T, item2: T) => boolean): T[];
21
-
22
- export { unionWith };
20
+ export declare function unionWith<T>(arr1: T[], arr2: T[], areItemsEqual: (item1: T, item2: T) => boolean): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -12,6 +12,4 @@
12
12
  * const result = uniq(array);
13
13
  * // result will be [1, 2, 3, 4, 5]
14
14
  */
15
- declare function uniq<T>(arr: T[]): T[];
16
-
17
- export { uniq };
15
+ export declare function uniq<T>(arr: T[]): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,4 @@
9
9
  * // [1.2, 2.1, 3.3, 5.7, 7.19]
10
10
  * ```
11
11
  */
12
- declare function uniqBy<T, U>(arr: T[], converter: (item: T) => U): T[];
13
-
14
- export { uniqBy };
12
+ export declare function uniqBy<T, U>(arr: T[], converter: (item: T) => U): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,4 @@
9
9
  * // [1, 2, 3, 5, 7]
10
10
  * ```
11
11
  */
12
- declare function uniqWith<T>(arr: T[], areItemsEqual: (item1: T, item2: T) => boolean): T[];
13
-
14
- export { uniqWith };
12
+ export declare function uniqWith<T>(arr: T[], areItemsEqual: (item1: T, item2: T) => boolean): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -14,6 +14,4 @@
14
14
  * // Returns ['a', 'c']
15
15
  * xor(['a', 'b'], ['b', 'c']);
16
16
  */
17
- declare function xor<T>(arr1: T[], arr2: T[]): T[];
18
-
19
- export { xor };
17
+ export declare function xor<T>(arr1: T[], arr2: T[]): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -17,6 +17,4 @@
17
17
  * xorBy([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], idMapper);
18
18
  * // Returns [{ id: 1 }, { id: 3 }]
19
19
  */
20
- declare function xorBy<T, U>(arr1: T[], arr2: T[], mapper: (item: T) => U): T[];
21
-
22
- export { xorBy };
20
+ export declare function xorBy<T, U>(arr1: T[], arr2: T[], mapper: (item: T) => U): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -16,6 +16,4 @@
16
16
  * xorWith([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], areObjectsEqual);
17
17
  * // Returns [{ id: 1 }, { id: 3 }]
18
18
  */
19
- declare function xorWith<T>(arr1: T[], arr2: T[], areElementsEqual: (item1: T, item2: T) => boolean): T[];
20
-
21
- export { xorWith };
19
+ export declare function xorWith<T>(arr1: T[], arr2: T[], areElementsEqual: (item1: T, item2: T) => boolean): T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -19,9 +19,7 @@
19
19
  * const result2 = zip(arr1, arr2, arr3);
20
20
  * // result2 will be [[1, 'a', true], [2, 'b', false], [3, 'c', undefined]]
21
21
  */
22
- declare function zip<T>(arr1: T[]): Array<[T]>;
23
- declare function zip<T, U>(arr1: T[], arr2: U[]): Array<[T, U]>;
24
- declare function zip<T, U, V>(arr1: T[], arr2: U[], arr3: V[]): Array<[T, U, V]>;
25
- declare function zip<T, U, V, W>(arr1: T[], arr2: U[], arr3: V[], arr4: W[]): Array<[T, U, V, W]>;
26
-
27
- export { zip };
22
+ export declare function zip<T>(arr1: T[]): [T][];
23
+ export declare function zip<T, U>(arr1: T[], arr2: U[]): [T, U][];
24
+ export declare function zip<T, U, V>(arr1: T[], arr2: U[], arr3: V[]): [T, U, V][];
25
+ export declare function zip<T, U, V, W>(arr1: T[], arr2: U[], arr3: V[], arr4: W[]): [T, U, V, W][];
@@ -0,0 +1 @@
1
+ export {};
@@ -26,9 +26,7 @@
26
26
  * const result = zipWith(arr1, arr2, arr3, (a, b, c) => `${a}${b}${c}`);
27
27
  * // result will be [`135`, `246`]
28
28
  */
29
- declare function zipWith<T, R>(arr1: T[], combine: (item: T) => R): R[];
30
- declare function zipWith<T, U, R>(arr1: T[], arr2: U[], combine: (item1: T, item2: U) => R): R[];
31
- declare function zipWith<T, U, V, R>(arr1: T[], arr2: U[], arr3: V[], combine: (item1: T, item2: U, item3: V) => R): R[];
32
- declare function zipWith<T, U, V, W, R>(arr1: T[], arr2: U[], arr3: V[], arr4: W[], combine: (item1: T, item2: U, item3: V, item4: W) => R): R[];
33
-
34
- export { zipWith };
29
+ export declare function zipWith<T, R>(arr1: T[], combine: (item: T) => R): R[];
30
+ export declare function zipWith<T, U, R>(arr1: T[], arr2: U[], combine: (item1: T, item2: U) => R): R[];
31
+ export declare function zipWith<T, U, V, R>(arr1: T[], arr2: U[], arr3: V[], combine: (item1: T, item2: U, item3: V) => R): R[];
32
+ export declare function zipWith<T, U, V, W, R>(arr1: T[], arr2: U[], arr3: V[], arr4: W[], combine: (item1: T, item2: U, item3: V, item4: W) => R): R[];
@@ -0,0 +1 @@
1
+ export {};
@@ -18,9 +18,7 @@
18
18
  * // Will not log anything as the previous call is canceled
19
19
  * debouncedFunction.cancel();
20
20
  */
21
- declare function debounce(func: () => void, debounceMs: number): {
21
+ export declare function debounce(func: () => void, debounceMs: number): {
22
22
  (): void;
23
23
  cancel: () => void;
24
24
  };
25
-
26
- export { debounce };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,3 @@
1
- export { debounce } from './debounce.js';
2
- export { once } from './once.js';
3
- export { throttle } from './throttle.js';
1
+ export { debounce } from './debounce';
2
+ export { once } from './once';
3
+ export { throttle } from './throttle';
@@ -1,43 +1,38 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
19
2
 
20
- // src/function/index.ts
21
- var function_exports = {};
22
- __export(function_exports, {
23
- debounce: () => debounce,
24
- once: () => once,
25
- throttle: () => throttle
26
- });
27
- module.exports = __toCommonJS(function_exports);
3
+ Object.defineProperty(exports, '__esModule', { value: true });
28
4
 
29
- // src/function/debounce.ts
5
+ /**
6
+ * Creates a debounced function that delays invoking the provided function until after `debounceMs` milliseconds
7
+ * have elapsed since the last time the debounced function was invoked. The debounced function also has a `cancel`
8
+ * method to cancel any pending execution.
9
+ *
10
+ * @param {() => void} func - The function to debounce.
11
+ * @param {number} debounceMs - The number of milliseconds to delay.
12
+ * @returns {{ (): void; cancel: () => void }} A new debounced function with a `cancel` method.
13
+ *
14
+ * @example
15
+ * const debouncedFunction = debounce(() => {
16
+ * console.log('Function executed');
17
+ * }, 1000);
18
+ *
19
+ * // Will log 'Function executed' after 1 second if not called again in that time
20
+ * debouncedFunction();
21
+ *
22
+ * // Will not log anything as the previous call is canceled
23
+ * debouncedFunction.cancel();
24
+ */
30
25
  function debounce(func, debounceMs) {
31
- let timeoutId = null;
32
- const debounced = function() {
26
+ var timeoutId = null;
27
+ var debounced = function debounced() {
33
28
  if (timeoutId != null) {
34
29
  clearTimeout(timeoutId);
35
30
  }
36
- timeoutId = setTimeout(() => {
31
+ timeoutId = setTimeout(function () {
37
32
  func();
38
33
  }, debounceMs);
39
34
  };
40
- debounced.cancel = function() {
35
+ debounced.cancel = function () {
41
36
  if (timeoutId != null) {
42
37
  clearTimeout(timeoutId);
43
38
  }
@@ -45,26 +40,65 @@ function debounce(func, debounceMs) {
45
40
  return debounced;
46
41
  }
47
42
 
48
- // src/function/once.ts
43
+ /**
44
+ * Creates a function that is restricted to invoking the provided function `func` once.
45
+ * Repeated calls to the function will return the value from the first invocation.
46
+ *
47
+ * @param {F} func - The function to restrict.
48
+ * @returns {F} A new function that invokes `func` once and caches the result.
49
+ *
50
+ * @example
51
+ * const initialize = once(() => {
52
+ * console.log('Initialized!');
53
+ * return true;
54
+ * });
55
+ *
56
+ * initialize(); // Logs: 'Initialized!' and returns true
57
+ * initialize(); // Returns true without logging
58
+ */
49
59
  function once(func) {
50
- let called = false;
51
- let cache;
52
- return function() {
60
+ var called = false;
61
+ var cache;
62
+ return function () {
53
63
  if (called) {
54
64
  return cache;
55
65
  }
56
- const result = func();
66
+ var result = func();
57
67
  called = true;
58
68
  cache = result;
59
69
  return result;
60
70
  };
61
71
  }
62
72
 
63
- // src/function/throttle.ts
73
+ /**
74
+ * Creates a throttled function that only invokes the provided function at most once
75
+ * per every `throttleMs` milliseconds. Subsequent calls to the throttled function
76
+ * within the wait time will not trigger the execution of the original function.
77
+ *
78
+ * @param {() => void} func - The function to throttle.
79
+ * @param {number} throttleMs - The number of milliseconds to throttle executions to.
80
+ * @returns {() => void} A new throttled function.
81
+ *
82
+ * @example
83
+ * const throttledFunction = throttle(() => {
84
+ * console.log('Function executed');
85
+ * }, 1000);
86
+ *
87
+ * // Will log 'Function executed' immediately
88
+ * throttledFunction();
89
+ *
90
+ * // Will not log anything as it is within the throttle time
91
+ * throttledFunction();
92
+ *
93
+ * // After 1 second
94
+ * setTimeout(() => {
95
+ * throttledFunction(); // Will log 'Function executed'
96
+ * }, 1000);
97
+ */
64
98
  function throttle(func, throttleMs) {
65
- let lastCallTime;
66
- const throttledFunction = function() {
67
- const now = Date.now();
99
+ var lastCallTime;
100
+ var throttledFunction = function throttledFunction() {
101
+ var now = Date.now();
68
102
  if (lastCallTime == null || now - lastCallTime >= throttleMs) {
69
103
  lastCallTime = now;
70
104
  func();
@@ -72,10 +106,7 @@ function throttle(func, throttleMs) {
72
106
  };
73
107
  return throttledFunction;
74
108
  }
75
- // Annotate the CommonJS export names for ESM import in node:
76
- 0 && (module.exports = {
77
- debounce,
78
- once,
79
- throttle
80
- });
81
- //# sourceMappingURL=index.js.map
109
+
110
+ exports.debounce = debounce;
111
+ exports.once = once;
112
+ exports.throttle = throttle;
@@ -14,6 +14,4 @@
14
14
  * initialize(); // Logs: 'Initialized!' and returns true
15
15
  * initialize(); // Returns true without logging
16
16
  */
17
- declare function once<F extends () => any>(func: F): F;
18
-
19
- export { once };
17
+ export declare function once<F extends () => any>(func: F): F;
@@ -0,0 +1 @@
1
+ export {};
@@ -23,6 +23,4 @@
23
23
  * throttledFunction(); // Will log 'Function executed'
24
24
  * }, 1000);
25
25
  */
26
- declare function throttle(func: () => void, throttleMs: number): () => void;
27
-
28
- export { throttle };
26
+ export declare function throttle(func: () => void, throttleMs: number): () => void;
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,45 +1,6 @@
1
- export { chunk } from './array/chunk.js';
2
- export { difference } from './array/difference.js';
3
- export { differenceBy } from './array/differenceBy.js';
4
- export { differenceWith } from './array/differenceWith.js';
5
- export { drop } from './array/drop.js';
6
- export { dropRight } from './array/dropRight.js';
7
- export { dropRightWhile } from './array/dropRightWhile.js';
8
- export { dropWhile } from './array/dropWhile.js';
9
- export { groupBy } from './array/groupBy.js';
10
- export { intersection } from './array/intersection.js';
11
- export { intersectionBy } from './array/intersectionBy.js';
12
- export { intersectionWith } from './array/intersectionWith.js';
13
- export { partition } from './array/partition.js';
14
- export { sample } from './array/sample.js';
15
- export { shuffle } from './array/shuffle.js';
16
- export { take } from './array/take.js';
17
- export { takeRight } from './array/takeRight.js';
18
- export { takeRightWhile } from './array/takeRightWhile.js';
19
- export { takeWhile } from './array/takeWhile.js';
20
- export { union } from './array/union.js';
21
- export { unionBy } from './array/unionBy.js';
22
- export { unionWith } from './array/unionWith.js';
23
- export { uniq } from './array/uniq.js';
24
- export { uniqBy } from './array/uniqBy.js';
25
- export { uniqWith } from './array/uniqWith.js';
26
- export { xor } from './array/xor.js';
27
- export { xorBy } from './array/xorBy.js';
28
- export { xorWith } from './array/xorWith.js';
29
- export { zip } from './array/zip.js';
30
- export { zipWith } from './array/zipWith.js';
31
- export { debounce } from './function/debounce.js';
32
- export { once } from './function/once.js';
33
- export { throttle } from './function/throttle.js';
34
- export { clamp } from './math/clamp.js';
35
- export { round } from './math/round.js';
36
- export { sum } from './math/sum.js';
37
- export { omit } from './object/omit.js';
38
- export { omitBy } from './object/omitBy.js';
39
- export { pick } from './object/pick.js';
40
- export { pickBy } from './object/pickBy.js';
41
- export { isNil } from './predicate/isNil.js';
42
- export { isNotNil } from './predicate/isNotNil.js';
43
- export { isNull } from './predicate/isNull.js';
44
- export { isUndefined } from './predicate/isUndefined.js';
45
- export { delay } from './promise/delay.js';
1
+ export * from './array';
2
+ export * from './function';
3
+ export * from './math';
4
+ export * from './object';
5
+ export * from './predicate';
6
+ export * from './promise';