@vielzeug/arsenal 1.0.1

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 (772) hide show
  1. package/README.md +104 -0
  2. package/dist/_common/_abortable.d.ts +5 -0
  3. package/dist/_common/_abortable.d.ts.map +1 -0
  4. package/dist/_common/_lruMap.cjs +2 -0
  5. package/dist/_common/_lruMap.cjs.map +1 -0
  6. package/dist/_common/_lruMap.d.ts +20 -0
  7. package/dist/_common/_lruMap.d.ts.map +1 -0
  8. package/dist/_common/_lruMap.js +18 -0
  9. package/dist/_common/_lruMap.js.map +1 -0
  10. package/dist/_common/_secureRandomIndex.cjs +2 -0
  11. package/dist/_common/_secureRandomIndex.cjs.map +1 -0
  12. package/dist/_common/_secureRandomIndex.d.ts +2 -0
  13. package/dist/_common/_secureRandomIndex.d.ts.map +1 -0
  14. package/dist/_common/_secureRandomIndex.js +9 -0
  15. package/dist/_common/_secureRandomIndex.js.map +1 -0
  16. package/dist/_common/_selectorSet.cjs +2 -0
  17. package/dist/_common/_selectorSet.cjs.map +1 -0
  18. package/dist/_common/_selectorSet.d.ts +2 -0
  19. package/dist/_common/_selectorSet.d.ts.map +1 -0
  20. package/dist/_common/_selectorSet.js +16 -0
  21. package/dist/_common/_selectorSet.js.map +1 -0
  22. package/dist/_common/unsafePaths.cjs +2 -0
  23. package/dist/_common/unsafePaths.cjs.map +1 -0
  24. package/dist/_common/unsafePaths.d.ts +25 -0
  25. package/dist/_common/unsafePaths.d.ts.map +1 -0
  26. package/dist/_common/unsafePaths.js +13 -0
  27. package/dist/_common/unsafePaths.js.map +1 -0
  28. package/dist/_dev.cjs +2 -0
  29. package/dist/_dev.cjs.map +1 -0
  30. package/dist/_dev.d.ts +2 -0
  31. package/dist/_dev.d.ts.map +1 -0
  32. package/dist/_dev.js +9 -0
  33. package/dist/_dev.js.map +1 -0
  34. package/dist/array/chunk.cjs +2 -0
  35. package/dist/array/chunk.cjs.map +1 -0
  36. package/dist/array/chunk.d.ts +19 -0
  37. package/dist/array/chunk.d.ts.map +1 -0
  38. package/dist/array/chunk.js +12 -0
  39. package/dist/array/chunk.js.map +1 -0
  40. package/dist/array/compact.cjs +2 -0
  41. package/dist/array/compact.cjs.map +1 -0
  42. package/dist/array/compact.d.ts +7 -0
  43. package/dist/array/compact.d.ts.map +1 -0
  44. package/dist/array/compact.js +8 -0
  45. package/dist/array/compact.js.map +1 -0
  46. package/dist/array/compare.cjs +2 -0
  47. package/dist/array/compare.cjs.map +1 -0
  48. package/dist/array/compare.d.ts +31 -0
  49. package/dist/array/compare.d.ts.map +1 -0
  50. package/dist/array/compare.js +20 -0
  51. package/dist/array/compare.js.map +1 -0
  52. package/dist/array/compareBy.cjs +2 -0
  53. package/dist/array/compareBy.cjs.map +1 -0
  54. package/dist/array/compareBy.d.ts +24 -0
  55. package/dist/array/compareBy.d.ts.map +1 -0
  56. package/dist/array/compareBy.js +16 -0
  57. package/dist/array/compareBy.js.map +1 -0
  58. package/dist/array/contains.cjs +2 -0
  59. package/dist/array/contains.cjs.map +1 -0
  60. package/dist/array/contains.d.ts +17 -0
  61. package/dist/array/contains.d.ts.map +1 -0
  62. package/dist/array/contains.js +9 -0
  63. package/dist/array/contains.js.map +1 -0
  64. package/dist/array/countBy.cjs +2 -0
  65. package/dist/array/countBy.cjs.map +1 -0
  66. package/dist/array/countBy.d.ts +8 -0
  67. package/dist/array/countBy.d.ts.map +1 -0
  68. package/dist/array/countBy.js +14 -0
  69. package/dist/array/countBy.js.map +1 -0
  70. package/dist/array/difference.cjs +2 -0
  71. package/dist/array/difference.cjs.map +1 -0
  72. package/dist/array/difference.d.ts +6 -0
  73. package/dist/array/difference.d.ts.map +1 -0
  74. package/dist/array/difference.js +14 -0
  75. package/dist/array/difference.js.map +1 -0
  76. package/dist/array/drop.cjs +2 -0
  77. package/dist/array/drop.cjs.map +1 -0
  78. package/dist/array/drop.d.ts +5 -0
  79. package/dist/array/drop.d.ts.map +1 -0
  80. package/dist/array/drop.js +9 -0
  81. package/dist/array/drop.js.map +1 -0
  82. package/dist/array/dropLast.cjs +2 -0
  83. package/dist/array/dropLast.cjs.map +1 -0
  84. package/dist/array/dropLast.d.ts +5 -0
  85. package/dist/array/dropLast.d.ts.map +1 -0
  86. package/dist/array/dropLast.js +9 -0
  87. package/dist/array/dropLast.js.map +1 -0
  88. package/dist/array/filterMap.cjs +2 -0
  89. package/dist/array/filterMap.cjs.map +1 -0
  90. package/dist/array/filterMap.d.ts +5 -0
  91. package/dist/array/filterMap.d.ts.map +1 -0
  92. package/dist/array/filterMap.js +13 -0
  93. package/dist/array/filterMap.js.map +1 -0
  94. package/dist/array/first.cjs +2 -0
  95. package/dist/array/first.cjs.map +1 -0
  96. package/dist/array/first.d.ts +5 -0
  97. package/dist/array/first.d.ts.map +1 -0
  98. package/dist/array/first.js +8 -0
  99. package/dist/array/first.js.map +1 -0
  100. package/dist/array/flatten.cjs +2 -0
  101. package/dist/array/flatten.cjs.map +1 -0
  102. package/dist/array/flatten.d.ts +5 -0
  103. package/dist/array/flatten.d.ts.map +1 -0
  104. package/dist/array/flatten.js +11 -0
  105. package/dist/array/flatten.js.map +1 -0
  106. package/dist/array/groupBy.cjs +2 -0
  107. package/dist/array/groupBy.cjs.map +1 -0
  108. package/dist/array/groupBy.d.ts +7 -0
  109. package/dist/array/groupBy.d.ts.map +1 -0
  110. package/dist/array/groupBy.js +14 -0
  111. package/dist/array/groupBy.js.map +1 -0
  112. package/dist/array/index.d.ts +29 -0
  113. package/dist/array/index.d.ts.map +1 -0
  114. package/dist/array/indexBy.cjs +2 -0
  115. package/dist/array/indexBy.cjs.map +1 -0
  116. package/dist/array/indexBy.d.ts +7 -0
  117. package/dist/array/indexBy.d.ts.map +1 -0
  118. package/dist/array/indexBy.js +14 -0
  119. package/dist/array/indexBy.js.map +1 -0
  120. package/dist/array/intersection.cjs +2 -0
  121. package/dist/array/intersection.cjs.map +1 -0
  122. package/dist/array/intersection.d.ts +6 -0
  123. package/dist/array/intersection.d.ts.map +1 -0
  124. package/dist/array/intersection.js +14 -0
  125. package/dist/array/intersection.js.map +1 -0
  126. package/dist/array/last.cjs +2 -0
  127. package/dist/array/last.cjs.map +1 -0
  128. package/dist/array/last.d.ts +5 -0
  129. package/dist/array/last.d.ts.map +1 -0
  130. package/dist/array/last.js +8 -0
  131. package/dist/array/last.js.map +1 -0
  132. package/dist/array/partition.cjs +2 -0
  133. package/dist/array/partition.cjs.map +1 -0
  134. package/dist/array/partition.d.ts +5 -0
  135. package/dist/array/partition.d.ts.map +1 -0
  136. package/dist/array/partition.js +10 -0
  137. package/dist/array/partition.js.map +1 -0
  138. package/dist/array/replace.cjs +2 -0
  139. package/dist/array/replace.cjs.map +1 -0
  140. package/dist/array/replace.d.ts +18 -0
  141. package/dist/array/replace.d.ts.map +1 -0
  142. package/dist/array/replace.js +13 -0
  143. package/dist/array/replace.js.map +1 -0
  144. package/dist/array/rotate.cjs +2 -0
  145. package/dist/array/rotate.cjs.map +1 -0
  146. package/dist/array/rotate.d.ts +20 -0
  147. package/dist/array/rotate.d.ts.map +1 -0
  148. package/dist/array/rotate.js +10 -0
  149. package/dist/array/rotate.js.map +1 -0
  150. package/dist/array/search.cjs +2 -0
  151. package/dist/array/search.cjs.map +1 -0
  152. package/dist/array/search.d.ts +85 -0
  153. package/dist/array/search.d.ts.map +1 -0
  154. package/dist/array/search.js +47 -0
  155. package/dist/array/search.js.map +1 -0
  156. package/dist/array/sort.cjs +2 -0
  157. package/dist/array/sort.cjs.map +1 -0
  158. package/dist/array/sort.d.ts +26 -0
  159. package/dist/array/sort.d.ts.map +1 -0
  160. package/dist/array/sort.js +16 -0
  161. package/dist/array/sort.js.map +1 -0
  162. package/dist/array/take.cjs +2 -0
  163. package/dist/array/take.cjs.map +1 -0
  164. package/dist/array/take.d.ts +5 -0
  165. package/dist/array/take.d.ts.map +1 -0
  166. package/dist/array/take.js +9 -0
  167. package/dist/array/take.js.map +1 -0
  168. package/dist/array/takeLast.cjs +2 -0
  169. package/dist/array/takeLast.cjs.map +1 -0
  170. package/dist/array/takeLast.d.ts +5 -0
  171. package/dist/array/takeLast.d.ts.map +1 -0
  172. package/dist/array/takeLast.js +9 -0
  173. package/dist/array/takeLast.js.map +1 -0
  174. package/dist/array/toggle.cjs +2 -0
  175. package/dist/array/toggle.cjs.map +1 -0
  176. package/dist/array/toggle.d.ts +29 -0
  177. package/dist/array/toggle.d.ts.map +1 -0
  178. package/dist/array/toggle.js +9 -0
  179. package/dist/array/toggle.js.map +1 -0
  180. package/dist/array/union.cjs +2 -0
  181. package/dist/array/union.cjs.map +1 -0
  182. package/dist/array/union.d.ts +6 -0
  183. package/dist/array/union.d.ts.map +1 -0
  184. package/dist/array/union.js +9 -0
  185. package/dist/array/union.js.map +1 -0
  186. package/dist/array/uniq.cjs +2 -0
  187. package/dist/array/uniq.cjs.map +1 -0
  188. package/dist/array/uniq.d.ts +18 -0
  189. package/dist/array/uniq.d.ts.map +1 -0
  190. package/dist/array/uniq.js +9 -0
  191. package/dist/array/uniq.js.map +1 -0
  192. package/dist/array/unzip.cjs +2 -0
  193. package/dist/array/unzip.cjs.map +1 -0
  194. package/dist/array/unzip.d.ts +7 -0
  195. package/dist/array/unzip.d.ts.map +1 -0
  196. package/dist/array/unzip.js +11 -0
  197. package/dist/array/unzip.js.map +1 -0
  198. package/dist/array/zip.cjs +2 -0
  199. package/dist/array/zip.cjs.map +1 -0
  200. package/dist/array/zip.d.ts +7 -0
  201. package/dist/array/zip.d.ts.map +1 -0
  202. package/dist/array/zip.js +11 -0
  203. package/dist/array/zip.js.map +1 -0
  204. package/dist/arsenal.cjs +2 -0
  205. package/dist/arsenal.cjs.map +1 -0
  206. package/dist/arsenal.iife.js +2 -0
  207. package/dist/arsenal.iife.js.map +1 -0
  208. package/dist/arsenal.js +2 -0
  209. package/dist/arsenal.js.map +1 -0
  210. package/dist/async/abortError.cjs +2 -0
  211. package/dist/async/abortError.cjs.map +1 -0
  212. package/dist/async/abortError.d.ts +23 -0
  213. package/dist/async/abortError.d.ts.map +1 -0
  214. package/dist/async/abortError.js +8 -0
  215. package/dist/async/abortError.js.map +1 -0
  216. package/dist/async/attempt.cjs +2 -0
  217. package/dist/async/attempt.cjs.map +1 -0
  218. package/dist/async/attempt.d.ts +58 -0
  219. package/dist/async/attempt.d.ts.map +1 -0
  220. package/dist/async/attempt.js +31 -0
  221. package/dist/async/attempt.js.map +1 -0
  222. package/dist/async/backoff.cjs +2 -0
  223. package/dist/async/backoff.cjs.map +1 -0
  224. package/dist/async/backoff.d.ts +20 -0
  225. package/dist/async/backoff.d.ts.map +1 -0
  226. package/dist/async/backoff.js +9 -0
  227. package/dist/async/backoff.js.map +1 -0
  228. package/dist/async/index.d.ts +9 -0
  229. package/dist/async/index.d.ts.map +1 -0
  230. package/dist/async/parallel.cjs +2 -0
  231. package/dist/async/parallel.cjs.map +1 -0
  232. package/dist/async/parallel.d.ts +42 -0
  233. package/dist/async/parallel.d.ts.map +1 -0
  234. package/dist/async/parallel.js +26 -0
  235. package/dist/async/parallel.js.map +1 -0
  236. package/dist/async/queue.cjs +2 -0
  237. package/dist/async/queue.cjs.map +1 -0
  238. package/dist/async/queue.d.ts +42 -0
  239. package/dist/async/queue.d.ts.map +1 -0
  240. package/dist/async/queue.js +72 -0
  241. package/dist/async/queue.js.map +1 -0
  242. package/dist/async/retry.cjs +2 -0
  243. package/dist/async/retry.cjs.map +1 -0
  244. package/dist/async/retry.d.ts +46 -0
  245. package/dist/async/retry.d.ts.map +1 -0
  246. package/dist/async/retry.js +26 -0
  247. package/dist/async/retry.js.map +1 -0
  248. package/dist/async/sleep.cjs +2 -0
  249. package/dist/async/sleep.cjs.map +1 -0
  250. package/dist/async/sleep.d.ts +21 -0
  251. package/dist/async/sleep.d.ts.map +1 -0
  252. package/dist/async/sleep.js +16 -0
  253. package/dist/async/sleep.js.map +1 -0
  254. package/dist/async/waitFor.cjs +2 -0
  255. package/dist/async/waitFor.cjs.map +1 -0
  256. package/dist/async/waitFor.d.ts +34 -0
  257. package/dist/async/waitFor.d.ts.map +1 -0
  258. package/dist/async/waitFor.js +13 -0
  259. package/dist/async/waitFor.js.map +1 -0
  260. package/dist/cache/index.d.ts +3 -0
  261. package/dist/cache/index.d.ts.map +1 -0
  262. package/dist/cache/memo.cjs +2 -0
  263. package/dist/cache/memo.cjs.map +1 -0
  264. package/dist/cache/memo.d.ts +40 -0
  265. package/dist/cache/memo.d.ts.map +1 -0
  266. package/dist/cache/memo.js +37 -0
  267. package/dist/cache/memo.js.map +1 -0
  268. package/dist/cache/stash.cjs +2 -0
  269. package/dist/cache/stash.cjs.map +1 -0
  270. package/dist/cache/stash.d.ts +111 -0
  271. package/dist/cache/stash.d.ts.map +1 -0
  272. package/dist/cache/stash.js +92 -0
  273. package/dist/cache/stash.js.map +1 -0
  274. package/dist/errors.cjs +2 -0
  275. package/dist/errors.cjs.map +1 -0
  276. package/dist/errors.d.ts +20 -0
  277. package/dist/errors.d.ts.map +1 -0
  278. package/dist/errors.js +13 -0
  279. package/dist/errors.js.map +1 -0
  280. package/dist/function/assert.cjs +2 -0
  281. package/dist/function/assert.cjs.map +1 -0
  282. package/dist/function/assert.d.ts +19 -0
  283. package/dist/function/assert.d.ts.map +1 -0
  284. package/dist/function/assert.js +8 -0
  285. package/dist/function/assert.js.map +1 -0
  286. package/dist/function/constant.cjs +2 -0
  287. package/dist/function/constant.cjs.map +1 -0
  288. package/dist/function/constant.d.ts +5 -0
  289. package/dist/function/constant.d.ts.map +1 -0
  290. package/dist/function/constant.js +8 -0
  291. package/dist/function/constant.js.map +1 -0
  292. package/dist/function/debounce.cjs +2 -0
  293. package/dist/function/debounce.cjs.map +1 -0
  294. package/dist/function/debounce.d.ts +31 -0
  295. package/dist/function/debounce.d.ts.map +1 -0
  296. package/dist/function/debounce.js +29 -0
  297. package/dist/function/debounce.js.map +1 -0
  298. package/dist/function/identity.cjs +2 -0
  299. package/dist/function/identity.cjs.map +1 -0
  300. package/dist/function/identity.d.ts +5 -0
  301. package/dist/function/identity.d.ts.map +1 -0
  302. package/dist/function/identity.js +8 -0
  303. package/dist/function/identity.js.map +1 -0
  304. package/dist/function/index.d.ts +10 -0
  305. package/dist/function/index.d.ts.map +1 -0
  306. package/dist/function/once.cjs +2 -0
  307. package/dist/function/once.cjs.map +1 -0
  308. package/dist/function/once.d.ts +32 -0
  309. package/dist/function/once.d.ts.map +1 -0
  310. package/dist/function/once.js +11 -0
  311. package/dist/function/once.js.map +1 -0
  312. package/dist/function/pipe.cjs +2 -0
  313. package/dist/function/pipe.cjs.map +1 -0
  314. package/dist/function/pipe.d.ts +32 -0
  315. package/dist/function/pipe.d.ts.map +1 -0
  316. package/dist/function/pipe.js +10 -0
  317. package/dist/function/pipe.js.map +1 -0
  318. package/dist/function/runAll.cjs +2 -0
  319. package/dist/function/runAll.cjs.map +1 -0
  320. package/dist/function/runAll.d.ts +15 -0
  321. package/dist/function/runAll.d.ts.map +1 -0
  322. package/dist/function/runAll.js +19 -0
  323. package/dist/function/runAll.js.map +1 -0
  324. package/dist/function/tap.cjs +2 -0
  325. package/dist/function/tap.cjs.map +1 -0
  326. package/dist/function/tap.d.ts +5 -0
  327. package/dist/function/tap.d.ts.map +1 -0
  328. package/dist/function/tap.js +8 -0
  329. package/dist/function/tap.js.map +1 -0
  330. package/dist/function/throttle.cjs +2 -0
  331. package/dist/function/throttle.cjs.map +1 -0
  332. package/dist/function/throttle.d.ts +23 -0
  333. package/dist/function/throttle.d.ts.map +1 -0
  334. package/dist/function/throttle.js +36 -0
  335. package/dist/function/throttle.js.map +1 -0
  336. package/dist/guards/combinators.cjs +2 -0
  337. package/dist/guards/combinators.cjs.map +1 -0
  338. package/dist/guards/combinators.d.ts +49 -0
  339. package/dist/guards/combinators.d.ts.map +1 -0
  340. package/dist/guards/combinators.js +17 -0
  341. package/dist/guards/combinators.js.map +1 -0
  342. package/dist/guards/index.d.ts +20 -0
  343. package/dist/guards/index.d.ts.map +1 -0
  344. package/dist/guards/isAbortError.cjs +2 -0
  345. package/dist/guards/isAbortError.cjs.map +1 -0
  346. package/dist/guards/isAbortError.d.ts +19 -0
  347. package/dist/guards/isAbortError.d.ts.map +1 -0
  348. package/dist/guards/isAbortError.js +8 -0
  349. package/dist/guards/isAbortError.js.map +1 -0
  350. package/dist/guards/isArray.cjs +2 -0
  351. package/dist/guards/isArray.cjs.map +1 -0
  352. package/dist/guards/isArray.d.ts +16 -0
  353. package/dist/guards/isArray.d.ts.map +1 -0
  354. package/dist/guards/isArray.js +8 -0
  355. package/dist/guards/isArray.js.map +1 -0
  356. package/dist/guards/isBoolean.cjs +2 -0
  357. package/dist/guards/isBoolean.cjs.map +1 -0
  358. package/dist/guards/isBoolean.d.ts +23 -0
  359. package/dist/guards/isBoolean.d.ts.map +1 -0
  360. package/dist/guards/isBoolean.js +8 -0
  361. package/dist/guards/isBoolean.js.map +1 -0
  362. package/dist/guards/isDate.cjs +2 -0
  363. package/dist/guards/isDate.cjs.map +1 -0
  364. package/dist/guards/isDate.d.ts +15 -0
  365. package/dist/guards/isDate.d.ts.map +1 -0
  366. package/dist/guards/isDate.js +8 -0
  367. package/dist/guards/isDate.js.map +1 -0
  368. package/dist/guards/isDefined.cjs +2 -0
  369. package/dist/guards/isDefined.cjs.map +1 -0
  370. package/dist/guards/isDefined.d.ts +19 -0
  371. package/dist/guards/isDefined.d.ts.map +1 -0
  372. package/dist/guards/isDefined.js +8 -0
  373. package/dist/guards/isDefined.js.map +1 -0
  374. package/dist/guards/isEmpty.cjs +2 -0
  375. package/dist/guards/isEmpty.cjs.map +1 -0
  376. package/dist/guards/isEmpty.d.ts +23 -0
  377. package/dist/guards/isEmpty.d.ts.map +1 -0
  378. package/dist/guards/isEmpty.js +10 -0
  379. package/dist/guards/isEmpty.js.map +1 -0
  380. package/dist/guards/isEqual.cjs +2 -0
  381. package/dist/guards/isEqual.cjs.map +1 -0
  382. package/dist/guards/isEqual.d.ts +24 -0
  383. package/dist/guards/isEqual.d.ts.map +1 -0
  384. package/dist/guards/isEqual.js +34 -0
  385. package/dist/guards/isEqual.js.map +1 -0
  386. package/dist/guards/isError.cjs +2 -0
  387. package/dist/guards/isError.cjs.map +1 -0
  388. package/dist/guards/isError.d.ts +15 -0
  389. package/dist/guards/isError.d.ts.map +1 -0
  390. package/dist/guards/isError.js +8 -0
  391. package/dist/guards/isError.js.map +1 -0
  392. package/dist/guards/isFunction.cjs +2 -0
  393. package/dist/guards/isFunction.cjs.map +1 -0
  394. package/dist/guards/isFunction.d.ts +16 -0
  395. package/dist/guards/isFunction.d.ts.map +1 -0
  396. package/dist/guards/isFunction.js +8 -0
  397. package/dist/guards/isFunction.js.map +1 -0
  398. package/dist/guards/isMatch.cjs +2 -0
  399. package/dist/guards/isMatch.cjs.map +1 -0
  400. package/dist/guards/isMatch.d.ts +23 -0
  401. package/dist/guards/isMatch.d.ts.map +1 -0
  402. package/dist/guards/isMatch.js +23 -0
  403. package/dist/guards/isMatch.js.map +1 -0
  404. package/dist/guards/isNil.cjs +2 -0
  405. package/dist/guards/isNil.cjs.map +1 -0
  406. package/dist/guards/isNil.d.ts +17 -0
  407. package/dist/guards/isNil.d.ts.map +1 -0
  408. package/dist/guards/isNil.js +8 -0
  409. package/dist/guards/isNil.js.map +1 -0
  410. package/dist/guards/isNumber.cjs +2 -0
  411. package/dist/guards/isNumber.cjs.map +1 -0
  412. package/dist/guards/isNumber.d.ts +15 -0
  413. package/dist/guards/isNumber.d.ts.map +1 -0
  414. package/dist/guards/isNumber.js +8 -0
  415. package/dist/guards/isNumber.js.map +1 -0
  416. package/dist/guards/isPlainObject.cjs +2 -0
  417. package/dist/guards/isPlainObject.cjs.map +1 -0
  418. package/dist/guards/isPlainObject.d.ts +16 -0
  419. package/dist/guards/isPlainObject.d.ts.map +1 -0
  420. package/dist/guards/isPlainObject.js +10 -0
  421. package/dist/guards/isPlainObject.js.map +1 -0
  422. package/dist/guards/isPrimitive.cjs +2 -0
  423. package/dist/guards/isPrimitive.cjs.map +1 -0
  424. package/dist/guards/isPrimitive.d.ts +18 -0
  425. package/dist/guards/isPrimitive.d.ts.map +1 -0
  426. package/dist/guards/isPrimitive.js +9 -0
  427. package/dist/guards/isPrimitive.js.map +1 -0
  428. package/dist/guards/isPromise.cjs +2 -0
  429. package/dist/guards/isPromise.cjs.map +1 -0
  430. package/dist/guards/isPromise.d.ts +17 -0
  431. package/dist/guards/isPromise.d.ts.map +1 -0
  432. package/dist/guards/isPromise.js +8 -0
  433. package/dist/guards/isPromise.js.map +1 -0
  434. package/dist/guards/isRegex.cjs +2 -0
  435. package/dist/guards/isRegex.cjs.map +1 -0
  436. package/dist/guards/isRegex.d.ts +21 -0
  437. package/dist/guards/isRegex.d.ts.map +1 -0
  438. package/dist/guards/isRegex.js +8 -0
  439. package/dist/guards/isRegex.js.map +1 -0
  440. package/dist/guards/isString.cjs +2 -0
  441. package/dist/guards/isString.cjs.map +1 -0
  442. package/dist/guards/isString.d.ts +15 -0
  443. package/dist/guards/isString.d.ts.map +1 -0
  444. package/dist/guards/isString.js +8 -0
  445. package/dist/guards/isString.js.map +1 -0
  446. package/dist/guards/shallowEqual.cjs +2 -0
  447. package/dist/guards/shallowEqual.cjs.map +1 -0
  448. package/dist/guards/shallowEqual.d.ts +29 -0
  449. package/dist/guards/shallowEqual.d.ts.map +1 -0
  450. package/dist/guards/shallowEqual.js +20 -0
  451. package/dist/guards/shallowEqual.js.map +1 -0
  452. package/dist/index.cjs +1 -0
  453. package/dist/index.d.ts +119 -0
  454. package/dist/index.d.ts.map +1 -0
  455. package/dist/index.js +118 -0
  456. package/dist/math/abs.cjs +2 -0
  457. package/dist/math/abs.cjs.map +1 -0
  458. package/dist/math/abs.d.ts +17 -0
  459. package/dist/math/abs.d.ts.map +1 -0
  460. package/dist/math/abs.js +8 -0
  461. package/dist/math/abs.js.map +1 -0
  462. package/dist/math/allocate.cjs +2 -0
  463. package/dist/math/allocate.cjs.map +1 -0
  464. package/dist/math/allocate.d.ts +29 -0
  465. package/dist/math/allocate.d.ts.map +1 -0
  466. package/dist/math/allocate.js +20 -0
  467. package/dist/math/allocate.js.map +1 -0
  468. package/dist/math/average.cjs +2 -0
  469. package/dist/math/average.cjs.map +1 -0
  470. package/dist/math/average.d.ts +16 -0
  471. package/dist/math/average.d.ts.map +1 -0
  472. package/dist/math/average.js +14 -0
  473. package/dist/math/average.js.map +1 -0
  474. package/dist/math/clamp.cjs +2 -0
  475. package/dist/math/clamp.cjs.map +1 -0
  476. package/dist/math/clamp.d.ts +21 -0
  477. package/dist/math/clamp.d.ts.map +1 -0
  478. package/dist/math/clamp.js +8 -0
  479. package/dist/math/clamp.js.map +1 -0
  480. package/dist/math/gcd.cjs +2 -0
  481. package/dist/math/gcd.cjs.map +1 -0
  482. package/dist/math/gcd.d.ts +18 -0
  483. package/dist/math/gcd.d.ts.map +1 -0
  484. package/dist/math/gcd.js +13 -0
  485. package/dist/math/gcd.js.map +1 -0
  486. package/dist/math/index.d.ts +20 -0
  487. package/dist/math/index.d.ts.map +1 -0
  488. package/dist/math/lcm.cjs +2 -0
  489. package/dist/math/lcm.cjs.map +1 -0
  490. package/dist/math/lcm.d.ts +15 -0
  491. package/dist/math/lcm.d.ts.map +1 -0
  492. package/dist/math/lcm.js +9 -0
  493. package/dist/math/lcm.js.map +1 -0
  494. package/dist/math/lerp.cjs +2 -0
  495. package/dist/math/lerp.cjs.map +1 -0
  496. package/dist/math/lerp.d.ts +17 -0
  497. package/dist/math/lerp.d.ts.map +1 -0
  498. package/dist/math/lerp.js +8 -0
  499. package/dist/math/lerp.js.map +1 -0
  500. package/dist/math/linspace.cjs +2 -0
  501. package/dist/math/linspace.cjs.map +1 -0
  502. package/dist/math/linspace.d.ts +19 -0
  503. package/dist/math/linspace.d.ts.map +1 -0
  504. package/dist/math/linspace.js +11 -0
  505. package/dist/math/linspace.js.map +1 -0
  506. package/dist/math/max.cjs +2 -0
  507. package/dist/math/max.cjs.map +1 -0
  508. package/dist/math/max.d.ts +21 -0
  509. package/dist/math/max.d.ts.map +1 -0
  510. package/dist/math/max.js +12 -0
  511. package/dist/math/max.js.map +1 -0
  512. package/dist/math/median.cjs +2 -0
  513. package/dist/math/median.cjs.map +1 -0
  514. package/dist/math/median.d.ts +17 -0
  515. package/dist/math/median.d.ts.map +1 -0
  516. package/dist/math/median.js +12 -0
  517. package/dist/math/median.js.map +1 -0
  518. package/dist/math/min.cjs +2 -0
  519. package/dist/math/min.cjs.map +1 -0
  520. package/dist/math/min.d.ts +21 -0
  521. package/dist/math/min.d.ts.map +1 -0
  522. package/dist/math/min.js +12 -0
  523. package/dist/math/min.js.map +1 -0
  524. package/dist/math/mod.cjs +2 -0
  525. package/dist/math/mod.cjs.map +1 -0
  526. package/dist/math/mod.d.ts +18 -0
  527. package/dist/math/mod.d.ts.map +1 -0
  528. package/dist/math/mod.js +10 -0
  529. package/dist/math/mod.js.map +1 -0
  530. package/dist/math/normalize.cjs +2 -0
  531. package/dist/math/normalize.cjs.map +1 -0
  532. package/dist/math/normalize.d.ts +18 -0
  533. package/dist/math/normalize.d.ts.map +1 -0
  534. package/dist/math/normalize.js +9 -0
  535. package/dist/math/normalize.js.map +1 -0
  536. package/dist/math/percent.cjs +2 -0
  537. package/dist/math/percent.cjs.map +1 -0
  538. package/dist/math/percent.d.ts +19 -0
  539. package/dist/math/percent.d.ts.map +1 -0
  540. package/dist/math/percent.js +8 -0
  541. package/dist/math/percent.js.map +1 -0
  542. package/dist/math/range.cjs +2 -0
  543. package/dist/math/range.cjs.map +1 -0
  544. package/dist/math/range.d.ts +37 -0
  545. package/dist/math/range.d.ts.map +1 -0
  546. package/dist/math/range.js +27 -0
  547. package/dist/math/range.js.map +1 -0
  548. package/dist/math/round.cjs +2 -0
  549. package/dist/math/round.cjs.map +1 -0
  550. package/dist/math/round.d.ts +21 -0
  551. package/dist/math/round.d.ts.map +1 -0
  552. package/dist/math/round.js +10 -0
  553. package/dist/math/round.js.map +1 -0
  554. package/dist/math/standardDeviation.cjs +2 -0
  555. package/dist/math/standardDeviation.cjs.map +1 -0
  556. package/dist/math/standardDeviation.d.ts +16 -0
  557. package/dist/math/standardDeviation.d.ts.map +1 -0
  558. package/dist/math/standardDeviation.js +9 -0
  559. package/dist/math/standardDeviation.js.map +1 -0
  560. package/dist/math/sum.cjs +2 -0
  561. package/dist/math/sum.cjs.map +1 -0
  562. package/dist/math/sum.d.ts +19 -0
  563. package/dist/math/sum.d.ts.map +1 -0
  564. package/dist/math/sum.js +13 -0
  565. package/dist/math/sum.js.map +1 -0
  566. package/dist/math/variance.cjs +2 -0
  567. package/dist/math/variance.cjs.map +1 -0
  568. package/dist/math/variance.d.ts +17 -0
  569. package/dist/math/variance.d.ts.map +1 -0
  570. package/dist/math/variance.js +11 -0
  571. package/dist/math/variance.js.map +1 -0
  572. package/dist/object/defaults.cjs +2 -0
  573. package/dist/object/defaults.cjs.map +1 -0
  574. package/dist/object/defaults.d.ts +17 -0
  575. package/dist/object/defaults.d.ts.map +1 -0
  576. package/dist/object/defaults.js +12 -0
  577. package/dist/object/defaults.js.map +1 -0
  578. package/dist/object/diff.cjs +2 -0
  579. package/dist/object/diff.cjs.map +1 -0
  580. package/dist/object/diff.d.ts +63 -0
  581. package/dist/object/diff.d.ts.map +1 -0
  582. package/dist/object/diff.js +27 -0
  583. package/dist/object/diff.js.map +1 -0
  584. package/dist/object/filterValues.cjs +2 -0
  585. package/dist/object/filterValues.cjs.map +1 -0
  586. package/dist/object/filterValues.d.ts +16 -0
  587. package/dist/object/filterValues.d.ts.map +1 -0
  588. package/dist/object/filterValues.js +11 -0
  589. package/dist/object/filterValues.js.map +1 -0
  590. package/dist/object/flattenPaths.cjs +2 -0
  591. package/dist/object/flattenPaths.cjs.map +1 -0
  592. package/dist/object/flattenPaths.d.ts +13 -0
  593. package/dist/object/flattenPaths.d.ts.map +1 -0
  594. package/dist/object/flattenPaths.js +31 -0
  595. package/dist/object/flattenPaths.js.map +1 -0
  596. package/dist/object/getPath.cjs +2 -0
  597. package/dist/object/getPath.cjs.map +1 -0
  598. package/dist/object/getPath.d.ts +48 -0
  599. package/dist/object/getPath.d.ts.map +1 -0
  600. package/dist/object/getPath.js +27 -0
  601. package/dist/object/getPath.js.map +1 -0
  602. package/dist/object/hash.cjs +2 -0
  603. package/dist/object/hash.cjs.map +1 -0
  604. package/dist/object/hash.d.ts +12 -0
  605. package/dist/object/hash.d.ts.map +1 -0
  606. package/dist/object/hash.js +28 -0
  607. package/dist/object/hash.js.map +1 -0
  608. package/dist/object/index.d.ts +15 -0
  609. package/dist/object/index.d.ts.map +1 -0
  610. package/dist/object/invert.cjs +2 -0
  611. package/dist/object/invert.cjs.map +1 -0
  612. package/dist/object/invert.d.ts +15 -0
  613. package/dist/object/invert.d.ts.map +1 -0
  614. package/dist/object/invert.js +11 -0
  615. package/dist/object/invert.js.map +1 -0
  616. package/dist/object/mapKeys.cjs +2 -0
  617. package/dist/object/mapKeys.cjs.map +1 -0
  618. package/dist/object/mapKeys.d.ts +16 -0
  619. package/dist/object/mapKeys.d.ts.map +1 -0
  620. package/dist/object/mapKeys.js +15 -0
  621. package/dist/object/mapKeys.js.map +1 -0
  622. package/dist/object/mapValues.cjs +2 -0
  623. package/dist/object/mapValues.cjs.map +1 -0
  624. package/dist/object/mapValues.d.ts +18 -0
  625. package/dist/object/mapValues.d.ts.map +1 -0
  626. package/dist/object/mapValues.js +11 -0
  627. package/dist/object/mapValues.js.map +1 -0
  628. package/dist/object/merge.cjs +2 -0
  629. package/dist/object/merge.cjs.map +1 -0
  630. package/dist/object/merge.d.ts +41 -0
  631. package/dist/object/merge.d.ts.map +1 -0
  632. package/dist/object/merge.js +27 -0
  633. package/dist/object/merge.js.map +1 -0
  634. package/dist/object/omit.cjs +2 -0
  635. package/dist/object/omit.cjs.map +1 -0
  636. package/dist/object/omit.d.ts +16 -0
  637. package/dist/object/omit.d.ts.map +1 -0
  638. package/dist/object/omit.js +11 -0
  639. package/dist/object/omit.js.map +1 -0
  640. package/dist/object/parseJSON.cjs +2 -0
  641. package/dist/object/parseJSON.cjs.map +1 -0
  642. package/dist/object/parseJSON.d.ts +32 -0
  643. package/dist/object/parseJSON.d.ts.map +1 -0
  644. package/dist/object/parseJSON.js +16 -0
  645. package/dist/object/parseJSON.js.map +1 -0
  646. package/dist/object/pick.cjs +2 -0
  647. package/dist/object/pick.cjs.map +1 -0
  648. package/dist/object/pick.d.ts +17 -0
  649. package/dist/object/pick.d.ts.map +1 -0
  650. package/dist/object/pick.js +11 -0
  651. package/dist/object/pick.js.map +1 -0
  652. package/dist/object/prune.cjs +2 -0
  653. package/dist/object/prune.cjs.map +1 -0
  654. package/dist/object/prune.d.ts +26 -0
  655. package/dist/object/prune.d.ts.map +1 -0
  656. package/dist/object/prune.js +36 -0
  657. package/dist/object/prune.js.map +1 -0
  658. package/dist/random/draw.cjs +2 -0
  659. package/dist/random/draw.cjs.map +1 -0
  660. package/dist/random/draw.d.ts +24 -0
  661. package/dist/random/draw.d.ts.map +1 -0
  662. package/dist/random/draw.js +21 -0
  663. package/dist/random/draw.js.map +1 -0
  664. package/dist/random/index.d.ts +5 -0
  665. package/dist/random/index.d.ts.map +1 -0
  666. package/dist/random/random.cjs +2 -0
  667. package/dist/random/random.cjs.map +1 -0
  668. package/dist/random/random.d.ts +14 -0
  669. package/dist/random/random.d.ts.map +1 -0
  670. package/dist/random/random.js +11 -0
  671. package/dist/random/random.js.map +1 -0
  672. package/dist/random/shuffle.cjs +2 -0
  673. package/dist/random/shuffle.cjs.map +1 -0
  674. package/dist/random/shuffle.d.ts +12 -0
  675. package/dist/random/shuffle.d.ts.map +1 -0
  676. package/dist/random/shuffle.js +14 -0
  677. package/dist/random/shuffle.js.map +1 -0
  678. package/dist/random/uuid.cjs +2 -0
  679. package/dist/random/uuid.cjs.map +1 -0
  680. package/dist/random/uuid.d.ts +12 -0
  681. package/dist/random/uuid.d.ts.map +1 -0
  682. package/dist/random/uuid.js +8 -0
  683. package/dist/random/uuid.js.map +1 -0
  684. package/dist/string/_caseUtils.cjs +2 -0
  685. package/dist/string/_caseUtils.cjs.map +1 -0
  686. package/dist/string/_caseUtils.d.ts +9 -0
  687. package/dist/string/_caseUtils.d.ts.map +1 -0
  688. package/dist/string/_caseUtils.js +13 -0
  689. package/dist/string/_caseUtils.js.map +1 -0
  690. package/dist/string/camelCase.cjs +2 -0
  691. package/dist/string/camelCase.cjs.map +1 -0
  692. package/dist/string/camelCase.d.ts +14 -0
  693. package/dist/string/camelCase.d.ts.map +1 -0
  694. package/dist/string/camelCase.js +9 -0
  695. package/dist/string/camelCase.js.map +1 -0
  696. package/dist/string/endsWith.cjs +2 -0
  697. package/dist/string/endsWith.cjs.map +1 -0
  698. package/dist/string/endsWith.d.ts +5 -0
  699. package/dist/string/endsWith.d.ts.map +1 -0
  700. package/dist/string/endsWith.js +8 -0
  701. package/dist/string/endsWith.js.map +1 -0
  702. package/dist/string/escape.cjs +2 -0
  703. package/dist/string/escape.cjs.map +1 -0
  704. package/dist/string/escape.d.ts +5 -0
  705. package/dist/string/escape.d.ts.map +1 -0
  706. package/dist/string/escape.js +15 -0
  707. package/dist/string/escape.js.map +1 -0
  708. package/dist/string/index.d.ts +14 -0
  709. package/dist/string/index.d.ts.map +1 -0
  710. package/dist/string/kebabCase.cjs +2 -0
  711. package/dist/string/kebabCase.cjs.map +1 -0
  712. package/dist/string/kebabCase.d.ts +15 -0
  713. package/dist/string/kebabCase.d.ts.map +1 -0
  714. package/dist/string/kebabCase.js +9 -0
  715. package/dist/string/kebabCase.js.map +1 -0
  716. package/dist/string/pad.cjs +2 -0
  717. package/dist/string/pad.cjs.map +1 -0
  718. package/dist/string/pad.d.ts +5 -0
  719. package/dist/string/pad.d.ts.map +1 -0
  720. package/dist/string/pad.js +10 -0
  721. package/dist/string/pad.js.map +1 -0
  722. package/dist/string/pascalCase.cjs +2 -0
  723. package/dist/string/pascalCase.cjs.map +1 -0
  724. package/dist/string/pascalCase.d.ts +15 -0
  725. package/dist/string/pascalCase.d.ts.map +1 -0
  726. package/dist/string/pascalCase.js +9 -0
  727. package/dist/string/pascalCase.js.map +1 -0
  728. package/dist/string/similarity.cjs +2 -0
  729. package/dist/string/similarity.cjs.map +1 -0
  730. package/dist/string/similarity.d.ts +2 -0
  731. package/dist/string/similarity.d.ts.map +1 -0
  732. package/dist/string/similarity.js +24 -0
  733. package/dist/string/similarity.js.map +1 -0
  734. package/dist/string/snakeCase.cjs +2 -0
  735. package/dist/string/snakeCase.cjs.map +1 -0
  736. package/dist/string/snakeCase.d.ts +15 -0
  737. package/dist/string/snakeCase.d.ts.map +1 -0
  738. package/dist/string/snakeCase.js +9 -0
  739. package/dist/string/snakeCase.js.map +1 -0
  740. package/dist/string/startsWith.cjs +2 -0
  741. package/dist/string/startsWith.cjs.map +1 -0
  742. package/dist/string/startsWith.d.ts +5 -0
  743. package/dist/string/startsWith.d.ts.map +1 -0
  744. package/dist/string/startsWith.js +8 -0
  745. package/dist/string/startsWith.js.map +1 -0
  746. package/dist/string/titleCase.cjs +2 -0
  747. package/dist/string/titleCase.cjs.map +1 -0
  748. package/dist/string/titleCase.d.ts +5 -0
  749. package/dist/string/titleCase.d.ts.map +1 -0
  750. package/dist/string/titleCase.js +9 -0
  751. package/dist/string/titleCase.js.map +1 -0
  752. package/dist/string/truncate.cjs +2 -0
  753. package/dist/string/truncate.cjs.map +1 -0
  754. package/dist/string/truncate.d.ts +27 -0
  755. package/dist/string/truncate.d.ts.map +1 -0
  756. package/dist/string/truncate.js +17 -0
  757. package/dist/string/truncate.js.map +1 -0
  758. package/dist/string/unescape.cjs +2 -0
  759. package/dist/string/unescape.cjs.map +1 -0
  760. package/dist/string/unescape.d.ts +5 -0
  761. package/dist/string/unescape.d.ts.map +1 -0
  762. package/dist/string/unescape.js +15 -0
  763. package/dist/string/unescape.js.map +1 -0
  764. package/dist/string/words.cjs +2 -0
  765. package/dist/string/words.cjs.map +1 -0
  766. package/dist/string/words.d.ts +5 -0
  767. package/dist/string/words.d.ts.map +1 -0
  768. package/dist/string/words.js +10 -0
  769. package/dist/string/words.js.map +1 -0
  770. package/dist/types.d.ts +13 -0
  771. package/dist/types.d.ts.map +1 -0
  772. package/package.json +102 -0
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Determines if the passed value is a number.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * isNumber(123); // true
7
+ * isNumber('hello world'); // false
8
+ * ```
9
+ *
10
+ * @param arg - The argument to be checked.
11
+ *
12
+ * @returns `true` if the value is a number, else `false`.
13
+ */
14
+ export declare function isNumber(arg: unknown): arg is number;
15
+ //# sourceMappingURL=isNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNumber.d.ts","sourceRoot":"","sources":["../../src/guards/isNumber.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEpD"}
@@ -0,0 +1,8 @@
1
+ //#region src/guards/isNumber.ts
2
+ function e(e) {
3
+ return typeof e == "number" && !Number.isNaN(e);
4
+ }
5
+ //#endregion
6
+ export { e as isNumber };
7
+
8
+ //# sourceMappingURL=isNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNumber.js","names":[],"sources":["../../src/guards/isNumber.ts"],"sourcesContent":["/**\n * Determines if the passed value is a number.\n *\n * @example\n * ```ts\n * isNumber(123); // true\n * isNumber('hello world'); // false\n * ```\n *\n * @param arg - The argument to be checked.\n *\n * @returns `true` if the value is a number, else `false`.\n */\nexport function isNumber(arg: unknown): arg is number {\n return typeof arg === 'number' && !Number.isNaN(arg);\n}\n"],"mappings":";AAaA,SAAgB,EAAS,GAA6B;CACpD,OAAO,OAAO,KAAQ,YAAY,CAAC,OAAO,MAAM,CAAG;AACrD"}
@@ -0,0 +1,2 @@
1
+ function e(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}exports.isPlainObject=e;
2
+ //# sourceMappingURL=isPlainObject.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPlainObject.cjs","names":[],"sources":["../../src/guards/isPlainObject.ts"],"sourcesContent":["/**\n * Returns `true` if `value` is a plain object — one with `Object.prototype` or `null` as its\n * prototype. Class instances, `Map`, `Set`, `Array` and other built-ins all return `false`.\n *\n * @example\n * ```ts\n * isPlainObject({}) // true\n * isPlainObject({ a: 1 }) // true\n * isPlainObject(Object.create(null)) // true\n * isPlainObject(new Map()) // false\n * isPlainObject([]) // false\n * isPlainObject(null) // false\n * ```\n */\nexport function isPlainObject(value: unknown): value is Record<string, unknown> {\n if (value == null || typeof value !== 'object') return false;\n\n const prototype = Object.getPrototypeOf(value);\n\n return prototype === Object.prototype || prototype === null;\n}\n"],"mappings":"AAcA,SAAgB,EAAc,EAAkD,CAC9E,GAAqB,OAAO,GAAU,WAAlC,EAA4C,MAAO,GAEvD,IAAM,EAAY,OAAO,eAAe,CAAK,EAE7C,OAAO,IAAc,OAAO,WAAa,IAAc,IACzD"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Returns `true` if `value` is a plain object — one with `Object.prototype` or `null` as its
3
+ * prototype. Class instances, `Map`, `Set`, `Array` and other built-ins all return `false`.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * isPlainObject({}) // true
8
+ * isPlainObject({ a: 1 }) // true
9
+ * isPlainObject(Object.create(null)) // true
10
+ * isPlainObject(new Map()) // false
11
+ * isPlainObject([]) // false
12
+ * isPlainObject(null) // false
13
+ * ```
14
+ */
15
+ export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
16
+ //# sourceMappingURL=isPlainObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPlainObject.d.ts","sourceRoot":"","sources":["../../src/guards/isPlainObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAM9E"}
@@ -0,0 +1,10 @@
1
+ //#region src/guards/isPlainObject.ts
2
+ function e(e) {
3
+ if (typeof e != "object" || !e) return !1;
4
+ let t = Object.getPrototypeOf(e);
5
+ return t === Object.prototype || t === null;
6
+ }
7
+ //#endregion
8
+ export { e as isPlainObject };
9
+
10
+ //# sourceMappingURL=isPlainObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPlainObject.js","names":[],"sources":["../../src/guards/isPlainObject.ts"],"sourcesContent":["/**\n * Returns `true` if `value` is a plain object — one with `Object.prototype` or `null` as its\n * prototype. Class instances, `Map`, `Set`, `Array` and other built-ins all return `false`.\n *\n * @example\n * ```ts\n * isPlainObject({}) // true\n * isPlainObject({ a: 1 }) // true\n * isPlainObject(Object.create(null)) // true\n * isPlainObject(new Map()) // false\n * isPlainObject([]) // false\n * isPlainObject(null) // false\n * ```\n */\nexport function isPlainObject(value: unknown): value is Record<string, unknown> {\n if (value == null || typeof value !== 'object') return false;\n\n const prototype = Object.getPrototypeOf(value);\n\n return prototype === Object.prototype || prototype === null;\n}\n"],"mappings":";AAcA,SAAgB,EAAc,GAAkD;CAC9E,IAAqB,OAAO,KAAU,aAAlC,GAA4C,OAAO;CAEvD,IAAM,IAAY,OAAO,eAAe,CAAK;CAE7C,OAAO,MAAc,OAAO,aAAa,MAAc;AACzD"}
@@ -0,0 +1,2 @@
1
+ function e(e){let t=typeof e;return t===`string`||t===`boolean`||t===`number`&&!Number.isNaN(e)}exports.isPrimitive=e;
2
+ //# sourceMappingURL=isPrimitive.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPrimitive.cjs","names":[],"sources":["../../src/guards/isPrimitive.ts"],"sourcesContent":["/**\n * Type guard to check if a value is a primitive\n *\n * @example\n * ```ts\n * isPrimitive('Hello World'); // true\n * isPrimitive(42); // true\n * isPrimitive(true); // true\n * isPrimitive({}); // false\n * isPrimitive([]); // false\n * isPrimitive(() => {}); // false\n * ```\n * @param arg - The argument to be checked.\n *\n * @returns `true` if the value is a primitive, else `false`.\n */\nexport function isPrimitive(arg: unknown): arg is string | number | boolean {\n const type = typeof arg;\n\n return type === 'string' || type === 'boolean' || (type === 'number' && !Number.isNaN(arg));\n}\n"],"mappings":"AAgBA,SAAgB,EAAY,EAAgD,CAC1E,IAAM,EAAO,OAAO,EAEpB,OAAO,IAAS,UAAY,IAAS,WAAc,IAAS,UAAY,CAAC,OAAO,MAAM,CAAG,CAC3F"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Type guard to check if a value is a primitive
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * isPrimitive('Hello World'); // true
7
+ * isPrimitive(42); // true
8
+ * isPrimitive(true); // true
9
+ * isPrimitive({}); // false
10
+ * isPrimitive([]); // false
11
+ * isPrimitive(() => {}); // false
12
+ * ```
13
+ * @param arg - The argument to be checked.
14
+ *
15
+ * @returns `true` if the value is a primitive, else `false`.
16
+ */
17
+ export declare function isPrimitive(arg: unknown): arg is string | number | boolean;
18
+ //# sourceMappingURL=isPrimitive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPrimitive.d.ts","sourceRoot":"","sources":["../../src/guards/isPrimitive.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,CAI1E"}
@@ -0,0 +1,9 @@
1
+ //#region src/guards/isPrimitive.ts
2
+ function e(e) {
3
+ let t = typeof e;
4
+ return t === "string" || t === "boolean" || t === "number" && !Number.isNaN(e);
5
+ }
6
+ //#endregion
7
+ export { e as isPrimitive };
8
+
9
+ //# sourceMappingURL=isPrimitive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPrimitive.js","names":[],"sources":["../../src/guards/isPrimitive.ts"],"sourcesContent":["/**\n * Type guard to check if a value is a primitive\n *\n * @example\n * ```ts\n * isPrimitive('Hello World'); // true\n * isPrimitive(42); // true\n * isPrimitive(true); // true\n * isPrimitive({}); // false\n * isPrimitive([]); // false\n * isPrimitive(() => {}); // false\n * ```\n * @param arg - The argument to be checked.\n *\n * @returns `true` if the value is a primitive, else `false`.\n */\nexport function isPrimitive(arg: unknown): arg is string | number | boolean {\n const type = typeof arg;\n\n return type === 'string' || type === 'boolean' || (type === 'number' && !Number.isNaN(arg));\n}\n"],"mappings":";AAgBA,SAAgB,EAAY,GAAgD;CAC1E,IAAM,IAAO,OAAO;CAEpB,OAAO,MAAS,YAAY,MAAS,aAAc,MAAS,YAAY,CAAC,OAAO,MAAM,CAAG;AAC3F"}
@@ -0,0 +1,2 @@
1
+ function e(e){return typeof e==`object`&&!!e&&typeof e.then==`function`}exports.isPromise=e;
2
+ //# sourceMappingURL=isPromise.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPromise.cjs","names":[],"sources":["../../src/guards/isPromise.ts"],"sourcesContent":["/**\n * Determines if the passed value is a Promise (or any thenable).\n *\n * @example\n * ```ts\n * isPromise(new Promise((resolve) => resolve(1))); // true\n * isPromise(asyncFn()); // true (calling it returns a Promise)\n * isPromise(async () => {}); // false (the function itself is not a Promise)\n * isPromise(() => {}); // false\n * ```\n *\n * @param arg - The argument to be checked.\n *\n * @returns `true` if the value is a thenable, else `false`.\n */\nexport function isPromise(arg: unknown): arg is Promise<unknown> {\n return typeof arg === 'object' && arg !== null && typeof (arg as { then?: unknown }).then === 'function';\n}\n"],"mappings":"AAeA,SAAgB,EAAU,EAAuC,CAC/D,OAAO,OAAO,GAAQ,YAAY,GAAgB,OAAQ,EAA2B,MAAS,UAChG"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Determines if the passed value is a Promise (or any thenable).
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * isPromise(new Promise((resolve) => resolve(1))); // true
7
+ * isPromise(asyncFn()); // true (calling it returns a Promise)
8
+ * isPromise(async () => {}); // false (the function itself is not a Promise)
9
+ * isPromise(() => {}); // false
10
+ * ```
11
+ *
12
+ * @param arg - The argument to be checked.
13
+ *
14
+ * @returns `true` if the value is a thenable, else `false`.
15
+ */
16
+ export declare function isPromise(arg: unknown): arg is Promise<unknown>;
17
+ //# sourceMappingURL=isPromise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPromise.d.ts","sourceRoot":"","sources":["../../src/guards/isPromise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAE/D"}
@@ -0,0 +1,8 @@
1
+ //#region src/guards/isPromise.ts
2
+ function e(e) {
3
+ return typeof e == "object" && !!e && typeof e.then == "function";
4
+ }
5
+ //#endregion
6
+ export { e as isPromise };
7
+
8
+ //# sourceMappingURL=isPromise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPromise.js","names":[],"sources":["../../src/guards/isPromise.ts"],"sourcesContent":["/**\n * Determines if the passed value is a Promise (or any thenable).\n *\n * @example\n * ```ts\n * isPromise(new Promise((resolve) => resolve(1))); // true\n * isPromise(asyncFn()); // true (calling it returns a Promise)\n * isPromise(async () => {}); // false (the function itself is not a Promise)\n * isPromise(() => {}); // false\n * ```\n *\n * @param arg - The argument to be checked.\n *\n * @returns `true` if the value is a thenable, else `false`.\n */\nexport function isPromise(arg: unknown): arg is Promise<unknown> {\n return typeof arg === 'object' && arg !== null && typeof (arg as { then?: unknown }).then === 'function';\n}\n"],"mappings":";AAeA,SAAgB,EAAU,GAAuC;CAC/D,OAAO,OAAO,KAAQ,cAAY,KAAgB,OAAQ,EAA2B,QAAS;AAChG"}
@@ -0,0 +1,2 @@
1
+ function e(e){return e instanceof RegExp}exports.isRegex=e;
2
+ //# sourceMappingURL=isRegex.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRegex.cjs","names":[],"sources":["../../src/guards/isRegex.ts"],"sourcesContent":["/**\n * Checks if the provided argument is a regular expression.\n *\n * @example\n * ```ts\n * isRegex(/abc/); // true\n * isRegex(new RegExp('abc')); // true\n * isRegex('abc'); // false\n * isRegex(123); // false\n * isRegex({}); // false\n * isRegex([]); // false\n * isRegex(null); // false\n * isRegex(undefined); // false\n * ```\n *\n * @param arg - The argument to be checked.\n *\n * @return `true` if the argument is a regular expression, otherwise `false`.\n */\nexport function isRegex(arg: unknown): arg is RegExp {\n return arg instanceof RegExp;\n}\n"],"mappings":"AAmBA,SAAgB,EAAQ,EAA6B,CACnD,OAAO,aAAe,MACxB"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Checks if the provided argument is a regular expression.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * isRegex(/abc/); // true
7
+ * isRegex(new RegExp('abc')); // true
8
+ * isRegex('abc'); // false
9
+ * isRegex(123); // false
10
+ * isRegex({}); // false
11
+ * isRegex([]); // false
12
+ * isRegex(null); // false
13
+ * isRegex(undefined); // false
14
+ * ```
15
+ *
16
+ * @param arg - The argument to be checked.
17
+ *
18
+ * @return `true` if the argument is a regular expression, otherwise `false`.
19
+ */
20
+ export declare function isRegex(arg: unknown): arg is RegExp;
21
+ //# sourceMappingURL=isRegex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRegex.d.ts","sourceRoot":"","sources":["../../src/guards/isRegex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEnD"}
@@ -0,0 +1,8 @@
1
+ //#region src/guards/isRegex.ts
2
+ function e(e) {
3
+ return e instanceof RegExp;
4
+ }
5
+ //#endregion
6
+ export { e as isRegex };
7
+
8
+ //# sourceMappingURL=isRegex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isRegex.js","names":[],"sources":["../../src/guards/isRegex.ts"],"sourcesContent":["/**\n * Checks if the provided argument is a regular expression.\n *\n * @example\n * ```ts\n * isRegex(/abc/); // true\n * isRegex(new RegExp('abc')); // true\n * isRegex('abc'); // false\n * isRegex(123); // false\n * isRegex({}); // false\n * isRegex([]); // false\n * isRegex(null); // false\n * isRegex(undefined); // false\n * ```\n *\n * @param arg - The argument to be checked.\n *\n * @return `true` if the argument is a regular expression, otherwise `false`.\n */\nexport function isRegex(arg: unknown): arg is RegExp {\n return arg instanceof RegExp;\n}\n"],"mappings":";AAmBA,SAAgB,EAAQ,GAA6B;CACnD,OAAO,aAAe;AACxB"}
@@ -0,0 +1,2 @@
1
+ function e(e){return typeof e==`string`}exports.isString=e;
2
+ //# sourceMappingURL=isString.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isString.cjs","names":[],"sources":["../../src/guards/isString.ts"],"sourcesContent":["/**\n * Determines if the passed value is a String.\n *\n * @example\n * ```ts\n * isString('Hello World'); // true\n * isString(42); // false\n * ```\n *\n * @param arg - The argument to be checked.\n *\n * @returns `true` if the value is a String, else `false`.\n */\nexport function isString(arg: unknown): arg is string {\n return typeof arg === 'string';\n}\n"],"mappings":"AAaA,SAAgB,EAAS,EAA6B,CACpD,OAAO,OAAO,GAAQ,QACxB"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Determines if the passed value is a String.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * isString('Hello World'); // true
7
+ * isString(42); // false
8
+ * ```
9
+ *
10
+ * @param arg - The argument to be checked.
11
+ *
12
+ * @returns `true` if the value is a String, else `false`.
13
+ */
14
+ export declare function isString(arg: unknown): arg is string;
15
+ //# sourceMappingURL=isString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isString.d.ts","sourceRoot":"","sources":["../../src/guards/isString.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAEpD"}
@@ -0,0 +1,8 @@
1
+ //#region src/guards/isString.ts
2
+ function e(e) {
3
+ return typeof e == "string";
4
+ }
5
+ //#endregion
6
+ export { e as isString };
7
+
8
+ //# sourceMappingURL=isString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isString.js","names":[],"sources":["../../src/guards/isString.ts"],"sourcesContent":["/**\n * Determines if the passed value is a String.\n *\n * @example\n * ```ts\n * isString('Hello World'); // true\n * isString(42); // false\n * ```\n *\n * @param arg - The argument to be checked.\n *\n * @returns `true` if the value is a String, else `false`.\n */\nexport function isString(arg: unknown): arg is string {\n return typeof arg === 'string';\n}\n"],"mappings":";AAaA,SAAgB,EAAS,GAA6B;CACpD,OAAO,OAAO,KAAQ;AACxB"}
@@ -0,0 +1,2 @@
1
+ function e(e,t){if(Object.is(e,t))return!0;if(e===null||t===null||typeof e!=`object`||typeof t!=`object`)return!1;let n=Array.isArray(e),r=Array.isArray(t);if(n!==r)return!1;if(n&&r){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}let i=Object.keys(e),a=t,o=e;if(i.length!==Object.keys(a).length)return!1;for(let e of i)if(!Object.hasOwn(a,e)||!Object.is(o[e],a[e]))return!1;return!0}exports.shallowEqual=e;
2
+ //# sourceMappingURL=shallowEqual.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shallowEqual.cjs","names":[],"sources":["../../src/guards/shallowEqual.ts"],"sourcesContent":["/**\n * Compares two values for shallow equality.\n *\n * - Primitives are compared with `Object.is`.\n * - Arrays are compared element-by-element with `Object.is` (one level deep).\n * - Objects are compared key-by-key with `Object.is` on each value (one level deep).\n * - Different types (e.g. array vs object) return `false`.\n *\n * Uses `Object.is` for the primitive comparison, so `shallowEqual(NaN, NaN)` is `true` and\n * `shallowEqual(0, -0)` is `false` — the opposite of `isEqual`, which uses `===` and treats\n * `NaN` as never equal to itself and `-0` as equal to `0`.\n *\n * For recursive deep equality, use `isEqual`.\n *\n * @example\n * ```ts\n * const inner = { x: 1 };\n * shallowEqual({ a: inner }, { a: inner }); // true — same reference\n * shallowEqual({ a: { x: 1 } }, { a: { x: 1 } }); // false — different refs\n * shallowEqual([1, 2, 3], [1, 2, 3]); // true\n * shallowEqual(1, 1); // true\n * ```\n *\n * @param a - First value.\n * @param b - Second value.\n * @returns `true` if the values are shallowly equal.\n */\nexport function shallowEqual(a: unknown, b: unknown): boolean {\n if (Object.is(a, b)) return true;\n\n if (a === null || b === null || typeof a !== 'object' || typeof b !== 'object') return false;\n\n const isArrayA = Array.isArray(a);\n const isArrayB = Array.isArray(b);\n\n if (isArrayA !== isArrayB) return false;\n\n if (isArrayA && isArrayB) {\n if (a.length !== b.length) return false;\n\n for (let i = 0; i < a.length; i++) {\n if (!Object.is(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n const aKeys = Object.keys(a as Record<string, unknown>);\n const bObj = b as Record<string, unknown>;\n const aObj = a as Record<string, unknown>;\n\n if (aKeys.length !== Object.keys(bObj).length) return false;\n\n for (const key of aKeys) {\n if (!Object.hasOwn(bObj, key) || !Object.is(aObj[key], bObj[key])) return false;\n }\n\n return true;\n}\n"],"mappings":"AA2BA,SAAgB,EAAa,EAAY,EAAqB,CAC5D,GAAI,OAAO,GAAG,EAAG,CAAC,EAAG,MAAO,GAE5B,GAAI,IAAM,MAAQ,IAAM,MAAQ,OAAO,GAAM,UAAY,OAAO,GAAM,SAAU,MAAO,GAEvF,IAAM,EAAW,MAAM,QAAQ,CAAC,EAC1B,EAAW,MAAM,QAAQ,CAAC,EAEhC,GAAI,IAAa,EAAU,MAAO,GAElC,GAAI,GAAY,EAAU,CACxB,GAAI,EAAE,SAAW,EAAE,OAAQ,MAAO,GAElC,IAAK,IAAI,EAAI,EAAG,EAAI,EAAE,OAAQ,IAC5B,GAAI,CAAC,OAAO,GAAG,EAAE,GAAI,EAAE,EAAE,EAAG,MAAO,GAGrC,MAAO,EACT,CAEA,IAAM,EAAQ,OAAO,KAAK,CAA4B,EAChD,EAAO,EACP,EAAO,EAEb,GAAI,EAAM,SAAW,OAAO,KAAK,CAAI,CAAC,CAAC,OAAQ,MAAO,GAEtD,IAAK,IAAM,KAAO,EAChB,GAAI,CAAC,OAAO,OAAO,EAAM,CAAG,GAAK,CAAC,OAAO,GAAG,EAAK,GAAM,EAAK,EAAI,EAAG,MAAO,GAG5E,MAAO,EACT"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Compares two values for shallow equality.
3
+ *
4
+ * - Primitives are compared with `Object.is`.
5
+ * - Arrays are compared element-by-element with `Object.is` (one level deep).
6
+ * - Objects are compared key-by-key with `Object.is` on each value (one level deep).
7
+ * - Different types (e.g. array vs object) return `false`.
8
+ *
9
+ * Uses `Object.is` for the primitive comparison, so `shallowEqual(NaN, NaN)` is `true` and
10
+ * `shallowEqual(0, -0)` is `false` — the opposite of `isEqual`, which uses `===` and treats
11
+ * `NaN` as never equal to itself and `-0` as equal to `0`.
12
+ *
13
+ * For recursive deep equality, use `isEqual`.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const inner = { x: 1 };
18
+ * shallowEqual({ a: inner }, { a: inner }); // true — same reference
19
+ * shallowEqual({ a: { x: 1 } }, { a: { x: 1 } }); // false — different refs
20
+ * shallowEqual([1, 2, 3], [1, 2, 3]); // true
21
+ * shallowEqual(1, 1); // true
22
+ * ```
23
+ *
24
+ * @param a - First value.
25
+ * @param b - Second value.
26
+ * @returns `true` if the values are shallowly equal.
27
+ */
28
+ export declare function shallowEqual(a: unknown, b: unknown): boolean;
29
+ //# sourceMappingURL=shallowEqual.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shallowEqual.d.ts","sourceRoot":"","sources":["../../src/guards/shallowEqual.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA+B5D"}
@@ -0,0 +1,20 @@
1
+ //#region src/guards/shallowEqual.ts
2
+ function e(e, t) {
3
+ if (Object.is(e, t)) return !0;
4
+ if (e === null || t === null || typeof e != "object" || typeof t != "object") return !1;
5
+ let n = Array.isArray(e), r = Array.isArray(t);
6
+ if (n !== r) return !1;
7
+ if (n && r) {
8
+ if (e.length !== t.length) return !1;
9
+ for (let n = 0; n < e.length; n++) if (!Object.is(e[n], t[n])) return !1;
10
+ return !0;
11
+ }
12
+ let i = Object.keys(e), a = t, o = e;
13
+ if (i.length !== Object.keys(a).length) return !1;
14
+ for (let e of i) if (!Object.hasOwn(a, e) || !Object.is(o[e], a[e])) return !1;
15
+ return !0;
16
+ }
17
+ //#endregion
18
+ export { e as shallowEqual };
19
+
20
+ //# sourceMappingURL=shallowEqual.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shallowEqual.js","names":[],"sources":["../../src/guards/shallowEqual.ts"],"sourcesContent":["/**\n * Compares two values for shallow equality.\n *\n * - Primitives are compared with `Object.is`.\n * - Arrays are compared element-by-element with `Object.is` (one level deep).\n * - Objects are compared key-by-key with `Object.is` on each value (one level deep).\n * - Different types (e.g. array vs object) return `false`.\n *\n * Uses `Object.is` for the primitive comparison, so `shallowEqual(NaN, NaN)` is `true` and\n * `shallowEqual(0, -0)` is `false` — the opposite of `isEqual`, which uses `===` and treats\n * `NaN` as never equal to itself and `-0` as equal to `0`.\n *\n * For recursive deep equality, use `isEqual`.\n *\n * @example\n * ```ts\n * const inner = { x: 1 };\n * shallowEqual({ a: inner }, { a: inner }); // true — same reference\n * shallowEqual({ a: { x: 1 } }, { a: { x: 1 } }); // false — different refs\n * shallowEqual([1, 2, 3], [1, 2, 3]); // true\n * shallowEqual(1, 1); // true\n * ```\n *\n * @param a - First value.\n * @param b - Second value.\n * @returns `true` if the values are shallowly equal.\n */\nexport function shallowEqual(a: unknown, b: unknown): boolean {\n if (Object.is(a, b)) return true;\n\n if (a === null || b === null || typeof a !== 'object' || typeof b !== 'object') return false;\n\n const isArrayA = Array.isArray(a);\n const isArrayB = Array.isArray(b);\n\n if (isArrayA !== isArrayB) return false;\n\n if (isArrayA && isArrayB) {\n if (a.length !== b.length) return false;\n\n for (let i = 0; i < a.length; i++) {\n if (!Object.is(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n const aKeys = Object.keys(a as Record<string, unknown>);\n const bObj = b as Record<string, unknown>;\n const aObj = a as Record<string, unknown>;\n\n if (aKeys.length !== Object.keys(bObj).length) return false;\n\n for (const key of aKeys) {\n if (!Object.hasOwn(bObj, key) || !Object.is(aObj[key], bObj[key])) return false;\n }\n\n return true;\n}\n"],"mappings":";AA2BA,SAAgB,EAAa,GAAY,GAAqB;CAC5D,IAAI,OAAO,GAAG,GAAG,CAAC,GAAG,OAAO;CAE5B,IAAI,MAAM,QAAQ,MAAM,QAAQ,OAAO,KAAM,YAAY,OAAO,KAAM,UAAU,OAAO;CAEvF,IAAM,IAAW,MAAM,QAAQ,CAAC,GAC1B,IAAW,MAAM,QAAQ,CAAC;CAEhC,IAAI,MAAa,GAAU,OAAO;CAElC,IAAI,KAAY,GAAU;EACxB,IAAI,EAAE,WAAW,EAAE,QAAQ,OAAO;EAElC,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,KAC5B,IAAI,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,OAAO;EAGrC,OAAO;CACT;CAEA,IAAM,IAAQ,OAAO,KAAK,CAA4B,GAChD,IAAO,GACP,IAAO;CAEb,IAAI,EAAM,WAAW,OAAO,KAAK,CAAI,CAAC,CAAC,QAAQ,OAAO;CAEtD,KAAK,IAAM,KAAO,GAChB,IAAI,CAAC,OAAO,OAAO,GAAM,CAAG,KAAK,CAAC,OAAO,GAAG,EAAK,IAAM,EAAK,EAAI,GAAG,OAAO;CAG5E,OAAO;AACT"}
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./errors.cjs"),ee=require("./guards/isString.cjs"),t=require("./array/chunk.cjs"),n=require("./array/compact.cjs"),r=require("./array/compare.cjs"),te=require("./array/compareBy.cjs"),ne=require("./guards/isEqual.cjs"),re=require("./array/contains.cjs"),ie=require("./array/countBy.cjs"),ae=require("./array/difference.cjs"),i=require("./array/drop.cjs"),a=require("./array/dropLast.cjs"),o=require("./array/filterMap.cjs"),s=require("./array/first.cjs"),c=require("./array/flatten.cjs"),l=require("./array/groupBy.cjs"),u=require("./array/indexBy.cjs"),d=require("./array/intersection.cjs"),f=require("./array/last.cjs"),p=require("./array/partition.cjs"),m=require("./array/replace.cjs"),h=require("./array/rotate.cjs"),g=require("./guards/isNil.cjs"),_=require("./guards/isNumber.cjs"),v=require("./string/similarity.cjs"),y=require("./array/search.cjs"),b=require("./array/sort.cjs"),x=require("./array/take.cjs"),S=require("./array/takeLast.cjs"),C=require("./array/toggle.cjs"),w=require("./array/union.cjs"),T=require("./array/uniq.cjs"),E=require("./array/unzip.cjs"),D=require("./array/zip.cjs"),O=require("./async/abortError.cjs"),k=require("./async/attempt.cjs"),A=require("./async/backoff.cjs"),j=require("./async/parallel.cjs"),M=require("./async/queue.cjs"),N=require("./async/sleep.cjs"),P=require("./async/retry.cjs"),F=require("./async/waitFor.cjs"),I=require("./cache/memo.cjs"),L=require("./guards/isPromise.cjs"),R=require("./cache/stash.cjs"),z=require("./function/assert.cjs"),B=require("./function/constant.cjs"),V=require("./function/debounce.cjs"),H=require("./function/identity.cjs"),U=require("./function/once.cjs"),W=require("./function/pipe.cjs"),G=require("./function/runAll.cjs"),K=require("./function/tap.cjs"),q=require("./function/throttle.cjs"),J=require("./guards/combinators.cjs"),oe=require("./guards/isAbortError.cjs"),se=require("./guards/isArray.cjs"),ce=require("./guards/isBoolean.cjs"),le=require("./guards/isDate.cjs"),ue=require("./guards/isDefined.cjs"),Y=require("./guards/isPlainObject.cjs"),de=require("./guards/isEmpty.cjs"),fe=require("./guards/isError.cjs"),pe=require("./guards/isFunction.cjs"),me=require("./guards/isMatch.cjs"),he=require("./guards/isPrimitive.cjs"),ge=require("./guards/isRegex.cjs"),_e=require("./guards/shallowEqual.cjs"),ve=require("./math/abs.cjs"),ye=require("./math/allocate.cjs"),be=require("./math/sum.cjs"),xe=require("./math/average.cjs"),Se=require("./math/clamp.cjs"),Ce=require("./math/gcd.cjs"),we=require("./math/lcm.cjs"),Te=require("./math/lerp.cjs"),Ee=require("./math/linspace.cjs"),De=require("./math/max.cjs"),Oe=require("./math/median.cjs"),ke=require("./math/min.cjs"),Ae=require("./math/mod.cjs"),je=require("./math/normalize.cjs"),Me=require("./math/percent.cjs"),Ne=require("./math/range.cjs"),Pe=require("./math/round.cjs"),Fe=require("./math/variance.cjs"),Ie=require("./math/standardDeviation.cjs"),Le=require("./object/defaults.cjs"),X=require("./object/diff.cjs"),Re=require("./object/filterValues.cjs"),Z=require("./object/flattenPaths.cjs"),ze=require("./object/getPath.cjs"),Be=require("./object/invert.cjs"),Ve=require("./object/mapKeys.cjs"),He=require("./object/mapValues.cjs"),Q=require("./object/merge.cjs"),Ue=require("./object/omit.cjs"),We=require("./object/parseJSON.cjs"),Ge=require("./object/pick.cjs"),Ke=require("./object/prune.cjs"),qe=require("./object/hash.cjs"),Je=require("./random/random.cjs"),$=require("./random/draw.cjs"),Ye=require("./random/shuffle.cjs"),Xe=require("./random/uuid.cjs"),Ze=require("./string/camelCase.cjs"),Qe=require("./string/endsWith.cjs"),$e=require("./string/escape.cjs"),et=require("./string/kebabCase.cjs"),tt=require("./string/pad.cjs"),nt=require("./string/pascalCase.cjs"),rt=require("./string/snakeCase.cjs"),it=require("./string/startsWith.cjs"),at=require("./string/words.cjs"),ot=require("./string/titleCase.cjs"),st=require("./string/truncate.cjs"),ct=require("./string/unescape.cjs");exports.ArsenalError=e.ArsenalError,exports.ArsenalSerializationError=e.ArsenalSerializationError,exports.ArsenalValidationError=e.ArsenalValidationError,exports.abortError=O.abortError,exports.abs=ve.abs,exports.allOf=J.allOf,exports.allocate=ye.allocate,exports.anyOf=J.anyOf,exports.assert=z.assert,exports.attempt=k.attempt,exports.average=xe.average,exports.backoff=A.backoff,exports.camelCase=Ze.camelCase,exports.chunk=t.chunk,exports.clamp=Se.clamp,exports.compact=n.compact,exports.compare=r.compare,exports.compareBy=te.compareBy,exports.constant=B.constant,exports.contains=re.contains,exports.countBy=ie.countBy,exports.debounce=V.debounce,exports.deepMerge=Q.deepMerge,exports.defaults=Le.defaults,exports.diff=X.diff,exports.diffArrays=X.diffArrays,exports.difference=ae.difference,exports.draw=$.draw,exports.drawMany=$.drawMany,exports.drop=i.drop,exports.dropLast=a.dropLast,exports.endsWith=Qe.endsWith,exports.escape=$e.escape,exports.filterMap=o.filterMap,exports.filterValues=Re.filterValues,exports.first=s.first,exports.flatten=c.flatten,exports.flattenPaths=Z.flattenPaths,exports.fuzzy=y.fuzzy,exports.fuzzyFilter=y.fuzzyFilter,exports.fuzzyScore=y.fuzzyScore,exports.gcd=Ce.gcd,exports.getPath=ze.getPath,exports.groupBy=l.groupBy,exports.hash=qe.hash,exports.identity=H.identity,exports.indexBy=u.indexBy,exports.intersection=d.intersection,exports.invert=Be.invert,exports.isAbortError=oe.isAbortError,exports.isArray=se.isArray,exports.isBoolean=ce.isBoolean,exports.isDate=le.isDate,exports.isDefined=ue.isDefined,exports.isEmpty=de.isEmpty,exports.isEqual=ne.isEqual,exports.isError=fe.isError,exports.isFail=k.isFail,exports.isFunction=pe.isFunction,exports.isMatch=me.isMatch,exports.isNil=g.isNil,exports.isNumber=_.isNumber,exports.isOk=k.isOk,exports.isPlainObject=Y.isPlainObject,exports.isPrimitive=he.isPrimitive,exports.isPromise=L.isPromise,exports.isRegex=ge.isRegex,exports.isString=ee.isString,exports.kebabCase=et.kebabCase,exports.last=f.last,exports.lcm=we.lcm,exports.lerp=Te.lerp,exports.linspace=Ee.linspace,exports.mapKeys=Ve.mapKeys,exports.mapValues=He.mapValues,exports.max=De.max,exports.median=Oe.median,exports.memo=I.memo,exports.min=ke.min,exports.mod=Ae.mod,exports.noneOf=J.noneOf,exports.normalize=je.normalize,exports.not=J.not,exports.omit=Ue.omit,exports.once=U.once,exports.pad=tt.pad,exports.parallel=j.parallel,exports.parseJSON=We.parseJSON,exports.partition=p.partition,exports.pascalCase=nt.pascalCase,exports.percent=Me.percent,exports.pick=Ge.pick,exports.pipe=W.pipe,exports.prune=Ke.prune,exports.queue=M.queue,exports.random=Je.random,exports.range=Ne.range,exports.replace=m.replace,exports.retry=P.retry,exports.rotate=h.rotate,exports.round=Pe.round,exports.runAll=G.runAll,exports.shallowEqual=_e.shallowEqual,exports.shallowMerge=Q.shallowMerge,exports.shuffle=Ye.shuffle,exports.similarity=v.similarity,exports.sleep=N.sleep,exports.snakeCase=rt.snakeCase,exports.sort=b.sort,exports.standardDeviation=Ie.standardDeviation,exports.startsWith=it.startsWith,exports.stash=R.stash,exports.sum=be.sum,exports.take=x.take,exports.takeLast=S.takeLast,exports.tap=K.tap,exports.throttle=q.throttle,exports.titleCase=ot.titleCase,exports.toggle=C.toggle,exports.truncate=st.truncate,exports.unescape=ct.unescape,exports.unflattenPaths=Z.unflattenPaths,exports.union=w.union,exports.uniq=T.uniq,exports.unzip=E.unzip,exports.uuid=Xe.uuid,exports.variance=Fe.variance,exports.waitFor=F.waitFor,exports.words=at.words,exports.zip=D.zip;
@@ -0,0 +1,119 @@
1
+ export { ArsenalError, ArsenalSerializationError, ArsenalValidationError } from './errors';
2
+ export * from './array/chunk';
3
+ export * from './array/compact';
4
+ export * from './array/compare';
5
+ export * from './array/compareBy';
6
+ export * from './array/contains';
7
+ export * from './array/countBy';
8
+ export * from './array/difference';
9
+ export * from './array/drop';
10
+ export * from './array/dropLast';
11
+ export * from './array/filterMap';
12
+ export * from './array/first';
13
+ export * from './array/flatten';
14
+ export * from './array/groupBy';
15
+ export * from './array/indexBy';
16
+ export * from './array/intersection';
17
+ export * from './array/last';
18
+ export * from './array/partition';
19
+ export * from './array/replace';
20
+ export * from './array/rotate';
21
+ export * from './array/search';
22
+ export * from './array/sort';
23
+ export * from './array/take';
24
+ export * from './array/takeLast';
25
+ export * from './array/toggle';
26
+ export * from './array/union';
27
+ export * from './array/uniq';
28
+ export * from './array/unzip';
29
+ export * from './array/zip';
30
+ export * from './async/abortError';
31
+ export * from './async/attempt';
32
+ export * from './async/backoff';
33
+ export * from './async/parallel';
34
+ export * from './async/queue';
35
+ export * from './async/retry';
36
+ export * from './async/sleep';
37
+ export * from './async/waitFor';
38
+ export * from './cache/memo';
39
+ export * from './cache/stash';
40
+ export * from './function/assert';
41
+ export * from './function/constant';
42
+ export * from './function/debounce';
43
+ export * from './function/identity';
44
+ export * from './function/once';
45
+ export * from './function/pipe';
46
+ export * from './function/runAll';
47
+ export * from './function/tap';
48
+ export * from './function/throttle';
49
+ export * from './guards/combinators';
50
+ export * from './guards/isAbortError';
51
+ export * from './guards/isArray';
52
+ export * from './guards/isBoolean';
53
+ export * from './guards/isDate';
54
+ export * from './guards/isDefined';
55
+ export * from './guards/isEmpty';
56
+ export * from './guards/isEqual';
57
+ export * from './guards/isError';
58
+ export * from './guards/isFunction';
59
+ export * from './guards/isMatch';
60
+ export * from './guards/isNil';
61
+ export * from './guards/isNumber';
62
+ export * from './guards/isPlainObject';
63
+ export * from './guards/isPrimitive';
64
+ export * from './guards/isPromise';
65
+ export * from './guards/isRegex';
66
+ export * from './guards/isString';
67
+ export * from './guards/shallowEqual';
68
+ export * from './math/abs';
69
+ export * from './math/allocate';
70
+ export * from './math/average';
71
+ export * from './math/clamp';
72
+ export * from './math/gcd';
73
+ export * from './math/lcm';
74
+ export * from './math/lerp';
75
+ export * from './math/linspace';
76
+ export * from './math/max';
77
+ export * from './math/median';
78
+ export * from './math/min';
79
+ export * from './math/mod';
80
+ export * from './math/normalize';
81
+ export * from './math/percent';
82
+ export * from './math/range';
83
+ export * from './math/round';
84
+ export * from './math/standardDeviation';
85
+ export * from './math/sum';
86
+ export * from './math/variance';
87
+ export * from './object/defaults';
88
+ export * from './object/diff';
89
+ export * from './object/filterValues';
90
+ export * from './object/flattenPaths';
91
+ export * from './object/getPath';
92
+ export * from './object/invert';
93
+ export * from './object/mapKeys';
94
+ export * from './object/mapValues';
95
+ export * from './object/merge';
96
+ export * from './object/omit';
97
+ export * from './object/parseJSON';
98
+ export * from './object/pick';
99
+ export * from './object/prune';
100
+ export * from './object/hash';
101
+ export * from './random/draw';
102
+ export * from './random/random';
103
+ export * from './random/shuffle';
104
+ export * from './random/uuid';
105
+ export * from './string/camelCase';
106
+ export * from './string/endsWith';
107
+ export * from './string/escape';
108
+ export * from './string/kebabCase';
109
+ export * from './string/pad';
110
+ export * from './string/pascalCase';
111
+ export * from './string/similarity';
112
+ export * from './string/snakeCase';
113
+ export * from './string/startsWith';
114
+ export * from './string/titleCase';
115
+ export * from './string/truncate';
116
+ export * from './string/unescape';
117
+ export * from './string/words';
118
+ export * from './types';
119
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAC3F,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,118 @@
1
+ import { ArsenalError as e, ArsenalSerializationError as t, ArsenalValidationError as n } from "./errors.js";
2
+ import { isString as r } from "./guards/isString.js";
3
+ import { chunk as i } from "./array/chunk.js";
4
+ import { compact as a } from "./array/compact.js";
5
+ import { compare as o } from "./array/compare.js";
6
+ import { compareBy as s } from "./array/compareBy.js";
7
+ import { isEqual as c } from "./guards/isEqual.js";
8
+ import { contains as l } from "./array/contains.js";
9
+ import { countBy as u } from "./array/countBy.js";
10
+ import { difference as d } from "./array/difference.js";
11
+ import { drop as f } from "./array/drop.js";
12
+ import { dropLast as p } from "./array/dropLast.js";
13
+ import { filterMap as m } from "./array/filterMap.js";
14
+ import { first as h } from "./array/first.js";
15
+ import { flatten as g } from "./array/flatten.js";
16
+ import { groupBy as _ } from "./array/groupBy.js";
17
+ import { indexBy as v } from "./array/indexBy.js";
18
+ import { intersection as y } from "./array/intersection.js";
19
+ import { last as b } from "./array/last.js";
20
+ import { partition as x } from "./array/partition.js";
21
+ import { replace as S } from "./array/replace.js";
22
+ import { rotate as C } from "./array/rotate.js";
23
+ import { isNil as w } from "./guards/isNil.js";
24
+ import { isNumber as T } from "./guards/isNumber.js";
25
+ import { similarity as E } from "./string/similarity.js";
26
+ import { fuzzy as D, fuzzyFilter as O, fuzzyScore as k } from "./array/search.js";
27
+ import { sort as A } from "./array/sort.js";
28
+ import { take as j } from "./array/take.js";
29
+ import { takeLast as M } from "./array/takeLast.js";
30
+ import { toggle as N } from "./array/toggle.js";
31
+ import { union as P } from "./array/union.js";
32
+ import { uniq as F } from "./array/uniq.js";
33
+ import { unzip as I } from "./array/unzip.js";
34
+ import { zip as L } from "./array/zip.js";
35
+ import { abortError as R } from "./async/abortError.js";
36
+ import { attempt as z, isFail as B, isOk as V } from "./async/attempt.js";
37
+ import { backoff as H } from "./async/backoff.js";
38
+ import { parallel as U } from "./async/parallel.js";
39
+ import { queue as W } from "./async/queue.js";
40
+ import { sleep as G } from "./async/sleep.js";
41
+ import { retry as K } from "./async/retry.js";
42
+ import { waitFor as q } from "./async/waitFor.js";
43
+ import { memo as J } from "./cache/memo.js";
44
+ import { isPromise as Y } from "./guards/isPromise.js";
45
+ import { stash as X } from "./cache/stash.js";
46
+ import { assert as Z } from "./function/assert.js";
47
+ import { constant as Q } from "./function/constant.js";
48
+ import { debounce as $ } from "./function/debounce.js";
49
+ import { identity as ee } from "./function/identity.js";
50
+ import { once as te } from "./function/once.js";
51
+ import { pipe as ne } from "./function/pipe.js";
52
+ import { runAll as re } from "./function/runAll.js";
53
+ import { tap as ie } from "./function/tap.js";
54
+ import { throttle as ae } from "./function/throttle.js";
55
+ import { allOf as oe, anyOf as se, noneOf as ce, not as le } from "./guards/combinators.js";
56
+ import { isAbortError as ue } from "./guards/isAbortError.js";
57
+ import { isArray as de } from "./guards/isArray.js";
58
+ import { isBoolean as fe } from "./guards/isBoolean.js";
59
+ import { isDate as pe } from "./guards/isDate.js";
60
+ import { isDefined as me } from "./guards/isDefined.js";
61
+ import { isPlainObject as he } from "./guards/isPlainObject.js";
62
+ import { isEmpty as ge } from "./guards/isEmpty.js";
63
+ import { isError as _e } from "./guards/isError.js";
64
+ import { isFunction as ve } from "./guards/isFunction.js";
65
+ import { isMatch as ye } from "./guards/isMatch.js";
66
+ import { isPrimitive as be } from "./guards/isPrimitive.js";
67
+ import { isRegex as xe } from "./guards/isRegex.js";
68
+ import { shallowEqual as Se } from "./guards/shallowEqual.js";
69
+ import { abs as Ce } from "./math/abs.js";
70
+ import { allocate as we } from "./math/allocate.js";
71
+ import { sum as Te } from "./math/sum.js";
72
+ import { average as Ee } from "./math/average.js";
73
+ import { clamp as De } from "./math/clamp.js";
74
+ import { gcd as Oe } from "./math/gcd.js";
75
+ import { lcm as ke } from "./math/lcm.js";
76
+ import { lerp as Ae } from "./math/lerp.js";
77
+ import { linspace as je } from "./math/linspace.js";
78
+ import { max as Me } from "./math/max.js";
79
+ import { median as Ne } from "./math/median.js";
80
+ import { min as Pe } from "./math/min.js";
81
+ import { mod as Fe } from "./math/mod.js";
82
+ import { normalize as Ie } from "./math/normalize.js";
83
+ import { percent as Le } from "./math/percent.js";
84
+ import { range as Re } from "./math/range.js";
85
+ import { round as ze } from "./math/round.js";
86
+ import { variance as Be } from "./math/variance.js";
87
+ import { standardDeviation as Ve } from "./math/standardDeviation.js";
88
+ import { defaults as He } from "./object/defaults.js";
89
+ import { diff as Ue, diffArrays as We } from "./object/diff.js";
90
+ import { filterValues as Ge } from "./object/filterValues.js";
91
+ import { flattenPaths as Ke, unflattenPaths as qe } from "./object/flattenPaths.js";
92
+ import { getPath as Je } from "./object/getPath.js";
93
+ import { invert as Ye } from "./object/invert.js";
94
+ import { mapKeys as Xe } from "./object/mapKeys.js";
95
+ import { mapValues as Ze } from "./object/mapValues.js";
96
+ import { deepMerge as Qe, shallowMerge as $e } from "./object/merge.js";
97
+ import { omit as et } from "./object/omit.js";
98
+ import { parseJSON as tt } from "./object/parseJSON.js";
99
+ import { pick as nt } from "./object/pick.js";
100
+ import { prune as rt } from "./object/prune.js";
101
+ import { hash as it } from "./object/hash.js";
102
+ import { random as at } from "./random/random.js";
103
+ import { draw as ot, drawMany as st } from "./random/draw.js";
104
+ import { shuffle as ct } from "./random/shuffle.js";
105
+ import { uuid as lt } from "./random/uuid.js";
106
+ import { camelCase as ut } from "./string/camelCase.js";
107
+ import { endsWith as dt } from "./string/endsWith.js";
108
+ import { escape as ft } from "./string/escape.js";
109
+ import { kebabCase as pt } from "./string/kebabCase.js";
110
+ import { pad as mt } from "./string/pad.js";
111
+ import { pascalCase as ht } from "./string/pascalCase.js";
112
+ import { snakeCase as gt } from "./string/snakeCase.js";
113
+ import { startsWith as _t } from "./string/startsWith.js";
114
+ import { words as vt } from "./string/words.js";
115
+ import { titleCase as yt } from "./string/titleCase.js";
116
+ import { truncate as bt } from "./string/truncate.js";
117
+ import { unescape as xt } from "./string/unescape.js";
118
+ export { e as ArsenalError, t as ArsenalSerializationError, n as ArsenalValidationError, R as abortError, Ce as abs, oe as allOf, we as allocate, se as anyOf, Z as assert, z as attempt, Ee as average, H as backoff, ut as camelCase, i as chunk, De as clamp, a as compact, o as compare, s as compareBy, Q as constant, l as contains, u as countBy, $ as debounce, Qe as deepMerge, He as defaults, Ue as diff, We as diffArrays, d as difference, ot as draw, st as drawMany, f as drop, p as dropLast, dt as endsWith, ft as escape, m as filterMap, Ge as filterValues, h as first, g as flatten, Ke as flattenPaths, D as fuzzy, O as fuzzyFilter, k as fuzzyScore, Oe as gcd, Je as getPath, _ as groupBy, it as hash, ee as identity, v as indexBy, y as intersection, Ye as invert, ue as isAbortError, de as isArray, fe as isBoolean, pe as isDate, me as isDefined, ge as isEmpty, c as isEqual, _e as isError, B as isFail, ve as isFunction, ye as isMatch, w as isNil, T as isNumber, V as isOk, he as isPlainObject, be as isPrimitive, Y as isPromise, xe as isRegex, r as isString, pt as kebabCase, b as last, ke as lcm, Ae as lerp, je as linspace, Xe as mapKeys, Ze as mapValues, Me as max, Ne as median, J as memo, Pe as min, Fe as mod, ce as noneOf, Ie as normalize, le as not, et as omit, te as once, mt as pad, U as parallel, tt as parseJSON, x as partition, ht as pascalCase, Le as percent, nt as pick, ne as pipe, rt as prune, W as queue, at as random, Re as range, S as replace, K as retry, C as rotate, ze as round, re as runAll, Se as shallowEqual, $e as shallowMerge, ct as shuffle, E as similarity, G as sleep, gt as snakeCase, A as sort, Ve as standardDeviation, _t as startsWith, X as stash, Te as sum, j as take, M as takeLast, ie as tap, ae as throttle, yt as titleCase, N as toggle, bt as truncate, xt as unescape, qe as unflattenPaths, P as union, F as uniq, I as unzip, lt as uuid, Be as variance, q as waitFor, vt as words, L as zip };