@daysnap/utils 0.1.8 → 0.1.9
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.
- package/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +173 -131
- package/es/chunk-HREC4YYI.js +23 -0
- package/es/filterEmptyValue.js +2 -2
- package/es/getRangeDate.d.ts +7 -0
- package/es/getRangeDate.js +9 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +28 -24
- package/lib/chunk-2DCEWABW.cjs +23 -0
- package/lib/filterEmptyValue.cjs +3 -3
- package/lib/getRangeDate.cjs +9 -0
- package/lib/getRangeDate.d.cts +7 -0
- package/lib/index.cjs +25 -21
- package/lib/index.d.cts +1 -0
- package/package.json +1 -1
- package/es/{chunk-SMNIKKYG.js → chunk-4WQPAGCE.js} +3 -3
- package/lib/{chunk-4P4EJVBW.cjs → chunk-6LOBB2KW.cjs} +3 -3
package/docs/modules.md
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
- [getRandom](modules.md#getrandom)
|
|
66
66
|
- [getRandomColor](modules.md#getrandomcolor)
|
|
67
67
|
- [getRandomNumber](modules.md#getrandomnumber)
|
|
68
|
+
- [getRangeDate](modules.md#getrangedate)
|
|
68
69
|
- [getScrollTop](modules.md#getscrolltop)
|
|
69
70
|
- [getVideoInfo](modules.md#getvideoinfo)
|
|
70
71
|
- [getWeekday](modules.md#getweekday)
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
|
|
162
163
|
#### Defined in
|
|
163
164
|
|
|
164
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
165
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/c7e0698/src/eventBus.ts#L38)
|
|
165
166
|
|
|
166
167
|
___
|
|
167
168
|
|
|
@@ -171,7 +172,7 @@ ___
|
|
|
171
172
|
|
|
172
173
|
#### Defined in
|
|
173
174
|
|
|
174
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
175
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/c7e0698/src/trap.ts#L15)
|
|
175
176
|
|
|
176
177
|
## Functions
|
|
177
178
|
|
|
@@ -209,7 +210,7 @@ res = { '1': '男', '2': '女' }
|
|
|
209
210
|
|
|
210
211
|
#### Defined in
|
|
211
212
|
|
|
212
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
213
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/c7e0698/src/ato.ts#L12)
|
|
213
214
|
|
|
214
215
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
215
216
|
|
|
@@ -234,7 +235,7 @@ res = { '1': '男', '2': '女' }
|
|
|
234
235
|
|
|
235
236
|
#### Defined in
|
|
236
237
|
|
|
237
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
238
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/c7e0698/src/ato.ts#L16)
|
|
238
239
|
|
|
239
240
|
___
|
|
240
241
|
|
|
@@ -254,7 +255,7 @@ ___
|
|
|
254
255
|
|
|
255
256
|
#### Defined in
|
|
256
257
|
|
|
257
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
258
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/c7e0698/src/decode.ts#L41)
|
|
258
259
|
|
|
259
260
|
___
|
|
260
261
|
|
|
@@ -277,7 +278,7 @@ base64 转 blob
|
|
|
277
278
|
|
|
278
279
|
#### Defined in
|
|
279
280
|
|
|
280
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
281
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/base64ToBlob.ts#L6)
|
|
281
282
|
|
|
282
283
|
___
|
|
283
284
|
|
|
@@ -299,7 +300,7 @@ blob 转 base64
|
|
|
299
300
|
|
|
300
301
|
#### Defined in
|
|
301
302
|
|
|
302
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
303
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/blobToBase64.ts#L4)
|
|
303
304
|
|
|
304
305
|
___
|
|
305
306
|
|
|
@@ -319,7 +320,7 @@ ___
|
|
|
319
320
|
|
|
320
321
|
#### Defined in
|
|
321
322
|
|
|
322
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
323
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/decode.ts#L8)
|
|
323
324
|
|
|
324
325
|
___
|
|
325
326
|
|
|
@@ -360,7 +361,7 @@ ___
|
|
|
360
361
|
|
|
361
362
|
#### Defined in
|
|
362
363
|
|
|
363
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
364
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/cached.ts#L5)
|
|
364
365
|
|
|
365
366
|
___
|
|
366
367
|
|
|
@@ -383,7 +384,7 @@ camelCase('hello-world') => helloWorld
|
|
|
383
384
|
|
|
384
385
|
#### Defined in
|
|
385
386
|
|
|
386
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
387
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/camelCase.ts#L5)
|
|
387
388
|
|
|
388
389
|
___
|
|
389
390
|
|
|
@@ -407,7 +408,7 @@ canvas 转 blob 文件
|
|
|
407
408
|
|
|
408
409
|
#### Defined in
|
|
409
410
|
|
|
410
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
411
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/canvasToBlob.ts#L4)
|
|
411
412
|
|
|
412
413
|
___
|
|
413
414
|
|
|
@@ -430,7 +431,7 @@ capitalize('hello world') => Hello world
|
|
|
430
431
|
|
|
431
432
|
#### Defined in
|
|
432
433
|
|
|
433
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
434
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/capitalize.ts#L5)
|
|
434
435
|
|
|
435
436
|
___
|
|
436
437
|
|
|
@@ -455,7 +456,7 @@ ___
|
|
|
455
456
|
|
|
456
457
|
#### Defined in
|
|
457
458
|
|
|
458
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
459
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/chooseMedia.ts#L5)
|
|
459
460
|
|
|
460
461
|
___
|
|
461
462
|
|
|
@@ -479,7 +480,7 @@ ___
|
|
|
479
480
|
|
|
480
481
|
#### Defined in
|
|
481
482
|
|
|
482
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
483
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/clamp.ts#L7)
|
|
483
484
|
|
|
484
485
|
___
|
|
485
486
|
|
|
@@ -507,7 +508,7 @@ ___
|
|
|
507
508
|
|
|
508
509
|
#### Defined in
|
|
509
510
|
|
|
510
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
511
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/clone.ts#L8)
|
|
511
512
|
|
|
512
513
|
___
|
|
513
514
|
|
|
@@ -535,7 +536,7 @@ ___
|
|
|
535
536
|
|
|
536
537
|
#### Defined in
|
|
537
538
|
|
|
538
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
539
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/cloneSimple.ts#L7)
|
|
539
540
|
|
|
540
541
|
___
|
|
541
542
|
|
|
@@ -557,7 +558,7 @@ ___
|
|
|
557
558
|
|
|
558
559
|
#### Defined in
|
|
559
560
|
|
|
560
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
561
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/createHexColorByHash.ts#L4)
|
|
561
562
|
|
|
562
563
|
___
|
|
563
564
|
|
|
@@ -583,7 +584,7 @@ ___
|
|
|
583
584
|
|
|
584
585
|
#### Defined in
|
|
585
586
|
|
|
586
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
587
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/compareVersion.ts#L9)
|
|
587
588
|
|
|
588
589
|
___
|
|
589
590
|
|
|
@@ -606,7 +607,7 @@ ___
|
|
|
606
607
|
|
|
607
608
|
#### Defined in
|
|
608
609
|
|
|
609
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
610
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/compressImage.ts#L4)
|
|
610
611
|
|
|
611
612
|
___
|
|
612
613
|
|
|
@@ -634,7 +635,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
634
635
|
|
|
635
636
|
#### Defined in
|
|
636
637
|
|
|
637
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
638
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/createFactory.ts#L4)
|
|
638
639
|
|
|
639
640
|
___
|
|
640
641
|
|
|
@@ -672,7 +673,7 @@ ___
|
|
|
672
673
|
|
|
673
674
|
#### Defined in
|
|
674
675
|
|
|
675
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
676
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/createLinearFunction.ts#L9)
|
|
676
677
|
|
|
677
678
|
___
|
|
678
679
|
|
|
@@ -704,7 +705,7 @@ ___
|
|
|
704
705
|
|
|
705
706
|
#### Defined in
|
|
706
707
|
|
|
707
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
708
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/c7e0698/src/trap.ts#L49)
|
|
708
709
|
|
|
709
710
|
___
|
|
710
711
|
|
|
@@ -767,7 +768,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
767
768
|
|
|
768
769
|
#### Defined in
|
|
769
770
|
|
|
770
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
771
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/createWithLoading.ts#L11)
|
|
771
772
|
|
|
772
773
|
___
|
|
773
774
|
|
|
@@ -810,7 +811,7 @@ ___
|
|
|
810
811
|
|
|
811
812
|
#### Defined in
|
|
812
813
|
|
|
813
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
814
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/debounce.ts#L5)
|
|
814
815
|
|
|
815
816
|
___
|
|
816
817
|
|
|
@@ -834,7 +835,7 @@ ___
|
|
|
834
835
|
|
|
835
836
|
#### Defined in
|
|
836
837
|
|
|
837
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
838
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/downloadFile.ts#L4)
|
|
838
839
|
|
|
839
840
|
___
|
|
840
841
|
|
|
@@ -863,7 +864,7 @@ ___
|
|
|
863
864
|
|
|
864
865
|
#### Defined in
|
|
865
866
|
|
|
866
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
867
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/each.ts#L4)
|
|
867
868
|
|
|
868
869
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
869
870
|
|
|
@@ -886,7 +887,7 @@ ___
|
|
|
886
887
|
|
|
887
888
|
#### Defined in
|
|
888
889
|
|
|
889
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
890
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/each.ts#L8)
|
|
890
891
|
|
|
891
892
|
___
|
|
892
893
|
|
|
@@ -904,7 +905,7 @@ ___
|
|
|
904
905
|
|
|
905
906
|
#### Defined in
|
|
906
907
|
|
|
907
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
908
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/exitFullscreen.ts#L6)
|
|
908
909
|
|
|
909
910
|
___
|
|
910
911
|
|
|
@@ -933,7 +934,7 @@ ___
|
|
|
933
934
|
|
|
934
935
|
#### Defined in
|
|
935
936
|
|
|
936
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
937
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/storage/factory.ts#L11)
|
|
937
938
|
|
|
938
939
|
___
|
|
939
940
|
|
|
@@ -955,7 +956,7 @@ ___
|
|
|
955
956
|
|
|
956
957
|
#### Defined in
|
|
957
958
|
|
|
958
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
959
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterBankCardNo.ts#L4)
|
|
959
960
|
|
|
960
961
|
___
|
|
961
962
|
|
|
@@ -977,7 +978,7 @@ ___
|
|
|
977
978
|
|
|
978
979
|
#### Defined in
|
|
979
980
|
|
|
980
|
-
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/
|
|
981
|
+
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterCRLF.ts#L4)
|
|
981
982
|
|
|
982
983
|
___
|
|
983
984
|
|
|
@@ -999,7 +1000,7 @@ ___
|
|
|
999
1000
|
|
|
1000
1001
|
#### Defined in
|
|
1001
1002
|
|
|
1002
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1003
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterEmoji.ts#L4)
|
|
1003
1004
|
|
|
1004
1005
|
___
|
|
1005
1006
|
|
|
@@ -1022,7 +1023,7 @@ ___
|
|
|
1022
1023
|
|
|
1023
1024
|
#### Defined in
|
|
1024
1025
|
|
|
1025
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1026
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/c7e0698/src/filterEmptyValue.ts#L12)
|
|
1026
1027
|
|
|
1027
1028
|
___
|
|
1028
1029
|
|
|
@@ -1045,7 +1046,7 @@ ___
|
|
|
1045
1046
|
|
|
1046
1047
|
#### Defined in
|
|
1047
1048
|
|
|
1048
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1049
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/filterIdCard.ts#L5)
|
|
1049
1050
|
|
|
1050
1051
|
___
|
|
1051
1052
|
|
|
@@ -1067,7 +1068,7 @@ ___
|
|
|
1067
1068
|
|
|
1068
1069
|
#### Defined in
|
|
1069
1070
|
|
|
1070
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1071
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterName.ts#L4)
|
|
1071
1072
|
|
|
1072
1073
|
___
|
|
1073
1074
|
|
|
@@ -1092,7 +1093,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1092
1093
|
|
|
1093
1094
|
#### Defined in
|
|
1094
1095
|
|
|
1095
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1096
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/filterPhone.ts#L6)
|
|
1096
1097
|
|
|
1097
1098
|
___
|
|
1098
1099
|
|
|
@@ -1119,7 +1120,7 @@ str = '131****8888'
|
|
|
1119
1120
|
|
|
1120
1121
|
#### Defined in
|
|
1121
1122
|
|
|
1122
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1123
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/filterString.ts#L6)
|
|
1123
1124
|
|
|
1124
1125
|
___
|
|
1125
1126
|
|
|
@@ -1142,7 +1143,7 @@ ___
|
|
|
1142
1143
|
|
|
1143
1144
|
#### Defined in
|
|
1144
1145
|
|
|
1145
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1146
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/formatAmount.ts#L4)
|
|
1146
1147
|
|
|
1147
1148
|
___
|
|
1148
1149
|
|
|
@@ -1166,7 +1167,7 @@ ___
|
|
|
1166
1167
|
|
|
1167
1168
|
#### Defined in
|
|
1168
1169
|
|
|
1169
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1170
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/formatDate.ts#L7)
|
|
1170
1171
|
|
|
1171
1172
|
___
|
|
1172
1173
|
|
|
@@ -1197,7 +1198,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1197
1198
|
|
|
1198
1199
|
#### Defined in
|
|
1199
1200
|
|
|
1200
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1201
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/formatDateStr.ts#L6)
|
|
1201
1202
|
|
|
1202
1203
|
___
|
|
1203
1204
|
|
|
@@ -1217,7 +1218,7 @@ ___
|
|
|
1217
1218
|
|
|
1218
1219
|
#### Defined in
|
|
1219
1220
|
|
|
1220
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1221
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/formartDateToZN.ts#L4)
|
|
1221
1222
|
|
|
1222
1223
|
___
|
|
1223
1224
|
|
|
@@ -1240,7 +1241,7 @@ ___
|
|
|
1240
1241
|
|
|
1241
1242
|
#### Defined in
|
|
1242
1243
|
|
|
1243
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1244
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/formatFileSize.ts#L4)
|
|
1244
1245
|
|
|
1245
1246
|
___
|
|
1246
1247
|
|
|
@@ -1265,7 +1266,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1265
1266
|
|
|
1266
1267
|
#### Defined in
|
|
1267
1268
|
|
|
1268
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1269
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/formatMessage.ts#L11)
|
|
1269
1270
|
|
|
1270
1271
|
___
|
|
1271
1272
|
|
|
@@ -1297,7 +1298,7 @@ rest = { xxx: 1 }
|
|
|
1297
1298
|
|
|
1298
1299
|
#### Defined in
|
|
1299
1300
|
|
|
1300
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1301
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/formatPathParams.ts#L8)
|
|
1301
1302
|
|
|
1302
1303
|
___
|
|
1303
1304
|
|
|
@@ -1319,7 +1320,7 @@ ___
|
|
|
1319
1320
|
|
|
1320
1321
|
#### Defined in
|
|
1321
1322
|
|
|
1322
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1323
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getBlobByUrl.ts#L4)
|
|
1323
1324
|
|
|
1324
1325
|
___
|
|
1325
1326
|
|
|
@@ -1342,7 +1343,7 @@ ___
|
|
|
1342
1343
|
|
|
1343
1344
|
#### Defined in
|
|
1344
1345
|
|
|
1345
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1346
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/storage/index.ts#L9)
|
|
1346
1347
|
|
|
1347
1348
|
___
|
|
1348
1349
|
|
|
@@ -1364,7 +1365,7 @@ ___
|
|
|
1364
1365
|
|
|
1365
1366
|
#### Defined in
|
|
1366
1367
|
|
|
1367
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1368
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getDayMillisecond.ts#L4)
|
|
1368
1369
|
|
|
1369
1370
|
___
|
|
1370
1371
|
|
|
@@ -1387,7 +1388,7 @@ ___
|
|
|
1387
1388
|
|
|
1388
1389
|
#### Defined in
|
|
1389
1390
|
|
|
1390
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1391
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getImageInfo.ts#L4)
|
|
1391
1392
|
|
|
1392
1393
|
___
|
|
1393
1394
|
|
|
@@ -1410,7 +1411,7 @@ ___
|
|
|
1410
1411
|
|
|
1411
1412
|
#### Defined in
|
|
1412
1413
|
|
|
1413
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1414
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/storage/index.ts#L9)
|
|
1414
1415
|
|
|
1415
1416
|
___
|
|
1416
1417
|
|
|
@@ -1433,7 +1434,7 @@ ___
|
|
|
1433
1434
|
|
|
1434
1435
|
#### Defined in
|
|
1435
1436
|
|
|
1436
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1437
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/getRandom.ts#L7)
|
|
1437
1438
|
|
|
1438
1439
|
___
|
|
1439
1440
|
|
|
@@ -1449,7 +1450,7 @@ ___
|
|
|
1449
1450
|
|
|
1450
1451
|
#### Defined in
|
|
1451
1452
|
|
|
1452
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1453
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getRandomColor.ts#L4)
|
|
1453
1454
|
|
|
1454
1455
|
___
|
|
1455
1456
|
|
|
@@ -1471,7 +1472,48 @@ ___
|
|
|
1471
1472
|
|
|
1472
1473
|
#### Defined in
|
|
1473
1474
|
|
|
1474
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1475
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/getRandomNumber.ts#L7)
|
|
1476
|
+
|
|
1477
|
+
___
|
|
1478
|
+
|
|
1479
|
+
### getRangeDate
|
|
1480
|
+
|
|
1481
|
+
▸ **getRangeDate**(`sv`, `ev`): `Date`[]
|
|
1482
|
+
|
|
1483
|
+
获取一个时间段的日期
|
|
1484
|
+
|
|
1485
|
+
#### Parameters
|
|
1486
|
+
|
|
1487
|
+
| Name | Type |
|
|
1488
|
+
| :------ | :------ |
|
|
1489
|
+
| `sv` | `string` \| `number` \| `Date` |
|
|
1490
|
+
| `ev` | `string` \| `number` \| `Date` |
|
|
1491
|
+
|
|
1492
|
+
#### Returns
|
|
1493
|
+
|
|
1494
|
+
`Date`[]
|
|
1495
|
+
|
|
1496
|
+
#### Defined in
|
|
1497
|
+
|
|
1498
|
+
getRangeDate.ts:7
|
|
1499
|
+
|
|
1500
|
+
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1501
|
+
|
|
1502
|
+
#### Parameters
|
|
1503
|
+
|
|
1504
|
+
| Name | Type |
|
|
1505
|
+
| :------ | :------ |
|
|
1506
|
+
| `sv` | `string` \| `number` \| `Date` |
|
|
1507
|
+
| `ev` | `string` \| `number` \| `Date` |
|
|
1508
|
+
| `fmt` | `string` |
|
|
1509
|
+
|
|
1510
|
+
#### Returns
|
|
1511
|
+
|
|
1512
|
+
`string`[]
|
|
1513
|
+
|
|
1514
|
+
#### Defined in
|
|
1515
|
+
|
|
1516
|
+
getRangeDate.ts:11
|
|
1475
1517
|
|
|
1476
1518
|
___
|
|
1477
1519
|
|
|
@@ -1487,7 +1529,7 @@ ___
|
|
|
1487
1529
|
|
|
1488
1530
|
#### Defined in
|
|
1489
1531
|
|
|
1490
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1532
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getScrollTop.ts#L4)
|
|
1491
1533
|
|
|
1492
1534
|
___
|
|
1493
1535
|
|
|
@@ -1509,7 +1551,7 @@ ___
|
|
|
1509
1551
|
|
|
1510
1552
|
#### Defined in
|
|
1511
1553
|
|
|
1512
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1554
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getVideoInfo.ts#L4)
|
|
1513
1555
|
|
|
1514
1556
|
___
|
|
1515
1557
|
|
|
@@ -1532,7 +1574,7 @@ ___
|
|
|
1532
1574
|
|
|
1533
1575
|
#### Defined in
|
|
1534
1576
|
|
|
1535
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1577
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/getWeekday.ts#L6)
|
|
1536
1578
|
|
|
1537
1579
|
___
|
|
1538
1580
|
|
|
@@ -1548,7 +1590,7 @@ ___
|
|
|
1548
1590
|
|
|
1549
1591
|
#### Defined in
|
|
1550
1592
|
|
|
1551
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1593
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/inBrowser.ts#L4)
|
|
1552
1594
|
|
|
1553
1595
|
___
|
|
1554
1596
|
|
|
@@ -1570,7 +1612,7 @@ ___
|
|
|
1570
1612
|
|
|
1571
1613
|
#### Defined in
|
|
1572
1614
|
|
|
1573
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1615
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/insertLink.ts#L4)
|
|
1574
1616
|
|
|
1575
1617
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1576
1618
|
|
|
@@ -1587,7 +1629,7 @@ ___
|
|
|
1587
1629
|
|
|
1588
1630
|
#### Defined in
|
|
1589
1631
|
|
|
1590
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1632
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/insertLink.ts#L5)
|
|
1591
1633
|
|
|
1592
1634
|
___
|
|
1593
1635
|
|
|
@@ -1609,7 +1651,7 @@ ___
|
|
|
1609
1651
|
|
|
1610
1652
|
#### Defined in
|
|
1611
1653
|
|
|
1612
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1654
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/insertScript.ts#L4)
|
|
1613
1655
|
|
|
1614
1656
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1615
1657
|
|
|
@@ -1626,7 +1668,7 @@ ___
|
|
|
1626
1668
|
|
|
1627
1669
|
#### Defined in
|
|
1628
1670
|
|
|
1629
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1671
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/insertScript.ts#L5)
|
|
1630
1672
|
|
|
1631
1673
|
___
|
|
1632
1674
|
|
|
@@ -1648,7 +1690,7 @@ ___
|
|
|
1648
1690
|
|
|
1649
1691
|
#### Defined in
|
|
1650
1692
|
|
|
1651
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1693
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/insertStyle.ts#L4)
|
|
1652
1694
|
|
|
1653
1695
|
___
|
|
1654
1696
|
|
|
@@ -1677,7 +1719,7 @@ isAmount('1.123') => false
|
|
|
1677
1719
|
|
|
1678
1720
|
#### Defined in
|
|
1679
1721
|
|
|
1680
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1722
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/isAmount.ts#L11)
|
|
1681
1723
|
|
|
1682
1724
|
___
|
|
1683
1725
|
|
|
@@ -1693,7 +1735,7 @@ ___
|
|
|
1693
1735
|
|
|
1694
1736
|
#### Defined in
|
|
1695
1737
|
|
|
1696
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
1738
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isAndroid.ts#L4)
|
|
1697
1739
|
|
|
1698
1740
|
___
|
|
1699
1741
|
|
|
@@ -1717,7 +1759,7 @@ val is any[]
|
|
|
1717
1759
|
|
|
1718
1760
|
#### Defined in
|
|
1719
1761
|
|
|
1720
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1762
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isArray.ts#L6)
|
|
1721
1763
|
|
|
1722
1764
|
___
|
|
1723
1765
|
|
|
@@ -1739,7 +1781,7 @@ val is boolean
|
|
|
1739
1781
|
|
|
1740
1782
|
#### Defined in
|
|
1741
1783
|
|
|
1742
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
1784
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isBoolean.ts#L5)
|
|
1743
1785
|
|
|
1744
1786
|
___
|
|
1745
1787
|
|
|
@@ -1761,7 +1803,7 @@ ___
|
|
|
1761
1803
|
|
|
1762
1804
|
#### Defined in
|
|
1763
1805
|
|
|
1764
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
1806
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isChinese.ts#L4)
|
|
1765
1807
|
|
|
1766
1808
|
___
|
|
1767
1809
|
|
|
@@ -1783,7 +1825,7 @@ val is Date
|
|
|
1783
1825
|
|
|
1784
1826
|
#### Defined in
|
|
1785
1827
|
|
|
1786
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1828
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isDate.ts#L4)
|
|
1787
1829
|
|
|
1788
1830
|
___
|
|
1789
1831
|
|
|
@@ -1805,7 +1847,7 @@ ___
|
|
|
1805
1847
|
|
|
1806
1848
|
#### Defined in
|
|
1807
1849
|
|
|
1808
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
1850
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isEmail.ts#L4)
|
|
1809
1851
|
|
|
1810
1852
|
___
|
|
1811
1853
|
|
|
@@ -1827,7 +1869,7 @@ ___
|
|
|
1827
1869
|
|
|
1828
1870
|
#### Defined in
|
|
1829
1871
|
|
|
1830
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
1872
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isEmpty.ts#L6)
|
|
1831
1873
|
|
|
1832
1874
|
___
|
|
1833
1875
|
|
|
@@ -1849,7 +1891,7 @@ ___
|
|
|
1849
1891
|
|
|
1850
1892
|
#### Defined in
|
|
1851
1893
|
|
|
1852
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1894
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isEmptyArray.ts#L6)
|
|
1853
1895
|
|
|
1854
1896
|
___
|
|
1855
1897
|
|
|
@@ -1871,7 +1913,7 @@ ___
|
|
|
1871
1913
|
|
|
1872
1914
|
#### Defined in
|
|
1873
1915
|
|
|
1874
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
1916
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isEmptyObject.ts#L5)
|
|
1875
1917
|
|
|
1876
1918
|
___
|
|
1877
1919
|
|
|
@@ -1893,7 +1935,7 @@ val is Error
|
|
|
1893
1935
|
|
|
1894
1936
|
#### Defined in
|
|
1895
1937
|
|
|
1896
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
1938
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isError.ts#L4)
|
|
1897
1939
|
|
|
1898
1940
|
___
|
|
1899
1941
|
|
|
@@ -1915,7 +1957,7 @@ val is Function
|
|
|
1915
1957
|
|
|
1916
1958
|
#### Defined in
|
|
1917
1959
|
|
|
1918
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
1960
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isFunction.ts#L4)
|
|
1919
1961
|
|
|
1920
1962
|
___
|
|
1921
1963
|
|
|
@@ -1933,7 +1975,7 @@ ___
|
|
|
1933
1975
|
|
|
1934
1976
|
#### Defined in
|
|
1935
1977
|
|
|
1936
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
1978
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isIE.ts#L6)
|
|
1937
1979
|
|
|
1938
1980
|
___
|
|
1939
1981
|
|
|
@@ -1949,7 +1991,7 @@ ___
|
|
|
1949
1991
|
|
|
1950
1992
|
#### Defined in
|
|
1951
1993
|
|
|
1952
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
1994
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isIOS.ts#L4)
|
|
1953
1995
|
|
|
1954
1996
|
___
|
|
1955
1997
|
|
|
@@ -1971,7 +2013,7 @@ ___
|
|
|
1971
2013
|
|
|
1972
2014
|
#### Defined in
|
|
1973
2015
|
|
|
1974
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2016
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isIdCard.ts#L4)
|
|
1975
2017
|
|
|
1976
2018
|
___
|
|
1977
2019
|
|
|
@@ -1993,7 +2035,7 @@ ___
|
|
|
1993
2035
|
|
|
1994
2036
|
#### Defined in
|
|
1995
2037
|
|
|
1996
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2038
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/isJSONString.ts#L7)
|
|
1997
2039
|
|
|
1998
2040
|
___
|
|
1999
2041
|
|
|
@@ -2015,7 +2057,7 @@ ___
|
|
|
2015
2057
|
|
|
2016
2058
|
#### Defined in
|
|
2017
2059
|
|
|
2018
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2060
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isLan.ts#L5)
|
|
2019
2061
|
|
|
2020
2062
|
___
|
|
2021
2063
|
|
|
@@ -2037,7 +2079,7 @@ ___
|
|
|
2037
2079
|
|
|
2038
2080
|
#### Defined in
|
|
2039
2081
|
|
|
2040
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2082
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isLicenseCode.ts#L5)
|
|
2041
2083
|
|
|
2042
2084
|
___
|
|
2043
2085
|
|
|
@@ -2053,7 +2095,7 @@ ___
|
|
|
2053
2095
|
|
|
2054
2096
|
#### Defined in
|
|
2055
2097
|
|
|
2056
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2098
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isMobile.ts#L4)
|
|
2057
2099
|
|
|
2058
2100
|
___
|
|
2059
2101
|
|
|
@@ -2076,7 +2118,7 @@ ___
|
|
|
2076
2118
|
|
|
2077
2119
|
#### Defined in
|
|
2078
2120
|
|
|
2079
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2121
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/isNativeFunction.ts#L7)
|
|
2080
2122
|
|
|
2081
2123
|
___
|
|
2082
2124
|
|
|
@@ -2098,7 +2140,7 @@ val is null
|
|
|
2098
2140
|
|
|
2099
2141
|
#### Defined in
|
|
2100
2142
|
|
|
2101
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2143
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isNull.ts#L4)
|
|
2102
2144
|
|
|
2103
2145
|
___
|
|
2104
2146
|
|
|
@@ -2120,7 +2162,7 @@ val is number
|
|
|
2120
2162
|
|
|
2121
2163
|
#### Defined in
|
|
2122
2164
|
|
|
2123
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2165
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isNumber.ts#L5)
|
|
2124
2166
|
|
|
2125
2167
|
___
|
|
2126
2168
|
|
|
@@ -2142,7 +2184,7 @@ val is Record<string, any\>
|
|
|
2142
2184
|
|
|
2143
2185
|
#### Defined in
|
|
2144
2186
|
|
|
2145
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2187
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isObject.ts#L4)
|
|
2146
2188
|
|
|
2147
2189
|
___
|
|
2148
2190
|
|
|
@@ -2164,7 +2206,7 @@ ___
|
|
|
2164
2206
|
|
|
2165
2207
|
#### Defined in
|
|
2166
2208
|
|
|
2167
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2209
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isPhone.ts#L4)
|
|
2168
2210
|
|
|
2169
2211
|
___
|
|
2170
2212
|
|
|
@@ -2192,7 +2234,7 @@ val is Promise<T\>
|
|
|
2192
2234
|
|
|
2193
2235
|
#### Defined in
|
|
2194
2236
|
|
|
2195
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2237
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isPromise.ts#L4)
|
|
2196
2238
|
|
|
2197
2239
|
___
|
|
2198
2240
|
|
|
@@ -2214,7 +2256,7 @@ val is RegExp
|
|
|
2214
2256
|
|
|
2215
2257
|
#### Defined in
|
|
2216
2258
|
|
|
2217
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2259
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isRegExp.ts#L4)
|
|
2218
2260
|
|
|
2219
2261
|
___
|
|
2220
2262
|
|
|
@@ -2236,7 +2278,7 @@ val is string
|
|
|
2236
2278
|
|
|
2237
2279
|
#### Defined in
|
|
2238
2280
|
|
|
2239
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2281
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isString.ts#L4)
|
|
2240
2282
|
|
|
2241
2283
|
___
|
|
2242
2284
|
|
|
@@ -2265,7 +2307,7 @@ val is T
|
|
|
2265
2307
|
|
|
2266
2308
|
#### Defined in
|
|
2267
2309
|
|
|
2268
|
-
isType.ts:4
|
|
2310
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isType.ts#L4)
|
|
2269
2311
|
|
|
2270
2312
|
___
|
|
2271
2313
|
|
|
@@ -2287,7 +2329,7 @@ val is undefined
|
|
|
2287
2329
|
|
|
2288
2330
|
#### Defined in
|
|
2289
2331
|
|
|
2290
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2332
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isUndefined.ts#L4)
|
|
2291
2333
|
|
|
2292
2334
|
___
|
|
2293
2335
|
|
|
@@ -2331,7 +2373,7 @@ ___
|
|
|
2331
2373
|
|
|
2332
2374
|
#### Defined in
|
|
2333
2375
|
|
|
2334
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2376
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isValidDate.ts#L6)
|
|
2335
2377
|
|
|
2336
2378
|
___
|
|
2337
2379
|
|
|
@@ -2347,7 +2389,7 @@ ___
|
|
|
2347
2389
|
|
|
2348
2390
|
#### Defined in
|
|
2349
2391
|
|
|
2350
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2392
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isWeChat.ts#L4)
|
|
2351
2393
|
|
|
2352
2394
|
___
|
|
2353
2395
|
|
|
@@ -2364,7 +2406,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2364
2406
|
|
|
2365
2407
|
#### Defined in
|
|
2366
2408
|
|
|
2367
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2409
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isWeChatMiniProgram.ts#L5)
|
|
2368
2410
|
|
|
2369
2411
|
___
|
|
2370
2412
|
|
|
@@ -2388,7 +2430,7 @@ ___
|
|
|
2388
2430
|
|
|
2389
2431
|
#### Defined in
|
|
2390
2432
|
|
|
2391
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2433
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/c7e0698/src/isWeChat.ts#L12)
|
|
2392
2434
|
|
|
2393
2435
|
___
|
|
2394
2436
|
|
|
@@ -2410,7 +2452,7 @@ val is Window
|
|
|
2410
2452
|
|
|
2411
2453
|
#### Defined in
|
|
2412
2454
|
|
|
2413
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2455
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isWindow.ts#L5)
|
|
2414
2456
|
|
|
2415
2457
|
___
|
|
2416
2458
|
|
|
@@ -2433,7 +2475,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2433
2475
|
|
|
2434
2476
|
#### Defined in
|
|
2435
2477
|
|
|
2436
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2478
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/kebabCase.ts#L5)
|
|
2437
2479
|
|
|
2438
2480
|
___
|
|
2439
2481
|
|
|
@@ -2462,7 +2504,7 @@ list 生成器,快速生成数据
|
|
|
2462
2504
|
|
|
2463
2505
|
#### Defined in
|
|
2464
2506
|
|
|
2465
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2507
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/listGenerator.ts#L5)
|
|
2466
2508
|
|
|
2467
2509
|
___
|
|
2468
2510
|
|
|
@@ -2482,7 +2524,7 @@ ___
|
|
|
2482
2524
|
|
|
2483
2525
|
#### Defined in
|
|
2484
2526
|
|
|
2485
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2527
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/c7e0698/src/makePhoneCall.ts#L1)
|
|
2486
2528
|
|
|
2487
2529
|
___
|
|
2488
2530
|
|
|
@@ -2507,7 +2549,7 @@ ___
|
|
|
2507
2549
|
|
|
2508
2550
|
#### Defined in
|
|
2509
2551
|
|
|
2510
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2552
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/c7e0698/src/mousewheel.ts#L22)
|
|
2511
2553
|
|
|
2512
2554
|
___
|
|
2513
2555
|
|
|
@@ -2523,7 +2565,7 @@ ___
|
|
|
2523
2565
|
|
|
2524
2566
|
#### Defined in
|
|
2525
2567
|
|
|
2526
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2568
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/nf.ts#L4)
|
|
2527
2569
|
|
|
2528
2570
|
___
|
|
2529
2571
|
|
|
@@ -2547,7 +2589,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2547
2589
|
|
|
2548
2590
|
#### Defined in
|
|
2549
2591
|
|
|
2550
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
2592
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/normalizeDate.ts#L8)
|
|
2551
2593
|
|
|
2552
2594
|
___
|
|
2553
2595
|
|
|
@@ -2569,7 +2611,7 @@ ___
|
|
|
2569
2611
|
|
|
2570
2612
|
#### Defined in
|
|
2571
2613
|
|
|
2572
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2614
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/normalizePath.ts#L4)
|
|
2573
2615
|
|
|
2574
2616
|
___
|
|
2575
2617
|
|
|
@@ -2599,7 +2641,7 @@ ___
|
|
|
2599
2641
|
|
|
2600
2642
|
#### Defined in
|
|
2601
2643
|
|
|
2602
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2644
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/omit.ts#L4)
|
|
2603
2645
|
|
|
2604
2646
|
___
|
|
2605
2647
|
|
|
@@ -2623,7 +2665,7 @@ ___
|
|
|
2623
2665
|
|
|
2624
2666
|
#### Defined in
|
|
2625
2667
|
|
|
2626
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2668
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/padding.ts#L7)
|
|
2627
2669
|
|
|
2628
2670
|
___
|
|
2629
2671
|
|
|
@@ -2649,7 +2691,7 @@ ___
|
|
|
2649
2691
|
|
|
2650
2692
|
#### Defined in
|
|
2651
2693
|
|
|
2652
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
2694
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/parseDate.ts#L5)
|
|
2653
2695
|
|
|
2654
2696
|
___
|
|
2655
2697
|
|
|
@@ -2672,7 +2714,7 @@ ___
|
|
|
2672
2714
|
|
|
2673
2715
|
#### Defined in
|
|
2674
2716
|
|
|
2675
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
2717
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/parseError.ts#L8)
|
|
2676
2718
|
|
|
2677
2719
|
___
|
|
2678
2720
|
|
|
@@ -2702,7 +2744,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
2702
2744
|
|
|
2703
2745
|
#### Defined in
|
|
2704
2746
|
|
|
2705
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2747
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/parseObject.ts#L5)
|
|
2706
2748
|
|
|
2707
2749
|
___
|
|
2708
2750
|
|
|
@@ -2731,7 +2773,7 @@ ___
|
|
|
2731
2773
|
|
|
2732
2774
|
#### Defined in
|
|
2733
2775
|
|
|
2734
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
2776
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/parsePath.ts#L6)
|
|
2735
2777
|
|
|
2736
2778
|
___
|
|
2737
2779
|
|
|
@@ -2754,7 +2796,7 @@ ___
|
|
|
2754
2796
|
|
|
2755
2797
|
#### Defined in
|
|
2756
2798
|
|
|
2757
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
2799
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/parseQuery.ts#L8)
|
|
2758
2800
|
|
|
2759
2801
|
___
|
|
2760
2802
|
|
|
@@ -2784,7 +2826,7 @@ ___
|
|
|
2784
2826
|
|
|
2785
2827
|
#### Defined in
|
|
2786
2828
|
|
|
2787
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
2829
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/parseQueryString.ts#L6)
|
|
2788
2830
|
|
|
2789
2831
|
___
|
|
2790
2832
|
|
|
@@ -2807,7 +2849,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
2807
2849
|
|
|
2808
2850
|
#### Defined in
|
|
2809
2851
|
|
|
2810
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
2852
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/pascalCase.ts#L8)
|
|
2811
2853
|
|
|
2812
2854
|
___
|
|
2813
2855
|
|
|
@@ -2837,7 +2879,7 @@ ___
|
|
|
2837
2879
|
|
|
2838
2880
|
#### Defined in
|
|
2839
2881
|
|
|
2840
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
2882
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/pick.ts#L4)
|
|
2841
2883
|
|
|
2842
2884
|
___
|
|
2843
2885
|
|
|
@@ -2860,7 +2902,7 @@ ___
|
|
|
2860
2902
|
|
|
2861
2903
|
#### Defined in
|
|
2862
2904
|
|
|
2863
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2905
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/replaceCrlf.ts#L4)
|
|
2864
2906
|
|
|
2865
2907
|
___
|
|
2866
2908
|
|
|
@@ -2884,7 +2926,7 @@ ___
|
|
|
2884
2926
|
|
|
2885
2927
|
#### Defined in
|
|
2886
2928
|
|
|
2887
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
2929
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/requestFullScreen.ts#L6)
|
|
2888
2930
|
|
|
2889
2931
|
___
|
|
2890
2932
|
|
|
@@ -2910,7 +2952,7 @@ reserve(0, '--') => 0
|
|
|
2910
2952
|
|
|
2911
2953
|
#### Defined in
|
|
2912
2954
|
|
|
2913
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
2955
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/reserve.ts#L8)
|
|
2914
2956
|
|
|
2915
2957
|
___
|
|
2916
2958
|
|
|
@@ -2934,7 +2976,7 @@ ___
|
|
|
2934
2976
|
|
|
2935
2977
|
#### Defined in
|
|
2936
2978
|
|
|
2937
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
2979
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/rgbToHex.ts#L4)
|
|
2938
2980
|
|
|
2939
2981
|
___
|
|
2940
2982
|
|
|
@@ -2957,7 +2999,7 @@ ___
|
|
|
2957
2999
|
|
|
2958
3000
|
#### Defined in
|
|
2959
3001
|
|
|
2960
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3002
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/round.ts#L6)
|
|
2961
3003
|
|
|
2962
3004
|
___
|
|
2963
3005
|
|
|
@@ -2973,7 +3015,7 @@ ___
|
|
|
2973
3015
|
|
|
2974
3016
|
#### Defined in
|
|
2975
3017
|
|
|
2976
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3018
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/scrollToTop.ts#L4)
|
|
2977
3019
|
|
|
2978
3020
|
___
|
|
2979
3021
|
|
|
@@ -2995,7 +3037,7 @@ ___
|
|
|
2995
3037
|
|
|
2996
3038
|
#### Defined in
|
|
2997
3039
|
|
|
2998
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3040
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/setScrollTop.ts#L4)
|
|
2999
3041
|
|
|
3000
3042
|
___
|
|
3001
3043
|
|
|
@@ -3018,7 +3060,7 @@ ___
|
|
|
3018
3060
|
|
|
3019
3061
|
#### Defined in
|
|
3020
3062
|
|
|
3021
|
-
[sleep.ts:6](https://github.com/daysnap/utils/blob/
|
|
3063
|
+
[sleep.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/sleep.ts#L6)
|
|
3022
3064
|
|
|
3023
3065
|
___
|
|
3024
3066
|
|
|
@@ -3047,7 +3089,7 @@ ___
|
|
|
3047
3089
|
|
|
3048
3090
|
#### Defined in
|
|
3049
3091
|
|
|
3050
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3092
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/splitArray.ts#L4)
|
|
3051
3093
|
|
|
3052
3094
|
___
|
|
3053
3095
|
|
|
@@ -3070,7 +3112,7 @@ ___
|
|
|
3070
3112
|
|
|
3071
3113
|
#### Defined in
|
|
3072
3114
|
|
|
3073
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3115
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/stringTrim.ts#L6)
|
|
3074
3116
|
|
|
3075
3117
|
___
|
|
3076
3118
|
|
|
@@ -3092,7 +3134,7 @@ ___
|
|
|
3092
3134
|
|
|
3093
3135
|
#### Defined in
|
|
3094
3136
|
|
|
3095
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3137
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/stringifyQuery.ts#L7)
|
|
3096
3138
|
|
|
3097
3139
|
___
|
|
3098
3140
|
|
|
@@ -3116,7 +3158,7 @@ ___
|
|
|
3116
3158
|
|
|
3117
3159
|
#### Defined in
|
|
3118
3160
|
|
|
3119
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3161
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/stringifyQueryString.ts#L6)
|
|
3120
3162
|
|
|
3121
3163
|
___
|
|
3122
3164
|
|
|
@@ -3160,7 +3202,7 @@ ___
|
|
|
3160
3202
|
|
|
3161
3203
|
#### Defined in
|
|
3162
3204
|
|
|
3163
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3205
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/c7e0698/src/throttle.ts#L48)
|
|
3164
3206
|
|
|
3165
3207
|
___
|
|
3166
3208
|
|
|
@@ -3203,7 +3245,7 @@ ___
|
|
|
3203
3245
|
|
|
3204
3246
|
#### Defined in
|
|
3205
3247
|
|
|
3206
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3248
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/throttle.ts#L5)
|
|
3207
3249
|
|
|
3208
3250
|
___
|
|
3209
3251
|
|
|
@@ -3246,7 +3288,7 @@ ___
|
|
|
3246
3288
|
|
|
3247
3289
|
#### Defined in
|
|
3248
3290
|
|
|
3249
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3291
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/c7e0698/src/throttle.ts#L25)
|
|
3250
3292
|
|
|
3251
3293
|
___
|
|
3252
3294
|
|
|
@@ -3268,7 +3310,7 @@ ___
|
|
|
3268
3310
|
|
|
3269
3311
|
#### Defined in
|
|
3270
3312
|
|
|
3271
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3313
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/toCDB.ts#L4)
|
|
3272
3314
|
|
|
3273
3315
|
___
|
|
3274
3316
|
|
|
@@ -3290,7 +3332,7 @@ ___
|
|
|
3290
3332
|
|
|
3291
3333
|
#### Defined in
|
|
3292
3334
|
|
|
3293
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3335
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/toDBC.ts#L4)
|
|
3294
3336
|
|
|
3295
3337
|
___
|
|
3296
3338
|
|
|
@@ -3314,7 +3356,7 @@ ___
|
|
|
3314
3356
|
|
|
3315
3357
|
#### Defined in
|
|
3316
3358
|
|
|
3317
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3359
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/typeOf.ts#L6)
|
|
3318
3360
|
|
|
3319
3361
|
___
|
|
3320
3362
|
|
|
@@ -3343,4 +3385,4 @@ ___
|
|
|
3343
3385
|
|
|
3344
3386
|
#### Defined in
|
|
3345
3387
|
|
|
3346
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3388
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/withPreventConsecutiveClicks.ts#L4)
|