@daysnap/utils 0.1.11 → 0.1.13

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 (74) hide show
  1. package/docs/classes/Storage.md +239 -0
  2. package/docs/interfaces/EventBusCallback.md +1 -1
  3. package/docs/interfaces/StorageManager.md +4 -4
  4. package/docs/interfaces/Trap.md +5 -5
  5. package/docs/modules.md +203 -141
  6. package/es/{chunk-3OUQEOSR.js → chunk-2SUOLGG5.js} +1 -1
  7. package/es/chunk-56QUZDMU.js +67 -0
  8. package/es/{chunk-NOT3VNHC.js → chunk-A3YS6665.js} +5 -1
  9. package/es/{chunk-UMUYJJ3M.js → chunk-DLAUZWWO.js} +1 -1
  10. package/es/chunk-HNKJXGCC.js +19 -0
  11. package/es/{chunk-HREC4YYI.js → chunk-JZKIIY3L.js} +2 -2
  12. package/es/{chunk-3IKNCOC3.js → chunk-ORI5P5UA.js} +2 -2
  13. package/es/{chunk-KG436SDV.js → chunk-PSACVUUL.js} +1 -1
  14. package/es/{chunk-EY27J7WJ.js → chunk-S6ZV2M6N.js} +1 -1
  15. package/es/{chunk-YGYLI2DC.js → chunk-TZ2EQSRZ.js} +1 -1
  16. package/es/{chunk-I65EJPPI.js → chunk-UMJU7UF2.js} +1 -1
  17. package/es/{chunk-PE43T234.js → chunk-WXD7J2FR.js} +2 -2
  18. package/es/filterEmptyValue.js +2 -2
  19. package/es/formartDateToZN.js +3 -3
  20. package/es/formatDate.js +2 -2
  21. package/es/getDateBoundsByMonths.d.ts +7 -0
  22. package/es/getDateBoundsByMonths.js +9 -0
  23. package/es/getMonthBounds.js +3 -3
  24. package/es/getRandom.js +2 -2
  25. package/es/getRandomNumber.js +3 -3
  26. package/es/getRangeDate.js +3 -3
  27. package/es/getWeekday.js +2 -2
  28. package/es/index.d.ts +2 -0
  29. package/es/index.js +45 -37
  30. package/es/isValidDate.js +2 -2
  31. package/es/listGenerator.d.ts +1 -0
  32. package/es/listGenerator.js +1 -1
  33. package/es/normalizeDate.js +1 -1
  34. package/es/storage/index.d.ts +1 -0
  35. package/es/storage/index.js +5 -1
  36. package/es/storage/storage.d.ts +40 -0
  37. package/es/storage/storage.js +8 -0
  38. package/lib/{chunk-XJIRG4UL.cjs → chunk-2C3XINC3.cjs} +1 -1
  39. package/lib/chunk-44UMWNOZ.cjs +19 -0
  40. package/lib/{chunk-P3BVNREA.cjs → chunk-6TABJ32L.cjs} +2 -2
  41. package/lib/{chunk-BPNPYUBR.cjs → chunk-BQ7SLF6C.cjs} +2 -2
  42. package/lib/chunk-GQFHHWIV.cjs +67 -0
  43. package/lib/{chunk-RTTG26O5.cjs → chunk-HEVW5ZN2.cjs} +5 -1
  44. package/lib/{chunk-EJV6YDGC.cjs → chunk-IGD442DS.cjs} +2 -2
  45. package/lib/{chunk-GLLD74FC.cjs → chunk-JFPD5JTY.cjs} +2 -2
  46. package/lib/{chunk-CANF5KF5.cjs → chunk-KT3FWGJG.cjs} +4 -4
  47. package/lib/{chunk-2DCEWABW.cjs → chunk-NEFFCHO5.cjs} +5 -5
  48. package/lib/{chunk-LJYE7HIT.cjs → chunk-SOBKBDEC.cjs} +2 -2
  49. package/lib/{chunk-ELDXB7BZ.cjs → chunk-SZOUFWPJ.cjs} +4 -4
  50. package/lib/filterEmptyValue.cjs +3 -3
  51. package/lib/formartDateToZN.cjs +4 -4
  52. package/lib/formatDate.cjs +3 -3
  53. package/lib/getDateBoundsByMonths.cjs +9 -0
  54. package/lib/getDateBoundsByMonths.d.cts +7 -0
  55. package/lib/getMonthBounds.cjs +4 -4
  56. package/lib/getRandom.cjs +3 -3
  57. package/lib/getRandomNumber.cjs +4 -4
  58. package/lib/getRangeDate.cjs +4 -4
  59. package/lib/getWeekday.cjs +3 -3
  60. package/lib/index.cjs +38 -30
  61. package/lib/index.d.cts +2 -0
  62. package/lib/isValidDate.cjs +3 -3
  63. package/lib/listGenerator.cjs +2 -2
  64. package/lib/listGenerator.d.cts +1 -0
  65. package/lib/normalizeDate.cjs +2 -2
  66. package/lib/storage/index.cjs +6 -2
  67. package/lib/storage/index.d.cts +1 -0
  68. package/lib/storage/storage.cjs +8 -0
  69. package/lib/storage/storage.d.cts +40 -0
  70. package/package.json +1 -1
  71. package/es/{chunk-IJCLLBSR.js → chunk-LG2TIXRB.js} +0 -0
  72. package/es/{chunk-4WQPAGCE.js → chunk-NXEL6RMI.js} +3 -3
  73. package/lib/{chunk-C522WKFY.cjs → chunk-2PEWYRYD.cjs} +0 -0
  74. package/lib/{chunk-6LOBB2KW.cjs → chunk-PYFTXKFI.cjs} +3 -3
package/docs/modules.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  ## Table of contents
6
6
 
7
+ ### Classes
8
+
9
+ - [Storage](classes/Storage.md)
10
+
7
11
  ### Interfaces
8
12
 
9
13
  - [EventBusCallback](interfaces/EventBusCallback.md)
@@ -59,6 +63,7 @@
59
63
  - [formatPathParams](modules.md#formatpathparams)
60
64
  - [getBlobByUrl](modules.md#getblobbyurl)
61
65
  - [getCache](modules.md#getcache)
66
+ - [getDateBoundsByMonths](modules.md#getdateboundsbymonths)
62
67
  - [getDayMillisecond](modules.md#getdaymillisecond)
63
68
  - [getImageInfo](modules.md#getimageinfo)
64
69
  - [getLocal](modules.md#getlocal)
@@ -164,7 +169,7 @@
164
169
 
165
170
  #### Defined in
166
171
 
167
- [eventBus.ts:38](https://github.com/daysnap/utils/blob/c4d6925/src/eventBus.ts#L38)
172
+ [eventBus.ts:38](https://github.com/daysnap/utils/blob/c036886/src/eventBus.ts#L38)
168
173
 
169
174
  ___
170
175
 
@@ -174,7 +179,7 @@ ___
174
179
 
175
180
  #### Defined in
176
181
 
177
- [trap.ts:15](https://github.com/daysnap/utils/blob/c4d6925/src/trap.ts#L15)
182
+ [trap.ts:15](https://github.com/daysnap/utils/blob/c036886/src/trap.ts#L15)
178
183
 
179
184
  ## Functions
180
185
 
@@ -212,7 +217,7 @@ res = { '1': '男', '2': '女' }
212
217
 
213
218
  #### Defined in
214
219
 
215
- [ato.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/ato.ts#L12)
220
+ [ato.ts:12](https://github.com/daysnap/utils/blob/c036886/src/ato.ts#L12)
216
221
 
217
222
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
218
223
 
@@ -237,7 +242,7 @@ res = { '1': '男', '2': '女' }
237
242
 
238
243
  #### Defined in
239
244
 
240
- [ato.ts:16](https://github.com/daysnap/utils/blob/c4d6925/src/ato.ts#L16)
245
+ [ato.ts:16](https://github.com/daysnap/utils/blob/c036886/src/ato.ts#L16)
241
246
 
242
247
  ___
243
248
 
@@ -257,7 +262,7 @@ ___
257
262
 
258
263
  #### Defined in
259
264
 
260
- [decode.ts:41](https://github.com/daysnap/utils/blob/c4d6925/src/decode.ts#L41)
265
+ [decode.ts:41](https://github.com/daysnap/utils/blob/c036886/src/decode.ts#L41)
261
266
 
262
267
  ___
263
268
 
@@ -280,7 +285,7 @@ base64 转 blob
280
285
 
281
286
  #### Defined in
282
287
 
283
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/base64ToBlob.ts#L6)
288
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/c036886/src/base64ToBlob.ts#L6)
284
289
 
285
290
  ___
286
291
 
@@ -302,7 +307,7 @@ blob 转 base64
302
307
 
303
308
  #### Defined in
304
309
 
305
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/blobToBase64.ts#L4)
310
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/c036886/src/blobToBase64.ts#L4)
306
311
 
307
312
  ___
308
313
 
@@ -322,7 +327,7 @@ ___
322
327
 
323
328
  #### Defined in
324
329
 
325
- [decode.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/decode.ts#L8)
330
+ [decode.ts:8](https://github.com/daysnap/utils/blob/c036886/src/decode.ts#L8)
326
331
 
327
332
  ___
328
333
 
@@ -363,7 +368,7 @@ ___
363
368
 
364
369
  #### Defined in
365
370
 
366
- [cached.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/cached.ts#L5)
371
+ [cached.ts:5](https://github.com/daysnap/utils/blob/c036886/src/cached.ts#L5)
367
372
 
368
373
  ___
369
374
 
@@ -386,7 +391,7 @@ camelCase('hello-world') => helloWorld
386
391
 
387
392
  #### Defined in
388
393
 
389
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/camelCase.ts#L5)
394
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/c036886/src/camelCase.ts#L5)
390
395
 
391
396
  ___
392
397
 
@@ -410,7 +415,7 @@ canvas 转 blob 文件
410
415
 
411
416
  #### Defined in
412
417
 
413
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/canvasToBlob.ts#L4)
418
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/c036886/src/canvasToBlob.ts#L4)
414
419
 
415
420
  ___
416
421
 
@@ -433,7 +438,7 @@ capitalize('hello world') => Hello world
433
438
 
434
439
  #### Defined in
435
440
 
436
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/capitalize.ts#L5)
441
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/c036886/src/capitalize.ts#L5)
437
442
 
438
443
  ___
439
444
 
@@ -458,7 +463,7 @@ ___
458
463
 
459
464
  #### Defined in
460
465
 
461
- [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/chooseMedia.ts#L5)
466
+ [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/c036886/src/chooseMedia.ts#L5)
462
467
 
463
468
  ___
464
469
 
@@ -482,7 +487,7 @@ ___
482
487
 
483
488
  #### Defined in
484
489
 
485
- [clamp.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/clamp.ts#L7)
490
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/c036886/src/clamp.ts#L7)
486
491
 
487
492
  ___
488
493
 
@@ -510,7 +515,7 @@ ___
510
515
 
511
516
  #### Defined in
512
517
 
513
- [clone.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/clone.ts#L8)
518
+ [clone.ts:8](https://github.com/daysnap/utils/blob/c036886/src/clone.ts#L8)
514
519
 
515
520
  ___
516
521
 
@@ -538,7 +543,7 @@ ___
538
543
 
539
544
  #### Defined in
540
545
 
541
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/cloneSimple.ts#L7)
546
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/c036886/src/cloneSimple.ts#L7)
542
547
 
543
548
  ___
544
549
 
@@ -560,7 +565,7 @@ ___
560
565
 
561
566
  #### Defined in
562
567
 
563
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/createHexColorByHash.ts#L4)
568
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/c036886/src/createHexColorByHash.ts#L4)
564
569
 
565
570
  ___
566
571
 
@@ -586,7 +591,7 @@ ___
586
591
 
587
592
  #### Defined in
588
593
 
589
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/compareVersion.ts#L9)
594
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/c036886/src/compareVersion.ts#L9)
590
595
 
591
596
  ___
592
597
 
@@ -609,7 +614,7 @@ ___
609
614
 
610
615
  #### Defined in
611
616
 
612
- [compressImage.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/compressImage.ts#L4)
617
+ [compressImage.ts:4](https://github.com/daysnap/utils/blob/c036886/src/compressImage.ts#L4)
613
618
 
614
619
  ___
615
620
 
@@ -637,7 +642,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
637
642
 
638
643
  #### Defined in
639
644
 
640
- [createFactory.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/createFactory.ts#L4)
645
+ [createFactory.ts:4](https://github.com/daysnap/utils/blob/c036886/src/createFactory.ts#L4)
641
646
 
642
647
  ___
643
648
 
@@ -675,7 +680,7 @@ ___
675
680
 
676
681
  #### Defined in
677
682
 
678
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/createLinearFunction.ts#L9)
683
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/c036886/src/createLinearFunction.ts#L9)
679
684
 
680
685
  ___
681
686
 
@@ -707,7 +712,7 @@ ___
707
712
 
708
713
  #### Defined in
709
714
 
710
- [trap.ts:49](https://github.com/daysnap/utils/blob/c4d6925/src/trap.ts#L49)
715
+ [trap.ts:49](https://github.com/daysnap/utils/blob/c036886/src/trap.ts#L49)
711
716
 
712
717
  ___
713
718
 
@@ -770,7 +775,7 @@ fn() 执行的时候就会执行showLoading
770
775
 
771
776
  #### Defined in
772
777
 
773
- [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/createWithLoading.ts#L11)
778
+ [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/c036886/src/createWithLoading.ts#L11)
774
779
 
775
780
  ___
776
781
 
@@ -813,7 +818,7 @@ ___
813
818
 
814
819
  #### Defined in
815
820
 
816
- [debounce.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/debounce.ts#L5)
821
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/c036886/src/debounce.ts#L5)
817
822
 
818
823
  ___
819
824
 
@@ -837,7 +842,7 @@ ___
837
842
 
838
843
  #### Defined in
839
844
 
840
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/downloadFile.ts#L4)
845
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/c036886/src/downloadFile.ts#L4)
841
846
 
842
847
  ___
843
848
 
@@ -866,7 +871,7 @@ ___
866
871
 
867
872
  #### Defined in
868
873
 
869
- [each.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/each.ts#L4)
874
+ [each.ts:4](https://github.com/daysnap/utils/blob/c036886/src/each.ts#L4)
870
875
 
871
876
  ▸ **each**<`T`\>(`data`, `callback`): `void`
872
877
 
@@ -889,7 +894,7 @@ ___
889
894
 
890
895
  #### Defined in
891
896
 
892
- [each.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/each.ts#L8)
897
+ [each.ts:8](https://github.com/daysnap/utils/blob/c036886/src/each.ts#L8)
893
898
 
894
899
  ___
895
900
 
@@ -907,7 +912,7 @@ ___
907
912
 
908
913
  #### Defined in
909
914
 
910
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/exitFullscreen.ts#L6)
915
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/c036886/src/exitFullscreen.ts#L6)
911
916
 
912
917
  ___
913
918
 
@@ -936,7 +941,7 @@ ___
936
941
 
937
942
  #### Defined in
938
943
 
939
- [storage/factory.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/storage/factory.ts#L11)
944
+ [storage/factory.ts:11](https://github.com/daysnap/utils/blob/c036886/src/storage/factory.ts#L11)
940
945
 
941
946
  ___
942
947
 
@@ -958,7 +963,7 @@ ___
958
963
 
959
964
  #### Defined in
960
965
 
961
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterBankCardNo.ts#L4)
966
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/c036886/src/filterBankCardNo.ts#L4)
962
967
 
963
968
  ___
964
969
 
@@ -980,7 +985,7 @@ ___
980
985
 
981
986
  #### Defined in
982
987
 
983
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterCRLF.ts#L4)
988
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/c036886/src/filterCRLF.ts#L4)
984
989
 
985
990
  ___
986
991
 
@@ -1002,7 +1007,7 @@ ___
1002
1007
 
1003
1008
  #### Defined in
1004
1009
 
1005
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterEmoji.ts#L4)
1010
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/c036886/src/filterEmoji.ts#L4)
1006
1011
 
1007
1012
  ___
1008
1013
 
@@ -1025,7 +1030,7 @@ ___
1025
1030
 
1026
1031
  #### Defined in
1027
1032
 
1028
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/filterEmptyValue.ts#L12)
1033
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/c036886/src/filterEmptyValue.ts#L12)
1029
1034
 
1030
1035
  ___
1031
1036
 
@@ -1048,7 +1053,7 @@ ___
1048
1053
 
1049
1054
  #### Defined in
1050
1055
 
1051
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/filterIdCard.ts#L5)
1056
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/c036886/src/filterIdCard.ts#L5)
1052
1057
 
1053
1058
  ___
1054
1059
 
@@ -1070,7 +1075,7 @@ ___
1070
1075
 
1071
1076
  #### Defined in
1072
1077
 
1073
- [filterName.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterName.ts#L4)
1078
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/c036886/src/filterName.ts#L4)
1074
1079
 
1075
1080
  ___
1076
1081
 
@@ -1095,7 +1100,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
1095
1100
 
1096
1101
  #### Defined in
1097
1102
 
1098
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/filterPhone.ts#L6)
1103
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/c036886/src/filterPhone.ts#L6)
1099
1104
 
1100
1105
  ___
1101
1106
 
@@ -1122,7 +1127,7 @@ str = '131****8888'
1122
1127
 
1123
1128
  #### Defined in
1124
1129
 
1125
- [filterString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/filterString.ts#L6)
1130
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/c036886/src/filterString.ts#L6)
1126
1131
 
1127
1132
  ___
1128
1133
 
@@ -1145,7 +1150,7 @@ ___
1145
1150
 
1146
1151
  #### Defined in
1147
1152
 
1148
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formatAmount.ts#L4)
1153
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/c036886/src/formatAmount.ts#L4)
1149
1154
 
1150
1155
  ___
1151
1156
 
@@ -1169,7 +1174,7 @@ ___
1169
1174
 
1170
1175
  #### Defined in
1171
1176
 
1172
- [formatDate.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/formatDate.ts#L7)
1177
+ [formatDate.ts:7](https://github.com/daysnap/utils/blob/c036886/src/formatDate.ts#L7)
1173
1178
 
1174
1179
  ___
1175
1180
 
@@ -1200,7 +1205,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1200
1205
 
1201
1206
  #### Defined in
1202
1207
 
1203
- [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/formatDateStr.ts#L6)
1208
+ [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/c036886/src/formatDateStr.ts#L6)
1204
1209
 
1205
1210
  ___
1206
1211
 
@@ -1220,7 +1225,7 @@ ___
1220
1225
 
1221
1226
  #### Defined in
1222
1227
 
1223
- [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formartDateToZN.ts#L4)
1228
+ [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/c036886/src/formartDateToZN.ts#L4)
1224
1229
 
1225
1230
  ___
1226
1231
 
@@ -1243,7 +1248,7 @@ ___
1243
1248
 
1244
1249
  #### Defined in
1245
1250
 
1246
- [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formatFileSize.ts#L4)
1251
+ [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/c036886/src/formatFileSize.ts#L4)
1247
1252
 
1248
1253
  ___
1249
1254
 
@@ -1268,7 +1273,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1268
1273
 
1269
1274
  #### Defined in
1270
1275
 
1271
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/formatMessage.ts#L11)
1276
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/c036886/src/formatMessage.ts#L11)
1272
1277
 
1273
1278
  ___
1274
1279
 
@@ -1300,7 +1305,7 @@ rest = { xxx: 1 }
1300
1305
 
1301
1306
  #### Defined in
1302
1307
 
1303
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/formatPathParams.ts#L8)
1308
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/c036886/src/formatPathParams.ts#L8)
1304
1309
 
1305
1310
  ___
1306
1311
 
@@ -1322,7 +1327,7 @@ ___
1322
1327
 
1323
1328
  #### Defined in
1324
1329
 
1325
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getBlobByUrl.ts#L4)
1330
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/c036886/src/getBlobByUrl.ts#L4)
1326
1331
 
1327
1332
  ___
1328
1333
 
@@ -1345,7 +1350,48 @@ ___
1345
1350
 
1346
1351
  #### Defined in
1347
1352
 
1348
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/storage/index.ts#L9)
1353
+ [storage/index.ts:10](https://github.com/daysnap/utils/blob/c036886/src/storage/index.ts#L10)
1354
+
1355
+ ___
1356
+
1357
+ ### getDateBoundsByMonths
1358
+
1359
+ ▸ **getDateBoundsByMonths**(`monthsCount`, `date`): [`Date`, `Date`]
1360
+
1361
+ 说明
1362
+
1363
+ #### Parameters
1364
+
1365
+ | Name | Type |
1366
+ | :------ | :------ |
1367
+ | `monthsCount` | `number` |
1368
+ | `date` | `string` \| `number` \| `Date` |
1369
+
1370
+ #### Returns
1371
+
1372
+ [`Date`, `Date`]
1373
+
1374
+ #### Defined in
1375
+
1376
+ [getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/c036886/src/getDateBoundsByMonths.ts#L8)
1377
+
1378
+ ▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
1379
+
1380
+ #### Parameters
1381
+
1382
+ | Name | Type |
1383
+ | :------ | :------ |
1384
+ | `monthsCount` | `number` |
1385
+ | `date` | `string` \| `number` \| `Date` |
1386
+ | `fmt` | `string` |
1387
+
1388
+ #### Returns
1389
+
1390
+ [`string`, `string`]
1391
+
1392
+ #### Defined in
1393
+
1394
+ [getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/c036886/src/getDateBoundsByMonths.ts#L12)
1349
1395
 
1350
1396
  ___
1351
1397
 
@@ -1367,7 +1413,7 @@ ___
1367
1413
 
1368
1414
  #### Defined in
1369
1415
 
1370
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getDayMillisecond.ts#L4)
1416
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/c036886/src/getDayMillisecond.ts#L4)
1371
1417
 
1372
1418
  ___
1373
1419
 
@@ -1390,7 +1436,7 @@ ___
1390
1436
 
1391
1437
  #### Defined in
1392
1438
 
1393
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getImageInfo.ts#L4)
1439
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/c036886/src/getImageInfo.ts#L4)
1394
1440
 
1395
1441
  ___
1396
1442
 
@@ -1413,7 +1459,7 @@ ___
1413
1459
 
1414
1460
  #### Defined in
1415
1461
 
1416
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/storage/index.ts#L9)
1462
+ [storage/index.ts:10](https://github.com/daysnap/utils/blob/c036886/src/storage/index.ts#L10)
1417
1463
 
1418
1464
  ___
1419
1465
 
@@ -1435,7 +1481,7 @@ ___
1435
1481
 
1436
1482
  #### Defined in
1437
1483
 
1438
- [getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getMonthBounds.ts#L7)
1484
+ [getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/c036886/src/getMonthBounds.ts#L7)
1439
1485
 
1440
1486
  ▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
1441
1487
 
@@ -1452,7 +1498,7 @@ ___
1452
1498
 
1453
1499
  #### Defined in
1454
1500
 
1455
- [getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/getMonthBounds.ts#L8)
1501
+ [getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/c036886/src/getMonthBounds.ts#L8)
1456
1502
 
1457
1503
  ___
1458
1504
 
@@ -1475,7 +1521,7 @@ ___
1475
1521
 
1476
1522
  #### Defined in
1477
1523
 
1478
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRandom.ts#L7)
1524
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/c036886/src/getRandom.ts#L7)
1479
1525
 
1480
1526
  ___
1481
1527
 
@@ -1491,7 +1537,7 @@ ___
1491
1537
 
1492
1538
  #### Defined in
1493
1539
 
1494
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getRandomColor.ts#L4)
1540
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/c036886/src/getRandomColor.ts#L4)
1495
1541
 
1496
1542
  ___
1497
1543
 
@@ -1513,7 +1559,7 @@ ___
1513
1559
 
1514
1560
  #### Defined in
1515
1561
 
1516
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRandomNumber.ts#L7)
1562
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/c036886/src/getRandomNumber.ts#L7)
1517
1563
 
1518
1564
  ___
1519
1565
 
@@ -1536,7 +1582,7 @@ ___
1536
1582
 
1537
1583
  #### Defined in
1538
1584
 
1539
- [getRangeDate.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRangeDate.ts#L7)
1585
+ [getRangeDate.ts:7](https://github.com/daysnap/utils/blob/c036886/src/getRangeDate.ts#L7)
1540
1586
 
1541
1587
  ▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
1542
1588
 
@@ -1554,7 +1600,7 @@ ___
1554
1600
 
1555
1601
  #### Defined in
1556
1602
 
1557
- [getRangeDate.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/getRangeDate.ts#L11)
1603
+ [getRangeDate.ts:11](https://github.com/daysnap/utils/blob/c036886/src/getRangeDate.ts#L11)
1558
1604
 
1559
1605
  ___
1560
1606
 
@@ -1570,7 +1616,7 @@ ___
1570
1616
 
1571
1617
  #### Defined in
1572
1618
 
1573
- [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getScrollTop.ts#L4)
1619
+ [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/c036886/src/getScrollTop.ts#L4)
1574
1620
 
1575
1621
  ___
1576
1622
 
@@ -1592,7 +1638,7 @@ ___
1592
1638
 
1593
1639
  #### Defined in
1594
1640
 
1595
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getVideoInfo.ts#L4)
1641
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/c036886/src/getVideoInfo.ts#L4)
1596
1642
 
1597
1643
  ___
1598
1644
 
@@ -1615,7 +1661,7 @@ ___
1615
1661
 
1616
1662
  #### Defined in
1617
1663
 
1618
- [getWeekday.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/getWeekday.ts#L6)
1664
+ [getWeekday.ts:6](https://github.com/daysnap/utils/blob/c036886/src/getWeekday.ts#L6)
1619
1665
 
1620
1666
  ___
1621
1667
 
@@ -1631,7 +1677,7 @@ ___
1631
1677
 
1632
1678
  #### Defined in
1633
1679
 
1634
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/inBrowser.ts#L4)
1680
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/c036886/src/inBrowser.ts#L4)
1635
1681
 
1636
1682
  ___
1637
1683
 
@@ -1653,7 +1699,7 @@ ___
1653
1699
 
1654
1700
  #### Defined in
1655
1701
 
1656
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertLink.ts#L4)
1702
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/c036886/src/insertLink.ts#L4)
1657
1703
 
1658
1704
  ▸ **insertLink**(`href`, `callback`): `void`
1659
1705
 
@@ -1670,7 +1716,7 @@ ___
1670
1716
 
1671
1717
  #### Defined in
1672
1718
 
1673
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/insertLink.ts#L5)
1719
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/c036886/src/insertLink.ts#L5)
1674
1720
 
1675
1721
  ___
1676
1722
 
@@ -1692,7 +1738,7 @@ ___
1692
1738
 
1693
1739
  #### Defined in
1694
1740
 
1695
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertScript.ts#L4)
1741
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/c036886/src/insertScript.ts#L4)
1696
1742
 
1697
1743
  ▸ **insertScript**(`src`, `callback`): `void`
1698
1744
 
@@ -1709,7 +1755,7 @@ ___
1709
1755
 
1710
1756
  #### Defined in
1711
1757
 
1712
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/insertScript.ts#L5)
1758
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/c036886/src/insertScript.ts#L5)
1713
1759
 
1714
1760
  ___
1715
1761
 
@@ -1731,7 +1777,7 @@ ___
1731
1777
 
1732
1778
  #### Defined in
1733
1779
 
1734
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertStyle.ts#L4)
1780
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/c036886/src/insertStyle.ts#L4)
1735
1781
 
1736
1782
  ___
1737
1783
 
@@ -1760,7 +1806,7 @@ isAmount('1.123') => false
1760
1806
 
1761
1807
  #### Defined in
1762
1808
 
1763
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/isAmount.ts#L11)
1809
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/c036886/src/isAmount.ts#L11)
1764
1810
 
1765
1811
  ___
1766
1812
 
@@ -1776,7 +1822,7 @@ ___
1776
1822
 
1777
1823
  #### Defined in
1778
1824
 
1779
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isAndroid.ts#L4)
1825
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isAndroid.ts#L4)
1780
1826
 
1781
1827
  ___
1782
1828
 
@@ -1800,7 +1846,7 @@ val is any[]
1800
1846
 
1801
1847
  #### Defined in
1802
1848
 
1803
- [isArray.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isArray.ts#L6)
1849
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/c036886/src/isArray.ts#L6)
1804
1850
 
1805
1851
  ___
1806
1852
 
@@ -1822,7 +1868,7 @@ val is boolean
1822
1868
 
1823
1869
  #### Defined in
1824
1870
 
1825
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isBoolean.ts#L5)
1871
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/c036886/src/isBoolean.ts#L5)
1826
1872
 
1827
1873
  ___
1828
1874
 
@@ -1844,7 +1890,7 @@ ___
1844
1890
 
1845
1891
  #### Defined in
1846
1892
 
1847
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isChinese.ts#L4)
1893
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isChinese.ts#L4)
1848
1894
 
1849
1895
  ___
1850
1896
 
@@ -1866,7 +1912,7 @@ val is Date
1866
1912
 
1867
1913
  #### Defined in
1868
1914
 
1869
- [isDate.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isDate.ts#L4)
1915
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isDate.ts#L4)
1870
1916
 
1871
1917
  ___
1872
1918
 
@@ -1888,7 +1934,7 @@ ___
1888
1934
 
1889
1935
  #### Defined in
1890
1936
 
1891
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isEmail.ts#L4)
1937
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isEmail.ts#L4)
1892
1938
 
1893
1939
  ___
1894
1940
 
@@ -1910,7 +1956,7 @@ ___
1910
1956
 
1911
1957
  #### Defined in
1912
1958
 
1913
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isEmpty.ts#L6)
1959
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/c036886/src/isEmpty.ts#L6)
1914
1960
 
1915
1961
  ___
1916
1962
 
@@ -1932,7 +1978,7 @@ ___
1932
1978
 
1933
1979
  #### Defined in
1934
1980
 
1935
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isEmptyArray.ts#L6)
1981
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/c036886/src/isEmptyArray.ts#L6)
1936
1982
 
1937
1983
  ___
1938
1984
 
@@ -1954,7 +2000,7 @@ ___
1954
2000
 
1955
2001
  #### Defined in
1956
2002
 
1957
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isEmptyObject.ts#L5)
2003
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/c036886/src/isEmptyObject.ts#L5)
1958
2004
 
1959
2005
  ___
1960
2006
 
@@ -1976,7 +2022,7 @@ val is Error
1976
2022
 
1977
2023
  #### Defined in
1978
2024
 
1979
- [isError.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isError.ts#L4)
2025
+ [isError.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isError.ts#L4)
1980
2026
 
1981
2027
  ___
1982
2028
 
@@ -1998,7 +2044,7 @@ val is Function
1998
2044
 
1999
2045
  #### Defined in
2000
2046
 
2001
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isFunction.ts#L4)
2047
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isFunction.ts#L4)
2002
2048
 
2003
2049
  ___
2004
2050
 
@@ -2016,7 +2062,7 @@ ___
2016
2062
 
2017
2063
  #### Defined in
2018
2064
 
2019
- [isIE.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isIE.ts#L6)
2065
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/c036886/src/isIE.ts#L6)
2020
2066
 
2021
2067
  ___
2022
2068
 
@@ -2032,7 +2078,7 @@ ___
2032
2078
 
2033
2079
  #### Defined in
2034
2080
 
2035
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isIOS.ts#L4)
2081
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isIOS.ts#L4)
2036
2082
 
2037
2083
  ___
2038
2084
 
@@ -2054,7 +2100,7 @@ ___
2054
2100
 
2055
2101
  #### Defined in
2056
2102
 
2057
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isIdCard.ts#L4)
2103
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isIdCard.ts#L4)
2058
2104
 
2059
2105
  ___
2060
2106
 
@@ -2076,7 +2122,7 @@ ___
2076
2122
 
2077
2123
  #### Defined in
2078
2124
 
2079
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/isJSONString.ts#L7)
2125
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/c036886/src/isJSONString.ts#L7)
2080
2126
 
2081
2127
  ___
2082
2128
 
@@ -2098,7 +2144,7 @@ ___
2098
2144
 
2099
2145
  #### Defined in
2100
2146
 
2101
- [isLan.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isLan.ts#L5)
2147
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/c036886/src/isLan.ts#L5)
2102
2148
 
2103
2149
  ___
2104
2150
 
@@ -2120,7 +2166,7 @@ ___
2120
2166
 
2121
2167
  #### Defined in
2122
2168
 
2123
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isLicenseCode.ts#L5)
2169
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/c036886/src/isLicenseCode.ts#L5)
2124
2170
 
2125
2171
  ___
2126
2172
 
@@ -2136,7 +2182,7 @@ ___
2136
2182
 
2137
2183
  #### Defined in
2138
2184
 
2139
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isMobile.ts#L4)
2185
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isMobile.ts#L4)
2140
2186
 
2141
2187
  ___
2142
2188
 
@@ -2159,7 +2205,7 @@ ___
2159
2205
 
2160
2206
  #### Defined in
2161
2207
 
2162
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/isNativeFunction.ts#L7)
2208
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/c036886/src/isNativeFunction.ts#L7)
2163
2209
 
2164
2210
  ___
2165
2211
 
@@ -2181,7 +2227,7 @@ val is null
2181
2227
 
2182
2228
  #### Defined in
2183
2229
 
2184
- [isNull.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isNull.ts#L4)
2230
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isNull.ts#L4)
2185
2231
 
2186
2232
  ___
2187
2233
 
@@ -2203,7 +2249,7 @@ val is number
2203
2249
 
2204
2250
  #### Defined in
2205
2251
 
2206
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isNumber.ts#L5)
2252
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/c036886/src/isNumber.ts#L5)
2207
2253
 
2208
2254
  ___
2209
2255
 
@@ -2225,7 +2271,7 @@ val is Record<string, any\>
2225
2271
 
2226
2272
  #### Defined in
2227
2273
 
2228
- [isObject.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isObject.ts#L4)
2274
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isObject.ts#L4)
2229
2275
 
2230
2276
  ___
2231
2277
 
@@ -2247,7 +2293,7 @@ ___
2247
2293
 
2248
2294
  #### Defined in
2249
2295
 
2250
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isPhone.ts#L4)
2296
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isPhone.ts#L4)
2251
2297
 
2252
2298
  ___
2253
2299
 
@@ -2275,7 +2321,7 @@ val is Promise<T\>
2275
2321
 
2276
2322
  #### Defined in
2277
2323
 
2278
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isPromise.ts#L4)
2324
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isPromise.ts#L4)
2279
2325
 
2280
2326
  ___
2281
2327
 
@@ -2297,7 +2343,7 @@ val is RegExp
2297
2343
 
2298
2344
  #### Defined in
2299
2345
 
2300
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isRegExp.ts#L4)
2346
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isRegExp.ts#L4)
2301
2347
 
2302
2348
  ___
2303
2349
 
@@ -2319,7 +2365,7 @@ val is string
2319
2365
 
2320
2366
  #### Defined in
2321
2367
 
2322
- [isString.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isString.ts#L4)
2368
+ [isString.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isString.ts#L4)
2323
2369
 
2324
2370
  ___
2325
2371
 
@@ -2348,7 +2394,7 @@ val is T
2348
2394
 
2349
2395
  #### Defined in
2350
2396
 
2351
- [isType.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isType.ts#L4)
2397
+ [isType.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isType.ts#L4)
2352
2398
 
2353
2399
  ___
2354
2400
 
@@ -2370,7 +2416,7 @@ val is undefined
2370
2416
 
2371
2417
  #### Defined in
2372
2418
 
2373
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isUndefined.ts#L4)
2419
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isUndefined.ts#L4)
2374
2420
 
2375
2421
  ___
2376
2422
 
@@ -2414,7 +2460,7 @@ ___
2414
2460
 
2415
2461
  #### Defined in
2416
2462
 
2417
- [isValidDate.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isValidDate.ts#L6)
2463
+ [isValidDate.ts:6](https://github.com/daysnap/utils/blob/c036886/src/isValidDate.ts#L6)
2418
2464
 
2419
2465
  ___
2420
2466
 
@@ -2430,7 +2476,7 @@ ___
2430
2476
 
2431
2477
  #### Defined in
2432
2478
 
2433
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChat.ts#L4)
2479
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/c036886/src/isWeChat.ts#L4)
2434
2480
 
2435
2481
  ___
2436
2482
 
@@ -2447,7 +2493,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2447
2493
 
2448
2494
  #### Defined in
2449
2495
 
2450
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChatMiniProgram.ts#L5)
2496
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/c036886/src/isWeChatMiniProgram.ts#L5)
2451
2497
 
2452
2498
  ___
2453
2499
 
@@ -2471,7 +2517,7 @@ ___
2471
2517
 
2472
2518
  #### Defined in
2473
2519
 
2474
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChat.ts#L12)
2520
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/c036886/src/isWeChat.ts#L12)
2475
2521
 
2476
2522
  ___
2477
2523
 
@@ -2493,7 +2539,7 @@ val is Window
2493
2539
 
2494
2540
  #### Defined in
2495
2541
 
2496
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isWindow.ts#L5)
2542
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/c036886/src/isWindow.ts#L5)
2497
2543
 
2498
2544
  ___
2499
2545
 
@@ -2516,16 +2562,32 @@ kebabCase('helloWorld') => hello-world
2516
2562
 
2517
2563
  #### Defined in
2518
2564
 
2519
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/kebabCase.ts#L5)
2565
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/c036886/src/kebabCase.ts#L5)
2520
2566
 
2521
2567
  ___
2522
2568
 
2523
2569
  ### listGenerator
2524
2570
 
2525
- ▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
2571
+ ▸ **listGenerator**(`length`): `number`[]
2526
2572
 
2527
2573
  list 生成器,快速生成数据
2528
2574
 
2575
+ #### Parameters
2576
+
2577
+ | Name | Type | Description |
2578
+ | :------ | :------ | :------ |
2579
+ | `length` | `number` | 个数 |
2580
+
2581
+ #### Returns
2582
+
2583
+ `number`[]
2584
+
2585
+ #### Defined in
2586
+
2587
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/c036886/src/listGenerator.ts#L5)
2588
+
2589
+ ▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
2590
+
2529
2591
  #### Type parameters
2530
2592
 
2531
2593
  | Name | Type |
@@ -2534,10 +2596,10 @@ list 生成器,快速生成数据
2534
2596
 
2535
2597
  #### Parameters
2536
2598
 
2537
- | Name | Type | Description |
2538
- | :------ | :------ | :------ |
2539
- | `length` | `number` | 个数 |
2540
- | `fn` | (`index`: `number`) => `T` | - |
2599
+ | Name | Type |
2600
+ | :------ | :------ |
2601
+ | `length` | `number` |
2602
+ | `fn` | (`index`: `number`) => `T` |
2541
2603
 
2542
2604
  #### Returns
2543
2605
 
@@ -2545,7 +2607,7 @@ list 生成器,快速生成数据
2545
2607
 
2546
2608
  #### Defined in
2547
2609
 
2548
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/listGenerator.ts#L5)
2610
+ [listGenerator.ts:6](https://github.com/daysnap/utils/blob/c036886/src/listGenerator.ts#L6)
2549
2611
 
2550
2612
  ___
2551
2613
 
@@ -2565,7 +2627,7 @@ ___
2565
2627
 
2566
2628
  #### Defined in
2567
2629
 
2568
- [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/c4d6925/src/makePhoneCall.ts#L1)
2630
+ [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/c036886/src/makePhoneCall.ts#L1)
2569
2631
 
2570
2632
  ___
2571
2633
 
@@ -2590,7 +2652,7 @@ ___
2590
2652
 
2591
2653
  #### Defined in
2592
2654
 
2593
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/c4d6925/src/mousewheel.ts#L22)
2655
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/c036886/src/mousewheel.ts#L22)
2594
2656
 
2595
2657
  ___
2596
2658
 
@@ -2606,7 +2668,7 @@ ___
2606
2668
 
2607
2669
  #### Defined in
2608
2670
 
2609
- [nf.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/nf.ts#L4)
2671
+ [nf.ts:4](https://github.com/daysnap/utils/blob/c036886/src/nf.ts#L4)
2610
2672
 
2611
2673
  ___
2612
2674
 
@@ -2630,7 +2692,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
2630
2692
 
2631
2693
  #### Defined in
2632
2694
 
2633
- [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/normalizeDate.ts#L8)
2695
+ [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/c036886/src/normalizeDate.ts#L8)
2634
2696
 
2635
2697
  ___
2636
2698
 
@@ -2652,7 +2714,7 @@ ___
2652
2714
 
2653
2715
  #### Defined in
2654
2716
 
2655
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/normalizePath.ts#L4)
2717
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/c036886/src/normalizePath.ts#L4)
2656
2718
 
2657
2719
  ___
2658
2720
 
@@ -2682,7 +2744,7 @@ ___
2682
2744
 
2683
2745
  #### Defined in
2684
2746
 
2685
- [omit.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/omit.ts#L4)
2747
+ [omit.ts:4](https://github.com/daysnap/utils/blob/c036886/src/omit.ts#L4)
2686
2748
 
2687
2749
  ___
2688
2750
 
@@ -2706,7 +2768,7 @@ ___
2706
2768
 
2707
2769
  #### Defined in
2708
2770
 
2709
- [padding.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/padding.ts#L7)
2771
+ [padding.ts:7](https://github.com/daysnap/utils/blob/c036886/src/padding.ts#L7)
2710
2772
 
2711
2773
  ___
2712
2774
 
@@ -2732,7 +2794,7 @@ ___
2732
2794
 
2733
2795
  #### Defined in
2734
2796
 
2735
- [parseDate.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/parseDate.ts#L5)
2797
+ [parseDate.ts:5](https://github.com/daysnap/utils/blob/c036886/src/parseDate.ts#L5)
2736
2798
 
2737
2799
  ___
2738
2800
 
@@ -2755,7 +2817,7 @@ ___
2755
2817
 
2756
2818
  #### Defined in
2757
2819
 
2758
- [parseError.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/parseError.ts#L8)
2820
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/c036886/src/parseError.ts#L8)
2759
2821
 
2760
2822
  ___
2761
2823
 
@@ -2785,7 +2847,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2785
2847
 
2786
2848
  #### Defined in
2787
2849
 
2788
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/parseObject.ts#L5)
2850
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/c036886/src/parseObject.ts#L5)
2789
2851
 
2790
2852
  ___
2791
2853
 
@@ -2814,7 +2876,7 @@ ___
2814
2876
 
2815
2877
  #### Defined in
2816
2878
 
2817
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/parsePath.ts#L6)
2879
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/c036886/src/parsePath.ts#L6)
2818
2880
 
2819
2881
  ___
2820
2882
 
@@ -2837,7 +2899,7 @@ ___
2837
2899
 
2838
2900
  #### Defined in
2839
2901
 
2840
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/parseQuery.ts#L8)
2902
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/c036886/src/parseQuery.ts#L8)
2841
2903
 
2842
2904
  ___
2843
2905
 
@@ -2867,7 +2929,7 @@ ___
2867
2929
 
2868
2930
  #### Defined in
2869
2931
 
2870
- [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/parseQueryString.ts#L6)
2932
+ [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/c036886/src/parseQueryString.ts#L6)
2871
2933
 
2872
2934
  ___
2873
2935
 
@@ -2890,7 +2952,7 @@ pascalCase('hello-world') => HelloWorld
2890
2952
 
2891
2953
  #### Defined in
2892
2954
 
2893
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/pascalCase.ts#L8)
2955
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/c036886/src/pascalCase.ts#L8)
2894
2956
 
2895
2957
  ___
2896
2958
 
@@ -2920,7 +2982,7 @@ ___
2920
2982
 
2921
2983
  #### Defined in
2922
2984
 
2923
- [pick.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/pick.ts#L4)
2985
+ [pick.ts:4](https://github.com/daysnap/utils/blob/c036886/src/pick.ts#L4)
2924
2986
 
2925
2987
  ___
2926
2988
 
@@ -2943,7 +3005,7 @@ ___
2943
3005
 
2944
3006
  #### Defined in
2945
3007
 
2946
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/replaceCrlf.ts#L4)
3008
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/c036886/src/replaceCrlf.ts#L4)
2947
3009
 
2948
3010
  ___
2949
3011
 
@@ -2967,7 +3029,7 @@ ___
2967
3029
 
2968
3030
  #### Defined in
2969
3031
 
2970
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/requestFullScreen.ts#L6)
3032
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/c036886/src/requestFullScreen.ts#L6)
2971
3033
 
2972
3034
  ___
2973
3035
 
@@ -2993,7 +3055,7 @@ reserve(0, '--') => 0
2993
3055
 
2994
3056
  #### Defined in
2995
3057
 
2996
- [reserve.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/reserve.ts#L8)
3058
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/c036886/src/reserve.ts#L8)
2997
3059
 
2998
3060
  ___
2999
3061
 
@@ -3017,7 +3079,7 @@ ___
3017
3079
 
3018
3080
  #### Defined in
3019
3081
 
3020
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/rgbToHex.ts#L4)
3082
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/c036886/src/rgbToHex.ts#L4)
3021
3083
 
3022
3084
  ___
3023
3085
 
@@ -3040,7 +3102,7 @@ ___
3040
3102
 
3041
3103
  #### Defined in
3042
3104
 
3043
- [round.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/round.ts#L6)
3105
+ [round.ts:6](https://github.com/daysnap/utils/blob/c036886/src/round.ts#L6)
3044
3106
 
3045
3107
  ___
3046
3108
 
@@ -3056,7 +3118,7 @@ ___
3056
3118
 
3057
3119
  #### Defined in
3058
3120
 
3059
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/scrollToTop.ts#L4)
3121
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/c036886/src/scrollToTop.ts#L4)
3060
3122
 
3061
3123
  ___
3062
3124
 
@@ -3078,7 +3140,7 @@ ___
3078
3140
 
3079
3141
  #### Defined in
3080
3142
 
3081
- [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/setScrollTop.ts#L4)
3143
+ [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/c036886/src/setScrollTop.ts#L4)
3082
3144
 
3083
3145
  ___
3084
3146
 
@@ -3101,7 +3163,7 @@ ___
3101
3163
 
3102
3164
  #### Defined in
3103
3165
 
3104
- [sleep.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/sleep.ts#L6)
3166
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/c036886/src/sleep.ts#L6)
3105
3167
 
3106
3168
  ___
3107
3169
 
@@ -3130,7 +3192,7 @@ ___
3130
3192
 
3131
3193
  #### Defined in
3132
3194
 
3133
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/splitArray.ts#L4)
3195
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/c036886/src/splitArray.ts#L4)
3134
3196
 
3135
3197
  ___
3136
3198
 
@@ -3153,7 +3215,7 @@ ___
3153
3215
 
3154
3216
  #### Defined in
3155
3217
 
3156
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/stringTrim.ts#L6)
3218
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/c036886/src/stringTrim.ts#L6)
3157
3219
 
3158
3220
  ___
3159
3221
 
@@ -3175,7 +3237,7 @@ ___
3175
3237
 
3176
3238
  #### Defined in
3177
3239
 
3178
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/stringifyQuery.ts#L7)
3240
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/c036886/src/stringifyQuery.ts#L7)
3179
3241
 
3180
3242
  ___
3181
3243
 
@@ -3199,7 +3261,7 @@ ___
3199
3261
 
3200
3262
  #### Defined in
3201
3263
 
3202
- [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/stringifyQueryString.ts#L6)
3264
+ [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/c036886/src/stringifyQueryString.ts#L6)
3203
3265
 
3204
3266
  ___
3205
3267
 
@@ -3243,7 +3305,7 @@ ___
3243
3305
 
3244
3306
  #### Defined in
3245
3307
 
3246
- [throttle.ts:48](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L48)
3308
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/c036886/src/throttle.ts#L48)
3247
3309
 
3248
3310
  ___
3249
3311
 
@@ -3286,7 +3348,7 @@ ___
3286
3348
 
3287
3349
  #### Defined in
3288
3350
 
3289
- [throttle.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L5)
3351
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/c036886/src/throttle.ts#L5)
3290
3352
 
3291
3353
  ___
3292
3354
 
@@ -3329,7 +3391,7 @@ ___
3329
3391
 
3330
3392
  #### Defined in
3331
3393
 
3332
- [throttle.ts:25](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L25)
3394
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/c036886/src/throttle.ts#L25)
3333
3395
 
3334
3396
  ___
3335
3397
 
@@ -3351,7 +3413,7 @@ ___
3351
3413
 
3352
3414
  #### Defined in
3353
3415
 
3354
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/toCDB.ts#L4)
3416
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/c036886/src/toCDB.ts#L4)
3355
3417
 
3356
3418
  ___
3357
3419
 
@@ -3373,7 +3435,7 @@ ___
3373
3435
 
3374
3436
  #### Defined in
3375
3437
 
3376
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/toDBC.ts#L4)
3438
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/c036886/src/toDBC.ts#L4)
3377
3439
 
3378
3440
  ___
3379
3441
 
@@ -3397,7 +3459,7 @@ ___
3397
3459
 
3398
3460
  #### Defined in
3399
3461
 
3400
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/typeOf.ts#L6)
3462
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/c036886/src/typeOf.ts#L6)
3401
3463
 
3402
3464
  ___
3403
3465
 
@@ -3425,7 +3487,7 @@ ___
3425
3487
 
3426
3488
  #### Defined in
3427
3489
 
3428
- withCache.ts:4
3490
+ [withCache.ts:4](https://github.com/daysnap/utils/blob/c036886/src/withCache.ts#L4)
3429
3491
 
3430
3492
  ___
3431
3493
 
@@ -3454,4 +3516,4 @@ ___
3454
3516
 
3455
3517
  #### Defined in
3456
3518
 
3457
- [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/withPreventConsecutiveClicks.ts#L4)
3519
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/c036886/src/withPreventConsecutiveClicks.ts#L4)