@fangzhongya/utils 0.0.34 → 0.0.36

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 (275) hide show
  1. package/dist/basic/array/asyncMergeArray.d.cts +9 -0
  2. package/dist/basic/array/asyncMergeArray.d.ts +9 -0
  3. package/dist/basic/array/compareArray.cjs +7 -1
  4. package/dist/basic/array/compareArray.d.cts +11 -0
  5. package/dist/basic/array/compareArray.d.ts +11 -0
  6. package/dist/basic/array/compareArray.js +7 -1
  7. package/dist/basic/array/deleteArray.d.cts +6 -0
  8. package/dist/basic/array/deleteArray.d.ts +6 -0
  9. package/dist/basic/array/duplicateRemoval.d.cts +9 -0
  10. package/dist/basic/array/duplicateRemoval.d.ts +9 -0
  11. package/dist/basic/array/index.cjs +6 -3
  12. package/dist/basic/array/index.d.cts +8 -0
  13. package/dist/basic/array/index.d.ts +8 -0
  14. package/dist/basic/array/index.js +5 -2
  15. package/dist/basic/array/isArray.d.cts +8 -0
  16. package/dist/basic/array/isArray.d.ts +8 -0
  17. package/dist/basic/array/replaceAfter.d.cts +11 -0
  18. package/dist/basic/array/replaceAfter.d.ts +11 -0
  19. package/dist/basic/array/sortObj.d.cts +10 -0
  20. package/dist/basic/array/sortObj.d.ts +10 -0
  21. package/dist/basic/array/toggleArray.d.cts +10 -0
  22. package/dist/basic/array/toggleArray.d.ts +10 -0
  23. package/dist/basic/index.cjs +5 -5
  24. package/dist/basic/index.d.cts +38 -0
  25. package/dist/basic/index.d.ts +38 -0
  26. package/dist/basic/index.js +4 -4
  27. package/dist/basic/object/attrValueSort.d.cts +12 -0
  28. package/dist/basic/object/attrValueSort.d.ts +12 -0
  29. package/dist/basic/object/deepCopy.d.cts +8 -0
  30. package/dist/basic/object/deepCopy.d.ts +8 -0
  31. package/dist/basic/object/filterObject.d.cts +14 -0
  32. package/dist/basic/object/filterObject.d.ts +14 -0
  33. package/dist/basic/object/getSort.d.cts +10 -0
  34. package/dist/basic/object/getSort.d.ts +10 -0
  35. package/dist/basic/object/hasOwn.d.cts +9 -0
  36. package/dist/basic/object/hasOwn.d.ts +9 -0
  37. package/dist/basic/object/index.d.cts +12 -0
  38. package/dist/basic/object/index.d.ts +12 -0
  39. package/dist/basic/object/isObject.d.cts +8 -0
  40. package/dist/basic/object/isObject.d.ts +8 -0
  41. package/dist/basic/object/isObjectArray.d.cts +8 -0
  42. package/dist/basic/object/isObjectArray.d.ts +8 -0
  43. package/dist/basic/object/mergeObject.d.cts +11 -0
  44. package/dist/basic/object/mergeObject.d.ts +11 -0
  45. package/dist/basic/object/objValue.d.cts +7 -0
  46. package/dist/basic/object/objValue.d.ts +7 -0
  47. package/dist/basic/object/reverseObj.d.cts +9 -0
  48. package/dist/basic/object/reverseObj.d.ts +9 -0
  49. package/dist/basic/object/setSort.d.cts +7 -0
  50. package/dist/basic/object/setSort.d.ts +7 -0
  51. package/dist/basic/object/unmergeObject.d.cts +11 -0
  52. package/dist/basic/object/unmergeObject.d.ts +11 -0
  53. package/dist/basic/string/appearNum.d.cts +9 -0
  54. package/dist/basic/string/appearNum.d.ts +9 -0
  55. package/dist/basic/string/appearNumSeat.d.cts +10 -0
  56. package/dist/basic/string/appearNumSeat.d.ts +10 -0
  57. package/dist/basic/string/deComment.d.cts +7 -0
  58. package/dist/basic/string/deComment.d.ts +7 -0
  59. package/dist/basic/string/firstLower.d.cts +8 -0
  60. package/dist/basic/string/firstLower.d.ts +8 -0
  61. package/dist/basic/string/firstUpper.d.cts +8 -0
  62. package/dist/basic/string/firstUpper.d.ts +8 -0
  63. package/dist/basic/string/getImports.d.cts +22 -0
  64. package/dist/basic/string/getImports.d.ts +22 -0
  65. package/dist/basic/string/getStartSame.d.cts +9 -0
  66. package/dist/basic/string/getStartSame.d.ts +9 -0
  67. package/dist/basic/string/getStartSames.d.cts +9 -0
  68. package/dist/basic/string/getStartSames.d.ts +9 -0
  69. package/dist/basic/string/getStrNunPosit.d.cts +10 -0
  70. package/dist/basic/string/getStrNunPosit.d.ts +10 -0
  71. package/dist/basic/string/index.d.cts +15 -0
  72. package/dist/basic/string/index.d.ts +15 -0
  73. package/dist/basic/string/splitUpper.d.cts +8 -0
  74. package/dist/basic/string/splitUpper.d.ts +8 -0
  75. package/dist/basic/string/startsNum.d.cts +9 -0
  76. package/dist/basic/string/startsNum.d.ts +9 -0
  77. package/dist/basic/string/toFunction.d.cts +19 -0
  78. package/dist/basic/string/toFunction.d.ts +19 -0
  79. package/dist/basic/string/toJson.d.cts +4 -0
  80. package/dist/basic/string/toJson.d.ts +4 -0
  81. package/dist/basic/string/toJsons.d.cts +60 -0
  82. package/dist/basic/string/toJsons.d.ts +60 -0
  83. package/dist/basic/string/toStringParse.d.cts +6 -0
  84. package/dist/basic/string/toStringParse.d.ts +6 -0
  85. package/dist/{chunk-VBS6YE6H.js → chunk-AFFLQCJL.js} +3 -2
  86. package/dist/{chunk-7UVIWZ2J.js → chunk-ATRR4ELS.js} +4 -0
  87. package/dist/{chunk-QBGA4H7C.js → chunk-AXX6AFYC.js} +1 -1
  88. package/dist/{chunk-UPPSZFBE.cjs → chunk-EOJVE3HL.cjs} +3 -2
  89. package/dist/{chunk-YKNGDK4I.js → chunk-L5HSTRIG.js} +4 -4
  90. package/dist/chunk-NDKOWDDX.cjs +17 -0
  91. package/dist/{chunk-UHKL2RG3.cjs → chunk-OZWQIUPS.cjs} +5 -5
  92. package/dist/{chunk-F4IWIVCD.cjs → chunk-SR4YVP26.cjs} +4 -0
  93. package/dist/{chunk-4SFMC3WS.cjs → chunk-VT3YWR6G.cjs} +2 -2
  94. package/dist/chunk-WQ2PUZ2S.js +17 -0
  95. package/dist/{chunk-6L33BJTH.js → chunk-Z3BZ5W5W.js} +1 -1
  96. package/dist/{chunk-KNTGZRPD.cjs → chunk-ZUIHJQD6.cjs} +5 -5
  97. package/dist/css/fetchUnitValue.d.cts +10 -0
  98. package/dist/css/fetchUnitValue.d.ts +10 -0
  99. package/dist/css/getAttrObj.d.cts +11 -0
  100. package/dist/css/getAttrObj.d.ts +11 -0
  101. package/dist/css/getCss.d.cts +9 -0
  102. package/dist/css/getCss.d.ts +9 -0
  103. package/dist/css/getPositionRelative.d.cts +7 -0
  104. package/dist/css/getPositionRelative.d.ts +7 -0
  105. package/dist/css/getPrentClass.d.cts +7 -0
  106. package/dist/css/getPrentClass.d.ts +7 -0
  107. package/dist/css/getPrentCorres.d.cts +7 -0
  108. package/dist/css/getPrentCorres.d.ts +7 -0
  109. package/dist/css/getSVG.d.cts +14 -0
  110. package/dist/css/getSVG.d.ts +14 -0
  111. package/dist/css/getScssImports.d.cts +8 -0
  112. package/dist/css/getScssImports.d.ts +8 -0
  113. package/dist/css/index.d.cts +11 -0
  114. package/dist/css/index.d.ts +11 -0
  115. package/dist/css/setClassName.d.cts +6 -0
  116. package/dist/css/setClassName.d.ts +6 -0
  117. package/dist/css/setCss.d.cts +11 -0
  118. package/dist/css/setCss.d.ts +11 -0
  119. package/dist/css/setObjStyle.d.cts +12 -0
  120. package/dist/css/setObjStyle.d.ts +12 -0
  121. package/dist/date/format.d.cts +3 -0
  122. package/dist/date/format.d.ts +3 -0
  123. package/dist/date/index.d.cts +1 -0
  124. package/dist/date/index.d.ts +1 -0
  125. package/dist/dom/getLocus.d.cts +14 -0
  126. package/dist/dom/getLocus.d.ts +14 -0
  127. package/dist/dom/getShiftEvent.cjs +2 -2
  128. package/dist/dom/getShiftEvent.d.cts +25 -0
  129. package/dist/dom/getShiftEvent.d.ts +25 -0
  130. package/dist/dom/getShiftEvent.js +1 -1
  131. package/dist/dom/index.cjs +3 -3
  132. package/dist/dom/index.d.cts +2 -0
  133. package/dist/dom/index.d.ts +2 -0
  134. package/dist/dom/index.js +2 -2
  135. package/dist/html/analysisHtml.d.cts +13 -0
  136. package/dist/html/analysisHtml.d.ts +13 -0
  137. package/dist/html/generateHtml.d.cts +5 -0
  138. package/dist/html/generateHtml.d.ts +5 -0
  139. package/dist/html/getVueText.d.cts +16 -0
  140. package/dist/html/getVueText.d.ts +16 -0
  141. package/dist/html/htmlEscape.d.cts +8 -0
  142. package/dist/html/htmlEscape.d.ts +8 -0
  143. package/dist/html/index.d.cts +4 -0
  144. package/dist/html/index.d.ts +4 -0
  145. package/dist/index--yFTfMpc.d.cts +29 -0
  146. package/dist/index-B7gdHwF9.d.cts +40 -0
  147. package/dist/index-BU0xla6v.d.cts +31 -0
  148. package/dist/index-BYfEDFkm.d.ts +22 -0
  149. package/dist/index-BbrWO_KD.d.cts +16 -0
  150. package/dist/index-BiHaQlE9.d.cts +14 -0
  151. package/dist/index-Bo-c8HaW.d.cts +9 -0
  152. package/dist/index-BocAlCa8.d.ts +8 -0
  153. package/dist/index-Bq6WKjlK.d.ts +29 -0
  154. package/dist/index-BqhKBGyX.d.ts +14 -0
  155. package/dist/index-Bta_eezz.d.ts +12 -0
  156. package/dist/index-C0q7yBX5.d.cts +29 -0
  157. package/dist/index-C1rfQdS-.d.ts +8 -0
  158. package/dist/index-CK2c-6vv.d.cts +8 -0
  159. package/dist/index-CLnASTZ5.d.ts +29 -0
  160. package/dist/index-CPO1AFVg.d.ts +14 -0
  161. package/dist/index-CS54GrWo.d.ts +16 -0
  162. package/dist/index-CdRz4xJD.d.ts +15 -0
  163. package/dist/index-CmiMKPSL.d.ts +43 -0
  164. package/dist/index-CnrmwHvE.d.cts +15 -0
  165. package/dist/index-Cqj4dm5n.d.ts +8 -0
  166. package/dist/index-CsYVH5m1.d.cts +8 -0
  167. package/dist/index-D1xTdh0f.d.cts +8 -0
  168. package/dist/index-D8_Udh46.d.cts +22 -0
  169. package/dist/index-DAi9PP0w.d.cts +13 -0
  170. package/dist/index-DE6mtDGJ.d.ts +9 -0
  171. package/dist/index-DOq59RNr.d.ts +31 -0
  172. package/dist/index-DPrdy8Ms.d.ts +40 -0
  173. package/dist/index-DaryquSt.d.cts +43 -0
  174. package/dist/index-Dvp25i1P.d.cts +10 -0
  175. package/dist/index-cuR7l2XV.d.cts +14 -0
  176. package/dist/index-syb18q2f.d.ts +10 -0
  177. package/dist/index-v-06_rNI.d.cts +12 -0
  178. package/dist/index-vCPDFXBq.d.ts +13 -0
  179. package/dist/index.cjs +25 -25
  180. package/dist/index.d.cts +99 -0
  181. package/dist/index.d.ts +99 -0
  182. package/dist/index.js +24 -24
  183. package/dist/iss/index.d.cts +3 -0
  184. package/dist/iss/index.d.ts +3 -0
  185. package/dist/judge/index.cjs +6 -6
  186. package/dist/judge/index.d.cts +5 -0
  187. package/dist/judge/index.d.ts +5 -0
  188. package/dist/judge/index.js +5 -5
  189. package/dist/judge/judge.d.cts +155 -0
  190. package/dist/judge/judge.d.ts +155 -0
  191. package/dist/judge/matchs.cjs +3 -3
  192. package/dist/judge/matchs.d.cts +10 -0
  193. package/dist/judge/matchs.d.ts +10 -0
  194. package/dist/judge/matchs.js +2 -2
  195. package/dist/judge/matchsEnd.d.cts +9 -0
  196. package/dist/judge/matchsEnd.d.ts +9 -0
  197. package/dist/judge/matchsStart.d.cts +9 -0
  198. package/dist/judge/matchsStart.d.ts +9 -0
  199. package/dist/judge/matchsWhole.d.cts +9 -0
  200. package/dist/judge/matchsWhole.d.ts +9 -0
  201. package/dist/load/getSynch.d.cts +8 -0
  202. package/dist/load/getSynch.d.ts +8 -0
  203. package/dist/load/index.cjs +3 -3
  204. package/dist/load/index.d.cts +2 -0
  205. package/dist/load/index.d.ts +2 -0
  206. package/dist/load/index.js +4 -4
  207. package/dist/load/loadScript.d.cts +3 -0
  208. package/dist/load/loadScript.d.ts +3 -0
  209. package/dist/log/index.d.cts +1 -0
  210. package/dist/log/index.d.ts +1 -0
  211. package/dist/log/styleLog.d.cts +68 -0
  212. package/dist/log/styleLog.d.ts +68 -0
  213. package/dist/name/getComponentNames.d.cts +8 -0
  214. package/dist/name/getComponentNames.d.ts +8 -0
  215. package/dist/name/getNames.d.cts +8 -0
  216. package/dist/name/getNames.d.ts +8 -0
  217. package/dist/name/humpToLine.d.cts +8 -0
  218. package/dist/name/humpToLine.d.ts +8 -0
  219. package/dist/name/index.cjs +3 -3
  220. package/dist/name/index.d.cts +5 -0
  221. package/dist/name/index.d.ts +5 -0
  222. package/dist/name/index.js +4 -4
  223. package/dist/name/lineToLargeHump.d.cts +8 -0
  224. package/dist/name/lineToLargeHump.d.ts +8 -0
  225. package/dist/name/lineToSmallHump.d.cts +8 -0
  226. package/dist/name/lineToSmallHump.d.ts +8 -0
  227. package/dist/node/getPort.d.cts +13 -0
  228. package/dist/node/getPort.d.ts +13 -0
  229. package/dist/node/index.d.cts +1 -0
  230. package/dist/node/index.d.ts +1 -0
  231. package/dist/tree/getTreeObj.d.cts +26 -0
  232. package/dist/tree/getTreeObj.d.ts +26 -0
  233. package/dist/tree/index.d.cts +2 -0
  234. package/dist/tree/index.d.ts +2 -0
  235. package/dist/tree/splitGroup.d.cts +15 -0
  236. package/dist/tree/splitGroup.d.ts +15 -0
  237. package/dist/urls/getImportUrl.d.cts +9 -0
  238. package/dist/urls/getImportUrl.d.ts +9 -0
  239. package/dist/urls/getImportUrlSuffix.d.cts +9 -0
  240. package/dist/urls/getImportUrlSuffix.d.ts +9 -0
  241. package/dist/urls/getNewFileName.d.cts +8 -0
  242. package/dist/urls/getNewFileName.d.ts +8 -0
  243. package/dist/urls/getReplaceCompleteUrl.d.cts +9 -0
  244. package/dist/urls/getReplaceCompleteUrl.d.ts +9 -0
  245. package/dist/urls/getReplaceImportUrl.d.cts +9 -0
  246. package/dist/urls/getReplaceImportUrl.d.ts +9 -0
  247. package/dist/urls/getReplaceUrl.d.cts +9 -0
  248. package/dist/urls/getReplaceUrl.d.ts +9 -0
  249. package/dist/urls/getReplaceUrls.d.cts +9 -0
  250. package/dist/urls/getReplaceUrls.d.ts +9 -0
  251. package/dist/urls/getSuffix.d.cts +8 -0
  252. package/dist/urls/getSuffix.d.ts +8 -0
  253. package/dist/urls/getUrlCatalogue.d.cts +8 -0
  254. package/dist/urls/getUrlCatalogue.d.ts +8 -0
  255. package/dist/urls/getUrlCatalogueLast.d.cts +8 -0
  256. package/dist/urls/getUrlCatalogueLast.d.ts +8 -0
  257. package/dist/urls/getUrlCatalogueObj.d.cts +17 -0
  258. package/dist/urls/getUrlCatalogueObj.d.ts +17 -0
  259. package/dist/urls/index.d.cts +11 -0
  260. package/dist/urls/index.d.ts +11 -0
  261. package/dist/window/copy.d.cts +3 -0
  262. package/dist/window/copy.d.ts +3 -0
  263. package/dist/window/getParam.d.cts +9 -0
  264. package/dist/window/getParam.d.ts +9 -0
  265. package/dist/window/index.d.cts +2 -0
  266. package/dist/window/index.d.ts +2 -0
  267. package/package.json +1 -1
  268. package/dist/chunk-M53E7HJ2.js +0 -0
  269. package/dist/chunk-UC2AI4QC.cjs +0 -1
  270. package/dist/{chunk-XXS5G6S6.cjs → chunk-BD6DK4QK.cjs} +2 -2
  271. package/dist/{chunk-T2QKEABG.js → chunk-FRGDQOX4.js} +3 -3
  272. package/dist/{chunk-F4P3HMNK.js → chunk-IAKHOOY7.js} +3 -3
  273. package/dist/{chunk-BFN33JM5.js → chunk-IVDRKJ33.js} +3 -3
  274. package/dist/{chunk-T22I7TJQ.cjs → chunk-NGQKVTCR.cjs} +3 -3
  275. package/dist/{chunk-BG2YS767.cjs → chunk-ZXWKQRGH.cjs} +2 -2
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 处理数组遍历问题
3
+ * @param <Array> arr 遍历数组
4
+ * @param callback 处理方法
5
+ * @returns
6
+ */
7
+ declare function asyncMergeArray<T>(arr: Array<T>, callback: (resolve: () => void, reject: (reason?: any) => void, value: T, index: number, array: T[]) => void): Promise<unknown>;
8
+
9
+ export { asyncMergeArray };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 处理数组遍历问题
3
+ * @param <Array> arr 遍历数组
4
+ * @param callback 处理方法
5
+ * @returns
6
+ */
7
+ declare function asyncMergeArray<T>(arr: Array<T>, callback: (resolve: () => void, reject: (reason?: any) => void, value: T, index: number, array: T[]) => void): Promise<unknown>;
8
+
9
+ export { asyncMergeArray };
@@ -1 +1,7 @@
1
- "use strict";require('../../chunk-UC2AI4QC.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNDKOWDDXcjs = require('../../chunk-NDKOWDDX.cjs');
4
+ require('../../chunk-75ZPJI57.cjs');
5
+
6
+
7
+ exports.compareArray = _chunkNDKOWDDXcjs.compareArray;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 使用自定义比较函数对比两个数组
3
+ */
4
+ declare function compareArray<T>(arr1: T[], arr2: T[], compareFn?: (a: T, b: T) => boolean): {
5
+ front: T[];
6
+ after: T[];
7
+ same: T[];
8
+ value: T[];
9
+ };
10
+
11
+ export { compareArray };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 使用自定义比较函数对比两个数组
3
+ */
4
+ declare function compareArray<T>(arr1: T[], arr2: T[], compareFn?: (a: T, b: T) => boolean): {
5
+ front: T[];
6
+ after: T[];
7
+ same: T[];
8
+ value: T[];
9
+ };
10
+
11
+ export { compareArray };
@@ -1 +1,7 @@
1
- import "../../chunk-M53E7HJ2.js";
1
+ import {
2
+ compareArray
3
+ } from "../../chunk-WQ2PUZ2S.js";
4
+ import "../../chunk-MLKGABMK.js";
5
+ export {
6
+ compareArray
7
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 删除数组中的值
3
+ */
4
+ declare function deleteArray<T>(arr: Array<T>, obj: T, key?: string, is?: boolean): T[] | undefined;
5
+
6
+ export { deleteArray };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 删除数组中的值
3
+ */
4
+ declare function deleteArray<T>(arr: Array<T>, obj: T, key?: string, is?: boolean): T[] | undefined;
5
+
6
+ export { deleteArray };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 数组对象去重
3
+ * @param {Array} arr 要去重数组
4
+ * @param {string} key 对象中的唯一key
5
+ * @returns {Array }
6
+ */
7
+ declare function duplicateRemoval<T>(arr: Array<T>, key: string): Array<T>;
8
+
9
+ export { duplicateRemoval };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 数组对象去重
3
+ * @param {Array} arr 要去重数组
4
+ * @param {string} key 对象中的唯一key
5
+ * @returns {Array }
6
+ */
7
+ declare function duplicateRemoval<T>(arr: Array<T>, key: string): Array<T>;
8
+
9
+ export { duplicateRemoval };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-F4IWIVCD.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-SR4YVP26.cjs');
2
2
 
3
3
 
4
4
  var _chunkXSQOJWXLcjs = require('../../chunk-XSQOJWXL.cjs');
@@ -14,7 +14,9 @@ var _chunkSOAKYJIGcjs = require('../../chunk-SOAKYJIG.cjs');
14
14
 
15
15
 
16
16
  var _chunkTCMJPIRMcjs = require('../../chunk-TCMJPIRM.cjs');
17
- require('../../chunk-UC2AI4QC.cjs');
17
+
18
+
19
+ var _chunkNDKOWDDXcjs = require('../../chunk-NDKOWDDX.cjs');
18
20
 
19
21
 
20
22
  var _chunkXW3XIK3Dcjs = require('../../chunk-XW3XIK3D.cjs');
@@ -30,4 +32,5 @@ require('../../chunk-75ZPJI57.cjs');
30
32
 
31
33
 
32
34
 
33
- exports.asyncMergeArray = _chunkTCMJPIRMcjs.asyncMergeArray; exports.deleteArray = _chunkXSQOJWXLcjs.deleteArray; exports.duplicateRemoval = _chunkGD3OA7GUcjs.duplicateRemoval; exports.isArray = _chunkISHLY7WMcjs.isArray; exports.replaceAfter = _chunkMHHMXDHDcjs.replaceAfter; exports.sortObj = _chunkXW3XIK3Dcjs.sortObj; exports.toggleArray = _chunkSOAKYJIGcjs.toggleArray;
35
+
36
+ exports.asyncMergeArray = _chunkTCMJPIRMcjs.asyncMergeArray; exports.compareArray = _chunkNDKOWDDXcjs.compareArray; exports.deleteArray = _chunkXSQOJWXLcjs.deleteArray; exports.duplicateRemoval = _chunkGD3OA7GUcjs.duplicateRemoval; exports.isArray = _chunkISHLY7WMcjs.isArray; exports.replaceAfter = _chunkMHHMXDHDcjs.replaceAfter; exports.sortObj = _chunkXW3XIK3Dcjs.sortObj; exports.toggleArray = _chunkSOAKYJIGcjs.toggleArray;
@@ -0,0 +1,8 @@
1
+ export { asyncMergeArray } from './asyncMergeArray.cjs';
2
+ export { compareArray } from './compareArray.cjs';
3
+ export { deleteArray } from './deleteArray.cjs';
4
+ export { duplicateRemoval } from './duplicateRemoval.cjs';
5
+ export { isArray } from './isArray.cjs';
6
+ export { replaceAfter } from './replaceAfter.cjs';
7
+ export { sortObj } from './sortObj.cjs';
8
+ export { toggleArray } from './toggleArray.cjs';
@@ -0,0 +1,8 @@
1
+ export { asyncMergeArray } from './asyncMergeArray.js';
2
+ export { compareArray } from './compareArray.js';
3
+ export { deleteArray } from './deleteArray.js';
4
+ export { duplicateRemoval } from './duplicateRemoval.js';
5
+ export { isArray } from './isArray.js';
6
+ export { replaceAfter } from './replaceAfter.js';
7
+ export { sortObj } from './sortObj.js';
8
+ export { toggleArray } from './toggleArray.js';
@@ -1,4 +1,4 @@
1
- import "../../chunk-7UVIWZ2J.js";
1
+ import "../../chunk-ATRR4ELS.js";
2
2
  import {
3
3
  deleteArray
4
4
  } from "../../chunk-DBSRZCFK.js";
@@ -14,7 +14,9 @@ import {
14
14
  import {
15
15
  asyncMergeArray
16
16
  } from "../../chunk-Q6FMBSK4.js";
17
- import "../../chunk-M53E7HJ2.js";
17
+ import {
18
+ compareArray
19
+ } from "../../chunk-WQ2PUZ2S.js";
18
20
  import {
19
21
  sortObj
20
22
  } from "../../chunk-O34QAOO7.js";
@@ -24,6 +26,7 @@ import {
24
26
  import "../../chunk-MLKGABMK.js";
25
27
  export {
26
28
  asyncMergeArray,
29
+ compareArray,
27
30
  deleteArray,
28
31
  duplicateRemoval,
29
32
  isArray,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 是否是数组
3
+ * @param {any} obj 判断值
4
+ * @returns {boolean}
5
+ */
6
+ declare function isArray(obj: any): boolean;
7
+
8
+ export { isArray };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 是否是数组
3
+ * @param {any} obj 判断值
4
+ * @returns {boolean}
5
+ */
6
+ declare function isArray(obj: any): boolean;
7
+
8
+ export { isArray };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 删除已经存在数组值,把新值添加最后
3
+ * @param {Array<T>} arr 当前数组
4
+ * @param {Object} obj 要处理的对象
5
+ * @param {string} id 比对的对应属性名称
6
+ * @param {string} is 是否在前面添加
7
+ * @returns {Array<T>} 判断后的数组值
8
+ */
9
+ declare function replaceAfter<T>(arr: Array<T>, obj: T, id?: string, is?: boolean): Array<T>;
10
+
11
+ export { replaceAfter };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 删除已经存在数组值,把新值添加最后
3
+ * @param {Array<T>} arr 当前数组
4
+ * @param {Object} obj 要处理的对象
5
+ * @param {string} id 比对的对应属性名称
6
+ * @param {string} is 是否在前面添加
7
+ * @returns {Array<T>} 判断后的数组值
8
+ */
9
+ declare function replaceAfter<T>(arr: Array<T>, obj: T, id?: string, is?: boolean): Array<T>;
10
+
11
+ export { replaceAfter };
@@ -0,0 +1,10 @@
1
+ type ObjAny = {
2
+ [key: string]: any;
3
+ };
4
+ /**
5
+ * 对象数组排序
6
+ * @param arr
7
+ */
8
+ declare function sortObj<T extends ObjAny>(arr: T[], value: string): T[];
9
+
10
+ export { sortObj };
@@ -0,0 +1,10 @@
1
+ type ObjAny = {
2
+ [key: string]: any;
3
+ };
4
+ /**
5
+ * 对象数组排序
6
+ * @param arr
7
+ */
8
+ declare function sortObj<T extends ObjAny>(arr: T[], value: string): T[];
9
+
10
+ export { sortObj };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 判断数组值,如果存在就删除,如果没有就添加
3
+ * @param {Array<T>} arr 当前数组
4
+ * @param {Object} obj 要处理的对象
5
+ * @param {string} id 比对的对应属性名称
6
+ * @returns {Array<T>} 判断后的数组值
7
+ */
8
+ declare function toggleArray<T>(arr: Array<T>, obj: T, id?: string, is?: boolean): Array<T>;
9
+
10
+ export { toggleArray };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 判断数组值,如果存在就删除,如果没有就添加
3
+ * @param {Array<T>} arr 当前数组
4
+ * @param {Object} obj 要处理的对象
5
+ * @param {string} id 比对的对应属性名称
6
+ * @returns {Array<T>} 判断后的数组值
7
+ */
8
+ declare function toggleArray<T>(arr: Array<T>, obj: T, id?: string, is?: boolean): Array<T>;
9
+
10
+ export { toggleArray };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-4SFMC3WS.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-VT3YWR6G.cjs');
2
2
 
3
3
 
4
4
  var _chunk3SJOLMSIcjs = require('../chunk-3SJOLMSI.cjs');
@@ -24,20 +24,20 @@ require('../chunk-GOUC2DFA.cjs');
24
24
  require('../chunk-NRJPCN4J.cjs');
25
25
 
26
26
 
27
- var _chunkF4IWIVCDcjs = require('../chunk-F4IWIVCD.cjs');
27
+ var _chunkSR4YVP26cjs = require('../chunk-SR4YVP26.cjs');
28
28
  require('../chunk-XSQOJWXL.cjs');
29
29
  require('../chunk-GD3OA7GU.cjs');
30
30
  require('../chunk-MHHMXDHD.cjs');
31
31
  require('../chunk-SOAKYJIG.cjs');
32
32
  require('../chunk-UFYLVZNU.cjs');
33
33
  require('../chunk-TCMJPIRM.cjs');
34
- require('../chunk-UC2AI4QC.cjs');
34
+ require('../chunk-NDKOWDDX.cjs');
35
35
  require('../chunk-2H3KVSFA.cjs');
36
36
  require('../chunk-ILJLXJ5O.cjs');
37
37
  require('../chunk-OJBZ7UUC.cjs');
38
38
  require('../chunk-JR6ZN6QD.cjs');
39
- require('../chunk-XW3XIK3D.cjs');
40
39
  require('../chunk-PW7RP73J.cjs');
40
+ require('../chunk-XW3XIK3D.cjs');
41
41
  require('../chunk-UEVMS6QD.cjs');
42
42
  require('../chunk-OQL4GIEJ.cjs');
43
43
  require('../chunk-A5LHXE5X.cjs');
@@ -48,4 +48,4 @@ require('../chunk-75ZPJI57.cjs');
48
48
 
49
49
 
50
50
 
51
- exports.array = _chunkF4IWIVCDcjs.array_exports; exports.object = _chunk4E4OWBN7cjs.object_exports; exports.string = _chunk3SJOLMSIcjs.string_exports;
51
+ exports.array = _chunkSR4YVP26cjs.array_exports; exports.object = _chunk4E4OWBN7cjs.object_exports; exports.string = _chunk3SJOLMSIcjs.string_exports;
@@ -0,0 +1,38 @@
1
+ export { i as array } from '../index-D8_Udh46.cjs';
2
+ export { i as object } from '../index-BU0xla6v.cjs';
3
+ export { i as string } from '../index-DaryquSt.cjs';
4
+ import './array/asyncMergeArray.cjs';
5
+ import './array/compareArray.cjs';
6
+ import './array/deleteArray.cjs';
7
+ import './array/duplicateRemoval.cjs';
8
+ import './array/isArray.cjs';
9
+ import './array/replaceAfter.cjs';
10
+ import './array/sortObj.cjs';
11
+ import './array/toggleArray.cjs';
12
+ import './object/attrValueSort.cjs';
13
+ import './object/deepCopy.cjs';
14
+ import './object/filterObject.cjs';
15
+ import './object/getSort.cjs';
16
+ import './object/hasOwn.cjs';
17
+ import './object/isObject.cjs';
18
+ import './object/isObjectArray.cjs';
19
+ import './object/mergeObject.cjs';
20
+ import './object/objValue.cjs';
21
+ import './object/reverseObj.cjs';
22
+ import './object/setSort.cjs';
23
+ import './object/unmergeObject.cjs';
24
+ import './string/appearNum.cjs';
25
+ import './string/appearNumSeat.cjs';
26
+ import './string/deComment.cjs';
27
+ import './string/firstLower.cjs';
28
+ import './string/firstUpper.cjs';
29
+ import './string/getImports.cjs';
30
+ import './string/getStartSame.cjs';
31
+ import './string/getStartSames.cjs';
32
+ import './string/getStrNunPosit.cjs';
33
+ import './string/splitUpper.cjs';
34
+ import './string/startsNum.cjs';
35
+ import './string/toFunction.cjs';
36
+ import './string/toJson.cjs';
37
+ import './string/toJsons.cjs';
38
+ import './string/toStringParse.cjs';
@@ -0,0 +1,38 @@
1
+ export { i as array } from '../index-BYfEDFkm.js';
2
+ export { i as object } from '../index-DOq59RNr.js';
3
+ export { i as string } from '../index-CmiMKPSL.js';
4
+ import './array/asyncMergeArray.js';
5
+ import './array/compareArray.js';
6
+ import './array/deleteArray.js';
7
+ import './array/duplicateRemoval.js';
8
+ import './array/isArray.js';
9
+ import './array/replaceAfter.js';
10
+ import './array/sortObj.js';
11
+ import './array/toggleArray.js';
12
+ import './object/attrValueSort.js';
13
+ import './object/deepCopy.js';
14
+ import './object/filterObject.js';
15
+ import './object/getSort.js';
16
+ import './object/hasOwn.js';
17
+ import './object/isObject.js';
18
+ import './object/isObjectArray.js';
19
+ import './object/mergeObject.js';
20
+ import './object/objValue.js';
21
+ import './object/reverseObj.js';
22
+ import './object/setSort.js';
23
+ import './object/unmergeObject.js';
24
+ import './string/appearNum.js';
25
+ import './string/appearNumSeat.js';
26
+ import './string/deComment.js';
27
+ import './string/firstLower.js';
28
+ import './string/firstUpper.js';
29
+ import './string/getImports.js';
30
+ import './string/getStartSame.js';
31
+ import './string/getStartSames.js';
32
+ import './string/getStrNunPosit.js';
33
+ import './string/splitUpper.js';
34
+ import './string/startsNum.js';
35
+ import './string/toFunction.js';
36
+ import './string/toJson.js';
37
+ import './string/toJsons.js';
38
+ import './string/toStringParse.js';
@@ -1,4 +1,4 @@
1
- import "../chunk-QBGA4H7C.js";
1
+ import "../chunk-AXX6AFYC.js";
2
2
  import {
3
3
  string_exports
4
4
  } from "../chunk-KDSELPFY.js";
@@ -24,20 +24,20 @@ import "../chunk-3IR2ABRO.js";
24
24
  import "../chunk-RD4EP3M5.js";
25
25
  import {
26
26
  array_exports
27
- } from "../chunk-7UVIWZ2J.js";
27
+ } from "../chunk-ATRR4ELS.js";
28
28
  import "../chunk-DBSRZCFK.js";
29
29
  import "../chunk-ZVBCHJA5.js";
30
30
  import "../chunk-K33LOE73.js";
31
31
  import "../chunk-APKFW4LU.js";
32
32
  import "../chunk-T4BAVDTH.js";
33
33
  import "../chunk-Q6FMBSK4.js";
34
- import "../chunk-M53E7HJ2.js";
34
+ import "../chunk-WQ2PUZ2S.js";
35
35
  import "../chunk-USIMBBLW.js";
36
36
  import "../chunk-P7AWHISY.js";
37
37
  import "../chunk-LPMR5W6M.js";
38
38
  import "../chunk-DMZP4RPN.js";
39
- import "../chunk-O34QAOO7.js";
40
39
  import "../chunk-A276ZDLP.js";
40
+ import "../chunk-O34QAOO7.js";
41
41
  import "../chunk-4OBNLDTJ.js";
42
42
  import "../chunk-EWJJKQIO.js";
43
43
  import "../chunk-GYE23WAN.js";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 按照属性值排序
3
+ * @param obj 排序对象
4
+ * @param arr 要排序的属性
5
+ * @param sort 排序方法
6
+ * @returns
7
+ */
8
+ declare function attrValueSort(obj: {
9
+ [key: string]: any;
10
+ }, arr?: string[], sort?: Function): string[];
11
+
12
+ export { attrValueSort };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 按照属性值排序
3
+ * @param obj 排序对象
4
+ * @param arr 要排序的属性
5
+ * @param sort 排序方法
6
+ * @returns
7
+ */
8
+ declare function attrValueSort(obj: {
9
+ [key: string]: any;
10
+ }, arr?: string[], sort?: Function): string[];
11
+
12
+ export { attrValueSort };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 深拷贝
3
+ * @param obj
4
+ * @returns
5
+ */
6
+ declare function deepCopy<T>(obj: T): T;
7
+
8
+ export { deepCopy };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 深拷贝
3
+ * @param obj
4
+ * @returns
5
+ */
6
+ declare function deepCopy<T>(obj: T): T;
7
+
8
+ export { deepCopy };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 去掉不要的属性
3
+ * @param obj
4
+ * @param arr
5
+ */
6
+ declare function filterObject(obj: {
7
+ [key: string | number | symbol]: any;
8
+ }, arr: Array<string | number | symbol>): {
9
+ [key: string]: any;
10
+ [key: number]: any;
11
+ [key: symbol]: any;
12
+ };
13
+
14
+ export { filterObject };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 去掉不要的属性
3
+ * @param obj
4
+ * @param arr
5
+ */
6
+ declare function filterObject(obj: {
7
+ [key: string | number | symbol]: any;
8
+ }, arr: Array<string | number | symbol>): {
9
+ [key: string]: any;
10
+ [key: number]: any;
11
+ [key: symbol]: any;
12
+ };
13
+
14
+ export { filterObject };
@@ -0,0 +1,10 @@
1
+ type ObjAny = {
2
+ [key: string]: any;
3
+ };
4
+ type SortFun = <T>(a: T, b: T) => number;
5
+ /**
6
+ * 对对象数据进行排序
7
+ */
8
+ declare function getSort<T extends ObjAny>(obj: T, sort?: SortFun): T;
9
+
10
+ export { getSort };
@@ -0,0 +1,10 @@
1
+ type ObjAny = {
2
+ [key: string]: any;
3
+ };
4
+ type SortFun = <T>(a: T, b: T) => number;
5
+ /**
6
+ * 对对象数据进行排序
7
+ */
8
+ declare function getSort<T extends ObjAny>(obj: T, sort?: SortFun): T;
9
+
10
+ export { getSort };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 检查对象的属性是否存在
3
+ * @param obj
4
+ * @param propName
5
+ * @returns
6
+ */
7
+ declare function hasOwn(obj: object, propName: string | number | symbol): boolean;
8
+
9
+ export { hasOwn };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 检查对象的属性是否存在
3
+ * @param obj
4
+ * @param propName
5
+ * @returns
6
+ */
7
+ declare function hasOwn(obj: object, propName: string | number | symbol): boolean;
8
+
9
+ export { hasOwn };
@@ -0,0 +1,12 @@
1
+ export { attrValueSort } from './attrValueSort.cjs';
2
+ export { deepCopy } from './deepCopy.cjs';
3
+ export { filterObject } from './filterObject.cjs';
4
+ export { getSort } from './getSort.cjs';
5
+ export { hasOwn } from './hasOwn.cjs';
6
+ export { isObject } from './isObject.cjs';
7
+ export { isObjectArray } from './isObjectArray.cjs';
8
+ export { mergeObject } from './mergeObject.cjs';
9
+ export { getObjValue, setObjValue } from './objValue.cjs';
10
+ export { reverseObj } from './reverseObj.cjs';
11
+ export { setSort } from './setSort.cjs';
12
+ export { unmergeObject } from './unmergeObject.cjs';
@@ -0,0 +1,12 @@
1
+ export { attrValueSort } from './attrValueSort.js';
2
+ export { deepCopy } from './deepCopy.js';
3
+ export { filterObject } from './filterObject.js';
4
+ export { getSort } from './getSort.js';
5
+ export { hasOwn } from './hasOwn.js';
6
+ export { isObject } from './isObject.js';
7
+ export { isObjectArray } from './isObjectArray.js';
8
+ export { mergeObject } from './mergeObject.js';
9
+ export { getObjValue, setObjValue } from './objValue.js';
10
+ export { reverseObj } from './reverseObj.js';
11
+ export { setSort } from './setSort.js';
12
+ export { unmergeObject } from './unmergeObject.js';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 是否是对象
3
+ * @param {any} obj 判断值
4
+ * @returns {boolean}
5
+ */
6
+ declare function isObject(obj: any): boolean;
7
+
8
+ export { isObject };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 是否是对象
3
+ * @param {any} obj 判断值
4
+ * @returns {boolean}
5
+ */
6
+ declare function isObject(obj: any): boolean;
7
+
8
+ export { isObject };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 是否 是对象并且不是数组
3
+ * @param {any} obj 判断值
4
+ * @returns {boolean}
5
+ */
6
+ declare function isObjectArray(obj: any): boolean;
7
+
8
+ export { isObjectArray };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 是否 是对象并且不是数组
3
+ * @param {any} obj 判断值
4
+ * @returns {boolean}
5
+ */
6
+ declare function isObjectArray(obj: any): boolean;
7
+
8
+ export { isObjectArray };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 合并两个对象的值
3
+ * @param {T} a 合并到的对象
4
+ * @param {T} b 合并对象
5
+ * @param {number} j 合并级别
6
+ * @param {boolean} i 是否合并数组
7
+ * @returns {T} 合并的对象
8
+ */
9
+ declare function mergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
+
11
+ export { mergeObject };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 合并两个对象的值
3
+ * @param {T} a 合并到的对象
4
+ * @param {T} b 合并对象
5
+ * @param {number} j 合并级别
6
+ * @param {boolean} i 是否合并数组
7
+ * @returns {T} 合并的对象
8
+ */
9
+ declare function mergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
+
11
+ export { mergeObject };
@@ -0,0 +1,7 @@
1
+ type ObjAny = {
2
+ [key: string | number | symbol]: any;
3
+ };
4
+ declare function getObjValue(key: string, locale: ObjAny): any;
5
+ declare function setObjValue(locale: ObjAny, key: string, value: any): any;
6
+
7
+ export { getObjValue, setObjValue };
@@ -0,0 +1,7 @@
1
+ type ObjAny = {
2
+ [key: string | number | symbol]: any;
3
+ };
4
+ declare function getObjValue(key: string, locale: ObjAny): any;
5
+ declare function setObjValue(locale: ObjAny, key: string, value: any): any;
6
+
7
+ export { getObjValue, setObjValue };