es-toolkit 1.0.3 → 1.0.4-dev.41

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 (472) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +0 -1
  3. package/{esm/array/chunk.mjs → dist/array/chunk.d.mts} +1 -13
  4. package/dist/array/chunk.d.ts +3 -1
  5. package/dist/array/chunk.js +43 -0
  6. package/dist/array/chunk.js.map +1 -0
  7. package/dist/array/chunk.mjs +8 -0
  8. package/dist/array/chunk.mjs.map +1 -0
  9. package/{esm/array/difference.mjs → dist/array/difference.d.mts} +8 -12
  10. package/dist/array/difference.d.ts +3 -1
  11. package/dist/array/difference.js +35 -0
  12. package/dist/array/difference.js.map +1 -0
  13. package/dist/array/difference.mjs +8 -0
  14. package/dist/array/difference.mjs.map +1 -0
  15. package/{esm/array/differenceBy.mjs → dist/array/differenceBy.d.mts} +10 -17
  16. package/dist/array/differenceBy.d.ts +3 -1
  17. package/dist/array/differenceBy.js +36 -0
  18. package/dist/array/differenceBy.js.map +1 -0
  19. package/dist/array/differenceBy.mjs +8 -0
  20. package/dist/array/differenceBy.mjs.map +1 -0
  21. package/{esm/array/differenceWith.mjs → dist/array/differenceWith.d.mts} +6 -12
  22. package/dist/array/differenceWith.d.ts +3 -1
  23. package/dist/array/differenceWith.js +37 -0
  24. package/dist/array/differenceWith.js.map +1 -0
  25. package/dist/array/differenceWith.mjs +8 -0
  26. package/dist/array/differenceWith.mjs.map +1 -0
  27. package/{esm/array/drop.mjs → dist/array/drop.d.mts} +4 -6
  28. package/dist/array/drop.d.ts +3 -1
  29. package/dist/array/drop.js +33 -0
  30. package/dist/array/drop.js.map +1 -0
  31. package/dist/array/drop.mjs +8 -0
  32. package/dist/array/drop.mjs.map +1 -0
  33. package/{esm/array/dropRight.mjs → dist/array/dropRight.d.mts} +3 -5
  34. package/dist/array/dropRight.d.ts +3 -1
  35. package/dist/array/dropRight.js +33 -0
  36. package/dist/array/dropRight.js.map +1 -0
  37. package/dist/array/dropRight.mjs +8 -0
  38. package/dist/array/dropRight.mjs.map +1 -0
  39. package/{esm/array/dropRightWhile.mjs → dist/array/dropRightWhile.d.mts} +5 -11
  40. package/dist/array/dropRightWhile.d.ts +3 -1
  41. package/dist/array/dropRightWhile.js +43 -0
  42. package/dist/array/dropRightWhile.js.map +1 -0
  43. package/dist/array/dropRightWhile.mjs +9 -0
  44. package/dist/array/dropRightWhile.mjs.map +1 -0
  45. package/{esm/array/dropWhile.mjs → dist/array/dropWhile.d.mts} +5 -10
  46. package/dist/array/dropWhile.d.ts +3 -1
  47. package/dist/array/dropWhile.js +34 -0
  48. package/dist/array/dropWhile.js.map +1 -0
  49. package/dist/array/dropWhile.mjs +8 -0
  50. package/dist/array/dropWhile.mjs.map +1 -0
  51. package/{esm/array/groupBy.mjs → dist/array/groupBy.d.mts} +5 -26
  52. package/dist/array/groupBy.d.ts +3 -1
  53. package/dist/array/groupBy.js +41 -0
  54. package/dist/array/groupBy.js.map +1 -0
  55. package/dist/array/groupBy.mjs +8 -0
  56. package/dist/array/groupBy.mjs.map +1 -0
  57. package/dist/array/index.d.ts +30 -30
  58. package/dist/array/index.js +199 -842
  59. package/dist/array/index.js.map +1 -0
  60. package/dist/array/index.mjs +125 -0
  61. package/dist/array/index.mjs.map +1 -0
  62. package/{esm/array/intersection.mjs → dist/array/intersection.d.mts} +4 -8
  63. package/dist/array/intersection.d.ts +3 -1
  64. package/dist/array/intersection.js +35 -0
  65. package/dist/array/intersection.js.map +1 -0
  66. package/dist/array/intersection.mjs +8 -0
  67. package/dist/array/intersection.mjs.map +1 -0
  68. package/{esm/array/intersectionBy.mjs → dist/array/intersectionBy.d.mts} +5 -12
  69. package/dist/array/intersectionBy.d.ts +3 -1
  70. package/dist/array/intersectionBy.js +36 -0
  71. package/dist/array/intersectionBy.js.map +1 -0
  72. package/dist/array/intersectionBy.mjs +8 -0
  73. package/dist/array/intersectionBy.mjs.map +1 -0
  74. package/{esm/array/intersectionWith.mjs → dist/array/intersectionWith.d.mts} +6 -12
  75. package/dist/array/intersectionWith.d.ts +3 -1
  76. package/dist/array/intersectionWith.js +37 -0
  77. package/dist/array/intersectionWith.js.map +1 -0
  78. package/dist/array/intersectionWith.mjs +8 -0
  79. package/dist/array/intersectionWith.mjs.map +1 -0
  80. package/{esm/array/partition.mjs → dist/array/partition.d.mts} +8 -30
  81. package/dist/array/partition.d.ts +3 -1
  82. package/dist/array/partition.js +42 -0
  83. package/dist/array/partition.js.map +1 -0
  84. package/dist/array/partition.mjs +8 -0
  85. package/dist/array/partition.mjs.map +1 -0
  86. package/{esm/array/sample.mjs → dist/array/sample.d.mts} +2 -5
  87. package/dist/array/sample.d.ts +3 -1
  88. package/dist/array/sample.js +34 -0
  89. package/dist/array/sample.js.map +1 -0
  90. package/dist/array/sample.mjs +8 -0
  91. package/dist/array/sample.mjs.map +1 -0
  92. package/{esm/array/shuffle.mjs → dist/array/shuffle.d.mts} +2 -13
  93. package/dist/array/shuffle.d.ts +3 -1
  94. package/dist/array/shuffle.js +37 -0
  95. package/dist/array/shuffle.js.map +1 -0
  96. package/dist/array/shuffle.mjs +8 -0
  97. package/dist/array/shuffle.mjs.map +1 -0
  98. package/{esm/array/take.mjs → dist/array/take.d.mts} +5 -7
  99. package/dist/array/take.d.ts +3 -1
  100. package/dist/array/take.js +33 -0
  101. package/dist/array/take.js.map +1 -0
  102. package/dist/array/take.mjs +8 -0
  103. package/dist/array/take.mjs.map +1 -0
  104. package/{esm/array/takeRight.mjs → dist/array/takeRight.d.mts} +5 -10
  105. package/dist/array/takeRight.d.ts +3 -1
  106. package/dist/array/takeRight.js +36 -0
  107. package/dist/array/takeRight.js.map +1 -0
  108. package/dist/array/takeRight.mjs +8 -0
  109. package/dist/array/takeRight.mjs.map +1 -0
  110. package/{esm/array/takeRightWhile.mjs → dist/array/takeRightWhile.d.mts} +5 -12
  111. package/dist/array/takeRightWhile.d.ts +3 -1
  112. package/dist/array/takeRightWhile.js +38 -0
  113. package/dist/array/takeRightWhile.js.map +1 -0
  114. package/dist/array/takeRightWhile.mjs +8 -0
  115. package/dist/array/takeRightWhile.mjs.map +1 -0
  116. package/{esm/array/takeWhile.mjs → dist/array/takeWhile.d.mts} +1 -21
  117. package/dist/array/takeWhile.d.ts +3 -1
  118. package/dist/array/takeWhile.js +40 -0
  119. package/dist/array/takeWhile.js.map +1 -0
  120. package/dist/array/takeWhile.mjs +8 -0
  121. package/dist/array/takeWhile.mjs.map +1 -0
  122. package/{esm/array/union.mjs → dist/array/union.d.mts} +3 -7
  123. package/dist/array/union.d.ts +3 -1
  124. package/dist/array/union.js +47 -0
  125. package/dist/array/union.js.map +1 -0
  126. package/dist/array/union.mjs +9 -0
  127. package/dist/array/union.mjs.map +1 -0
  128. package/{esm/array/unionBy.mjs → dist/array/unionBy.d.mts} +4 -16
  129. package/dist/array/unionBy.d.ts +3 -1
  130. package/dist/array/unionBy.js +40 -0
  131. package/dist/array/unionBy.js.map +1 -0
  132. package/dist/array/unionBy.mjs +8 -0
  133. package/dist/array/unionBy.mjs.map +1 -0
  134. package/{esm/array/unionWith.mjs → dist/array/unionWith.d.mts} +4 -8
  135. package/dist/array/unionWith.d.ts +3 -1
  136. package/dist/array/unionWith.js +47 -0
  137. package/dist/array/unionWith.js.map +1 -0
  138. package/dist/array/unionWith.mjs +9 -0
  139. package/dist/array/unionWith.mjs.map +1 -0
  140. package/dist/array/uniq.d.mts +17 -0
  141. package/dist/array/uniq.d.ts +3 -1
  142. package/dist/array/uniq.js +40 -0
  143. package/dist/array/uniq.js.map +1 -0
  144. package/dist/array/uniq.mjs +8 -0
  145. package/dist/array/uniq.mjs.map +1 -0
  146. package/{esm/array/uniqBy.mjs → dist/array/uniqBy.d.mts} +1 -7
  147. package/dist/array/uniqBy.d.ts +3 -1
  148. package/dist/array/uniqBy.js +47 -0
  149. package/dist/array/uniqBy.js.map +1 -0
  150. package/dist/array/uniqBy.mjs +9 -0
  151. package/dist/array/uniqBy.mjs.map +1 -0
  152. package/dist/array/uniqWith.d.mts +14 -0
  153. package/dist/array/uniqWith.d.ts +3 -1
  154. package/dist/array/uniqWith.js +40 -0
  155. package/dist/array/uniqWith.js.map +1 -0
  156. package/dist/array/uniqWith.mjs +8 -0
  157. package/dist/array/uniqWith.mjs.map +1 -0
  158. package/{esm/array/xor.mjs → dist/array/xor.d.mts} +4 -10
  159. package/dist/array/xor.d.ts +3 -1
  160. package/dist/array/xor.js +66 -0
  161. package/dist/array/xor.js.map +1 -0
  162. package/dist/array/xor.mjs +12 -0
  163. package/dist/array/xor.mjs.map +1 -0
  164. package/{esm/array/xorBy.mjs → dist/array/xorBy.d.mts} +5 -13
  165. package/dist/array/xorBy.d.ts +3 -1
  166. package/dist/array/xorBy.js +65 -0
  167. package/dist/array/xorBy.js.map +1 -0
  168. package/dist/array/xorBy.mjs +11 -0
  169. package/dist/array/xorBy.mjs.map +1 -0
  170. package/{esm/array/xorWith.mjs → dist/array/xorWith.d.mts} +5 -13
  171. package/dist/array/xorWith.d.ts +3 -1
  172. package/dist/array/xorWith.js +72 -0
  173. package/dist/array/xorWith.js.map +1 -0
  174. package/dist/array/xorWith.mjs +12 -0
  175. package/dist/array/xorWith.mjs.map +1 -0
  176. package/dist/array/zip.d.mts +27 -0
  177. package/dist/array/zip.d.ts +6 -4
  178. package/dist/array/zip.js +42 -0
  179. package/dist/array/zip.js.map +1 -0
  180. package/dist/array/zip.mjs +8 -0
  181. package/dist/array/zip.mjs.map +1 -0
  182. package/{esm/array/zipWith.mjs → dist/array/zipWith.d.mts} +6 -26
  183. package/dist/array/zipWith.d.ts +6 -4
  184. package/dist/array/zipWith.js +41 -0
  185. package/dist/array/zipWith.js.map +1 -0
  186. package/dist/array/zipWith.mjs +8 -0
  187. package/dist/array/zipWith.mjs.map +1 -0
  188. package/dist/chunk-23DC774L.mjs +13 -0
  189. package/dist/chunk-23DC774L.mjs.map +1 -0
  190. package/dist/chunk-2MM5EJJX.mjs +21 -0
  191. package/dist/chunk-2MM5EJJX.mjs.map +1 -0
  192. package/dist/chunk-2PB2OCC6.mjs +11 -0
  193. package/dist/chunk-2PB2OCC6.mjs.map +1 -0
  194. package/dist/chunk-3PFYAKOD.mjs +10 -0
  195. package/dist/chunk-3PFYAKOD.mjs.map +1 -0
  196. package/dist/chunk-4USR24DP.mjs +23 -0
  197. package/dist/chunk-4USR24DP.mjs.map +1 -0
  198. package/dist/chunk-6BCRFIEW.mjs +9 -0
  199. package/dist/chunk-6BCRFIEW.mjs.map +1 -0
  200. package/dist/chunk-6GRNTXI3.mjs +9 -0
  201. package/dist/chunk-6GRNTXI3.mjs.map +1 -0
  202. package/dist/chunk-6LDIBBWQ.mjs +15 -0
  203. package/dist/chunk-6LDIBBWQ.mjs.map +1 -0
  204. package/dist/chunk-7LAOIS6P.mjs +13 -0
  205. package/dist/chunk-7LAOIS6P.mjs.map +1 -0
  206. package/dist/chunk-AFYV2UVZ.mjs +13 -0
  207. package/dist/chunk-AFYV2UVZ.mjs.map +1 -0
  208. package/dist/chunk-ANJSX6WH.mjs +12 -0
  209. package/dist/chunk-ANJSX6WH.mjs.map +1 -0
  210. package/dist/chunk-ARZ5BDR6.mjs +1 -0
  211. package/dist/chunk-ARZ5BDR6.mjs.map +1 -0
  212. package/dist/chunk-B5P232BA.mjs +13 -0
  213. package/dist/chunk-B5P232BA.mjs.map +1 -0
  214. package/dist/chunk-EJGAXTF7.mjs +1 -0
  215. package/dist/chunk-EJGAXTF7.mjs.map +1 -0
  216. package/dist/chunk-GLAZTR32.mjs +13 -0
  217. package/dist/chunk-GLAZTR32.mjs.map +1 -0
  218. package/dist/chunk-HOQRMBSB.mjs +9 -0
  219. package/dist/chunk-HOQRMBSB.mjs.map +1 -0
  220. package/dist/chunk-IFCX35BI.mjs +14 -0
  221. package/dist/chunk-IFCX35BI.mjs.map +1 -0
  222. package/dist/chunk-IJLQVGW4.mjs +1 -0
  223. package/dist/chunk-IJLQVGW4.mjs.map +1 -0
  224. package/dist/chunk-J6SWM4X6.mjs +17 -0
  225. package/dist/chunk-J6SWM4X6.mjs.map +1 -0
  226. package/dist/chunk-JDMFIUGM.mjs +16 -0
  227. package/dist/chunk-JDMFIUGM.mjs.map +1 -0
  228. package/dist/chunk-KBJTBR5T.mjs +9 -0
  229. package/dist/chunk-KBJTBR5T.mjs.map +1 -0
  230. package/dist/chunk-L25VRQ54.mjs +18 -0
  231. package/dist/chunk-L25VRQ54.mjs.map +1 -0
  232. package/dist/chunk-L3C6TG2V.mjs +12 -0
  233. package/dist/chunk-L3C6TG2V.mjs.map +1 -0
  234. package/dist/chunk-LLOAPSQ6.mjs +16 -0
  235. package/dist/chunk-LLOAPSQ6.mjs.map +1 -0
  236. package/dist/chunk-M3SHJ3LL.mjs +13 -0
  237. package/dist/chunk-M3SHJ3LL.mjs.map +1 -0
  238. package/dist/chunk-MAJSPFA6.mjs +1 -0
  239. package/dist/chunk-MAJSPFA6.mjs.map +1 -0
  240. package/dist/chunk-MQZ5D4IU.mjs +17 -0
  241. package/dist/chunk-MQZ5D4IU.mjs.map +1 -0
  242. package/dist/chunk-OLBUAFBX.mjs +9 -0
  243. package/dist/chunk-OLBUAFBX.mjs.map +1 -0
  244. package/dist/chunk-OS5PZ4B4.mjs +19 -0
  245. package/dist/chunk-OS5PZ4B4.mjs.map +1 -0
  246. package/dist/chunk-PHG5JCSW.mjs +10 -0
  247. package/dist/chunk-PHG5JCSW.mjs.map +1 -0
  248. package/dist/chunk-PRTIPC5X.mjs +17 -0
  249. package/dist/chunk-PRTIPC5X.mjs.map +1 -0
  250. package/dist/chunk-PUQLVKMB.mjs +12 -0
  251. package/dist/chunk-PUQLVKMB.mjs.map +1 -0
  252. package/dist/chunk-QC3SFAQJ.mjs +19 -0
  253. package/dist/chunk-QC3SFAQJ.mjs.map +1 -0
  254. package/dist/chunk-RK6PRCEJ.mjs +12 -0
  255. package/dist/chunk-RK6PRCEJ.mjs.map +1 -0
  256. package/dist/chunk-SF3V7XXM.mjs +16 -0
  257. package/dist/chunk-SF3V7XXM.mjs.map +1 -0
  258. package/dist/chunk-SPLO5OZW.mjs +16 -0
  259. package/dist/chunk-SPLO5OZW.mjs.map +1 -0
  260. package/dist/chunk-SQOYF647.mjs +16 -0
  261. package/dist/chunk-SQOYF647.mjs.map +1 -0
  262. package/dist/chunk-SYQTG4N4.mjs +1 -0
  263. package/dist/chunk-SYQTG4N4.mjs.map +1 -0
  264. package/dist/chunk-T2C2WVFL.mjs +16 -0
  265. package/dist/chunk-T2C2WVFL.mjs.map +1 -0
  266. package/dist/chunk-T5JCRGXA.mjs +1 -0
  267. package/dist/chunk-T5JCRGXA.mjs.map +1 -0
  268. package/dist/chunk-TCHT4HCP.mjs +21 -0
  269. package/dist/chunk-TCHT4HCP.mjs.map +1 -0
  270. package/dist/chunk-TF6N37OE.mjs +18 -0
  271. package/dist/chunk-TF6N37OE.mjs.map +1 -0
  272. package/dist/chunk-TK2EDHSP.mjs +13 -0
  273. package/dist/chunk-TK2EDHSP.mjs.map +1 -0
  274. package/dist/chunk-TULUUJ3E.mjs +21 -0
  275. package/dist/chunk-TULUUJ3E.mjs.map +1 -0
  276. package/dist/chunk-UFAA5WKR.mjs +19 -0
  277. package/dist/chunk-UFAA5WKR.mjs.map +1 -0
  278. package/dist/chunk-V6LXSPMF.mjs +17 -0
  279. package/dist/chunk-V6LXSPMF.mjs.map +1 -0
  280. package/dist/chunk-Y6ZRNII6.mjs +9 -0
  281. package/dist/chunk-Y6ZRNII6.mjs.map +1 -0
  282. package/dist/chunk-YEZIGQJG.mjs +13 -0
  283. package/dist/chunk-YEZIGQJG.mjs.map +1 -0
  284. package/dist/chunk-YHY2XTJW.mjs +10 -0
  285. package/dist/chunk-YHY2XTJW.mjs.map +1 -0
  286. package/dist/chunk-YNRYG5OB.mjs +11 -0
  287. package/dist/chunk-YNRYG5OB.mjs.map +1 -0
  288. package/dist/chunk-ZBG3EYM3.mjs +11 -0
  289. package/dist/chunk-ZBG3EYM3.mjs.map +1 -0
  290. package/dist/chunk-ZQNAZPSK.mjs +9 -0
  291. package/dist/chunk-ZQNAZPSK.mjs.map +1 -0
  292. package/{esm/function/debounce.mjs → dist/function/debounce.d.mts} +5 -18
  293. package/dist/function/debounce.d.ts +3 -1
  294. package/dist/function/debounce.js +47 -0
  295. package/dist/function/debounce.js.map +1 -0
  296. package/dist/function/debounce.mjs +8 -0
  297. package/dist/function/debounce.mjs.map +1 -0
  298. package/dist/function/index.d.ts +3 -3
  299. package/dist/function/index.js +47 -78
  300. package/dist/function/index.js.map +1 -0
  301. package/dist/function/index.mjs +17 -0
  302. package/dist/function/index.mjs.map +1 -0
  303. package/{esm/function/once.mjs → dist/function/once.d.mts} +2 -14
  304. package/dist/function/once.d.ts +3 -1
  305. package/dist/function/once.js +43 -0
  306. package/dist/function/once.js.map +1 -0
  307. package/dist/function/once.mjs +8 -0
  308. package/dist/function/once.mjs.map +1 -0
  309. package/{esm/function/throttle.mjs → dist/function/throttle.d.mts} +3 -13
  310. package/dist/function/throttle.d.ts +3 -1
  311. package/dist/function/throttle.js +41 -0
  312. package/dist/function/throttle.js.map +1 -0
  313. package/dist/function/throttle.mjs +8 -0
  314. package/dist/function/throttle.mjs.map +1 -0
  315. package/dist/index.d.ts +45 -6
  316. package/dist/index.js +288 -1271
  317. package/dist/index.js.map +1 -0
  318. package/dist/index.mjs +190 -0
  319. package/dist/index.mjs.map +1 -0
  320. package/{esm/math/clamp.mjs → dist/math/clamp.d.mts} +2 -7
  321. package/dist/math/clamp.d.ts +4 -2
  322. package/dist/math/clamp.js +36 -0
  323. package/dist/math/clamp.js.map +1 -0
  324. package/dist/math/clamp.mjs +8 -0
  325. package/dist/math/clamp.mjs.map +1 -0
  326. package/dist/math/index.d.ts +3 -3
  327. package/dist/math/index.js +41 -132
  328. package/dist/math/index.js.map +1 -0
  329. package/dist/math/index.mjs +17 -0
  330. package/dist/math/index.mjs.map +1 -0
  331. package/{esm/math/round.mjs → dist/math/round.d.mts} +3 -7
  332. package/dist/math/round.d.ts +3 -1
  333. package/dist/math/round.js +34 -0
  334. package/dist/math/round.js.map +1 -0
  335. package/dist/math/round.mjs +8 -0
  336. package/dist/math/round.mjs.map +1 -0
  337. package/dist/math/sum.d.mts +16 -0
  338. package/dist/math/sum.d.ts +3 -1
  339. package/dist/math/sum.js +37 -0
  340. package/dist/math/sum.js.map +1 -0
  341. package/dist/math/sum.mjs +8 -0
  342. package/dist/math/sum.mjs.map +1 -0
  343. package/dist/object/index.d.ts +4 -4
  344. package/dist/object/index.js +62 -256
  345. package/dist/object/index.js.map +1 -0
  346. package/dist/object/index.mjs +21 -0
  347. package/dist/object/index.mjs.map +1 -0
  348. package/{esm/object/omit.mjs → dist/object/omit.d.mts} +2 -19
  349. package/dist/object/omit.d.ts +3 -1
  350. package/dist/object/omit.js +51 -0
  351. package/dist/object/omit.js.map +1 -0
  352. package/dist/object/omit.mjs +8 -0
  353. package/dist/object/omit.mjs.map +1 -0
  354. package/{esm/object/omitBy.mjs → dist/object/omitBy.d.mts} +4 -18
  355. package/dist/object/omitBy.d.ts +3 -1
  356. package/dist/object/omitBy.js +40 -0
  357. package/dist/object/omitBy.js.map +1 -0
  358. package/dist/object/omitBy.mjs +8 -0
  359. package/dist/object/omitBy.mjs.map +1 -0
  360. package/{esm/object/pick.mjs → dist/object/pick.d.mts} +2 -19
  361. package/dist/object/pick.d.ts +3 -1
  362. package/dist/object/pick.js +37 -0
  363. package/dist/object/pick.js.map +1 -0
  364. package/dist/object/pick.mjs +8 -0
  365. package/dist/object/pick.mjs.map +1 -0
  366. package/{esm/object/pickBy.mjs → dist/object/pickBy.d.mts} +4 -18
  367. package/dist/object/pickBy.d.ts +3 -1
  368. package/dist/object/pickBy.js +40 -0
  369. package/dist/object/pickBy.js.map +1 -0
  370. package/dist/object/pickBy.mjs +8 -0
  371. package/dist/object/pickBy.mjs.map +1 -0
  372. package/dist/predicate/index.d.ts +4 -4
  373. package/dist/predicate/index.js +42 -84
  374. package/dist/predicate/index.js.map +1 -0
  375. package/dist/predicate/index.mjs +21 -0
  376. package/dist/predicate/index.mjs.map +1 -0
  377. package/{esm/predicate/isNil.mjs → dist/predicate/isNil.d.mts} +4 -6
  378. package/dist/predicate/isNil.d.ts +3 -1
  379. package/dist/predicate/isNil.js +33 -0
  380. package/dist/predicate/isNil.js.map +1 -0
  381. package/dist/predicate/isNil.mjs +8 -0
  382. package/dist/predicate/isNil.mjs.map +1 -0
  383. package/{esm/predicate/isNotNil.mjs → dist/predicate/isNotNil.d.mts} +2 -4
  384. package/dist/predicate/isNotNil.d.ts +3 -1
  385. package/dist/predicate/isNotNil.js +33 -0
  386. package/dist/predicate/isNotNil.js.map +1 -0
  387. package/dist/predicate/isNotNil.mjs +8 -0
  388. package/dist/predicate/isNotNil.mjs.map +1 -0
  389. package/{esm/predicate/isNull.mjs → dist/predicate/isNull.d.mts} +4 -6
  390. package/dist/predicate/isNull.d.ts +3 -1
  391. package/dist/predicate/isNull.js +33 -0
  392. package/dist/predicate/isNull.js.map +1 -0
  393. package/dist/predicate/isNull.mjs +8 -0
  394. package/dist/predicate/isNull.mjs.map +1 -0
  395. package/{esm/predicate/isUndefined.mjs → dist/predicate/isUndefined.d.mts} +4 -6
  396. package/dist/predicate/isUndefined.d.ts +3 -1
  397. package/dist/predicate/isUndefined.js +33 -0
  398. package/dist/predicate/isUndefined.js.map +1 -0
  399. package/dist/predicate/isUndefined.mjs +8 -0
  400. package/dist/predicate/isUndefined.mjs.map +1 -0
  401. package/{esm/promise/delay.mjs → dist/promise/delay.d.mts} +4 -8
  402. package/dist/promise/delay.d.ts +3 -1
  403. package/dist/promise/delay.js +35 -0
  404. package/dist/promise/delay.js.map +1 -0
  405. package/dist/promise/delay.mjs +8 -0
  406. package/dist/promise/delay.mjs.map +1 -0
  407. package/dist/promise/index.d.ts +1 -1
  408. package/dist/promise/index.js +31 -23
  409. package/dist/promise/index.js.map +1 -0
  410. package/dist/promise/index.mjs +9 -0
  411. package/dist/promise/index.mjs.map +1 -0
  412. package/package.json +121 -49
  413. package/dist/array/chunk.spec.d.ts +0 -1
  414. package/dist/array/difference.spec.d.ts +0 -1
  415. package/dist/array/differenceBy.spec.d.ts +0 -1
  416. package/dist/array/differenceWith.spec.d.ts +0 -1
  417. package/dist/array/drop.spec.d.ts +0 -1
  418. package/dist/array/dropRight.spec.d.ts +0 -1
  419. package/dist/array/dropRightWhile.spec.d.ts +0 -1
  420. package/dist/array/dropWhile.spec.d.ts +0 -1
  421. package/dist/array/groupBy.spec.d.ts +0 -1
  422. package/dist/array/intersection.spec.d.ts +0 -1
  423. package/dist/array/intersectionBy.spec.d.ts +0 -1
  424. package/dist/array/intersectionWith.spec.d.ts +0 -1
  425. package/dist/array/partition.spec.d.ts +0 -1
  426. package/dist/array/sample.spec.d.ts +0 -1
  427. package/dist/array/shuffle.spec.d.ts +0 -1
  428. package/dist/array/take.spec.d.ts +0 -1
  429. package/dist/array/takeRight.spec.d.ts +0 -1
  430. package/dist/array/takeRightWhile.spec.d.ts +0 -1
  431. package/dist/array/takeWhile.spec.d.ts +0 -1
  432. package/dist/array/union.spec.d.ts +0 -1
  433. package/dist/array/unionBy.spec.d.ts +0 -1
  434. package/dist/array/unionWith.spec.d.ts +0 -1
  435. package/dist/array/uniq.spec.d.ts +0 -1
  436. package/dist/array/uniqBy.spec.d.ts +0 -1
  437. package/dist/array/uniqWith.spec.d.ts +0 -1
  438. package/dist/array/xor.spec.d.ts +0 -1
  439. package/dist/array/xorBy.spec.d.ts +0 -1
  440. package/dist/array/xorWith.spec.d.ts +0 -1
  441. package/dist/array/zip.spec.d.ts +0 -1
  442. package/dist/array/zipWith.spec.d.ts +0 -1
  443. package/dist/function/debounce.spec.d.ts +0 -1
  444. package/dist/function/once.spec.d.ts +0 -1
  445. package/dist/function/throttle.spec.d.ts +0 -1
  446. package/dist/math/clamp.spec.d.ts +0 -1
  447. package/dist/math/round.spec.d.ts +0 -1
  448. package/dist/math/sum.spec.d.ts +0 -1
  449. package/dist/object/omit.spec.d.ts +0 -1
  450. package/dist/object/omitBy.spec.d.ts +0 -1
  451. package/dist/object/pick.spec.d.ts +0 -1
  452. package/dist/object/pickBy.spec.d.ts +0 -1
  453. package/dist/predicate/isNil.spec.d.ts +0 -1
  454. package/dist/predicate/isNotNil.spec.d.ts +0 -1
  455. package/dist/predicate/isNull.spec.d.ts +0 -1
  456. package/dist/predicate/isUndefined.spec.d.ts +0 -1
  457. package/dist/promise/delay.spec.d.ts +0 -1
  458. package/esm/_virtual/_rollupPluginBabelHelpers.mjs +0 -163
  459. package/esm/array/_virtual/_rollupPluginBabelHelpers.mjs +0 -78
  460. package/esm/array/uniq.mjs +0 -37
  461. package/esm/array/uniqWith.mjs +0 -39
  462. package/esm/array/zip.mjs +0 -52
  463. package/esm/math/_virtual/_rollupPluginBabelHelpers.mjs +0 -66
  464. package/esm/math/sum.mjs +0 -33
  465. package/esm/object/_virtual/_rollupPluginBabelHelpers.mjs +0 -151
  466. /package/{esm/array/index.mjs → dist/array/index.d.mts} +0 -0
  467. /package/{esm/function/index.mjs → dist/function/index.d.mts} +0 -0
  468. /package/{esm/index.mjs → dist/index.d.mts} +0 -0
  469. /package/{esm/math/index.mjs → dist/math/index.d.mts} +0 -0
  470. /package/{esm/object/index.mjs → dist/object/index.d.mts} +0 -0
  471. /package/{esm/predicate/index.mjs → dist/predicate/index.d.mts} +0 -0
  472. /package/{esm/promise/index.mjs → dist/promise/index.d.mts} +0 -0
@@ -0,0 +1,8 @@
1
+ import {
2
+ omit
3
+ } from "../chunk-J6SWM4X6.mjs";
4
+ import "../chunk-2MM5EJJX.mjs";
5
+ export {
6
+ omit
7
+ };
8
+ //# sourceMappingURL=omit.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,14 +1,12 @@
1
- import { slicedToArray as _slicedToArray } from './_virtual/_rollupPluginBabelHelpers.mjs';
2
-
3
1
  /**
4
2
  * Creates a new object composed of the properties that do not satisfy the predicate function.
5
3
  *
6
- * This function takes an object and a predicate function, and returns a new object that
4
+ * This function takes an object and a predicate function, and returns a new object that
7
5
  * includes only the properties for which the predicate function returns false.
8
6
  *
9
7
  * @param {T} obj - The object to omit properties from.
10
- * @param {(value: T[string], key: string) => boolean} shouldOmit - A predicate function that determines
11
- * whether a property should be omitted. It takes the property's key and value as arguments and returns `true`
8
+ * @param {(value: T[string], key: string) => boolean} shouldOmit - A predicate function that determines
9
+ * whether a property should be omitted. It takes the property's key and value as arguments and returns `true`
12
10
  * if the property should be omitted, and `false` otherwise.
13
11
  * @returns {Partial<T>} A new object with the properties that do not satisfy the predicate function.
14
12
  *
@@ -18,18 +16,6 @@ import { slicedToArray as _slicedToArray } from './_virtual/_rollupPluginBabelHe
18
16
  * const result = omitBy(obj, shouldOmit);
19
17
  * // result will be { a: 1, c: 3 }
20
18
  */
21
- function omitBy(obj, shouldOmit) {
22
- var result = {};
23
- for (var _i = 0, _Object$entries = Object.entries(obj); _i < _Object$entries.length; _i++) {
24
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
25
- key = _Object$entries$_i[0],
26
- value = _Object$entries$_i[1];
27
- if (shouldOmit(value, key)) {
28
- continue;
29
- }
30
- result[key] = value;
31
- }
32
- return result;
33
- }
19
+ declare function omitBy<T extends Record<string, any>>(obj: T, shouldOmit: (value: T[keyof T], key: string) => boolean): Partial<T>;
34
20
 
35
21
  export { omitBy };
@@ -16,4 +16,6 @@
16
16
  * const result = omitBy(obj, shouldOmit);
17
17
  * // result will be { a: 1, c: 3 }
18
18
  */
19
- export declare function omitBy<T extends Record<string, any>>(obj: T, shouldOmit: (value: T[keyof T], key: string) => boolean): Partial<T>;
19
+ declare function omitBy<T extends Record<string, any>>(obj: T, shouldOmit: (value: T[keyof T], key: string) => boolean): Partial<T>;
20
+
21
+ export { omitBy };
@@ -0,0 +1,40 @@
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);
19
+
20
+ // src/object/omitBy.ts
21
+ var omitBy_exports = {};
22
+ __export(omitBy_exports, {
23
+ omitBy: () => omitBy
24
+ });
25
+ module.exports = __toCommonJS(omitBy_exports);
26
+ function omitBy(obj, shouldOmit) {
27
+ const result = {};
28
+ for (const [key, value] of Object.entries(obj)) {
29
+ if (shouldOmit(value, key)) {
30
+ continue;
31
+ }
32
+ result[key] = value;
33
+ }
34
+ return result;
35
+ }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ omitBy
39
+ });
40
+ //# sourceMappingURL=omitBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/object/omitBy.ts"],"sourcesContent":["/**\n * Creates a new object composed of the properties that do not satisfy the predicate function.\n *\n * This function takes an object and a predicate function, and returns a new object that\n * includes only the properties for which the predicate function returns false.\n *\n * @param {T} obj - The object to omit properties from.\n * @param {(value: T[string], key: string) => boolean} shouldOmit - A predicate function that determines\n * whether a property should be omitted. It takes the property's key and value as arguments and returns `true`\n * if the property should be omitted, and `false` otherwise.\n * @returns {Partial<T>} A new object with the properties that do not satisfy the predicate function.\n *\n * @example\n * const obj = { a: 1, b: 'omit', c: 3 };\n * const shouldOmit = (key, value) => typeof value === 'string';\n * const result = omitBy(obj, shouldOmit);\n * // result will be { a: 1, c: 3 }\n */\nexport function omitBy<T extends Record<string, any>>(\n obj: T,\n shouldOmit: (value: T[keyof T], key: string) => boolean\n): Partial<T> {\n const result: Partial<T> = {};\n\n for (const [key, value] of Object.entries(obj)) {\n if (shouldOmit(value, key)) {\n continue;\n }\n\n (result as any)[key] = value;\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBO,SAAS,OACd,KACA,YACY;AACZ,QAAM,SAAqB,CAAC;AAE5B,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,GAAG,GAAG;AAC9C,QAAI,WAAW,OAAO,GAAG,GAAG;AAC1B;AAAA,IACF;AAEA,IAAC,OAAe,GAAG,IAAI;AAAA,EACzB;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ omitBy
3
+ } from "../chunk-SF3V7XXM.mjs";
4
+ import "../chunk-2MM5EJJX.mjs";
5
+ export {
6
+ omitBy
7
+ };
8
+ //# sourceMappingURL=omitBy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +1,7 @@
1
- import { createForOfIteratorHelper as _createForOfIteratorHelper } from './_virtual/_rollupPluginBabelHelpers.mjs';
2
-
3
1
  /**
4
2
  * Creates a new object composed of the picked object properties.
5
3
  *
6
- * This function takes an object and an array of keys, and returns a new object that
4
+ * This function takes an object and an array of keys, and returns a new object that
7
5
  * includes only the properties corresponding to the specified keys.
8
6
  *
9
7
  * @param {T} obj - The object to pick keys from.
@@ -15,21 +13,6 @@ import { createForOfIteratorHelper as _createForOfIteratorHelper } from './_virt
15
13
  * const result = pick(obj, ['a', 'c']);
16
14
  * // result will be { a: 1, c: 3 }
17
15
  */
18
- function pick(obj, keys) {
19
- var result = {};
20
- var _iterator = _createForOfIteratorHelper(keys),
21
- _step;
22
- try {
23
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
24
- var key = _step.value;
25
- result[key] = obj[key];
26
- }
27
- } catch (err) {
28
- _iterator.e(err);
29
- } finally {
30
- _iterator.f();
31
- }
32
- return result;
33
- }
16
+ declare function pick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
34
17
 
35
18
  export { pick };
@@ -13,4 +13,6 @@
13
13
  * const result = pick(obj, ['a', 'c']);
14
14
  * // result will be { a: 1, c: 3 }
15
15
  */
16
- export declare function pick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
16
+ declare function pick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
17
+
18
+ export { pick };
@@ -0,0 +1,37 @@
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);
19
+
20
+ // src/object/pick.ts
21
+ var pick_exports = {};
22
+ __export(pick_exports, {
23
+ pick: () => pick
24
+ });
25
+ module.exports = __toCommonJS(pick_exports);
26
+ function pick(obj, keys) {
27
+ const result = {};
28
+ for (const key of keys) {
29
+ result[key] = obj[key];
30
+ }
31
+ return result;
32
+ }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ pick
36
+ });
37
+ //# sourceMappingURL=pick.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/object/pick.ts"],"sourcesContent":["/**\n * Creates a new object composed of the picked object properties.\n *\n * This function takes an object and an array of keys, and returns a new object that\n * includes only the properties corresponding to the specified keys.\n *\n * @param {T} obj - The object to pick keys from.\n * @param {K[]} keys - An array of keys to be picked from the object.\n * @returns {Pick<T, K>} A new object with the specified keys picked.\n *\n * @example\n * * const obj = { a: 1, b: 2, c: 3 };\n * const result = pick(obj, ['a', 'c']);\n * // result will be { a: 1, c: 3 }\n */\nexport function pick<T, K extends keyof T>(obj: T, keys: K[]): Pick<T, K> {\n const result = {} as Pick<T, K>;\n\n for (const key of keys) {\n result[key] = obj[key];\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,SAAS,KAA2B,KAAQ,MAAuB;AACxE,QAAM,SAAS,CAAC;AAEhB,aAAW,OAAO,MAAM;AACtB,WAAO,GAAG,IAAI,IAAI,GAAG;AAAA,EACvB;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ pick
3
+ } from "../chunk-AFYV2UVZ.mjs";
4
+ import "../chunk-2MM5EJJX.mjs";
5
+ export {
6
+ pick
7
+ };
8
+ //# sourceMappingURL=pick.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,14 +1,12 @@
1
- import { slicedToArray as _slicedToArray } from './_virtual/_rollupPluginBabelHelpers.mjs';
2
-
3
1
  /**
4
2
  * Creates a new object composed of the properties that satisfy the predicate function.
5
3
  *
6
- * This function takes an object and a predicate function, and returns a new object that
4
+ * This function takes an object and a predicate function, and returns a new object that
7
5
  * includes only the properties for which the predicate function returns true.
8
6
  *
9
7
  * @param {T} obj - The object to pick properties from.
10
- * @param {(value: T[keyof T], key: string) => boolean} shouldPick - A predicate function that determines
11
- * whether a property should be picked. It takes the property's key and value as arguments and returns `true`
8
+ * @param {(value: T[keyof T], key: string) => boolean} shouldPick - A predicate function that determines
9
+ * whether a property should be picked. It takes the property's key and value as arguments and returns `true`
12
10
  * if the property should be picked, and `false` otherwise.
13
11
  * @returns {Partial<T>} A new object with the properties that satisfy the predicate function.
14
12
  *
@@ -18,18 +16,6 @@ import { slicedToArray as _slicedToArray } from './_virtual/_rollupPluginBabelHe
18
16
  * const result = pickBy(obj, shouldPick);
19
17
  * // result will be { b: 'pick' }
20
18
  */
21
- function pickBy(obj, shouldPick) {
22
- var result = {};
23
- for (var _i = 0, _Object$entries = Object.entries(obj); _i < _Object$entries.length; _i++) {
24
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
25
- key = _Object$entries$_i[0],
26
- value = _Object$entries$_i[1];
27
- if (!shouldPick(value, key)) {
28
- continue;
29
- }
30
- result[key] = value;
31
- }
32
- return result;
33
- }
19
+ declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key: string) => boolean): Partial<T>;
34
20
 
35
21
  export { pickBy };
@@ -16,4 +16,6 @@
16
16
  * const result = pickBy(obj, shouldPick);
17
17
  * // result will be { b: 'pick' }
18
18
  */
19
- export declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key: string) => boolean): Partial<T>;
19
+ declare function pickBy<T extends Record<string, any>>(obj: T, shouldPick: (value: T[keyof T], key: string) => boolean): Partial<T>;
20
+
21
+ export { pickBy };
@@ -0,0 +1,40 @@
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);
19
+
20
+ // src/object/pickBy.ts
21
+ var pickBy_exports = {};
22
+ __export(pickBy_exports, {
23
+ pickBy: () => pickBy
24
+ });
25
+ module.exports = __toCommonJS(pickBy_exports);
26
+ function pickBy(obj, shouldPick) {
27
+ const result = {};
28
+ for (const [key, value] of Object.entries(obj)) {
29
+ if (!shouldPick(value, key)) {
30
+ continue;
31
+ }
32
+ result[key] = value;
33
+ }
34
+ return result;
35
+ }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ pickBy
39
+ });
40
+ //# sourceMappingURL=pickBy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/object/pickBy.ts"],"sourcesContent":["/**\n * Creates a new object composed of the properties that satisfy the predicate function.\n *\n * This function takes an object and a predicate function, and returns a new object that\n * includes only the properties for which the predicate function returns true.\n *\n * @param {T} obj - The object to pick properties from.\n * @param {(value: T[keyof T], key: string) => boolean} shouldPick - A predicate function that determines\n * whether a property should be picked. It takes the property's key and value as arguments and returns `true`\n * if the property should be picked, and `false` otherwise.\n * @returns {Partial<T>} A new object with the properties that satisfy the predicate function.\n *\n * @example\n * const obj = { a: 1, b: 'pick', c: 3 };\n * const shouldPick = (value) => typeof value === 'string';\n * const result = pickBy(obj, shouldPick);\n * // result will be { b: 'pick' }\n */\nexport function pickBy<T extends Record<string, any>>(\n obj: T,\n shouldPick: (value: T[keyof T], key: string) => boolean\n): Partial<T> {\n const result: Partial<T> = {};\n\n for (const [key, value] of Object.entries(obj)) {\n if (!shouldPick(value, key)) {\n continue;\n }\n\n (result as any)[key] = value;\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBO,SAAS,OACd,KACA,YACY;AACZ,QAAM,SAAqB,CAAC;AAE5B,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,GAAG,GAAG;AAC9C,QAAI,CAAC,WAAW,OAAO,GAAG,GAAG;AAC3B;AAAA,IACF;AAEA,IAAC,OAAe,GAAG,IAAI;AAAA,EACzB;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ pickBy
3
+ } from "../chunk-T2C2WVFL.mjs";
4
+ import "../chunk-2MM5EJJX.mjs";
5
+ export {
6
+ pickBy
7
+ };
8
+ //# sourceMappingURL=pickBy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +1,4 @@
1
- export { isNil } from './isNil';
2
- export { isNotNil } from './isNotNil';
3
- export { isNull } from './isNull';
4
- export { isUndefined } from './isUndefined';
1
+ export { isNil } from './isNil.js';
2
+ export { isNotNil } from './isNotNil.js';
3
+ export { isNull } from './isNull.js';
4
+ export { isUndefined } from './isUndefined.js';
@@ -1,98 +1,56 @@
1
- 'use strict';
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);
2
19
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
20
+ // src/predicate/index.ts
21
+ var predicate_exports = {};
22
+ __export(predicate_exports, {
23
+ isNil: () => isNil,
24
+ isNotNil: () => isNotNil,
25
+ isNull: () => isNull,
26
+ isUndefined: () => isUndefined
27
+ });
28
+ module.exports = __toCommonJS(predicate_exports);
4
29
 
5
- /**
6
- * Checks if a given value is null or undefined.
7
- *
8
- * This function tests whether the provided value is either `null` or `undefined`.
9
- * It returns `true` if the value is `null` or `undefined`, and `false` otherwise.
10
- *
11
- * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null` or `undefined`.
12
- *
13
- * @param {unknown} x - The value to test for null or undefined.
14
- * @returns {boolean} `true` if the value is null or undefined, `false` otherwise.
15
- *
16
- * @example
17
- * * const value1 = null;
18
- * const value2 = undefined;
19
- * const value3 = 42;
20
- * const result1 = isNil(value1); // true
21
- * const result2 = isNil(value2); // true
22
- * const result3 = isNil(value3); // false
23
- */
30
+ // src/predicate/isNil.ts
24
31
  function isNil(x) {
25
- return x == null || x == undefined;
32
+ return x === null || x === void 0;
26
33
  }
27
34
 
28
- /**
29
- * Checks if the given value is not null nor undefined.
30
- *
31
- * The main use of this function is to be used with TypeScript as a type predicate.
32
- *
33
- * @param {T | null | undefined} x - The value to test if it is not null nor undefined.
34
- * @returns {x is T} True if the value is not null nor undefined, false otherwise.
35
- *
36
- * @example
37
- * // Here the type of `arr` is (number | undefined)[]
38
- * const arr = [1, undefined, 3];
39
- * // Here the type of `result` is number[]
40
- * const result = arr.filter(isNotNil);
41
- * // result will be [1, 3]
42
- */
35
+ // src/predicate/isNotNil.ts
43
36
  function isNotNil(x) {
44
- return x != null && x != undefined;
37
+ return x !== null && x !== void 0;
45
38
  }
46
39
 
47
- /**
48
- * Checks if the given value is null.
49
- *
50
- * This function tests whether the provided value is strictly equal to `null`.
51
- * It returns `true` if the value is `null`, and `false` otherwise.
52
- *
53
- * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null`.
54
- *
55
- * @param {unknown} x - The value to test if it is null.
56
- * @returns {x is null} True if the value is null, false otherwise.
57
- *
58
- * @example
59
- * * const value1 = null;
60
- * const value2 = undefined;
61
- * const value3 = 42;
62
- *
63
- * console.log(isNull(value1)); // true
64
- * console.log(isNull(value2)); // false
65
- * console.log(isNull(value3)); // false
66
- */
40
+ // src/predicate/isNull.ts
67
41
  function isNull(x) {
68
42
  return x === null;
69
43
  }
70
44
 
71
- /**
72
- * Checks if the given value is undefined.
73
- *
74
- * This function tests whether the provided value is strictly equal to `undefined`.
75
- * It returns `true` if the value is `undefined`, and `false` otherwise.
76
- *
77
- * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `undefined`.
78
- *
79
- * @param {unknown} x - The value to test if it is undefined.
80
- * @returns {x is undefined} true if the value is undefined, false otherwise.
81
- *
82
- * @example
83
- * * const value1 = undefined;
84
- * const value2 = null;
85
- * const value3 = 42;
86
- *
87
- * console.log(isUndefined(value1)); // true
88
- * console.log(isUndefined(value2)); // false
89
- * console.log(isUndefined(value3)); // false
90
- */
45
+ // src/predicate/isUndefined.ts
91
46
  function isUndefined(x) {
92
- return x === undefined;
47
+ return x === void 0;
93
48
  }
94
-
95
- exports.isNil = isNil;
96
- exports.isNotNil = isNotNil;
97
- exports.isNull = isNull;
98
- exports.isUndefined = isUndefined;
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ isNil,
52
+ isNotNil,
53
+ isNull,
54
+ isUndefined
55
+ });
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/predicate/index.ts","../../src/predicate/isNil.ts","../../src/predicate/isNotNil.ts","../../src/predicate/isNull.ts","../../src/predicate/isUndefined.ts"],"sourcesContent":["export { isNil } from './isNil';\nexport { isNotNil } from './isNotNil';\nexport { isNull } from './isNull';\nexport { isUndefined } from './isUndefined';\n","/**\n * Checks if a given value is null or undefined.\n *\n * This function tests whether the provided value is either `null` or `undefined`.\n * It returns `true` if the value is `null` or `undefined`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null` or `undefined`.\n *\n * @param {unknown} x - The value to test for null or undefined.\n * @returns {boolean} `true` if the value is null or undefined, `false` otherwise.\n *\n * @example\n * * const value1 = null;\n * const value2 = undefined;\n * const value3 = 42;\n * const result1 = isNil(value1); // true\n * const result2 = isNil(value2); // true\n * const result3 = isNil(value3); // false\n */\nexport function isNil(x: unknown): x is null | undefined {\n return x === null || x === undefined;\n}\n","/**\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 * @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","/**\n * Checks if the given value is null.\n *\n * This function tests whether the provided value is strictly equal to `null`.\n * It returns `true` if the value is `null`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null`.\n *\n * @param {unknown} x - The value to test if it is null.\n * @returns {x is null} True if the value is null, false otherwise.\n *\n * @example\n * * const value1 = null;\n * const value2 = undefined;\n * const value3 = 42;\n *\n * console.log(isNull(value1)); // true\n * console.log(isNull(value2)); // false\n * console.log(isNull(value3)); // false\n */\nexport function isNull(x: unknown): x is null {\n return x === null;\n}\n","/**\n * Checks if the given value is undefined.\n *\n * This function tests whether the provided value is strictly equal to `undefined`.\n * It returns `true` if the value is `undefined`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `undefined`.\n *\n * @param {unknown} x - The value to test if it is undefined.\n * @returns {x is undefined} true if the value is undefined, false otherwise.\n *\n * @example\n * * const value1 = undefined;\n * const value2 = null;\n * const value3 = 42;\n *\n * console.log(isUndefined(value1)); // true\n * console.log(isUndefined(value2)); // false\n * console.log(isUndefined(value3)); // false\n */\nexport function isUndefined(x: unknown): x is undefined {\n return x === undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACmBO,SAAS,MAAM,GAAmC;AACvD,SAAO,MAAM,QAAQ,MAAM;AAC7B;;;ACNO,SAAS,SAAY,GAAiC;AAC3D,SAAO,MAAM,QAAQ,MAAM;AAC7B;;;ACGO,SAAS,OAAO,GAAuB;AAC5C,SAAO,MAAM;AACf;;;ACFO,SAAS,YAAY,GAA4B;AACtD,SAAO,MAAM;AACf;","names":[]}
@@ -0,0 +1,21 @@
1
+ import "../chunk-MAJSPFA6.mjs";
2
+ import {
3
+ isNull
4
+ } from "../chunk-Y6ZRNII6.mjs";
5
+ import {
6
+ isUndefined
7
+ } from "../chunk-HOQRMBSB.mjs";
8
+ import {
9
+ isNil
10
+ } from "../chunk-KBJTBR5T.mjs";
11
+ import {
12
+ isNotNil
13
+ } from "../chunk-ZQNAZPSK.mjs";
14
+ import "../chunk-2MM5EJJX.mjs";
15
+ export {
16
+ isNil,
17
+ isNotNil,
18
+ isNull,
19
+ isUndefined
20
+ };
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Checks if a given value is null or undefined.
3
- *
4
- * This function tests whether the provided value is either `null` or `undefined`.
3
+ *
4
+ * This function tests whether the provided value is either `null` or `undefined`.
5
5
  * It returns `true` if the value is `null` or `undefined`, and `false` otherwise.
6
- *
6
+ *
7
7
  * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null` or `undefined`.
8
8
  *
9
9
  * @param {unknown} x - The value to test for null or undefined.
@@ -17,8 +17,6 @@
17
17
  * const result2 = isNil(value2); // true
18
18
  * const result3 = isNil(value3); // false
19
19
  */
20
- function isNil(x) {
21
- return x == null || x == undefined;
22
- }
20
+ declare function isNil(x: unknown): x is null | undefined;
23
21
 
24
22
  export { isNil };
@@ -17,4 +17,6 @@
17
17
  * const result2 = isNil(value2); // true
18
18
  * const result3 = isNil(value3); // false
19
19
  */
20
- export declare function isNil(x: unknown): x is null | undefined;
20
+ declare function isNil(x: unknown): x is null | undefined;
21
+
22
+ export { isNil };
@@ -0,0 +1,33 @@
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);
19
+
20
+ // src/predicate/isNil.ts
21
+ var isNil_exports = {};
22
+ __export(isNil_exports, {
23
+ isNil: () => isNil
24
+ });
25
+ module.exports = __toCommonJS(isNil_exports);
26
+ function isNil(x) {
27
+ return x === null || x === void 0;
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ isNil
32
+ });
33
+ //# sourceMappingURL=isNil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/predicate/isNil.ts"],"sourcesContent":["/**\n * Checks if a given value is null or undefined.\n *\n * This function tests whether the provided value is either `null` or `undefined`.\n * It returns `true` if the value is `null` or `undefined`, and `false` otherwise.\n *\n * This function can also serve as a type predicate in TypeScript, narrowing the type of the argument to `null` or `undefined`.\n *\n * @param {unknown} x - The value to test for null or undefined.\n * @returns {boolean} `true` if the value is null or undefined, `false` otherwise.\n *\n * @example\n * * const value1 = null;\n * const value2 = undefined;\n * const value3 = 42;\n * const result1 = isNil(value1); // true\n * const result2 = isNil(value2); // true\n * const result3 = isNil(value3); // false\n */\nexport function isNil(x: unknown): x is null | undefined {\n return x === null || x === undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBO,SAAS,MAAM,GAAmC;AACvD,SAAO,MAAM,QAAQ,MAAM;AAC7B;","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ isNil
3
+ } from "../chunk-KBJTBR5T.mjs";
4
+ import "../chunk-2MM5EJJX.mjs";
5
+ export {
6
+ isNil
7
+ };
8
+ //# sourceMappingURL=isNil.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Checks if the given value is not null nor undefined.
3
- *
3
+ *
4
4
  * The main use of this function is to be used with TypeScript as a type predicate.
5
5
  *
6
6
  * @param {T | null | undefined} x - The value to test if it is not null nor undefined.
@@ -13,8 +13,6 @@
13
13
  * const result = arr.filter(isNotNil);
14
14
  * // result will be [1, 3]
15
15
  */
16
- function isNotNil(x) {
17
- return x != null && x != undefined;
18
- }
16
+ declare function isNotNil<T>(x: T | null | undefined): x is T;
19
17
 
20
18
  export { isNotNil };
@@ -13,4 +13,6 @@
13
13
  * const result = arr.filter(isNotNil);
14
14
  * // result will be [1, 3]
15
15
  */
16
- export declare function isNotNil<T>(x: T | null | undefined): x is T;
16
+ declare function isNotNil<T>(x: T | null | undefined): x is T;
17
+
18
+ export { isNotNil };