diginext-utils 3.13.15 → 4.0.0

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 (938) hide show
  1. package/README.md +144 -138
  2. package/dist/Checker.d.ts +9 -8
  3. package/dist/Checker.d.ts.map +1 -0
  4. package/dist/Checker.js +32 -31
  5. package/dist/Checker.js.map +1 -0
  6. package/dist/EventDispatcher.d.ts +14 -13
  7. package/dist/EventDispatcher.d.ts.map +1 -0
  8. package/dist/EventDispatcher.js +52 -51
  9. package/dist/EventDispatcher.js.map +1 -0
  10. package/dist/FileUpload.d.ts +13 -12
  11. package/dist/FileUpload.d.ts.map +1 -0
  12. package/dist/FileUpload.js +65 -64
  13. package/dist/FileUpload.js.map +1 -0
  14. package/dist/Slug.d.ts +10 -9
  15. package/dist/Slug.d.ts.map +1 -0
  16. package/dist/Slug.js +335 -334
  17. package/dist/Slug.js.map +1 -0
  18. package/dist/Timer.d.ts +5 -4
  19. package/dist/Timer.d.ts.map +1 -0
  20. package/dist/Timer.js +9 -8
  21. package/dist/Timer.js.map +1 -0
  22. package/dist/Validation.d.ts +6 -5
  23. package/dist/Validation.d.ts.map +1 -0
  24. package/dist/Validation.js +39 -38
  25. package/dist/Validation.js.map +1 -0
  26. package/dist/array/average.d.ts +18 -0
  27. package/dist/array/average.d.ts.map +1 -0
  28. package/dist/array/average.js +27 -0
  29. package/dist/array/average.js.map +1 -0
  30. package/dist/array/chunk.d.ts +17 -0
  31. package/dist/array/chunk.d.ts.map +1 -0
  32. package/dist/array/chunk.js +32 -0
  33. package/dist/array/chunk.js.map +1 -0
  34. package/dist/array/compact.d.ts +17 -0
  35. package/dist/array/compact.d.ts.map +1 -0
  36. package/dist/array/compact.js +25 -0
  37. package/dist/array/compact.js.map +1 -0
  38. package/dist/array/difference.d.ts +17 -0
  39. package/dist/array/difference.d.ts.map +1 -0
  40. package/dist/array/difference.js +29 -0
  41. package/dist/array/difference.js.map +1 -0
  42. package/dist/array/first.d.ts +16 -0
  43. package/dist/array/first.d.ts.map +1 -0
  44. package/dist/array/first.js +24 -0
  45. package/dist/array/first.js.map +1 -0
  46. package/dist/array/flatten.d.ts +17 -0
  47. package/dist/array/flatten.d.ts.map +1 -0
  48. package/dist/array/flatten.js +36 -0
  49. package/dist/array/flatten.js.map +1 -0
  50. package/dist/array/index.d.ts +27 -0
  51. package/dist/array/index.d.ts.map +1 -0
  52. package/dist/array/index.js +52 -0
  53. package/dist/array/index.js.map +1 -0
  54. package/dist/array/intersection.d.ts +18 -0
  55. package/dist/array/intersection.d.ts.map +1 -0
  56. package/dist/array/intersection.js +27 -0
  57. package/dist/array/intersection.js.map +1 -0
  58. package/dist/array/last.d.ts +16 -0
  59. package/dist/array/last.d.ts.map +1 -0
  60. package/dist/array/last.js +24 -0
  61. package/dist/array/last.js.map +1 -0
  62. package/dist/array/max.d.ts +18 -0
  63. package/dist/array/max.d.ts.map +1 -0
  64. package/dist/array/max.js +36 -0
  65. package/dist/array/max.js.map +1 -0
  66. package/dist/array/min.d.ts +18 -0
  67. package/dist/array/min.d.ts.map +1 -0
  68. package/dist/array/min.js +36 -0
  69. package/dist/array/min.js.map +1 -0
  70. package/dist/array/moveElement.d.ts +18 -0
  71. package/dist/array/moveElement.d.ts.map +1 -0
  72. package/dist/array/moveElement.js +49 -0
  73. package/dist/array/moveElement.js.map +1 -0
  74. package/dist/array/randomElement.d.ts +16 -0
  75. package/dist/array/randomElement.d.ts.map +1 -0
  76. package/dist/array/randomElement.js +26 -0
  77. package/dist/array/randomElement.js.map +1 -0
  78. package/dist/array/randomIndex.d.ts +15 -0
  79. package/dist/array/randomIndex.d.ts.map +1 -0
  80. package/dist/array/randomIndex.js +23 -0
  81. package/dist/array/randomIndex.js.map +1 -0
  82. package/dist/array/removeItem.d.ts +18 -0
  83. package/dist/array/removeItem.d.ts.map +1 -0
  84. package/dist/array/removeItem.js +30 -0
  85. package/dist/array/removeItem.js.map +1 -0
  86. package/dist/array/removeItemByKey.d.ts +23 -0
  87. package/dist/array/removeItemByKey.d.ts.map +1 -0
  88. package/dist/array/removeItemByKey.js +35 -0
  89. package/dist/array/removeItemByKey.js.map +1 -0
  90. package/dist/array/sample.d.ts +18 -0
  91. package/dist/array/sample.d.ts.map +1 -0
  92. package/dist/array/sample.js +52 -0
  93. package/dist/array/sample.js.map +1 -0
  94. package/dist/array/shuffle.d.ts +17 -0
  95. package/dist/array/shuffle.d.ts.map +1 -0
  96. package/dist/array/shuffle.js +32 -0
  97. package/dist/array/shuffle.js.map +1 -0
  98. package/dist/array/sortByNumber.d.ts +22 -0
  99. package/dist/array/sortByNumber.d.ts.map +1 -0
  100. package/dist/array/sortByNumber.js +34 -0
  101. package/dist/array/sortByNumber.js.map +1 -0
  102. package/dist/array/sortByString.d.ts +22 -0
  103. package/dist/array/sortByString.d.ts.map +1 -0
  104. package/dist/array/sortByString.js +37 -0
  105. package/dist/array/sortByString.js.map +1 -0
  106. package/dist/array/sum.d.ts +18 -0
  107. package/dist/array/sum.d.ts.map +1 -0
  108. package/dist/array/sum.js +32 -0
  109. package/dist/array/sum.js.map +1 -0
  110. package/dist/array/union.d.ts +15 -0
  111. package/dist/array/union.d.ts.map +1 -0
  112. package/dist/array/union.js +23 -0
  113. package/dist/array/union.js.map +1 -0
  114. package/dist/array/unique.d.ts +18 -0
  115. package/dist/array/unique.d.ts.map +1 -0
  116. package/dist/array/unique.js +39 -0
  117. package/dist/array/unique.js.map +1 -0
  118. package/dist/array.d.ts +114 -113
  119. package/dist/array.d.ts.map +1 -0
  120. package/dist/array.js +298 -297
  121. package/dist/array.js.map +1 -0
  122. package/dist/cached/CacheManager.d.ts +22 -21
  123. package/dist/cached/CacheManager.d.ts.map +1 -0
  124. package/dist/cached/CacheManager.js +119 -118
  125. package/dist/cached/CacheManager.js.map +1 -0
  126. package/dist/color.d.ts +26 -25
  127. package/dist/color.d.ts.map +1 -0
  128. package/dist/color.js +97 -95
  129. package/dist/color.js.map +1 -0
  130. package/dist/date/index.d.ts +7 -0
  131. package/dist/date/index.d.ts.map +1 -0
  132. package/dist/date/index.js +15 -0
  133. package/dist/date/index.js.map +1 -0
  134. package/dist/date/timeAgo.d.ts +2 -1
  135. package/dist/date/timeAgo.d.ts.map +1 -0
  136. package/dist/date/timeAgo.js +32 -31
  137. package/dist/date/timeAgo.js.map +1 -0
  138. package/dist/device/browser.d.ts +6 -5
  139. package/dist/device/browser.d.ts.map +1 -0
  140. package/dist/device/browser.js +58 -58
  141. package/dist/device/browser.js.map +1 -0
  142. package/dist/device/camera.d.ts +8 -7
  143. package/dist/device/camera.d.ts.map +1 -0
  144. package/dist/device/camera.js +172 -178
  145. package/dist/device/camera.js.map +1 -0
  146. package/dist/device/index.d.ts +6 -5
  147. package/dist/device/index.d.ts.map +1 -0
  148. package/dist/device/index.js +220 -219
  149. package/dist/device/index.js.map +1 -0
  150. package/dist/device/os.d.ts +12 -11
  151. package/dist/device/os.d.ts.map +1 -0
  152. package/dist/device/os.js +37 -37
  153. package/dist/device/os.js.map +1 -0
  154. package/dist/email/index.d.ts +9 -8
  155. package/dist/email/index.d.ts.map +1 -0
  156. package/dist/email/index.js +39 -38
  157. package/dist/email/index.js.map +1 -0
  158. package/dist/file/createDir.d.ts +6 -5
  159. package/dist/file/createDir.d.ts.map +1 -0
  160. package/dist/file/createDir.js +16 -15
  161. package/dist/file/createDir.js.map +1 -0
  162. package/dist/file/detectPrivateKey.d.ts +6 -5
  163. package/dist/file/detectPrivateKey.d.ts.map +1 -0
  164. package/dist/file/detectPrivateKey.js +29 -29
  165. package/dist/file/detectPrivateKey.js.map +1 -0
  166. package/dist/file/detectPrivateKeyByFilePath.d.ts +3 -2
  167. package/dist/file/detectPrivateKeyByFilePath.d.ts.map +1 -0
  168. package/dist/file/detectPrivateKeyByFilePath.js +39 -37
  169. package/dist/file/detectPrivateKeyByFilePath.js.map +1 -0
  170. package/dist/file/fileMove.d.ts +5 -4
  171. package/dist/file/fileMove.d.ts.map +1 -0
  172. package/dist/file/fileMove.js +32 -32
  173. package/dist/file/fileMove.js.map +1 -0
  174. package/dist/file/findFilesByExt.d.ts +14 -13
  175. package/dist/file/findFilesByExt.d.ts.map +1 -0
  176. package/dist/file/findFilesByExt.js +50 -49
  177. package/dist/file/findFilesByExt.js.map +1 -0
  178. package/dist/file/getAllFiles.d.ts +2 -1
  179. package/dist/file/getAllFiles.d.ts.map +1 -0
  180. package/dist/file/getAllFiles.js +39 -38
  181. package/dist/file/getAllFiles.js.map +1 -0
  182. package/dist/file/index.d.ts +10 -9
  183. package/dist/file/index.d.ts.map +1 -0
  184. package/dist/file/index.js +11 -10
  185. package/dist/file/index.js.map +1 -0
  186. package/dist/file/parseEnvFile.d.ts +9 -8
  187. package/dist/file/parseEnvFile.d.ts.map +1 -0
  188. package/dist/file/parseEnvFile.js +44 -44
  189. package/dist/file/parseEnvFile.js.map +1 -0
  190. package/dist/gameboi/index.d.ts +12 -12
  191. package/dist/gameboi/index.d.ts.map +1 -0
  192. package/dist/gameboi/index.js +72 -72
  193. package/dist/gameboi/index.js.map +1 -0
  194. package/dist/html/transform3dToObject.d.ts +6 -5
  195. package/dist/html/transform3dToObject.d.ts.map +1 -0
  196. package/dist/html/transform3dToObject.js +13 -12
  197. package/dist/html/transform3dToObject.js.map +1 -0
  198. package/dist/images/downloadByUrl.d.ts +17 -16
  199. package/dist/images/downloadByUrl.d.ts.map +1 -0
  200. package/dist/images/downloadByUrl.js +81 -80
  201. package/dist/images/downloadByUrl.js.map +1 -0
  202. package/dist/images/getImageDimensions.d.ts +5 -4
  203. package/dist/images/getImageDimensions.d.ts.map +1 -0
  204. package/dist/images/getImageDimensions.js +20 -19
  205. package/dist/images/getImageDimensions.js.map +1 -0
  206. package/dist/images/getUrlBypassCors.d.ts +3 -2
  207. package/dist/images/getUrlBypassCors.d.ts.map +1 -0
  208. package/dist/images/getUrlBypassCors.js +15 -14
  209. package/dist/images/getUrlBypassCors.js.map +1 -0
  210. package/dist/images/index.d.ts +3 -2
  211. package/dist/images/index.d.ts.map +1 -0
  212. package/dist/images/index.js +9 -8
  213. package/dist/images/index.js.map +1 -0
  214. package/dist/images/loadImage.d.ts +2 -1
  215. package/dist/images/loadImage.d.ts.map +1 -0
  216. package/dist/images/loadImage.js +18 -17
  217. package/dist/images/loadImage.js.map +1 -0
  218. package/dist/images/loadImageAsBlobUrl.d.ts +2 -1
  219. package/dist/images/loadImageAsBlobUrl.d.ts.map +1 -0
  220. package/dist/images/loadImageAsBlobUrl.js +38 -37
  221. package/dist/images/loadImageAsBlobUrl.js.map +1 -0
  222. package/dist/images/resize.d.ts +4 -3
  223. package/dist/images/resize.d.ts.map +1 -0
  224. package/dist/images/resize.js +41 -40
  225. package/dist/images/resize.js.map +1 -0
  226. package/dist/images/upload.d.ts +11 -10
  227. package/dist/images/upload.d.ts.map +1 -0
  228. package/dist/images/upload.js +27 -26
  229. package/dist/images/upload.js.map +1 -0
  230. package/dist/index.d.ts +33 -37
  231. package/dist/index.d.ts.map +1 -0
  232. package/dist/index.js +75 -62
  233. package/dist/index.js.map +1 -0
  234. package/dist/json.d.ts +9 -8
  235. package/dist/json.d.ts.map +1 -0
  236. package/dist/json.js +32 -31
  237. package/dist/json.js.map +1 -0
  238. package/dist/lib/batchProcessor.d.ts +2 -1
  239. package/dist/lib/batchProcessor.d.ts.map +1 -0
  240. package/dist/lib/batchProcessor.js +17 -16
  241. package/dist/lib/batchProcessor.js.map +1 -0
  242. package/dist/math/angleBetweenPoints.d.ts +20 -0
  243. package/dist/math/angleBetweenPoints.d.ts.map +1 -0
  244. package/dist/math/angleBetweenPoints.js +29 -0
  245. package/dist/math/angleBetweenPoints.js.map +1 -0
  246. package/dist/math/clamp.d.ts +18 -0
  247. package/dist/math/clamp.d.ts.map +1 -0
  248. package/dist/math/clamp.js +24 -0
  249. package/dist/math/clamp.js.map +1 -0
  250. package/dist/math/degToRad.d.ts +15 -0
  251. package/dist/math/degToRad.d.ts.map +1 -0
  252. package/dist/math/degToRad.js +24 -0
  253. package/dist/math/degToRad.js.map +1 -0
  254. package/dist/math/diffDate.d.ts +6 -5
  255. package/dist/math/diffDate.d.ts.map +1 -0
  256. package/dist/math/diffDate.js +13 -13
  257. package/dist/math/diffDate.js.map +1 -0
  258. package/dist/math/distance.d.ts +18 -0
  259. package/dist/math/distance.d.ts.map +1 -0
  260. package/dist/math/distance.js +24 -0
  261. package/dist/math/distance.js.map +1 -0
  262. package/dist/math/index.d.ts +25 -30
  263. package/dist/math/index.d.ts.map +1 -0
  264. package/dist/math/index.js +40 -92
  265. package/dist/math/index.js.map +1 -0
  266. package/dist/math/lerp.d.ts +19 -0
  267. package/dist/math/lerp.d.ts.map +1 -0
  268. package/dist/math/lerp.js +24 -0
  269. package/dist/math/lerp.js.map +1 -0
  270. package/dist/math/positiveNumber.d.ts +3 -2
  271. package/dist/math/positiveNumber.d.ts.map +1 -0
  272. package/dist/math/positiveNumber.js +16 -16
  273. package/dist/math/positiveNumber.js.map +1 -0
  274. package/dist/math/radToDeg.d.ts +15 -0
  275. package/dist/math/radToDeg.d.ts.map +1 -0
  276. package/dist/math/radToDeg.js +24 -0
  277. package/dist/math/radToDeg.js.map +1 -0
  278. package/dist/math/random.d.ts +15 -0
  279. package/dist/math/random.d.ts.map +1 -0
  280. package/dist/math/random.js +20 -0
  281. package/dist/math/random.js.map +1 -0
  282. package/dist/math/randomFloat.d.ts +15 -0
  283. package/dist/math/randomFloat.d.ts.map +1 -0
  284. package/dist/math/randomFloat.js +20 -0
  285. package/dist/math/randomFloat.js.map +1 -0
  286. package/dist/math/randomInt.d.ts +15 -0
  287. package/dist/math/randomInt.d.ts.map +1 -0
  288. package/dist/math/randomInt.js +20 -0
  289. package/dist/math/randomInt.js.map +1 -0
  290. package/dist/math/round.d.ts +17 -0
  291. package/dist/math/round.d.ts.map +1 -0
  292. package/dist/math/round.js +23 -0
  293. package/dist/math/round.js.map +1 -0
  294. package/dist/name/en.d.ts +6 -5
  295. package/dist/name/en.d.ts.map +1 -0
  296. package/dist/name/en.js +29 -25
  297. package/dist/name/en.js.map +1 -0
  298. package/dist/name/index.d.ts +13 -12
  299. package/dist/name/index.d.ts.map +1 -0
  300. package/dist/name/index.js +13 -12
  301. package/dist/name/index.js.map +1 -0
  302. package/dist/name/vi.d.ts +6 -5
  303. package/dist/name/vi.d.ts.map +1 -0
  304. package/dist/name/vi.js +28 -27
  305. package/dist/name/vi.js.map +1 -0
  306. package/dist/object/deepClone.d.ts +18 -0
  307. package/dist/object/deepClone.d.ts.map +1 -0
  308. package/dist/object/deepClone.js +44 -0
  309. package/dist/object/deepClone.js.map +1 -0
  310. package/dist/object/index.d.ts +19 -0
  311. package/dist/object/index.d.ts.map +1 -0
  312. package/dist/object/index.js +36 -0
  313. package/dist/object/index.js.map +1 -0
  314. package/dist/object/isEmpty.d.ts +20 -0
  315. package/dist/object/isEmpty.d.ts.map +1 -0
  316. package/dist/object/isEmpty.js +34 -0
  317. package/dist/object/isEmpty.js.map +1 -0
  318. package/dist/object/isEqual.d.ts +19 -0
  319. package/dist/object/isEqual.d.ts.map +1 -0
  320. package/dist/object/isEqual.js +57 -0
  321. package/dist/object/isEqual.js.map +1 -0
  322. package/dist/object/isNull.d.ts +21 -0
  323. package/dist/object/isNull.d.ts.map +1 -0
  324. package/dist/object/isNull.js +47 -0
  325. package/dist/object/isNull.js.map +1 -0
  326. package/dist/object/isObject.d.ts +19 -0
  327. package/dist/object/isObject.d.ts.map +1 -0
  328. package/dist/object/isObject.js +24 -0
  329. package/dist/object/isObject.js.map +1 -0
  330. package/dist/object/iterate.d.ts +20 -0
  331. package/dist/object/iterate.d.ts.map +1 -0
  332. package/dist/object/iterate.js +35 -0
  333. package/dist/object/iterate.js.map +1 -0
  334. package/dist/object/merge.d.ts +18 -0
  335. package/dist/object/merge.d.ts.map +1 -0
  336. package/dist/object/merge.js +43 -0
  337. package/dist/object/merge.js.map +1 -0
  338. package/dist/object/omit.d.ts +17 -0
  339. package/dist/object/omit.d.ts.map +1 -0
  340. package/dist/object/omit.js +31 -0
  341. package/dist/object/omit.js.map +1 -0
  342. package/dist/object/pick.d.ts +17 -0
  343. package/dist/object/pick.d.ts.map +1 -0
  344. package/dist/object/pick.js +30 -0
  345. package/dist/object/pick.js.map +1 -0
  346. package/dist/object/toArray.d.ts +20 -0
  347. package/dist/object/toArray.d.ts.map +1 -0
  348. package/dist/object/toArray.js +32 -0
  349. package/dist/object/toArray.js.map +1 -0
  350. package/dist/object/toBool.d.ts +21 -0
  351. package/dist/object/toBool.d.ts.map +1 -0
  352. package/dist/object/toBool.js +38 -0
  353. package/dist/object/toBool.js.map +1 -0
  354. package/dist/object/toFloat.d.ts +19 -0
  355. package/dist/object/toFloat.d.ts.map +1 -0
  356. package/dist/object/toFloat.js +29 -0
  357. package/dist/object/toFloat.js.map +1 -0
  358. package/dist/object/toInt.d.ts +19 -0
  359. package/dist/object/toInt.d.ts.map +1 -0
  360. package/dist/object/toInt.js +29 -0
  361. package/dist/object/toInt.js.map +1 -0
  362. package/dist/object/toObject.d.ts +18 -0
  363. package/dist/object/toObject.d.ts.map +1 -0
  364. package/dist/object/toObject.js +32 -0
  365. package/dist/object/toObject.js.map +1 -0
  366. package/dist/object.d.ts +35 -34
  367. package/dist/object.d.ts.map +1 -0
  368. package/dist/object.js +119 -118
  369. package/dist/object.js.map +1 -0
  370. package/dist/permission/index.d.ts +9 -8
  371. package/dist/permission/index.d.ts.map +1 -0
  372. package/dist/permission/index.js +7 -6
  373. package/dist/permission/index.js.map +1 -0
  374. package/dist/permission/requestCamera.d.ts +6 -5
  375. package/dist/permission/requestCamera.d.ts.map +1 -0
  376. package/dist/permission/requestCamera.js +43 -42
  377. package/dist/permission/requestCamera.js.map +1 -0
  378. package/dist/permission/requestDeviceOrientationControl.d.ts +3 -2
  379. package/dist/permission/requestDeviceOrientationControl.d.ts.map +1 -0
  380. package/dist/permission/requestDeviceOrientationControl.js +39 -38
  381. package/dist/permission/requestDeviceOrientationControl.js.map +1 -0
  382. package/dist/response/index.d.ts +50 -49
  383. package/dist/response/index.d.ts.map +1 -0
  384. package/dist/response/index.js +67 -66
  385. package/dist/response/index.js.map +1 -0
  386. package/dist/string/convertPathnameAndQuery.d.ts +5 -4
  387. package/dist/string/convertPathnameAndQuery.d.ts.map +1 -0
  388. package/dist/string/convertPathnameAndQuery.js +25 -24
  389. package/dist/string/convertPathnameAndQuery.js.map +1 -0
  390. package/dist/string/formatBytes.d.ts +2 -1
  391. package/dist/string/formatBytes.d.ts.map +1 -0
  392. package/dist/string/formatBytes.js +18 -17
  393. package/dist/string/formatBytes.js.map +1 -0
  394. package/dist/string/formatNumber.d.ts +7 -6
  395. package/dist/string/formatNumber.d.ts.map +1 -0
  396. package/dist/string/formatNumber.js +14 -14
  397. package/dist/string/formatNumber.js.map +1 -0
  398. package/dist/string/generatePassword.d.ts +10 -9
  399. package/dist/string/generatePassword.d.ts.map +1 -0
  400. package/dist/string/generatePassword.js +26 -23
  401. package/dist/string/generatePassword.js.map +1 -0
  402. package/dist/string/generateUUID.d.ts +3 -2
  403. package/dist/string/generateUUID.d.ts.map +1 -0
  404. package/dist/string/generateUUID.js +36 -36
  405. package/dist/string/generateUUID.js.map +1 -0
  406. package/dist/string/getIntFromNextJsRouter.d.ts +2 -1
  407. package/dist/string/getIntFromNextJsRouter.d.ts.map +1 -0
  408. package/dist/string/getIntFromNextJsRouter.js +11 -10
  409. package/dist/string/getIntFromNextJsRouter.js.map +1 -0
  410. package/dist/string/getStringFromNextJsRouter.d.ts +2 -1
  411. package/dist/string/getStringFromNextJsRouter.d.ts.map +1 -0
  412. package/dist/string/getStringFromNextJsRouter.js +11 -10
  413. package/dist/string/getStringFromNextJsRouter.js.map +1 -0
  414. package/dist/string/getTextBetweenCharByIndex.d.ts +2 -1
  415. package/dist/string/getTextBetweenCharByIndex.d.ts.map +1 -0
  416. package/dist/string/getTextBetweenCharByIndex.js +21 -20
  417. package/dist/string/getTextBetweenCharByIndex.js.map +1 -0
  418. package/dist/string/guessMimeType.d.ts +3 -2
  419. package/dist/string/guessMimeType.d.ts.map +1 -0
  420. package/dist/string/guessMimeType.js +77 -77
  421. package/dist/string/guessMimeType.js.map +1 -0
  422. package/dist/string/guessMimeTypeByBuffer.d.ts +2 -3
  423. package/dist/string/guessMimeTypeByBuffer.d.ts.map +1 -0
  424. package/dist/string/guessMimeTypeByBuffer.js +40 -39
  425. package/dist/string/guessMimeTypeByBuffer.js.map +1 -0
  426. package/dist/string/index.d.ts +66 -65
  427. package/dist/string/index.d.ts.map +1 -0
  428. package/dist/string/index.js +162 -161
  429. package/dist/string/index.js.map +1 -0
  430. package/dist/string/indexesOf.d.ts +2 -1
  431. package/dist/string/indexesOf.d.ts.map +1 -0
  432. package/dist/string/indexesOf.js +15 -14
  433. package/dist/string/indexesOf.js.map +1 -0
  434. package/dist/string/makeDaySlug.d.ts +28 -27
  435. package/dist/string/makeDaySlug.d.ts.map +1 -0
  436. package/dist/string/makeDaySlug.js +18 -18
  437. package/dist/string/makeDaySlug.js.map +1 -0
  438. package/dist/string/makeSlug.d.ts +4 -3
  439. package/dist/string/makeSlug.d.ts.map +1 -0
  440. package/dist/string/makeSlug.js +7 -6
  441. package/dist/string/makeSlug.js.map +1 -0
  442. package/dist/string/padNumberWithLeadingZeros.d.ts +2 -1
  443. package/dist/string/padNumberWithLeadingZeros.d.ts.map +1 -0
  444. package/dist/string/padNumberWithLeadingZeros.js +13 -12
  445. package/dist/string/padNumberWithLeadingZeros.js.map +1 -0
  446. package/dist/string/random.d.ts +21 -20
  447. package/dist/string/random.d.ts.map +1 -0
  448. package/dist/string/random.js +51 -50
  449. package/dist/string/random.js.map +1 -0
  450. package/dist/string/trimNull.d.ts +3 -2
  451. package/dist/string/trimNull.d.ts.map +1 -0
  452. package/dist/string/trimNull.js +20 -20
  453. package/dist/string/trimNull.js.map +1 -0
  454. package/dist/string/url.d.ts +29 -28
  455. package/dist/string/url.d.ts.map +1 -0
  456. package/dist/string/url.js +121 -118
  457. package/dist/string/url.js.map +1 -0
  458. package/dist/xconsole/enableConsole.d.ts +3 -2
  459. package/dist/xconsole/enableConsole.d.ts.map +1 -0
  460. package/dist/xconsole/enableConsole.js +13 -13
  461. package/dist/xconsole/enableConsole.js.map +1 -0
  462. package/dist/xconsole/index.d.ts +12 -11
  463. package/dist/xconsole/index.d.ts.map +1 -0
  464. package/dist/xconsole/index.js +19 -18
  465. package/dist/xconsole/index.js.map +1 -0
  466. package/dist/xconsole/log.d.ts +16 -15
  467. package/dist/xconsole/log.d.ts.map +1 -0
  468. package/dist/xconsole/log.js +45 -44
  469. package/dist/xconsole/log.js.map +1 -0
  470. package/esm/Checker.d.ts +9 -8
  471. package/esm/Checker.d.ts.map +1 -0
  472. package/esm/Checker.js +28 -27
  473. package/esm/Checker.js.map +1 -0
  474. package/esm/EventDispatcher.d.ts +14 -13
  475. package/esm/EventDispatcher.d.ts.map +1 -0
  476. package/esm/EventDispatcher.js +49 -48
  477. package/esm/EventDispatcher.js.map +1 -0
  478. package/esm/FileUpload.d.ts +13 -12
  479. package/esm/FileUpload.d.ts.map +1 -0
  480. package/esm/FileUpload.js +62 -61
  481. package/esm/FileUpload.js.map +1 -0
  482. package/esm/Slug.d.ts +10 -9
  483. package/esm/Slug.d.ts.map +1 -0
  484. package/esm/Slug.js +331 -330
  485. package/esm/Slug.js.map +1 -0
  486. package/esm/Timer.d.ts +5 -4
  487. package/esm/Timer.d.ts.map +1 -0
  488. package/esm/Timer.js +7 -6
  489. package/esm/Timer.js.map +1 -0
  490. package/esm/Validation.d.ts +6 -5
  491. package/esm/Validation.d.ts.map +1 -0
  492. package/esm/Validation.js +37 -36
  493. package/esm/Validation.js.map +1 -0
  494. package/esm/array/average.d.ts +18 -0
  495. package/esm/array/average.d.ts.map +1 -0
  496. package/esm/array/average.js +24 -0
  497. package/esm/array/average.js.map +1 -0
  498. package/esm/array/chunk.d.ts +17 -0
  499. package/esm/array/chunk.d.ts.map +1 -0
  500. package/esm/array/chunk.js +29 -0
  501. package/esm/array/chunk.js.map +1 -0
  502. package/esm/array/compact.d.ts +17 -0
  503. package/esm/array/compact.d.ts.map +1 -0
  504. package/esm/array/compact.js +22 -0
  505. package/esm/array/compact.js.map +1 -0
  506. package/esm/array/difference.d.ts +17 -0
  507. package/esm/array/difference.d.ts.map +1 -0
  508. package/esm/array/difference.js +26 -0
  509. package/esm/array/difference.js.map +1 -0
  510. package/esm/array/first.d.ts +16 -0
  511. package/esm/array/first.d.ts.map +1 -0
  512. package/esm/array/first.js +21 -0
  513. package/esm/array/first.js.map +1 -0
  514. package/esm/array/flatten.d.ts +17 -0
  515. package/esm/array/flatten.d.ts.map +1 -0
  516. package/esm/array/flatten.js +33 -0
  517. package/esm/array/flatten.js.map +1 -0
  518. package/esm/array/index.d.ts +27 -0
  519. package/esm/array/index.d.ts.map +1 -0
  520. package/esm/array/index.js +27 -0
  521. package/esm/array/index.js.map +1 -0
  522. package/esm/array/intersection.d.ts +18 -0
  523. package/esm/array/intersection.d.ts.map +1 -0
  524. package/esm/array/intersection.js +24 -0
  525. package/esm/array/intersection.js.map +1 -0
  526. package/esm/array/last.d.ts +16 -0
  527. package/esm/array/last.d.ts.map +1 -0
  528. package/esm/array/last.js +21 -0
  529. package/esm/array/last.js.map +1 -0
  530. package/esm/array/max.d.ts +18 -0
  531. package/esm/array/max.d.ts.map +1 -0
  532. package/esm/array/max.js +33 -0
  533. package/esm/array/max.js.map +1 -0
  534. package/esm/array/min.d.ts +18 -0
  535. package/esm/array/min.d.ts.map +1 -0
  536. package/esm/array/min.js +33 -0
  537. package/esm/array/min.js.map +1 -0
  538. package/esm/array/moveElement.d.ts +18 -0
  539. package/esm/array/moveElement.d.ts.map +1 -0
  540. package/esm/array/moveElement.js +46 -0
  541. package/esm/array/moveElement.js.map +1 -0
  542. package/esm/array/randomElement.d.ts +16 -0
  543. package/esm/array/randomElement.d.ts.map +1 -0
  544. package/esm/array/randomElement.js +23 -0
  545. package/esm/array/randomElement.js.map +1 -0
  546. package/esm/array/randomIndex.d.ts +15 -0
  547. package/esm/array/randomIndex.d.ts.map +1 -0
  548. package/esm/array/randomIndex.js +20 -0
  549. package/esm/array/randomIndex.js.map +1 -0
  550. package/esm/array/removeItem.d.ts +18 -0
  551. package/esm/array/removeItem.d.ts.map +1 -0
  552. package/esm/array/removeItem.js +27 -0
  553. package/esm/array/removeItem.js.map +1 -0
  554. package/esm/array/removeItemByKey.d.ts +23 -0
  555. package/esm/array/removeItemByKey.d.ts.map +1 -0
  556. package/esm/array/removeItemByKey.js +32 -0
  557. package/esm/array/removeItemByKey.js.map +1 -0
  558. package/esm/array/sample.d.ts +18 -0
  559. package/esm/array/sample.d.ts.map +1 -0
  560. package/esm/array/sample.js +49 -0
  561. package/esm/array/sample.js.map +1 -0
  562. package/esm/array/shuffle.d.ts +17 -0
  563. package/esm/array/shuffle.d.ts.map +1 -0
  564. package/esm/array/shuffle.js +29 -0
  565. package/esm/array/shuffle.js.map +1 -0
  566. package/esm/array/sortByNumber.d.ts +22 -0
  567. package/esm/array/sortByNumber.d.ts.map +1 -0
  568. package/esm/array/sortByNumber.js +31 -0
  569. package/esm/array/sortByNumber.js.map +1 -0
  570. package/esm/array/sortByString.d.ts +22 -0
  571. package/esm/array/sortByString.d.ts.map +1 -0
  572. package/esm/array/sortByString.js +34 -0
  573. package/esm/array/sortByString.js.map +1 -0
  574. package/esm/array/sum.d.ts +18 -0
  575. package/esm/array/sum.d.ts.map +1 -0
  576. package/esm/array/sum.js +29 -0
  577. package/esm/array/sum.js.map +1 -0
  578. package/esm/array/union.d.ts +15 -0
  579. package/esm/array/union.d.ts.map +1 -0
  580. package/esm/array/union.js +20 -0
  581. package/esm/array/union.js.map +1 -0
  582. package/esm/array/unique.d.ts +18 -0
  583. package/esm/array/unique.d.ts.map +1 -0
  584. package/esm/array/unique.js +36 -0
  585. package/esm/array/unique.js.map +1 -0
  586. package/esm/array.d.ts +114 -113
  587. package/esm/array.d.ts.map +1 -0
  588. package/esm/array.js +276 -275
  589. package/esm/array.js.map +1 -0
  590. package/esm/cached/CacheManager.d.ts +22 -21
  591. package/esm/cached/CacheManager.d.ts.map +1 -0
  592. package/esm/cached/CacheManager.js +113 -112
  593. package/esm/cached/CacheManager.js.map +1 -0
  594. package/esm/color.d.ts +26 -25
  595. package/esm/color.d.ts.map +1 -0
  596. package/esm/color.js +87 -85
  597. package/esm/color.js.map +1 -0
  598. package/esm/date/index.d.ts +7 -0
  599. package/esm/date/index.d.ts.map +1 -0
  600. package/esm/date/index.js +7 -0
  601. package/esm/date/index.js.map +1 -0
  602. package/esm/date/timeAgo.d.ts +2 -1
  603. package/esm/date/timeAgo.d.ts.map +1 -0
  604. package/esm/date/timeAgo.js +29 -28
  605. package/esm/date/timeAgo.js.map +1 -0
  606. package/esm/device/browser.d.ts +6 -5
  607. package/esm/device/browser.d.ts.map +1 -0
  608. package/esm/device/browser.js +50 -50
  609. package/esm/device/browser.js.map +1 -0
  610. package/esm/device/camera.d.ts +8 -7
  611. package/esm/device/camera.d.ts.map +1 -0
  612. package/esm/device/camera.js +169 -174
  613. package/esm/device/camera.js.map +1 -0
  614. package/esm/device/index.d.ts +6 -5
  615. package/esm/device/index.d.ts.map +1 -0
  616. package/esm/device/index.js +212 -211
  617. package/esm/device/index.js.map +1 -0
  618. package/esm/device/os.d.ts +12 -11
  619. package/esm/device/os.d.ts.map +1 -0
  620. package/esm/device/os.js +28 -27
  621. package/esm/device/os.js.map +1 -0
  622. package/esm/email/index.d.ts +9 -8
  623. package/esm/email/index.d.ts.map +1 -0
  624. package/esm/email/index.js +32 -31
  625. package/esm/email/index.js.map +1 -0
  626. package/esm/file/createDir.d.ts +6 -5
  627. package/esm/file/createDir.d.ts.map +1 -0
  628. package/esm/file/createDir.js +14 -12
  629. package/esm/file/createDir.js.map +1 -0
  630. package/esm/file/detectPrivateKey.d.ts +6 -5
  631. package/esm/file/detectPrivateKey.d.ts.map +1 -0
  632. package/esm/file/detectPrivateKey.js +23 -22
  633. package/esm/file/detectPrivateKey.js.map +1 -0
  634. package/esm/file/detectPrivateKeyByFilePath.d.ts +3 -2
  635. package/esm/file/detectPrivateKeyByFilePath.d.ts.map +1 -0
  636. package/esm/file/detectPrivateKeyByFilePath.js +33 -30
  637. package/esm/file/detectPrivateKeyByFilePath.js.map +1 -0
  638. package/esm/file/fileMove.d.ts +5 -4
  639. package/esm/file/fileMove.d.ts.map +1 -0
  640. package/esm/file/fileMove.js +29 -28
  641. package/esm/file/fileMove.js.map +1 -0
  642. package/esm/file/findFilesByExt.d.ts +14 -13
  643. package/esm/file/findFilesByExt.d.ts.map +1 -0
  644. package/esm/file/findFilesByExt.js +46 -45
  645. package/esm/file/findFilesByExt.js.map +1 -0
  646. package/esm/file/getAllFiles.d.ts +2 -1
  647. package/esm/file/getAllFiles.d.ts.map +1 -0
  648. package/esm/file/getAllFiles.js +33 -32
  649. package/esm/file/getAllFiles.js.map +1 -0
  650. package/esm/file/index.d.ts +10 -9
  651. package/esm/file/index.d.ts.map +1 -0
  652. package/esm/file/index.js +6 -5
  653. package/esm/file/index.js.map +1 -0
  654. package/esm/file/parseEnvFile.d.ts +9 -8
  655. package/esm/file/parseEnvFile.d.ts.map +1 -0
  656. package/esm/file/parseEnvFile.js +38 -37
  657. package/esm/file/parseEnvFile.js.map +1 -0
  658. package/esm/gameboi/index.d.ts +12 -12
  659. package/esm/gameboi/index.d.ts.map +1 -0
  660. package/esm/gameboi/index.js +67 -66
  661. package/esm/gameboi/index.js.map +1 -0
  662. package/esm/html/transform3dToObject.d.ts +6 -5
  663. package/esm/html/transform3dToObject.d.ts.map +1 -0
  664. package/esm/html/transform3dToObject.js +10 -9
  665. package/esm/html/transform3dToObject.js.map +1 -0
  666. package/esm/images/downloadByUrl.d.ts +17 -16
  667. package/esm/images/downloadByUrl.d.ts.map +1 -0
  668. package/esm/images/downloadByUrl.js +74 -73
  669. package/esm/images/downloadByUrl.js.map +1 -0
  670. package/esm/images/getImageDimensions.d.ts +5 -4
  671. package/esm/images/getImageDimensions.d.ts.map +1 -0
  672. package/esm/images/getImageDimensions.js +17 -16
  673. package/esm/images/getImageDimensions.js.map +1 -0
  674. package/esm/images/getUrlBypassCors.d.ts +3 -2
  675. package/esm/images/getUrlBypassCors.d.ts.map +1 -0
  676. package/esm/images/getUrlBypassCors.js +13 -12
  677. package/esm/images/getUrlBypassCors.js.map +1 -0
  678. package/esm/images/index.d.ts +3 -2
  679. package/esm/images/index.d.ts.map +1 -0
  680. package/esm/images/index.js +4 -3
  681. package/esm/images/index.js.map +1 -0
  682. package/esm/images/loadImage.d.ts +2 -1
  683. package/esm/images/loadImage.d.ts.map +1 -0
  684. package/esm/images/loadImage.js +15 -14
  685. package/esm/images/loadImage.js.map +1 -0
  686. package/esm/images/loadImageAsBlobUrl.d.ts +2 -1
  687. package/esm/images/loadImageAsBlobUrl.d.ts.map +1 -0
  688. package/esm/images/loadImageAsBlobUrl.js +32 -31
  689. package/esm/images/loadImageAsBlobUrl.js.map +1 -0
  690. package/esm/images/resize.d.ts +4 -3
  691. package/esm/images/resize.d.ts.map +1 -0
  692. package/esm/images/resize.js +34 -33
  693. package/esm/images/resize.js.map +1 -0
  694. package/esm/images/upload.d.ts +11 -10
  695. package/esm/images/upload.d.ts.map +1 -0
  696. package/esm/images/upload.js +20 -19
  697. package/esm/images/upload.js.map +1 -0
  698. package/esm/index.d.ts +33 -37
  699. package/esm/index.d.ts.map +1 -0
  700. package/esm/index.js +39 -37
  701. package/esm/index.js.map +1 -0
  702. package/esm/json.d.ts +9 -8
  703. package/esm/json.d.ts.map +1 -0
  704. package/esm/json.js +28 -27
  705. package/esm/json.js.map +1 -0
  706. package/esm/lib/batchProcessor.d.ts +2 -1
  707. package/esm/lib/batchProcessor.d.ts.map +1 -0
  708. package/esm/lib/batchProcessor.js +14 -13
  709. package/esm/lib/batchProcessor.js.map +1 -0
  710. package/esm/math/angleBetweenPoints.d.ts +20 -0
  711. package/esm/math/angleBetweenPoints.d.ts.map +1 -0
  712. package/esm/math/angleBetweenPoints.js +26 -0
  713. package/esm/math/angleBetweenPoints.js.map +1 -0
  714. package/esm/math/clamp.d.ts +18 -0
  715. package/esm/math/clamp.d.ts.map +1 -0
  716. package/esm/math/clamp.js +21 -0
  717. package/esm/math/clamp.js.map +1 -0
  718. package/esm/math/degToRad.d.ts +15 -0
  719. package/esm/math/degToRad.d.ts.map +1 -0
  720. package/esm/math/degToRad.js +21 -0
  721. package/esm/math/degToRad.js.map +1 -0
  722. package/esm/math/diffDate.d.ts +6 -5
  723. package/esm/math/diffDate.d.ts.map +1 -0
  724. package/esm/math/diffDate.js +10 -9
  725. package/esm/math/diffDate.js.map +1 -0
  726. package/esm/math/distance.d.ts +18 -0
  727. package/esm/math/distance.d.ts.map +1 -0
  728. package/esm/math/distance.js +21 -0
  729. package/esm/math/distance.js.map +1 -0
  730. package/esm/math/index.d.ts +25 -30
  731. package/esm/math/index.d.ts.map +1 -0
  732. package/esm/math/index.js +25 -77
  733. package/esm/math/index.js.map +1 -0
  734. package/esm/math/lerp.d.ts +19 -0
  735. package/esm/math/lerp.d.ts.map +1 -0
  736. package/esm/math/lerp.js +21 -0
  737. package/esm/math/lerp.js.map +1 -0
  738. package/esm/math/positiveNumber.d.ts +3 -2
  739. package/esm/math/positiveNumber.d.ts.map +1 -0
  740. package/esm/math/positiveNumber.js +13 -12
  741. package/esm/math/positiveNumber.js.map +1 -0
  742. package/esm/math/radToDeg.d.ts +15 -0
  743. package/esm/math/radToDeg.d.ts.map +1 -0
  744. package/esm/math/radToDeg.js +21 -0
  745. package/esm/math/radToDeg.js.map +1 -0
  746. package/esm/math/random.d.ts +15 -0
  747. package/esm/math/random.d.ts.map +1 -0
  748. package/esm/math/random.js +17 -0
  749. package/esm/math/random.js.map +1 -0
  750. package/esm/math/randomFloat.d.ts +15 -0
  751. package/esm/math/randomFloat.d.ts.map +1 -0
  752. package/esm/math/randomFloat.js +17 -0
  753. package/esm/math/randomFloat.js.map +1 -0
  754. package/esm/math/randomInt.d.ts +15 -0
  755. package/esm/math/randomInt.d.ts.map +1 -0
  756. package/esm/math/randomInt.js +17 -0
  757. package/esm/math/randomInt.js.map +1 -0
  758. package/esm/math/round.d.ts +17 -0
  759. package/esm/math/round.d.ts.map +1 -0
  760. package/esm/math/round.js +20 -0
  761. package/esm/math/round.js.map +1 -0
  762. package/esm/name/en.d.ts +6 -5
  763. package/esm/name/en.d.ts.map +1 -0
  764. package/esm/name/en.js +26 -21
  765. package/esm/name/en.js.map +1 -0
  766. package/esm/name/index.d.ts +13 -12
  767. package/esm/name/index.d.ts.map +1 -0
  768. package/esm/name/index.js +6 -5
  769. package/esm/name/index.js.map +1 -0
  770. package/esm/name/vi.d.ts +6 -5
  771. package/esm/name/vi.d.ts.map +1 -0
  772. package/esm/name/vi.js +24 -23
  773. package/esm/name/vi.js.map +1 -0
  774. package/esm/object/deepClone.d.ts +18 -0
  775. package/esm/object/deepClone.d.ts.map +1 -0
  776. package/esm/object/deepClone.js +41 -0
  777. package/esm/object/deepClone.js.map +1 -0
  778. package/esm/object/index.d.ts +19 -0
  779. package/esm/object/index.d.ts.map +1 -0
  780. package/esm/object/index.js +19 -0
  781. package/esm/object/index.js.map +1 -0
  782. package/esm/object/isEmpty.d.ts +20 -0
  783. package/esm/object/isEmpty.d.ts.map +1 -0
  784. package/esm/object/isEmpty.js +31 -0
  785. package/esm/object/isEmpty.js.map +1 -0
  786. package/esm/object/isEqual.d.ts +19 -0
  787. package/esm/object/isEqual.d.ts.map +1 -0
  788. package/esm/object/isEqual.js +54 -0
  789. package/esm/object/isEqual.js.map +1 -0
  790. package/esm/object/isNull.d.ts +21 -0
  791. package/esm/object/isNull.d.ts.map +1 -0
  792. package/esm/object/isNull.js +44 -0
  793. package/esm/object/isNull.js.map +1 -0
  794. package/esm/object/isObject.d.ts +19 -0
  795. package/esm/object/isObject.d.ts.map +1 -0
  796. package/esm/object/isObject.js +21 -0
  797. package/esm/object/isObject.js.map +1 -0
  798. package/esm/object/iterate.d.ts +20 -0
  799. package/esm/object/iterate.d.ts.map +1 -0
  800. package/esm/object/iterate.js +32 -0
  801. package/esm/object/iterate.js.map +1 -0
  802. package/esm/object/merge.d.ts +18 -0
  803. package/esm/object/merge.d.ts.map +1 -0
  804. package/esm/object/merge.js +40 -0
  805. package/esm/object/merge.js.map +1 -0
  806. package/esm/object/omit.d.ts +17 -0
  807. package/esm/object/omit.d.ts.map +1 -0
  808. package/esm/object/omit.js +28 -0
  809. package/esm/object/omit.js.map +1 -0
  810. package/esm/object/pick.d.ts +17 -0
  811. package/esm/object/pick.d.ts.map +1 -0
  812. package/esm/object/pick.js +27 -0
  813. package/esm/object/pick.js.map +1 -0
  814. package/esm/object/toArray.d.ts +20 -0
  815. package/esm/object/toArray.d.ts.map +1 -0
  816. package/esm/object/toArray.js +29 -0
  817. package/esm/object/toArray.js.map +1 -0
  818. package/esm/object/toBool.d.ts +21 -0
  819. package/esm/object/toBool.d.ts.map +1 -0
  820. package/esm/object/toBool.js +35 -0
  821. package/esm/object/toBool.js.map +1 -0
  822. package/esm/object/toFloat.d.ts +19 -0
  823. package/esm/object/toFloat.d.ts.map +1 -0
  824. package/esm/object/toFloat.js +26 -0
  825. package/esm/object/toFloat.js.map +1 -0
  826. package/esm/object/toInt.d.ts +19 -0
  827. package/esm/object/toInt.d.ts.map +1 -0
  828. package/esm/object/toInt.js +26 -0
  829. package/esm/object/toInt.js.map +1 -0
  830. package/esm/object/toObject.d.ts +18 -0
  831. package/esm/object/toObject.d.ts.map +1 -0
  832. package/esm/object/toObject.js +29 -0
  833. package/esm/object/toObject.js.map +1 -0
  834. package/esm/object.d.ts +35 -34
  835. package/esm/object.d.ts.map +1 -0
  836. package/esm/object.js +108 -107
  837. package/esm/object.js.map +1 -0
  838. package/esm/permission/index.d.ts +9 -8
  839. package/esm/permission/index.d.ts.map +1 -0
  840. package/esm/permission/index.js +5 -4
  841. package/esm/permission/index.js.map +1 -0
  842. package/esm/permission/requestCamera.d.ts +6 -5
  843. package/esm/permission/requestCamera.d.ts.map +1 -0
  844. package/esm/permission/requestCamera.js +39 -38
  845. package/esm/permission/requestCamera.js.map +1 -0
  846. package/esm/permission/requestDeviceOrientationControl.d.ts +3 -2
  847. package/esm/permission/requestDeviceOrientationControl.d.ts.map +1 -0
  848. package/esm/permission/requestDeviceOrientationControl.js +35 -34
  849. package/esm/permission/requestDeviceOrientationControl.js.map +1 -0
  850. package/esm/response/index.d.ts +50 -49
  851. package/esm/response/index.d.ts.map +1 -0
  852. package/esm/response/index.js +61 -60
  853. package/esm/response/index.js.map +1 -0
  854. package/esm/string/convertPathnameAndQuery.d.ts +5 -4
  855. package/esm/string/convertPathnameAndQuery.d.ts.map +1 -0
  856. package/esm/string/convertPathnameAndQuery.js +22 -21
  857. package/esm/string/convertPathnameAndQuery.js.map +1 -0
  858. package/esm/string/formatBytes.d.ts +2 -1
  859. package/esm/string/formatBytes.d.ts.map +1 -0
  860. package/esm/string/formatBytes.js +15 -14
  861. package/esm/string/formatBytes.js.map +1 -0
  862. package/esm/string/formatNumber.d.ts +7 -6
  863. package/esm/string/formatNumber.d.ts.map +1 -0
  864. package/esm/string/formatNumber.js +11 -10
  865. package/esm/string/formatNumber.js.map +1 -0
  866. package/esm/string/generatePassword.d.ts +10 -9
  867. package/esm/string/generatePassword.d.ts.map +1 -0
  868. package/esm/string/generatePassword.js +23 -19
  869. package/esm/string/generatePassword.js.map +1 -0
  870. package/esm/string/generateUUID.d.ts +3 -2
  871. package/esm/string/generateUUID.d.ts.map +1 -0
  872. package/esm/string/generateUUID.js +33 -32
  873. package/esm/string/generateUUID.js.map +1 -0
  874. package/esm/string/getIntFromNextJsRouter.d.ts +2 -1
  875. package/esm/string/getIntFromNextJsRouter.d.ts.map +1 -0
  876. package/esm/string/getIntFromNextJsRouter.js +8 -7
  877. package/esm/string/getIntFromNextJsRouter.js.map +1 -0
  878. package/esm/string/getStringFromNextJsRouter.d.ts +2 -1
  879. package/esm/string/getStringFromNextJsRouter.d.ts.map +1 -0
  880. package/esm/string/getStringFromNextJsRouter.js +8 -7
  881. package/esm/string/getStringFromNextJsRouter.js.map +1 -0
  882. package/esm/string/getTextBetweenCharByIndex.d.ts +2 -1
  883. package/esm/string/getTextBetweenCharByIndex.d.ts.map +1 -0
  884. package/esm/string/getTextBetweenCharByIndex.js +15 -14
  885. package/esm/string/getTextBetweenCharByIndex.js.map +1 -0
  886. package/esm/string/guessMimeType.d.ts +3 -2
  887. package/esm/string/guessMimeType.d.ts.map +1 -0
  888. package/esm/string/guessMimeType.js +74 -73
  889. package/esm/string/guessMimeType.js.map +1 -0
  890. package/esm/string/guessMimeTypeByBuffer.d.ts +2 -3
  891. package/esm/string/guessMimeTypeByBuffer.d.ts.map +1 -0
  892. package/esm/string/guessMimeTypeByBuffer.js +37 -36
  893. package/esm/string/guessMimeTypeByBuffer.js.map +1 -0
  894. package/esm/string/index.d.ts +66 -65
  895. package/esm/string/index.d.ts.map +1 -0
  896. package/esm/string/index.js +151 -150
  897. package/esm/string/index.js.map +1 -0
  898. package/esm/string/indexesOf.d.ts +2 -1
  899. package/esm/string/indexesOf.d.ts.map +1 -0
  900. package/esm/string/indexesOf.js +12 -11
  901. package/esm/string/indexesOf.js.map +1 -0
  902. package/esm/string/makeDaySlug.d.ts +28 -27
  903. package/esm/string/makeDaySlug.d.ts.map +1 -0
  904. package/esm/string/makeDaySlug.js +12 -11
  905. package/esm/string/makeDaySlug.js.map +1 -0
  906. package/esm/string/makeSlug.d.ts +4 -3
  907. package/esm/string/makeSlug.d.ts.map +1 -0
  908. package/esm/string/makeSlug.js +4 -3
  909. package/esm/string/makeSlug.js.map +1 -0
  910. package/esm/string/padNumberWithLeadingZeros.d.ts +2 -1
  911. package/esm/string/padNumberWithLeadingZeros.d.ts.map +1 -0
  912. package/esm/string/padNumberWithLeadingZeros.js +10 -9
  913. package/esm/string/padNumberWithLeadingZeros.js.map +1 -0
  914. package/esm/string/random.d.ts +21 -20
  915. package/esm/string/random.d.ts.map +1 -0
  916. package/esm/string/random.js +43 -42
  917. package/esm/string/random.js.map +1 -0
  918. package/esm/string/trimNull.d.ts +3 -2
  919. package/esm/string/trimNull.d.ts.map +1 -0
  920. package/esm/string/trimNull.js +14 -13
  921. package/esm/string/trimNull.js.map +1 -0
  922. package/esm/string/url.d.ts +29 -28
  923. package/esm/string/url.d.ts.map +1 -0
  924. package/esm/string/url.js +108 -105
  925. package/esm/string/url.js.map +1 -0
  926. package/esm/xconsole/enableConsole.d.ts +3 -2
  927. package/esm/xconsole/enableConsole.d.ts.map +1 -0
  928. package/esm/xconsole/enableConsole.js +7 -6
  929. package/esm/xconsole/enableConsole.js.map +1 -0
  930. package/esm/xconsole/index.d.ts +12 -11
  931. package/esm/xconsole/index.d.ts.map +1 -0
  932. package/esm/xconsole/index.js +14 -13
  933. package/esm/xconsole/index.js.map +1 -0
  934. package/esm/xconsole/log.d.ts +16 -15
  935. package/esm/xconsole/log.d.ts.map +1 -0
  936. package/esm/xconsole/log.js +33 -32
  937. package/esm/xconsole/log.js.map +1 -0
  938. package/package.json +77 -28
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Sorts an array of objects by a numeric property in ascending order.
3
+ * Creates a new sorted array without modifying the original.
4
+ *
5
+ * @template T - The type of elements in the array
6
+ * @param array - The array to sort
7
+ * @param key - The property key to sort by
8
+ * @returns A new sorted array
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const items = [
13
+ * { value: 30 },
14
+ * { value: 10 },
15
+ * { value: 20 }
16
+ * ];
17
+ * sortByNumber(items, 'value');
18
+ * // [{ value: 10 }, { value: 20 }, { value: 30 }]
19
+ * ```
20
+ */
21
+ export declare function sortByNumber<T extends Record<string, unknown>>(array: T[], key: keyof T): T[];
22
+ //# sourceMappingURL=sortByNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortByNumber.d.ts","sourceRoot":"","sources":["../../src/array/sortByNumber.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAU7F"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sortByNumber = sortByNumber;
4
+ /**
5
+ * Sorts an array of objects by a numeric property in ascending order.
6
+ * Creates a new sorted array without modifying the original.
7
+ *
8
+ * @template T - The type of elements in the array
9
+ * @param array - The array to sort
10
+ * @param key - The property key to sort by
11
+ * @returns A new sorted array
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const items = [
16
+ * { value: 30 },
17
+ * { value: 10 },
18
+ * { value: 20 }
19
+ * ];
20
+ * sortByNumber(items, 'value');
21
+ * // [{ value: 10 }, { value: 20 }, { value: 30 }]
22
+ * ```
23
+ */
24
+ function sortByNumber(array, key) {
25
+ if (!Array.isArray(array)) {
26
+ return [];
27
+ }
28
+ return [...array].sort((a, b) => {
29
+ const valueA = Number(a[key]) || 0;
30
+ const valueB = Number(b[key]) || 0;
31
+ return valueA - valueB;
32
+ });
33
+ }
34
+ //# sourceMappingURL=sortByNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortByNumber.js","sourceRoot":"","sources":["../../src/array/sortByNumber.ts"],"names":[],"mappings":";;AAoBA,oCAUC;AA9BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAAoC,KAAU,EAAE,GAAY;IACvF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACX,CAAC;IAED,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QACnC,OAAO,MAAM,GAAG,MAAM,CAAC;IACxB,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Sorts an array of objects by a string property in ascending order.
3
+ * Creates a new sorted array without modifying the original.
4
+ *
5
+ * @template T - The type of elements in the array
6
+ * @param array - The array to sort
7
+ * @param key - The property key to sort by
8
+ * @returns A new sorted array
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const users = [
13
+ * { name: 'Charlie' },
14
+ * { name: 'Alice' },
15
+ * { name: 'Bob' }
16
+ * ];
17
+ * sortByString(users, 'name');
18
+ * // [{ name: 'Alice' }, { name: 'Bob' }, { name: 'Charlie' }]
19
+ * ```
20
+ */
21
+ export declare function sortByString<T extends Record<string, unknown>>(array: T[], key: keyof T): T[];
22
+ //# sourceMappingURL=sortByString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortByString.d.ts","sourceRoot":"","sources":["../../src/array/sortByString.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAY7F"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sortByString = sortByString;
4
+ /**
5
+ * Sorts an array of objects by a string property in ascending order.
6
+ * Creates a new sorted array without modifying the original.
7
+ *
8
+ * @template T - The type of elements in the array
9
+ * @param array - The array to sort
10
+ * @param key - The property key to sort by
11
+ * @returns A new sorted array
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const users = [
16
+ * { name: 'Charlie' },
17
+ * { name: 'Alice' },
18
+ * { name: 'Bob' }
19
+ * ];
20
+ * sortByString(users, 'name');
21
+ * // [{ name: 'Alice' }, { name: 'Bob' }, { name: 'Charlie' }]
22
+ * ```
23
+ */
24
+ function sortByString(array, key) {
25
+ if (!Array.isArray(array)) {
26
+ return [];
27
+ }
28
+ return [...array].sort((a, b) => {
29
+ var _a, _b;
30
+ const valueA = String((_a = a[key]) !== null && _a !== void 0 ? _a : "").toUpperCase();
31
+ const valueB = String((_b = b[key]) !== null && _b !== void 0 ? _b : "").toUpperCase();
32
+ if (valueA === valueB)
33
+ return 0;
34
+ return valueA > valueB ? 1 : -1;
35
+ });
36
+ }
37
+ //# sourceMappingURL=sortByString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortByString.js","sourceRoot":"","sources":["../../src/array/sortByString.ts"],"names":[],"mappings":";;AAoBA,oCAYC;AAhCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAAoC,KAAU,EAAE,GAAY;IACvF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACX,CAAC;IAED,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;;QAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAA,CAAC,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAA,CAAC,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAElD,IAAI,MAAM,KAAK,MAAM;YAAE,OAAO,CAAC,CAAC;QAChC,OAAO,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Calculates the sum of all elements in an array.
3
+ * If a key is provided, sums the values of that property from each object.
4
+ *
5
+ * @template T - The type of elements in the array
6
+ * @param array - The array to sum
7
+ * @param key - Optional key to sum values from objects
8
+ * @returns The sum of all values, or 0 if array is empty
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * sum([1, 2, 3, 4]); // 10
13
+ * sum([{ value: 5 }, { value: 10 }], 'value'); // 15
14
+ * sum([]); // 0
15
+ * ```
16
+ */
17
+ export declare function sum<T = number>(array: T[], key?: keyof T): number;
18
+ //# sourceMappingURL=sum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sum.d.ts","sourceRoot":"","sources":["../../src/array/sum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAajE"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sum = sum;
4
+ /**
5
+ * Calculates the sum of all elements in an array.
6
+ * If a key is provided, sums the values of that property from each object.
7
+ *
8
+ * @template T - The type of elements in the array
9
+ * @param array - The array to sum
10
+ * @param key - Optional key to sum values from objects
11
+ * @returns The sum of all values, or 0 if array is empty
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * sum([1, 2, 3, 4]); // 10
16
+ * sum([{ value: 5 }, { value: 10 }], 'value'); // 15
17
+ * sum([]); // 0
18
+ * ```
19
+ */
20
+ function sum(array, key) {
21
+ if (!Array.isArray(array) || array.length === 0) {
22
+ return 0;
23
+ }
24
+ if (key !== undefined) {
25
+ return array.reduce((acc, item) => {
26
+ const value = item[key];
27
+ return acc + (typeof value === "number" ? value : 0);
28
+ }, 0);
29
+ }
30
+ return array.reduce((acc, value) => acc + (typeof value === "number" ? value : 0), 0);
31
+ }
32
+ //# sourceMappingURL=sum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sum.js","sourceRoot":"","sources":["../../src/array/sum.ts"],"names":[],"mappings":";;AAgBA,kBAaC;AA7BD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,GAAG,CAAa,KAAU,EAAE,GAAa;IACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,CAAC;IACV,CAAC;IAED,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACjC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,GAAG,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC,EAAE,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAQ,KAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACrG,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Creates an array of unique values from all given arrays.
3
+ *
4
+ * @template T - The type of elements in the arrays
5
+ * @param arrays - Arrays to combine
6
+ * @returns A new array with all unique values from all arrays
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * union([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
11
+ * union(['a'], ['b'], ['a', 'c']); // ['a', 'b', 'c']
12
+ * ```
13
+ */
14
+ export declare function union<T>(...arrays: T[][]): T[];
15
+ //# sourceMappingURL=union.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../src/array/union.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,CAM9C"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.union = union;
4
+ /**
5
+ * Creates an array of unique values from all given arrays.
6
+ *
7
+ * @template T - The type of elements in the arrays
8
+ * @param arrays - Arrays to combine
9
+ * @returns A new array with all unique values from all arrays
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * union([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
14
+ * union(['a'], ['b'], ['a', 'c']); // ['a', 'b', 'c']
15
+ * ```
16
+ */
17
+ function union(...arrays) {
18
+ if (!arrays || arrays.length === 0) {
19
+ return [];
20
+ }
21
+ return Array.from(new Set(arrays.flat()));
22
+ }
23
+ //# sourceMappingURL=union.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"union.js","sourceRoot":"","sources":["../../src/array/union.ts"],"names":[],"mappings":";;AAaA,sBAMC;AAnBD;;;;;;;;;;;;GAYG;AACH,SAAgB,KAAK,CAAI,GAAG,MAAa;IACxC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Creates an array of unique values from one or more arrays.
3
+ * If a key is provided, uniqueness is determined by that property.
4
+ *
5
+ * @template T - The type of elements in the arrays
6
+ * @param arrays - One or more arrays to combine and make unique
7
+ * @param key - Optional key to determine uniqueness for objects
8
+ * @returns A new array with unique values
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * unique([1, 2, 2, 3, 3, 4]); // [1, 2, 3, 4]
13
+ * unique([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
14
+ * unique([{ id: 1 }, { id: 1 }, { id: 2 }], 'id'); // [{ id: 1 }, { id: 2 }]
15
+ * ```
16
+ */
17
+ export declare function unique<T>(arrays: T[] | T[][], key?: keyof T): T[];
18
+ //# sourceMappingURL=unique.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../src/array/unique.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAqBjE"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unique = unique;
4
+ /**
5
+ * Creates an array of unique values from one or more arrays.
6
+ * If a key is provided, uniqueness is determined by that property.
7
+ *
8
+ * @template T - The type of elements in the arrays
9
+ * @param arrays - One or more arrays to combine and make unique
10
+ * @param key - Optional key to determine uniqueness for objects
11
+ * @returns A new array with unique values
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * unique([1, 2, 2, 3, 3, 4]); // [1, 2, 3, 4]
16
+ * unique([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
17
+ * unique([{ id: 1 }, { id: 1 }, { id: 2 }], 'id'); // [{ id: 1 }, { id: 2 }]
18
+ * ```
19
+ */
20
+ function unique(arrays, key) {
21
+ // Flatten if multiple arrays provided
22
+ const flatArray = Array.isArray(arrays[0]) && arrays.length > 1 ? arrays.flat() : arrays;
23
+ if (!Array.isArray(flatArray) || flatArray.length === 0) {
24
+ return [];
25
+ }
26
+ if (key !== undefined) {
27
+ const seen = new Set();
28
+ return flatArray.filter((item) => {
29
+ const value = item[key];
30
+ if (seen.has(value)) {
31
+ return false;
32
+ }
33
+ seen.add(value);
34
+ return true;
35
+ });
36
+ }
37
+ return Array.from(new Set(flatArray));
38
+ }
39
+ //# sourceMappingURL=unique.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unique.js","sourceRoot":"","sources":["../../src/array/unique.ts"],"names":[],"mappings":";;AAgBA,wBAqBC;AArCD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,MAAM,CAAI,MAAmB,EAAE,GAAa;IAC3D,sCAAsC;IACtC,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAE,MAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAE,MAAc,CAAC;IAE7G,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,EAAE,CAAC;IACX,CAAC;IAED,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,IAAI,GAAG,EAAW,CAAC;QAChC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;YAChC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrB,OAAO,KAAK,CAAC;YACd,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAChB,OAAO,IAAI,CAAC;QACb,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;AACvC,CAAC"}
package/dist/array.d.ts CHANGED
@@ -1,113 +1,114 @@
1
- export declare const sumArray: (array: [], key: string) => number;
2
- /**
3
- *
4
- * @param {Array} array
5
- * @param {string} key
6
- * @returns {Number}
7
- */
8
- export declare const averageArray: (array: [], key: string) => number;
9
- /**
10
- *
11
- * @param {Array} array
12
- * @param {string} key
13
- * @returns {Number}
14
- */
15
- export declare const minArray: (array: [], key: string) => number;
16
- /**
17
- *
18
- * @param {Array} array
19
- * @param {string} key
20
- * @returns {Number}
21
- */
22
- export declare const maxArray: (array: [], key: string) => number;
23
- /**
24
- *
25
- * @param {Array} array
26
- * @param {string} key
27
- * @returns {Array}
28
- */
29
- export declare const sortElementByString: (array: any, key: string) => any[] | undefined;
30
- /**
31
- *
32
- * @param {Array} array
33
- * @param {string} key
34
- * @returns {Array}
35
- */
36
- export declare const sortElementByNumber: (array: any, key: string) => any[] | undefined;
37
- /**
38
- *
39
- * @param {Array} array
40
- * @returns {any}
41
- */
42
- export declare const firstElement: (array: any[]) => any;
43
- /**
44
- *
45
- * @param {Array} array
46
- * @returns {any}
47
- */
48
- export declare const lastElement: (array: any[]) => any;
49
- /**
50
- *
51
- * @param {Array} array
52
- * @returns {any}
53
- */
54
- export declare const randomIndex: (array: any[]) => number;
55
- /**
56
- *
57
- * @param {Array} array
58
- * @returns {any}
59
- */
60
- export declare const randomElement: (array: any[]) => any;
61
- /**
62
- * Remove same elements from 2 arrays
63
- */
64
- export declare const mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
65
- /**
66
- * check target == toMatch
67
- * @param {Array} target
68
- * @param {Array} toMatch
69
- * @returns {Boolean}
70
- */
71
- export declare const allMatchInArray: (target: any[], toMatch: any[]) => boolean;
72
- export declare const removeItem: (item: any, array: any[]) => any[];
73
- export declare const removeItemByKey: (key: string, value: any, array: any[]) => any[];
74
- export declare const getRandom: (array: any[], n?: number) => any[];
75
- /**
76
- * Get an array with shuffle element
77
- */
78
- export declare const getHalfRandom: (array: any[], n: number) => any[];
79
- /**
80
- * Make array shuffle itself
81
- */
82
- export declare const shuffle: (array: any[]) => any[];
83
- /**
84
- *
85
- * @param {Array} array
86
- * @param {Number} oldIndex
87
- * @param {Number} newIndex
88
- * @returns {Array}
89
- */
90
- export declare const moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
91
- export declare const moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
92
- declare const xarray: {
93
- sumArray: (array: [], key: string) => number;
94
- averageArray: (array: [], key: string) => number;
95
- minArray: (array: [], key: string) => number;
96
- maxArray: (array: [], key: string) => number;
97
- sortElementByString: (array: any, key: string) => any[] | undefined;
98
- sortElementByNumber: (array: any, key: string) => any[] | undefined;
99
- firstElement: (array: any[]) => any;
100
- lastElement: (array: any[]) => any;
101
- randomIndex: (array: any[]) => number;
102
- randomElement: (array: any[]) => any;
103
- mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
104
- allMatchInArray: (target: any[], toMatch: any[]) => boolean;
105
- removeItem: (item: any, array: any[]) => any[];
106
- removeItemByKey: (key: string, value: any, array: any[]) => any[];
107
- getRandom: (array: any[], n?: number) => any[];
108
- getHalfRandom: (array: any[], n: number) => any[];
109
- shuffle: (array: any[]) => any[];
110
- moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
111
- moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
112
- };
113
- export default xarray;
1
+ export declare const sumArray: (array: [], key: string) => number;
2
+ /**
3
+ *
4
+ * @param {Array} array
5
+ * @param {string} key
6
+ * @returns {Number}
7
+ */
8
+ export declare const averageArray: (array: [], key: string) => number;
9
+ /**
10
+ *
11
+ * @param {Array} array
12
+ * @param {string} key
13
+ * @returns {Number}
14
+ */
15
+ export declare const minArray: (array: [], key: string) => number;
16
+ /**
17
+ *
18
+ * @param {Array} array
19
+ * @param {string} key
20
+ * @returns {Number}
21
+ */
22
+ export declare const maxArray: (array: [], key: string) => number;
23
+ /**
24
+ *
25
+ * @param {Array} array
26
+ * @param {string} key
27
+ * @returns {Array}
28
+ */
29
+ export declare const sortElementByString: (array: any, key: string) => any[];
30
+ /**
31
+ *
32
+ * @param {Array} array
33
+ * @param {string} key
34
+ * @returns {Array}
35
+ */
36
+ export declare const sortElementByNumber: (array: any, key: string) => any[];
37
+ /**
38
+ *
39
+ * @param {Array} array
40
+ * @returns {any}
41
+ */
42
+ export declare const firstElement: (array: any[]) => any;
43
+ /**
44
+ *
45
+ * @param {Array} array
46
+ * @returns {any}
47
+ */
48
+ export declare const lastElement: (array: any[]) => any;
49
+ /**
50
+ *
51
+ * @param {Array} array
52
+ * @returns {any}
53
+ */
54
+ export declare const randomIndex: (array: any[]) => number;
55
+ /**
56
+ *
57
+ * @param {Array} array
58
+ * @returns {any}
59
+ */
60
+ export declare const randomElement: (array: any[]) => any;
61
+ /**
62
+ * Remove same elements from 2 arrays
63
+ */
64
+ export declare const mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
65
+ /**
66
+ * check target == toMatch
67
+ * @param {Array} target
68
+ * @param {Array} toMatch
69
+ * @returns {Boolean}
70
+ */
71
+ export declare const allMatchInArray: (target: any[], toMatch: any[]) => boolean;
72
+ export declare const removeItem: (item: any, array: any[]) => any[];
73
+ export declare const removeItemByKey: (key: string, value: any, array: any[]) => any[];
74
+ export declare const getRandom: (array: any[], n?: number) => any[];
75
+ /**
76
+ * Get an array with shuffle element
77
+ */
78
+ export declare const getHalfRandom: (array: any[], n: number) => any[];
79
+ /**
80
+ * Make array shuffle itself
81
+ */
82
+ export declare const shuffle: (array: any[]) => any[];
83
+ /**
84
+ *
85
+ * @param {Array} array
86
+ * @param {Number} oldIndex
87
+ * @param {Number} newIndex
88
+ * @returns {Array}
89
+ */
90
+ export declare const moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
91
+ export declare const moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
92
+ declare const xarray: {
93
+ sumArray: (array: [], key: string) => number;
94
+ averageArray: (array: [], key: string) => number;
95
+ minArray: (array: [], key: string) => number;
96
+ maxArray: (array: [], key: string) => number;
97
+ sortElementByString: (array: any, key: string) => any[];
98
+ sortElementByNumber: (array: any, key: string) => any[];
99
+ firstElement: (array: any[]) => any;
100
+ lastElement: (array: any[]) => any;
101
+ randomIndex: (array: any[]) => number;
102
+ randomElement: (array: any[]) => any;
103
+ mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
104
+ allMatchInArray: (target: any[], toMatch: any[]) => boolean;
105
+ removeItem: (item: any, array: any[]) => any[];
106
+ removeItemByKey: (key: string, value: any, array: any[]) => any[];
107
+ getRandom: (array: any[], n?: number) => any[];
108
+ getHalfRandom: (array: any[], n: number) => any[];
109
+ shuffle: (array: any[]) => any[];
110
+ moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
111
+ moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
112
+ };
113
+ export default xarray;
114
+ //# sourceMappingURL=array.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../src/array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAO9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAMlD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAU9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAU9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,GAAG,EAAE,KAAK,MAAM,UAS1D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,GAAG,EAAE,KAAK,MAAM,UAO1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,EAAE,QAGxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,EAAE,QAGvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,EAAE,WAGvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,EAAE,QAGzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,GAAI,OAAO,GAAG,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,KAAK,MAAM,sBAYhF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,YAM5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,EAAE,UAQjD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,EAAE,OAAO,GAAG,EAAE,OAAO,GAAG,EAAE,UAWpE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,EAAE,IAAI,MAAM,UAajD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,EAAE,EAAE,GAAG,MAAM,UAGpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,GAAG,EAAE,UAcnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,EAAE,UAAU,MAAM,EAAE,UAAU,MAAM,UASzE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,EAAE,UAAU,MAAM,EAAE,UAAU,MAAM,UAezE,CAAC;AAEF,QAAA,MAAM,MAAM;sBAtQoB,EAAE,OAAO,MAAM;0BAeX,EAAE,OAAO,MAAM;sBAcnB,EAAE,OAAO,MAAM;sBAkBf,EAAE,OAAO,MAAM;iCAkBJ,GAAG,OAAO,MAAM;iCAiBhB,GAAG,OAAO,MAAM;0BAcvB,GAAG,EAAE;yBAUN,GAAG,EAAE;yBAUL,GAAG,EAAE;2BAUH,GAAG,EAAE;uCAQO,GAAG,EAAE,SAAS,GAAG,EAAE,OAAO,MAAM;8BAoBzC,GAAG,EAAE,WAAW,GAAG,EAAE;uBAQ5B,GAAG,SAAS,GAAG,EAAE;2BAUb,MAAM,SAAS,GAAG,SAAS,GAAG,EAAE;uBAapC,GAAG,EAAE,MAAM,MAAM;2BAkBb,GAAG,EAAE,KAAK,MAAM;qBAQtB,GAAG,EAAE;uBAuBH,GAAG,EAAE,YAAY,MAAM,YAAY,MAAM;uBAWzC,GAAG,EAAE,YAAY,MAAM,YAAY,MAAM;CAqCzE,CAAC;AAEF,eAAe,MAAM,CAAC"}