@daysnap/utils 0.1.15 → 0.1.16

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 (58) hide show
  1. package/docs/classes/Poller.md +9 -9
  2. package/docs/classes/Storage.md +13 -13
  3. package/docs/interfaces/EventBusCallback.md +1 -1
  4. package/docs/interfaces/PollerOptions.md +1 -1
  5. package/docs/interfaces/StorageManager.md +4 -4
  6. package/docs/interfaces/Trap.md +5 -5
  7. package/docs/modules.md +267 -142
  8. package/es/chunk-BZ6JSRMY.js +8 -0
  9. package/es/chunk-MOZPLBC3.js +8 -0
  10. package/es/chunk-OOWZEABP.js +8 -0
  11. package/es/chunk-PXMH56CM.js +8 -0
  12. package/es/chunk-UDRRKKBB.js +12 -0
  13. package/es/crToBr.d.ts +6 -0
  14. package/es/crToBr.js +6 -0
  15. package/es/crlfToBr.d.ts +11 -0
  16. package/es/crlfToBr.js +8 -0
  17. package/es/filterEmptyValue.js +2 -2
  18. package/es/getDaysOfMonth.d.ts +6 -0
  19. package/es/getDaysOfMonth.js +6 -0
  20. package/es/index.d.ts +5 -1
  21. package/es/index.js +113 -95
  22. package/es/isLeapYear.d.ts +7 -0
  23. package/es/isLeapYear.js +6 -0
  24. package/es/lfToBr.d.ts +6 -0
  25. package/es/lfToBr.js +6 -0
  26. package/es/storage/index.js +3 -3
  27. package/es/stringifyQuery.js +2 -2
  28. package/lib/chunk-EUH2FDMT.cjs +8 -0
  29. package/lib/chunk-TMCJ3HTA.cjs +12 -0
  30. package/lib/chunk-UTUKZLEN.cjs +8 -0
  31. package/lib/chunk-XSCXPGEI.cjs +8 -0
  32. package/lib/chunk-ZSDKKWIQ.cjs +8 -0
  33. package/lib/crToBr.cjs +6 -0
  34. package/lib/crToBr.d.cts +6 -0
  35. package/lib/crlfToBr.cjs +8 -0
  36. package/lib/crlfToBr.d.cts +11 -0
  37. package/lib/filterEmptyValue.cjs +3 -3
  38. package/lib/getDaysOfMonth.cjs +6 -0
  39. package/lib/getDaysOfMonth.d.cts +6 -0
  40. package/lib/index.cjs +82 -64
  41. package/lib/index.d.cts +5 -1
  42. package/lib/isLeapYear.cjs +6 -0
  43. package/lib/isLeapYear.d.cts +7 -0
  44. package/lib/lfToBr.cjs +6 -0
  45. package/lib/lfToBr.d.cts +6 -0
  46. package/lib/storage/index.cjs +2 -2
  47. package/lib/stringifyQuery.cjs +3 -3
  48. package/package.json +1 -1
  49. package/es/chunk-S2FOFDX4.js +0 -8
  50. package/es/filterCRLF.d.ts +0 -6
  51. package/es/filterCRLF.js +0 -6
  52. package/lib/chunk-CXDOHSIF.cjs +0 -8
  53. package/lib/filterCRLF.cjs +0 -6
  54. package/lib/filterCRLF.d.cts +0 -6
  55. package/es/{chunk-HNVHVI6P.js → chunk-SMNIKKYG.js} +3 -3
  56. package/es/{chunk-VDXSQKQF.js → chunk-WXXFRKUS.js} +3 -3
  57. package/lib/{chunk-UFBP3XOL.cjs → chunk-4P4EJVBW.cjs} +3 -3
  58. package/lib/{chunk-73AXP7FD.cjs → chunk-4USHGA4P.cjs} +2 -2
package/docs/modules.md CHANGED
@@ -43,10 +43,12 @@
43
43
  - [colorGenByHash](modules.md#colorgenbyhash)
44
44
  - [compareVersion](modules.md#compareversion)
45
45
  - [compressImage](modules.md#compressimage)
46
+ - [crToBr](modules.md#crtobr)
46
47
  - [createFactory](modules.md#createfactory)
47
48
  - [createLinearFunction](modules.md#createlinearfunction)
48
49
  - [createTrapInstance](modules.md#createtrapinstance)
49
50
  - [createWithLoading](modules.md#createwithloading)
51
+ - [crlfToBr](modules.md#crlftobr)
50
52
  - [debounce](modules.md#debounce)
51
53
  - [downloadFile](modules.md#downloadfile)
52
54
  - [each](modules.md#each)
@@ -71,6 +73,7 @@
71
73
  - [getCache](modules.md#getcache)
72
74
  - [getDateBoundsByMonths](modules.md#getdateboundsbymonths)
73
75
  - [getDayMillisecond](modules.md#getdaymillisecond)
76
+ - [getDaysOfMonth](modules.md#getdaysofmonth)
74
77
  - [getImageInfo](modules.md#getimageinfo)
75
78
  - [getLocal](modules.md#getlocal)
76
79
  - [getMonthBounds](modules.md#getmonthbounds)
@@ -103,6 +106,7 @@
103
106
  - [isIdCard](modules.md#isidcard)
104
107
  - [isJSONString](modules.md#isjsonstring)
105
108
  - [isLan](modules.md#islan)
109
+ - [isLeapYear](modules.md#isleapyear)
106
110
  - [isLicenseCode](modules.md#islicensecode)
107
111
  - [isMobile](modules.md#ismobile)
108
112
  - [isNativeFunction](modules.md#isnativefunction)
@@ -122,6 +126,7 @@
122
126
  - [isWeixin](modules.md#isweixin)
123
127
  - [isWindow](modules.md#iswindow)
124
128
  - [kebabCase](modules.md#kebabcase)
129
+ - [lfToBr](modules.md#lftobr)
125
130
  - [listGenerator](modules.md#listgenerator)
126
131
  - [makePhoneCall](modules.md#makephonecall)
127
132
  - [mousewheel](modules.md#mousewheel)
@@ -181,7 +186,7 @@
181
186
 
182
187
  #### Defined in
183
188
 
184
- [poller.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/poller.ts#L7)
189
+ [poller.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/poller.ts#L7)
185
190
 
186
191
  ## Variables
187
192
 
@@ -200,7 +205,7 @@
200
205
 
201
206
  #### Defined in
202
207
 
203
- [eventBus.ts:38](https://github.com/daysnap/utils/blob/575dd13/src/eventBus.ts#L38)
208
+ [eventBus.ts:38](https://github.com/daysnap/utils/blob/585cbee/src/eventBus.ts#L38)
204
209
 
205
210
  ___
206
211
 
@@ -210,7 +215,7 @@ ___
210
215
 
211
216
  #### Defined in
212
217
 
213
- [trap.ts:15](https://github.com/daysnap/utils/blob/575dd13/src/trap.ts#L15)
218
+ [trap.ts:15](https://github.com/daysnap/utils/blob/585cbee/src/trap.ts#L15)
214
219
 
215
220
  ## Functions
216
221
 
@@ -248,7 +253,7 @@ res = { '1': '男', '2': '女' }
248
253
 
249
254
  #### Defined in
250
255
 
251
- [ato.ts:12](https://github.com/daysnap/utils/blob/575dd13/src/ato.ts#L12)
256
+ [ato.ts:12](https://github.com/daysnap/utils/blob/585cbee/src/ato.ts#L12)
252
257
 
253
258
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
254
259
 
@@ -273,7 +278,7 @@ res = { '1': '男', '2': '女' }
273
278
 
274
279
  #### Defined in
275
280
 
276
- [ato.ts:16](https://github.com/daysnap/utils/blob/575dd13/src/ato.ts#L16)
281
+ [ato.ts:16](https://github.com/daysnap/utils/blob/585cbee/src/ato.ts#L16)
277
282
 
278
283
  ___
279
284
 
@@ -293,7 +298,7 @@ ___
293
298
 
294
299
  #### Defined in
295
300
 
296
- [decode.ts:41](https://github.com/daysnap/utils/blob/575dd13/src/decode.ts#L41)
301
+ [decode.ts:41](https://github.com/daysnap/utils/blob/585cbee/src/decode.ts#L41)
297
302
 
298
303
  ___
299
304
 
@@ -316,7 +321,7 @@ base64 转 blob
316
321
 
317
322
  #### Defined in
318
323
 
319
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/base64ToBlob.ts#L6)
324
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/base64ToBlob.ts#L6)
320
325
 
321
326
  ___
322
327
 
@@ -338,7 +343,7 @@ blob 转 base64
338
343
 
339
344
  #### Defined in
340
345
 
341
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/blobToBase64.ts#L4)
346
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/blobToBase64.ts#L4)
342
347
 
343
348
  ___
344
349
 
@@ -358,7 +363,7 @@ ___
358
363
 
359
364
  #### Defined in
360
365
 
361
- [decode.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/decode.ts#L8)
366
+ [decode.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/decode.ts#L8)
362
367
 
363
368
  ___
364
369
 
@@ -399,7 +404,7 @@ ___
399
404
 
400
405
  #### Defined in
401
406
 
402
- [cached.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/cached.ts#L5)
407
+ [cached.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/cached.ts#L5)
403
408
 
404
409
  ___
405
410
 
@@ -422,7 +427,7 @@ camelCase('hello-world') => helloWorld
422
427
 
423
428
  #### Defined in
424
429
 
425
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/camelCase.ts#L5)
430
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/camelCase.ts#L5)
426
431
 
427
432
  ___
428
433
 
@@ -446,7 +451,7 @@ canvas 转 blob 文件
446
451
 
447
452
  #### Defined in
448
453
 
449
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/canvasToBlob.ts#L4)
454
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/canvasToBlob.ts#L4)
450
455
 
451
456
  ___
452
457
 
@@ -469,7 +474,7 @@ capitalize('hello world') => Hello world
469
474
 
470
475
  #### Defined in
471
476
 
472
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/capitalize.ts#L5)
477
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/capitalize.ts#L5)
473
478
 
474
479
  ___
475
480
 
@@ -494,7 +499,7 @@ ___
494
499
 
495
500
  #### Defined in
496
501
 
497
- [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/chooseMedia.ts#L5)
502
+ [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/chooseMedia.ts#L5)
498
503
 
499
504
  ___
500
505
 
@@ -518,7 +523,7 @@ ___
518
523
 
519
524
  #### Defined in
520
525
 
521
- [clamp.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/clamp.ts#L7)
526
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/clamp.ts#L7)
522
527
 
523
528
  ___
524
529
 
@@ -546,7 +551,7 @@ ___
546
551
 
547
552
  #### Defined in
548
553
 
549
- [clone.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/clone.ts#L8)
554
+ [clone.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/clone.ts#L8)
550
555
 
551
556
  ___
552
557
 
@@ -574,7 +579,7 @@ ___
574
579
 
575
580
  #### Defined in
576
581
 
577
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/cloneSimple.ts#L7)
582
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/cloneSimple.ts#L7)
578
583
 
579
584
  ___
580
585
 
@@ -596,7 +601,7 @@ ___
596
601
 
597
602
  #### Defined in
598
603
 
599
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/createHexColorByHash.ts#L4)
604
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/createHexColorByHash.ts#L4)
600
605
 
601
606
  ___
602
607
 
@@ -622,7 +627,7 @@ ___
622
627
 
623
628
  #### Defined in
624
629
 
625
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/575dd13/src/compareVersion.ts#L9)
630
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/585cbee/src/compareVersion.ts#L9)
626
631
 
627
632
  ___
628
633
 
@@ -645,7 +650,29 @@ ___
645
650
 
646
651
  #### Defined in
647
652
 
648
- [compressImage.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/compressImage.ts#L4)
653
+ [compressImage.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/compressImage.ts#L4)
654
+
655
+ ___
656
+
657
+ ### crToBr
658
+
659
+ ▸ **crToBr**(`v`): `string`
660
+
661
+ \r to <br/>
662
+
663
+ #### Parameters
664
+
665
+ | Name | Type |
666
+ | :------ | :------ |
667
+ | `v` | `string` |
668
+
669
+ #### Returns
670
+
671
+ `string`
672
+
673
+ #### Defined in
674
+
675
+ crToBr.ts:4
649
676
 
650
677
  ___
651
678
 
@@ -673,7 +700,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
673
700
 
674
701
  #### Defined in
675
702
 
676
- [createFactory.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/createFactory.ts#L4)
703
+ [createFactory.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/createFactory.ts#L4)
677
704
 
678
705
  ___
679
706
 
@@ -711,7 +738,7 @@ ___
711
738
 
712
739
  #### Defined in
713
740
 
714
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/575dd13/src/createLinearFunction.ts#L9)
741
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/585cbee/src/createLinearFunction.ts#L9)
715
742
 
716
743
  ___
717
744
 
@@ -743,7 +770,7 @@ ___
743
770
 
744
771
  #### Defined in
745
772
 
746
- [trap.ts:49](https://github.com/daysnap/utils/blob/575dd13/src/trap.ts#L49)
773
+ [trap.ts:49](https://github.com/daysnap/utils/blob/585cbee/src/trap.ts#L49)
747
774
 
748
775
  ___
749
776
 
@@ -806,7 +833,29 @@ fn() 执行的时候就会执行showLoading
806
833
 
807
834
  #### Defined in
808
835
 
809
- [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/575dd13/src/createWithLoading.ts#L11)
836
+ [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/585cbee/src/createWithLoading.ts#L11)
837
+
838
+ ___
839
+
840
+ ### crlfToBr
841
+
842
+ ▸ **crlfToBr**(`v`): `string`
843
+
844
+ \r \n to <br/>
845
+
846
+ #### Parameters
847
+
848
+ | Name | Type |
849
+ | :------ | :------ |
850
+ | `v` | `string` |
851
+
852
+ #### Returns
853
+
854
+ `string`
855
+
856
+ #### Defined in
857
+
858
+ crlfToBr.ts:4
810
859
 
811
860
  ___
812
861
 
@@ -849,7 +898,7 @@ ___
849
898
 
850
899
  #### Defined in
851
900
 
852
- [debounce.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/debounce.ts#L5)
901
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/debounce.ts#L5)
853
902
 
854
903
  ___
855
904
 
@@ -873,7 +922,7 @@ ___
873
922
 
874
923
  #### Defined in
875
924
 
876
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/downloadFile.ts#L4)
925
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/downloadFile.ts#L4)
877
926
 
878
927
  ___
879
928
 
@@ -902,7 +951,7 @@ ___
902
951
 
903
952
  #### Defined in
904
953
 
905
- [each.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/each.ts#L4)
954
+ [each.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/each.ts#L4)
906
955
 
907
956
  ▸ **each**<`T`\>(`data`, `callback`): `void`
908
957
 
@@ -925,7 +974,7 @@ ___
925
974
 
926
975
  #### Defined in
927
976
 
928
- [each.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/each.ts#L8)
977
+ [each.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/each.ts#L8)
929
978
 
930
979
  ___
931
980
 
@@ -943,7 +992,7 @@ ___
943
992
 
944
993
  #### Defined in
945
994
 
946
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/exitFullscreen.ts#L6)
995
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/exitFullscreen.ts#L6)
947
996
 
948
997
  ___
949
998
 
@@ -972,7 +1021,7 @@ ___
972
1021
 
973
1022
  #### Defined in
974
1023
 
975
- [storage/factory.ts:11](https://github.com/daysnap/utils/blob/575dd13/src/storage/factory.ts#L11)
1024
+ [storage/factory.ts:11](https://github.com/daysnap/utils/blob/585cbee/src/storage/factory.ts#L11)
976
1025
 
977
1026
  ___
978
1027
 
@@ -994,7 +1043,7 @@ ___
994
1043
 
995
1044
  #### Defined in
996
1045
 
997
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/filterBankCardNo.ts#L4)
1046
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/filterBankCardNo.ts#L4)
998
1047
 
999
1048
  ___
1000
1049
 
@@ -1004,6 +1053,14 @@ ___
1004
1053
 
1005
1054
  替换字符串里面的回车换行符
1006
1055
 
1056
+ **`Deprecated`**
1057
+
1058
+ 请使用
1059
+
1060
+ **`See`**
1061
+
1062
+ [crlfToBr](modules.md#crlftobr).
1063
+
1007
1064
  #### Parameters
1008
1065
 
1009
1066
  | Name | Type |
@@ -1016,7 +1073,7 @@ ___
1016
1073
 
1017
1074
  #### Defined in
1018
1075
 
1019
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/filterCRLF.ts#L4)
1076
+ crlfToBr.ts:12
1020
1077
 
1021
1078
  ___
1022
1079
 
@@ -1038,7 +1095,7 @@ ___
1038
1095
 
1039
1096
  #### Defined in
1040
1097
 
1041
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/filterEmoji.ts#L4)
1098
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/filterEmoji.ts#L4)
1042
1099
 
1043
1100
  ___
1044
1101
 
@@ -1061,7 +1118,7 @@ ___
1061
1118
 
1062
1119
  #### Defined in
1063
1120
 
1064
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/575dd13/src/filterEmptyValue.ts#L12)
1121
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/585cbee/src/filterEmptyValue.ts#L12)
1065
1122
 
1066
1123
  ___
1067
1124
 
@@ -1084,7 +1141,7 @@ ___
1084
1141
 
1085
1142
  #### Defined in
1086
1143
 
1087
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/filterIdCard.ts#L5)
1144
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/filterIdCard.ts#L5)
1088
1145
 
1089
1146
  ___
1090
1147
 
@@ -1106,7 +1163,7 @@ ___
1106
1163
 
1107
1164
  #### Defined in
1108
1165
 
1109
- [filterName.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/filterName.ts#L4)
1166
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/filterName.ts#L4)
1110
1167
 
1111
1168
  ___
1112
1169
 
@@ -1131,7 +1188,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
1131
1188
 
1132
1189
  #### Defined in
1133
1190
 
1134
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/filterPhone.ts#L6)
1191
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/filterPhone.ts#L6)
1135
1192
 
1136
1193
  ___
1137
1194
 
@@ -1158,7 +1215,7 @@ str = '131****8888'
1158
1215
 
1159
1216
  #### Defined in
1160
1217
 
1161
- [filterString.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/filterString.ts#L6)
1218
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/filterString.ts#L6)
1162
1219
 
1163
1220
  ___
1164
1221
 
@@ -1181,7 +1238,7 @@ ___
1181
1238
 
1182
1239
  #### Defined in
1183
1240
 
1184
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/formatAmount.ts#L4)
1241
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/formatAmount.ts#L4)
1185
1242
 
1186
1243
  ___
1187
1244
 
@@ -1205,7 +1262,7 @@ ___
1205
1262
 
1206
1263
  #### Defined in
1207
1264
 
1208
- [formatDate.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/formatDate.ts#L7)
1265
+ [formatDate.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/formatDate.ts#L7)
1209
1266
 
1210
1267
  ___
1211
1268
 
@@ -1236,7 +1293,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1236
1293
 
1237
1294
  #### Defined in
1238
1295
 
1239
- [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/formatDateStr.ts#L6)
1296
+ [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/formatDateStr.ts#L6)
1240
1297
 
1241
1298
  ___
1242
1299
 
@@ -1256,7 +1313,7 @@ ___
1256
1313
 
1257
1314
  #### Defined in
1258
1315
 
1259
- [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/formartDateToZN.ts#L4)
1316
+ [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/formartDateToZN.ts#L4)
1260
1317
 
1261
1318
  ___
1262
1319
 
@@ -1279,7 +1336,7 @@ ___
1279
1336
 
1280
1337
  #### Defined in
1281
1338
 
1282
- [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/formatFileSize.ts#L4)
1339
+ [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/formatFileSize.ts#L4)
1283
1340
 
1284
1341
  ___
1285
1342
 
@@ -1304,7 +1361,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1304
1361
 
1305
1362
  #### Defined in
1306
1363
 
1307
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/575dd13/src/formatMessage.ts#L11)
1364
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/585cbee/src/formatMessage.ts#L11)
1308
1365
 
1309
1366
  ___
1310
1367
 
@@ -1336,7 +1393,7 @@ rest = { xxx: 1 }
1336
1393
 
1337
1394
  #### Defined in
1338
1395
 
1339
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/formatPathParams.ts#L8)
1396
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/formatPathParams.ts#L8)
1340
1397
 
1341
1398
  ___
1342
1399
 
@@ -1358,7 +1415,7 @@ ___
1358
1415
 
1359
1416
  #### Defined in
1360
1417
 
1361
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/getBlobByUrl.ts#L4)
1418
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/getBlobByUrl.ts#L4)
1362
1419
 
1363
1420
  ___
1364
1421
 
@@ -1381,7 +1438,7 @@ ___
1381
1438
 
1382
1439
  #### Defined in
1383
1440
 
1384
- [storage/index.ts:10](https://github.com/daysnap/utils/blob/575dd13/src/storage/index.ts#L10)
1441
+ [storage/index.ts:10](https://github.com/daysnap/utils/blob/585cbee/src/storage/index.ts#L10)
1385
1442
 
1386
1443
  ___
1387
1444
 
@@ -1404,7 +1461,7 @@ ___
1404
1461
 
1405
1462
  #### Defined in
1406
1463
 
1407
- [getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/getDateBoundsByMonths.ts#L8)
1464
+ [getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/getDateBoundsByMonths.ts#L8)
1408
1465
 
1409
1466
  ▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
1410
1467
 
@@ -1422,7 +1479,7 @@ ___
1422
1479
 
1423
1480
  #### Defined in
1424
1481
 
1425
- [getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/575dd13/src/getDateBoundsByMonths.ts#L12)
1482
+ [getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/585cbee/src/getDateBoundsByMonths.ts#L12)
1426
1483
 
1427
1484
  ___
1428
1485
 
@@ -1444,7 +1501,30 @@ ___
1444
1501
 
1445
1502
  #### Defined in
1446
1503
 
1447
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/getDayMillisecond.ts#L4)
1504
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/getDayMillisecond.ts#L4)
1505
+
1506
+ ___
1507
+
1508
+ ### getDaysOfMonth
1509
+
1510
+ ▸ **getDaysOfMonth**(`year`, `month`): `number`
1511
+
1512
+ 获取一个月当中的天数
1513
+
1514
+ #### Parameters
1515
+
1516
+ | Name | Type |
1517
+ | :------ | :------ |
1518
+ | `year` | `number` |
1519
+ | `month` | `number` |
1520
+
1521
+ #### Returns
1522
+
1523
+ `number`
1524
+
1525
+ #### Defined in
1526
+
1527
+ [getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/getDaysOfMonth.ts#L4)
1448
1528
 
1449
1529
  ___
1450
1530
 
@@ -1467,7 +1547,7 @@ ___
1467
1547
 
1468
1548
  #### Defined in
1469
1549
 
1470
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/getImageInfo.ts#L4)
1550
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/getImageInfo.ts#L4)
1471
1551
 
1472
1552
  ___
1473
1553
 
@@ -1490,7 +1570,7 @@ ___
1490
1570
 
1491
1571
  #### Defined in
1492
1572
 
1493
- [storage/index.ts:10](https://github.com/daysnap/utils/blob/575dd13/src/storage/index.ts#L10)
1573
+ [storage/index.ts:10](https://github.com/daysnap/utils/blob/585cbee/src/storage/index.ts#L10)
1494
1574
 
1495
1575
  ___
1496
1576
 
@@ -1512,7 +1592,7 @@ ___
1512
1592
 
1513
1593
  #### Defined in
1514
1594
 
1515
- [getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/getMonthBounds.ts#L7)
1595
+ [getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/getMonthBounds.ts#L7)
1516
1596
 
1517
1597
  ▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
1518
1598
 
@@ -1529,7 +1609,7 @@ ___
1529
1609
 
1530
1610
  #### Defined in
1531
1611
 
1532
- [getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/getMonthBounds.ts#L8)
1612
+ [getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/getMonthBounds.ts#L8)
1533
1613
 
1534
1614
  ___
1535
1615
 
@@ -1552,7 +1632,7 @@ ___
1552
1632
 
1553
1633
  #### Defined in
1554
1634
 
1555
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/getRandom.ts#L7)
1635
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/getRandom.ts#L7)
1556
1636
 
1557
1637
  ___
1558
1638
 
@@ -1568,7 +1648,7 @@ ___
1568
1648
 
1569
1649
  #### Defined in
1570
1650
 
1571
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/getRandomColor.ts#L4)
1651
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/getRandomColor.ts#L4)
1572
1652
 
1573
1653
  ___
1574
1654
 
@@ -1590,7 +1670,7 @@ ___
1590
1670
 
1591
1671
  #### Defined in
1592
1672
 
1593
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/getRandomNumber.ts#L7)
1673
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/getRandomNumber.ts#L7)
1594
1674
 
1595
1675
  ___
1596
1676
 
@@ -1613,7 +1693,7 @@ ___
1613
1693
 
1614
1694
  #### Defined in
1615
1695
 
1616
- [getRangeDate.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/getRangeDate.ts#L7)
1696
+ [getRangeDate.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/getRangeDate.ts#L7)
1617
1697
 
1618
1698
  ▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
1619
1699
 
@@ -1631,7 +1711,7 @@ ___
1631
1711
 
1632
1712
  #### Defined in
1633
1713
 
1634
- [getRangeDate.ts:11](https://github.com/daysnap/utils/blob/575dd13/src/getRangeDate.ts#L11)
1714
+ [getRangeDate.ts:11](https://github.com/daysnap/utils/blob/585cbee/src/getRangeDate.ts#L11)
1635
1715
 
1636
1716
  ___
1637
1717
 
@@ -1647,7 +1727,7 @@ ___
1647
1727
 
1648
1728
  #### Defined in
1649
1729
 
1650
- [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/getScrollTop.ts#L4)
1730
+ [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/getScrollTop.ts#L4)
1651
1731
 
1652
1732
  ___
1653
1733
 
@@ -1669,7 +1749,7 @@ ___
1669
1749
 
1670
1750
  #### Defined in
1671
1751
 
1672
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/getVideoInfo.ts#L4)
1752
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/getVideoInfo.ts#L4)
1673
1753
 
1674
1754
  ___
1675
1755
 
@@ -1692,7 +1772,7 @@ ___
1692
1772
 
1693
1773
  #### Defined in
1694
1774
 
1695
- getWeekBounds.ts:7
1775
+ [getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/getWeekBounds.ts#L7)
1696
1776
 
1697
1777
  ▸ **getWeekBounds**(`value`, `sundayIsFirstDay`, `fmt`): [`string`, `string`]
1698
1778
 
@@ -1710,7 +1790,7 @@ getWeekBounds.ts:7
1710
1790
 
1711
1791
  #### Defined in
1712
1792
 
1713
- getWeekBounds.ts:11
1793
+ [getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/585cbee/src/getWeekBounds.ts#L11)
1714
1794
 
1715
1795
  ___
1716
1796
 
@@ -1733,7 +1813,7 @@ ___
1733
1813
 
1734
1814
  #### Defined in
1735
1815
 
1736
- [getWeekday.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/getWeekday.ts#L6)
1816
+ [getWeekday.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/getWeekday.ts#L6)
1737
1817
 
1738
1818
  ___
1739
1819
 
@@ -1749,7 +1829,7 @@ ___
1749
1829
 
1750
1830
  #### Defined in
1751
1831
 
1752
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/inBrowser.ts#L4)
1832
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/inBrowser.ts#L4)
1753
1833
 
1754
1834
  ___
1755
1835
 
@@ -1771,7 +1851,7 @@ ___
1771
1851
 
1772
1852
  #### Defined in
1773
1853
 
1774
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/insertLink.ts#L4)
1854
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/insertLink.ts#L4)
1775
1855
 
1776
1856
  ▸ **insertLink**(`href`, `callback`): `void`
1777
1857
 
@@ -1788,7 +1868,7 @@ ___
1788
1868
 
1789
1869
  #### Defined in
1790
1870
 
1791
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/insertLink.ts#L5)
1871
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/insertLink.ts#L5)
1792
1872
 
1793
1873
  ___
1794
1874
 
@@ -1810,7 +1890,7 @@ ___
1810
1890
 
1811
1891
  #### Defined in
1812
1892
 
1813
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/insertScript.ts#L4)
1893
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/insertScript.ts#L4)
1814
1894
 
1815
1895
  ▸ **insertScript**(`src`, `callback`): `void`
1816
1896
 
@@ -1827,7 +1907,7 @@ ___
1827
1907
 
1828
1908
  #### Defined in
1829
1909
 
1830
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/insertScript.ts#L5)
1910
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/insertScript.ts#L5)
1831
1911
 
1832
1912
  ___
1833
1913
 
@@ -1849,7 +1929,7 @@ ___
1849
1929
 
1850
1930
  #### Defined in
1851
1931
 
1852
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/insertStyle.ts#L4)
1932
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/insertStyle.ts#L4)
1853
1933
 
1854
1934
  ___
1855
1935
 
@@ -1878,7 +1958,7 @@ isAmount('1.123') => false
1878
1958
 
1879
1959
  #### Defined in
1880
1960
 
1881
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/575dd13/src/isAmount.ts#L11)
1961
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/585cbee/src/isAmount.ts#L11)
1882
1962
 
1883
1963
  ___
1884
1964
 
@@ -1894,7 +1974,7 @@ ___
1894
1974
 
1895
1975
  #### Defined in
1896
1976
 
1897
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isAndroid.ts#L4)
1977
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isAndroid.ts#L4)
1898
1978
 
1899
1979
  ___
1900
1980
 
@@ -1918,7 +1998,7 @@ val is any[]
1918
1998
 
1919
1999
  #### Defined in
1920
2000
 
1921
- [isArray.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/isArray.ts#L6)
2001
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/isArray.ts#L6)
1922
2002
 
1923
2003
  ___
1924
2004
 
@@ -1940,7 +2020,7 @@ val is boolean
1940
2020
 
1941
2021
  #### Defined in
1942
2022
 
1943
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/isBoolean.ts#L5)
2023
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isBoolean.ts#L5)
1944
2024
 
1945
2025
  ___
1946
2026
 
@@ -1962,7 +2042,7 @@ ___
1962
2042
 
1963
2043
  #### Defined in
1964
2044
 
1965
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isChinese.ts#L4)
2045
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isChinese.ts#L4)
1966
2046
 
1967
2047
  ___
1968
2048
 
@@ -1984,7 +2064,7 @@ val is Date
1984
2064
 
1985
2065
  #### Defined in
1986
2066
 
1987
- [isDate.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isDate.ts#L4)
2067
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isDate.ts#L4)
1988
2068
 
1989
2069
  ___
1990
2070
 
@@ -2006,7 +2086,7 @@ ___
2006
2086
 
2007
2087
  #### Defined in
2008
2088
 
2009
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isEmail.ts#L4)
2089
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isEmail.ts#L4)
2010
2090
 
2011
2091
  ___
2012
2092
 
@@ -2028,7 +2108,7 @@ ___
2028
2108
 
2029
2109
  #### Defined in
2030
2110
 
2031
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/isEmpty.ts#L6)
2111
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/isEmpty.ts#L6)
2032
2112
 
2033
2113
  ___
2034
2114
 
@@ -2050,7 +2130,7 @@ ___
2050
2130
 
2051
2131
  #### Defined in
2052
2132
 
2053
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/isEmptyArray.ts#L6)
2133
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/isEmptyArray.ts#L6)
2054
2134
 
2055
2135
  ___
2056
2136
 
@@ -2072,7 +2152,7 @@ ___
2072
2152
 
2073
2153
  #### Defined in
2074
2154
 
2075
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/isEmptyObject.ts#L5)
2155
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isEmptyObject.ts#L5)
2076
2156
 
2077
2157
  ___
2078
2158
 
@@ -2094,7 +2174,7 @@ val is Error
2094
2174
 
2095
2175
  #### Defined in
2096
2176
 
2097
- [isError.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isError.ts#L4)
2177
+ [isError.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isError.ts#L4)
2098
2178
 
2099
2179
  ___
2100
2180
 
@@ -2116,7 +2196,7 @@ val is Function
2116
2196
 
2117
2197
  #### Defined in
2118
2198
 
2119
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isFunction.ts#L4)
2199
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isFunction.ts#L4)
2120
2200
 
2121
2201
  ___
2122
2202
 
@@ -2134,7 +2214,7 @@ ___
2134
2214
 
2135
2215
  #### Defined in
2136
2216
 
2137
- [isIE.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/isIE.ts#L6)
2217
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/isIE.ts#L6)
2138
2218
 
2139
2219
  ___
2140
2220
 
@@ -2150,7 +2230,7 @@ ___
2150
2230
 
2151
2231
  #### Defined in
2152
2232
 
2153
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isIOS.ts#L4)
2233
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isIOS.ts#L4)
2154
2234
 
2155
2235
  ___
2156
2236
 
@@ -2172,7 +2252,7 @@ ___
2172
2252
 
2173
2253
  #### Defined in
2174
2254
 
2175
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isIdCard.ts#L4)
2255
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isIdCard.ts#L4)
2176
2256
 
2177
2257
  ___
2178
2258
 
@@ -2194,7 +2274,7 @@ ___
2194
2274
 
2195
2275
  #### Defined in
2196
2276
 
2197
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/isJSONString.ts#L7)
2277
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/isJSONString.ts#L7)
2198
2278
 
2199
2279
  ___
2200
2280
 
@@ -2216,7 +2296,30 @@ ___
2216
2296
 
2217
2297
  #### Defined in
2218
2298
 
2219
- [isLan.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/isLan.ts#L5)
2299
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isLan.ts#L5)
2300
+
2301
+ ___
2302
+
2303
+ ### isLeapYear
2304
+
2305
+ ▸ **isLeapYear**(`year`): `boolean`
2306
+
2307
+ 判断是否是闰年
2308
+ 规则:四年一闰,百年不闰,四百年再闰
2309
+
2310
+ #### Parameters
2311
+
2312
+ | Name | Type |
2313
+ | :------ | :------ |
2314
+ | `year` | `number` |
2315
+
2316
+ #### Returns
2317
+
2318
+ `boolean`
2319
+
2320
+ #### Defined in
2321
+
2322
+ [isLeapYear.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isLeapYear.ts#L5)
2220
2323
 
2221
2324
  ___
2222
2325
 
@@ -2238,7 +2341,7 @@ ___
2238
2341
 
2239
2342
  #### Defined in
2240
2343
 
2241
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/isLicenseCode.ts#L5)
2344
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isLicenseCode.ts#L5)
2242
2345
 
2243
2346
  ___
2244
2347
 
@@ -2254,7 +2357,7 @@ ___
2254
2357
 
2255
2358
  #### Defined in
2256
2359
 
2257
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isMobile.ts#L4)
2360
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isMobile.ts#L4)
2258
2361
 
2259
2362
  ___
2260
2363
 
@@ -2277,7 +2380,7 @@ ___
2277
2380
 
2278
2381
  #### Defined in
2279
2382
 
2280
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/isNativeFunction.ts#L7)
2383
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/isNativeFunction.ts#L7)
2281
2384
 
2282
2385
  ___
2283
2386
 
@@ -2299,7 +2402,7 @@ val is null
2299
2402
 
2300
2403
  #### Defined in
2301
2404
 
2302
- [isNull.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isNull.ts#L4)
2405
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isNull.ts#L4)
2303
2406
 
2304
2407
  ___
2305
2408
 
@@ -2321,7 +2424,7 @@ val is number
2321
2424
 
2322
2425
  #### Defined in
2323
2426
 
2324
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/isNumber.ts#L5)
2427
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isNumber.ts#L5)
2325
2428
 
2326
2429
  ___
2327
2430
 
@@ -2343,7 +2446,7 @@ val is Record<string, any\>
2343
2446
 
2344
2447
  #### Defined in
2345
2448
 
2346
- [isObject.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isObject.ts#L4)
2449
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isObject.ts#L4)
2347
2450
 
2348
2451
  ___
2349
2452
 
@@ -2365,7 +2468,7 @@ ___
2365
2468
 
2366
2469
  #### Defined in
2367
2470
 
2368
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isPhone.ts#L4)
2471
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isPhone.ts#L4)
2369
2472
 
2370
2473
  ___
2371
2474
 
@@ -2393,7 +2496,7 @@ val is Promise<T\>
2393
2496
 
2394
2497
  #### Defined in
2395
2498
 
2396
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isPromise.ts#L4)
2499
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isPromise.ts#L4)
2397
2500
 
2398
2501
  ___
2399
2502
 
@@ -2415,7 +2518,7 @@ val is RegExp
2415
2518
 
2416
2519
  #### Defined in
2417
2520
 
2418
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isRegExp.ts#L4)
2521
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isRegExp.ts#L4)
2419
2522
 
2420
2523
  ___
2421
2524
 
@@ -2437,7 +2540,7 @@ val is string
2437
2540
 
2438
2541
  #### Defined in
2439
2542
 
2440
- [isString.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isString.ts#L4)
2543
+ [isString.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isString.ts#L4)
2441
2544
 
2442
2545
  ___
2443
2546
 
@@ -2466,7 +2569,7 @@ val is T
2466
2569
 
2467
2570
  #### Defined in
2468
2571
 
2469
- [isType.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isType.ts#L4)
2572
+ [isType.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isType.ts#L4)
2470
2573
 
2471
2574
  ___
2472
2575
 
@@ -2488,7 +2591,7 @@ val is undefined
2488
2591
 
2489
2592
  #### Defined in
2490
2593
 
2491
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isUndefined.ts#L4)
2594
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isUndefined.ts#L4)
2492
2595
 
2493
2596
  ___
2494
2597
 
@@ -2532,7 +2635,7 @@ ___
2532
2635
 
2533
2636
  #### Defined in
2534
2637
 
2535
- [isValidDate.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/isValidDate.ts#L6)
2638
+ [isValidDate.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/isValidDate.ts#L6)
2536
2639
 
2537
2640
  ___
2538
2641
 
@@ -2548,7 +2651,7 @@ ___
2548
2651
 
2549
2652
  #### Defined in
2550
2653
 
2551
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/isWeChat.ts#L4)
2654
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/isWeChat.ts#L4)
2552
2655
 
2553
2656
  ___
2554
2657
 
@@ -2565,7 +2668,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2565
2668
 
2566
2669
  #### Defined in
2567
2670
 
2568
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/isWeChatMiniProgram.ts#L5)
2671
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isWeChatMiniProgram.ts#L5)
2569
2672
 
2570
2673
  ___
2571
2674
 
@@ -2589,7 +2692,7 @@ ___
2589
2692
 
2590
2693
  #### Defined in
2591
2694
 
2592
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/575dd13/src/isWeChat.ts#L12)
2695
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/585cbee/src/isWeChat.ts#L12)
2593
2696
 
2594
2697
  ___
2595
2698
 
@@ -2611,7 +2714,7 @@ val is Window
2611
2714
 
2612
2715
  #### Defined in
2613
2716
 
2614
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/isWindow.ts#L5)
2717
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/isWindow.ts#L5)
2615
2718
 
2616
2719
  ___
2617
2720
 
@@ -2634,7 +2737,29 @@ kebabCase('helloWorld') => hello-world
2634
2737
 
2635
2738
  #### Defined in
2636
2739
 
2637
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/kebabCase.ts#L5)
2740
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/kebabCase.ts#L5)
2741
+
2742
+ ___
2743
+
2744
+ ### lfToBr
2745
+
2746
+ ▸ **lfToBr**(`v`): `string`
2747
+
2748
+ \n to <br/>
2749
+
2750
+ #### Parameters
2751
+
2752
+ | Name | Type |
2753
+ | :------ | :------ |
2754
+ | `v` | `string` |
2755
+
2756
+ #### Returns
2757
+
2758
+ `string`
2759
+
2760
+ #### Defined in
2761
+
2762
+ lfToBr.ts:4
2638
2763
 
2639
2764
  ___
2640
2765
 
@@ -2656,7 +2781,7 @@ list 生成器,快速生成数据
2656
2781
 
2657
2782
  #### Defined in
2658
2783
 
2659
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/listGenerator.ts#L5)
2784
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/listGenerator.ts#L5)
2660
2785
 
2661
2786
  ▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
2662
2787
 
@@ -2679,7 +2804,7 @@ list 生成器,快速生成数据
2679
2804
 
2680
2805
  #### Defined in
2681
2806
 
2682
- [listGenerator.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/listGenerator.ts#L6)
2807
+ [listGenerator.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/listGenerator.ts#L6)
2683
2808
 
2684
2809
  ___
2685
2810
 
@@ -2699,7 +2824,7 @@ ___
2699
2824
 
2700
2825
  #### Defined in
2701
2826
 
2702
- [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/575dd13/src/makePhoneCall.ts#L1)
2827
+ [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/585cbee/src/makePhoneCall.ts#L1)
2703
2828
 
2704
2829
  ___
2705
2830
 
@@ -2724,7 +2849,7 @@ ___
2724
2849
 
2725
2850
  #### Defined in
2726
2851
 
2727
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/575dd13/src/mousewheel.ts#L22)
2852
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/585cbee/src/mousewheel.ts#L22)
2728
2853
 
2729
2854
  ___
2730
2855
 
@@ -2740,7 +2865,7 @@ ___
2740
2865
 
2741
2866
  #### Defined in
2742
2867
 
2743
- [nf.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/nf.ts#L4)
2868
+ [nf.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/nf.ts#L4)
2744
2869
 
2745
2870
  ___
2746
2871
 
@@ -2764,7 +2889,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
2764
2889
 
2765
2890
  #### Defined in
2766
2891
 
2767
- [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/normalizeDate.ts#L8)
2892
+ [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/normalizeDate.ts#L8)
2768
2893
 
2769
2894
  ___
2770
2895
 
@@ -2786,7 +2911,7 @@ ___
2786
2911
 
2787
2912
  #### Defined in
2788
2913
 
2789
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/normalizePath.ts#L4)
2914
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/normalizePath.ts#L4)
2790
2915
 
2791
2916
  ___
2792
2917
 
@@ -2816,7 +2941,7 @@ ___
2816
2941
 
2817
2942
  #### Defined in
2818
2943
 
2819
- [omit.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/omit.ts#L4)
2944
+ [omit.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/omit.ts#L4)
2820
2945
 
2821
2946
  ___
2822
2947
 
@@ -2840,7 +2965,7 @@ ___
2840
2965
 
2841
2966
  #### Defined in
2842
2967
 
2843
- [padding.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/padding.ts#L7)
2968
+ [padding.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/padding.ts#L7)
2844
2969
 
2845
2970
  ___
2846
2971
 
@@ -2866,7 +2991,7 @@ ___
2866
2991
 
2867
2992
  #### Defined in
2868
2993
 
2869
- [parseDate.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/parseDate.ts#L5)
2994
+ [parseDate.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/parseDate.ts#L5)
2870
2995
 
2871
2996
  ___
2872
2997
 
@@ -2889,7 +3014,7 @@ ___
2889
3014
 
2890
3015
  #### Defined in
2891
3016
 
2892
- [parseError.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/parseError.ts#L8)
3017
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/parseError.ts#L8)
2893
3018
 
2894
3019
  ___
2895
3020
 
@@ -2919,7 +3044,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2919
3044
 
2920
3045
  #### Defined in
2921
3046
 
2922
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/parseObject.ts#L5)
3047
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/parseObject.ts#L5)
2923
3048
 
2924
3049
  ___
2925
3050
 
@@ -2948,7 +3073,7 @@ ___
2948
3073
 
2949
3074
  #### Defined in
2950
3075
 
2951
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/parsePath.ts#L6)
3076
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/parsePath.ts#L6)
2952
3077
 
2953
3078
  ___
2954
3079
 
@@ -2971,7 +3096,7 @@ ___
2971
3096
 
2972
3097
  #### Defined in
2973
3098
 
2974
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/parseQuery.ts#L8)
3099
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/parseQuery.ts#L8)
2975
3100
 
2976
3101
  ___
2977
3102
 
@@ -3001,7 +3126,7 @@ ___
3001
3126
 
3002
3127
  #### Defined in
3003
3128
 
3004
- [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/parseQueryString.ts#L6)
3129
+ [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/parseQueryString.ts#L6)
3005
3130
 
3006
3131
  ___
3007
3132
 
@@ -3024,7 +3149,7 @@ pascalCase('hello-world') => HelloWorld
3024
3149
 
3025
3150
  #### Defined in
3026
3151
 
3027
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/pascalCase.ts#L8)
3152
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/pascalCase.ts#L8)
3028
3153
 
3029
3154
  ___
3030
3155
 
@@ -3054,7 +3179,7 @@ ___
3054
3179
 
3055
3180
  #### Defined in
3056
3181
 
3057
- [pick.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/pick.ts#L4)
3182
+ [pick.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/pick.ts#L4)
3058
3183
 
3059
3184
  ___
3060
3185
 
@@ -3077,7 +3202,7 @@ ___
3077
3202
 
3078
3203
  #### Defined in
3079
3204
 
3080
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/replaceCrlf.ts#L4)
3205
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/replaceCrlf.ts#L4)
3081
3206
 
3082
3207
  ___
3083
3208
 
@@ -3101,7 +3226,7 @@ ___
3101
3226
 
3102
3227
  #### Defined in
3103
3228
 
3104
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/requestFullScreen.ts#L6)
3229
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/requestFullScreen.ts#L6)
3105
3230
 
3106
3231
  ___
3107
3232
 
@@ -3127,7 +3252,7 @@ reserve(0, '--') => 0
3127
3252
 
3128
3253
  #### Defined in
3129
3254
 
3130
- [reserve.ts:8](https://github.com/daysnap/utils/blob/575dd13/src/reserve.ts#L8)
3255
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/585cbee/src/reserve.ts#L8)
3131
3256
 
3132
3257
  ___
3133
3258
 
@@ -3151,7 +3276,7 @@ ___
3151
3276
 
3152
3277
  #### Defined in
3153
3278
 
3154
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/rgbToHex.ts#L4)
3279
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/rgbToHex.ts#L4)
3155
3280
 
3156
3281
  ___
3157
3282
 
@@ -3174,7 +3299,7 @@ ___
3174
3299
 
3175
3300
  #### Defined in
3176
3301
 
3177
- [round.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/round.ts#L6)
3302
+ [round.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/round.ts#L6)
3178
3303
 
3179
3304
  ___
3180
3305
 
@@ -3190,7 +3315,7 @@ ___
3190
3315
 
3191
3316
  #### Defined in
3192
3317
 
3193
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/scrollToTop.ts#L4)
3318
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/scrollToTop.ts#L4)
3194
3319
 
3195
3320
  ___
3196
3321
 
@@ -3212,7 +3337,7 @@ ___
3212
3337
 
3213
3338
  #### Defined in
3214
3339
 
3215
- [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/setScrollTop.ts#L4)
3340
+ [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/setScrollTop.ts#L4)
3216
3341
 
3217
3342
  ___
3218
3343
 
@@ -3235,7 +3360,7 @@ ___
3235
3360
 
3236
3361
  #### Defined in
3237
3362
 
3238
- [sleep.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/sleep.ts#L6)
3363
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/sleep.ts#L6)
3239
3364
 
3240
3365
  ___
3241
3366
 
@@ -3264,7 +3389,7 @@ ___
3264
3389
 
3265
3390
  #### Defined in
3266
3391
 
3267
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/splitArray.ts#L4)
3392
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/splitArray.ts#L4)
3268
3393
 
3269
3394
  ___
3270
3395
 
@@ -3287,7 +3412,7 @@ ___
3287
3412
 
3288
3413
  #### Defined in
3289
3414
 
3290
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/stringTrim.ts#L6)
3415
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/stringTrim.ts#L6)
3291
3416
 
3292
3417
  ___
3293
3418
 
@@ -3309,7 +3434,7 @@ ___
3309
3434
 
3310
3435
  #### Defined in
3311
3436
 
3312
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/575dd13/src/stringifyQuery.ts#L7)
3437
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/585cbee/src/stringifyQuery.ts#L7)
3313
3438
 
3314
3439
  ___
3315
3440
 
@@ -3333,7 +3458,7 @@ ___
3333
3458
 
3334
3459
  #### Defined in
3335
3460
 
3336
- [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/stringifyQueryString.ts#L6)
3461
+ [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/stringifyQueryString.ts#L6)
3337
3462
 
3338
3463
  ___
3339
3464
 
@@ -3377,7 +3502,7 @@ ___
3377
3502
 
3378
3503
  #### Defined in
3379
3504
 
3380
- [throttle.ts:48](https://github.com/daysnap/utils/blob/575dd13/src/throttle.ts#L48)
3505
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/585cbee/src/throttle.ts#L48)
3381
3506
 
3382
3507
  ___
3383
3508
 
@@ -3420,7 +3545,7 @@ ___
3420
3545
 
3421
3546
  #### Defined in
3422
3547
 
3423
- [throttle.ts:5](https://github.com/daysnap/utils/blob/575dd13/src/throttle.ts#L5)
3548
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/585cbee/src/throttle.ts#L5)
3424
3549
 
3425
3550
  ___
3426
3551
 
@@ -3463,7 +3588,7 @@ ___
3463
3588
 
3464
3589
  #### Defined in
3465
3590
 
3466
- [throttle.ts:25](https://github.com/daysnap/utils/blob/575dd13/src/throttle.ts#L25)
3591
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/585cbee/src/throttle.ts#L25)
3467
3592
 
3468
3593
  ___
3469
3594
 
@@ -3485,7 +3610,7 @@ ___
3485
3610
 
3486
3611
  #### Defined in
3487
3612
 
3488
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/toCDB.ts#L4)
3613
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/toCDB.ts#L4)
3489
3614
 
3490
3615
  ___
3491
3616
 
@@ -3507,7 +3632,7 @@ ___
3507
3632
 
3508
3633
  #### Defined in
3509
3634
 
3510
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/toDBC.ts#L4)
3635
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/toDBC.ts#L4)
3511
3636
 
3512
3637
  ___
3513
3638
 
@@ -3531,7 +3656,7 @@ ___
3531
3656
 
3532
3657
  #### Defined in
3533
3658
 
3534
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/575dd13/src/typeOf.ts#L6)
3659
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/585cbee/src/typeOf.ts#L6)
3535
3660
 
3536
3661
  ___
3537
3662
 
@@ -3559,7 +3684,7 @@ ___
3559
3684
 
3560
3685
  #### Defined in
3561
3686
 
3562
- [withCache.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/withCache.ts#L4)
3687
+ [withCache.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/withCache.ts#L4)
3563
3688
 
3564
3689
  ___
3565
3690
 
@@ -3588,4 +3713,4 @@ ___
3588
3713
 
3589
3714
  #### Defined in
3590
3715
 
3591
- [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/575dd13/src/withPreventConsecutiveClicks.ts#L4)
3716
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/585cbee/src/withPreventConsecutiveClicks.ts#L4)