@daysnap/utils 0.1.9 → 0.1.10
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 -133
- package/es/chunk-3IKNCOC3.js +18 -0
- package/es/getMonthBounds.d.ts +7 -0
- package/es/getMonthBounds.js +9 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +24 -20
- package/lib/chunk-ELDXB7BZ.cjs +18 -0
- package/lib/getMonthBounds.cjs +9 -0
- package/lib/getMonthBounds.d.cts +7 -0
- package/lib/index.cjs +20 -16
- package/lib/index.d.cts +1 -0
- package/package.json +1 -1
package/docs/modules.md
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
- [getDayMillisecond](modules.md#getdaymillisecond)
|
|
63
63
|
- [getImageInfo](modules.md#getimageinfo)
|
|
64
64
|
- [getLocal](modules.md#getlocal)
|
|
65
|
+
- [getMonthBounds](modules.md#getmonthbounds)
|
|
65
66
|
- [getRandom](modules.md#getrandom)
|
|
66
67
|
- [getRandomColor](modules.md#getrandomcolor)
|
|
67
68
|
- [getRandomNumber](modules.md#getrandomnumber)
|
|
@@ -162,7 +163,7 @@
|
|
|
162
163
|
|
|
163
164
|
#### Defined in
|
|
164
165
|
|
|
165
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
166
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/e725a33/src/eventBus.ts#L38)
|
|
166
167
|
|
|
167
168
|
___
|
|
168
169
|
|
|
@@ -172,7 +173,7 @@ ___
|
|
|
172
173
|
|
|
173
174
|
#### Defined in
|
|
174
175
|
|
|
175
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
176
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/e725a33/src/trap.ts#L15)
|
|
176
177
|
|
|
177
178
|
## Functions
|
|
178
179
|
|
|
@@ -210,7 +211,7 @@ res = { '1': '男', '2': '女' }
|
|
|
210
211
|
|
|
211
212
|
#### Defined in
|
|
212
213
|
|
|
213
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
214
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/e725a33/src/ato.ts#L12)
|
|
214
215
|
|
|
215
216
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
216
217
|
|
|
@@ -235,7 +236,7 @@ res = { '1': '男', '2': '女' }
|
|
|
235
236
|
|
|
236
237
|
#### Defined in
|
|
237
238
|
|
|
238
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
239
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/e725a33/src/ato.ts#L16)
|
|
239
240
|
|
|
240
241
|
___
|
|
241
242
|
|
|
@@ -255,7 +256,7 @@ ___
|
|
|
255
256
|
|
|
256
257
|
#### Defined in
|
|
257
258
|
|
|
258
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
259
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/e725a33/src/decode.ts#L41)
|
|
259
260
|
|
|
260
261
|
___
|
|
261
262
|
|
|
@@ -278,7 +279,7 @@ base64 转 blob
|
|
|
278
279
|
|
|
279
280
|
#### Defined in
|
|
280
281
|
|
|
281
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
282
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/base64ToBlob.ts#L6)
|
|
282
283
|
|
|
283
284
|
___
|
|
284
285
|
|
|
@@ -300,7 +301,7 @@ blob 转 base64
|
|
|
300
301
|
|
|
301
302
|
#### Defined in
|
|
302
303
|
|
|
303
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
304
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/blobToBase64.ts#L4)
|
|
304
305
|
|
|
305
306
|
___
|
|
306
307
|
|
|
@@ -320,7 +321,7 @@ ___
|
|
|
320
321
|
|
|
321
322
|
#### Defined in
|
|
322
323
|
|
|
323
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
324
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/decode.ts#L8)
|
|
324
325
|
|
|
325
326
|
___
|
|
326
327
|
|
|
@@ -361,7 +362,7 @@ ___
|
|
|
361
362
|
|
|
362
363
|
#### Defined in
|
|
363
364
|
|
|
364
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
365
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/cached.ts#L5)
|
|
365
366
|
|
|
366
367
|
___
|
|
367
368
|
|
|
@@ -384,7 +385,7 @@ camelCase('hello-world') => helloWorld
|
|
|
384
385
|
|
|
385
386
|
#### Defined in
|
|
386
387
|
|
|
387
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
388
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/camelCase.ts#L5)
|
|
388
389
|
|
|
389
390
|
___
|
|
390
391
|
|
|
@@ -408,7 +409,7 @@ canvas 转 blob 文件
|
|
|
408
409
|
|
|
409
410
|
#### Defined in
|
|
410
411
|
|
|
411
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
412
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/canvasToBlob.ts#L4)
|
|
412
413
|
|
|
413
414
|
___
|
|
414
415
|
|
|
@@ -431,7 +432,7 @@ capitalize('hello world') => Hello world
|
|
|
431
432
|
|
|
432
433
|
#### Defined in
|
|
433
434
|
|
|
434
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
435
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/capitalize.ts#L5)
|
|
435
436
|
|
|
436
437
|
___
|
|
437
438
|
|
|
@@ -456,7 +457,7 @@ ___
|
|
|
456
457
|
|
|
457
458
|
#### Defined in
|
|
458
459
|
|
|
459
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
460
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/chooseMedia.ts#L5)
|
|
460
461
|
|
|
461
462
|
___
|
|
462
463
|
|
|
@@ -480,7 +481,7 @@ ___
|
|
|
480
481
|
|
|
481
482
|
#### Defined in
|
|
482
483
|
|
|
483
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
484
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/clamp.ts#L7)
|
|
484
485
|
|
|
485
486
|
___
|
|
486
487
|
|
|
@@ -508,7 +509,7 @@ ___
|
|
|
508
509
|
|
|
509
510
|
#### Defined in
|
|
510
511
|
|
|
511
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
512
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/clone.ts#L8)
|
|
512
513
|
|
|
513
514
|
___
|
|
514
515
|
|
|
@@ -536,7 +537,7 @@ ___
|
|
|
536
537
|
|
|
537
538
|
#### Defined in
|
|
538
539
|
|
|
539
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
540
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/cloneSimple.ts#L7)
|
|
540
541
|
|
|
541
542
|
___
|
|
542
543
|
|
|
@@ -558,7 +559,7 @@ ___
|
|
|
558
559
|
|
|
559
560
|
#### Defined in
|
|
560
561
|
|
|
561
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
562
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/createHexColorByHash.ts#L4)
|
|
562
563
|
|
|
563
564
|
___
|
|
564
565
|
|
|
@@ -584,7 +585,7 @@ ___
|
|
|
584
585
|
|
|
585
586
|
#### Defined in
|
|
586
587
|
|
|
587
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
588
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/e725a33/src/compareVersion.ts#L9)
|
|
588
589
|
|
|
589
590
|
___
|
|
590
591
|
|
|
@@ -607,7 +608,7 @@ ___
|
|
|
607
608
|
|
|
608
609
|
#### Defined in
|
|
609
610
|
|
|
610
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
611
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/compressImage.ts#L4)
|
|
611
612
|
|
|
612
613
|
___
|
|
613
614
|
|
|
@@ -635,7 +636,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
635
636
|
|
|
636
637
|
#### Defined in
|
|
637
638
|
|
|
638
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
639
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/createFactory.ts#L4)
|
|
639
640
|
|
|
640
641
|
___
|
|
641
642
|
|
|
@@ -673,7 +674,7 @@ ___
|
|
|
673
674
|
|
|
674
675
|
#### Defined in
|
|
675
676
|
|
|
676
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
677
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/e725a33/src/createLinearFunction.ts#L9)
|
|
677
678
|
|
|
678
679
|
___
|
|
679
680
|
|
|
@@ -705,7 +706,7 @@ ___
|
|
|
705
706
|
|
|
706
707
|
#### Defined in
|
|
707
708
|
|
|
708
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
709
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/e725a33/src/trap.ts#L49)
|
|
709
710
|
|
|
710
711
|
___
|
|
711
712
|
|
|
@@ -768,7 +769,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
768
769
|
|
|
769
770
|
#### Defined in
|
|
770
771
|
|
|
771
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
772
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/e725a33/src/createWithLoading.ts#L11)
|
|
772
773
|
|
|
773
774
|
___
|
|
774
775
|
|
|
@@ -811,7 +812,7 @@ ___
|
|
|
811
812
|
|
|
812
813
|
#### Defined in
|
|
813
814
|
|
|
814
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
815
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/debounce.ts#L5)
|
|
815
816
|
|
|
816
817
|
___
|
|
817
818
|
|
|
@@ -835,7 +836,7 @@ ___
|
|
|
835
836
|
|
|
836
837
|
#### Defined in
|
|
837
838
|
|
|
838
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
839
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/downloadFile.ts#L4)
|
|
839
840
|
|
|
840
841
|
___
|
|
841
842
|
|
|
@@ -864,7 +865,7 @@ ___
|
|
|
864
865
|
|
|
865
866
|
#### Defined in
|
|
866
867
|
|
|
867
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
868
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/each.ts#L4)
|
|
868
869
|
|
|
869
870
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
870
871
|
|
|
@@ -887,7 +888,7 @@ ___
|
|
|
887
888
|
|
|
888
889
|
#### Defined in
|
|
889
890
|
|
|
890
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
891
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/each.ts#L8)
|
|
891
892
|
|
|
892
893
|
___
|
|
893
894
|
|
|
@@ -905,7 +906,7 @@ ___
|
|
|
905
906
|
|
|
906
907
|
#### Defined in
|
|
907
908
|
|
|
908
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
909
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/exitFullscreen.ts#L6)
|
|
909
910
|
|
|
910
911
|
___
|
|
911
912
|
|
|
@@ -934,7 +935,7 @@ ___
|
|
|
934
935
|
|
|
935
936
|
#### Defined in
|
|
936
937
|
|
|
937
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
938
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/e725a33/src/storage/factory.ts#L11)
|
|
938
939
|
|
|
939
940
|
___
|
|
940
941
|
|
|
@@ -956,7 +957,7 @@ ___
|
|
|
956
957
|
|
|
957
958
|
#### Defined in
|
|
958
959
|
|
|
959
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
960
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/filterBankCardNo.ts#L4)
|
|
960
961
|
|
|
961
962
|
___
|
|
962
963
|
|
|
@@ -978,7 +979,7 @@ ___
|
|
|
978
979
|
|
|
979
980
|
#### Defined in
|
|
980
981
|
|
|
981
|
-
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/
|
|
982
|
+
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/filterCRLF.ts#L4)
|
|
982
983
|
|
|
983
984
|
___
|
|
984
985
|
|
|
@@ -1000,7 +1001,7 @@ ___
|
|
|
1000
1001
|
|
|
1001
1002
|
#### Defined in
|
|
1002
1003
|
|
|
1003
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1004
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/filterEmoji.ts#L4)
|
|
1004
1005
|
|
|
1005
1006
|
___
|
|
1006
1007
|
|
|
@@ -1023,7 +1024,7 @@ ___
|
|
|
1023
1024
|
|
|
1024
1025
|
#### Defined in
|
|
1025
1026
|
|
|
1026
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1027
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/e725a33/src/filterEmptyValue.ts#L12)
|
|
1027
1028
|
|
|
1028
1029
|
___
|
|
1029
1030
|
|
|
@@ -1046,7 +1047,7 @@ ___
|
|
|
1046
1047
|
|
|
1047
1048
|
#### Defined in
|
|
1048
1049
|
|
|
1049
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1050
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/filterIdCard.ts#L5)
|
|
1050
1051
|
|
|
1051
1052
|
___
|
|
1052
1053
|
|
|
@@ -1068,7 +1069,7 @@ ___
|
|
|
1068
1069
|
|
|
1069
1070
|
#### Defined in
|
|
1070
1071
|
|
|
1071
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1072
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/filterName.ts#L4)
|
|
1072
1073
|
|
|
1073
1074
|
___
|
|
1074
1075
|
|
|
@@ -1093,7 +1094,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1093
1094
|
|
|
1094
1095
|
#### Defined in
|
|
1095
1096
|
|
|
1096
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1097
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/filterPhone.ts#L6)
|
|
1097
1098
|
|
|
1098
1099
|
___
|
|
1099
1100
|
|
|
@@ -1120,7 +1121,7 @@ str = '131****8888'
|
|
|
1120
1121
|
|
|
1121
1122
|
#### Defined in
|
|
1122
1123
|
|
|
1123
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1124
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/filterString.ts#L6)
|
|
1124
1125
|
|
|
1125
1126
|
___
|
|
1126
1127
|
|
|
@@ -1143,7 +1144,7 @@ ___
|
|
|
1143
1144
|
|
|
1144
1145
|
#### Defined in
|
|
1145
1146
|
|
|
1146
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1147
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/formatAmount.ts#L4)
|
|
1147
1148
|
|
|
1148
1149
|
___
|
|
1149
1150
|
|
|
@@ -1167,7 +1168,7 @@ ___
|
|
|
1167
1168
|
|
|
1168
1169
|
#### Defined in
|
|
1169
1170
|
|
|
1170
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1171
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/formatDate.ts#L7)
|
|
1171
1172
|
|
|
1172
1173
|
___
|
|
1173
1174
|
|
|
@@ -1198,7 +1199,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1198
1199
|
|
|
1199
1200
|
#### Defined in
|
|
1200
1201
|
|
|
1201
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1202
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/formatDateStr.ts#L6)
|
|
1202
1203
|
|
|
1203
1204
|
___
|
|
1204
1205
|
|
|
@@ -1218,7 +1219,7 @@ ___
|
|
|
1218
1219
|
|
|
1219
1220
|
#### Defined in
|
|
1220
1221
|
|
|
1221
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1222
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/formartDateToZN.ts#L4)
|
|
1222
1223
|
|
|
1223
1224
|
___
|
|
1224
1225
|
|
|
@@ -1241,7 +1242,7 @@ ___
|
|
|
1241
1242
|
|
|
1242
1243
|
#### Defined in
|
|
1243
1244
|
|
|
1244
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1245
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/formatFileSize.ts#L4)
|
|
1245
1246
|
|
|
1246
1247
|
___
|
|
1247
1248
|
|
|
@@ -1266,7 +1267,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1266
1267
|
|
|
1267
1268
|
#### Defined in
|
|
1268
1269
|
|
|
1269
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1270
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/e725a33/src/formatMessage.ts#L11)
|
|
1270
1271
|
|
|
1271
1272
|
___
|
|
1272
1273
|
|
|
@@ -1298,7 +1299,7 @@ rest = { xxx: 1 }
|
|
|
1298
1299
|
|
|
1299
1300
|
#### Defined in
|
|
1300
1301
|
|
|
1301
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1302
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/formatPathParams.ts#L8)
|
|
1302
1303
|
|
|
1303
1304
|
___
|
|
1304
1305
|
|
|
@@ -1320,7 +1321,7 @@ ___
|
|
|
1320
1321
|
|
|
1321
1322
|
#### Defined in
|
|
1322
1323
|
|
|
1323
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1324
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/getBlobByUrl.ts#L4)
|
|
1324
1325
|
|
|
1325
1326
|
___
|
|
1326
1327
|
|
|
@@ -1343,7 +1344,7 @@ ___
|
|
|
1343
1344
|
|
|
1344
1345
|
#### Defined in
|
|
1345
1346
|
|
|
1346
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1347
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/e725a33/src/storage/index.ts#L9)
|
|
1347
1348
|
|
|
1348
1349
|
___
|
|
1349
1350
|
|
|
@@ -1365,7 +1366,7 @@ ___
|
|
|
1365
1366
|
|
|
1366
1367
|
#### Defined in
|
|
1367
1368
|
|
|
1368
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1369
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/getDayMillisecond.ts#L4)
|
|
1369
1370
|
|
|
1370
1371
|
___
|
|
1371
1372
|
|
|
@@ -1388,7 +1389,7 @@ ___
|
|
|
1388
1389
|
|
|
1389
1390
|
#### Defined in
|
|
1390
1391
|
|
|
1391
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1392
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/getImageInfo.ts#L4)
|
|
1392
1393
|
|
|
1393
1394
|
___
|
|
1394
1395
|
|
|
@@ -1411,7 +1412,46 @@ ___
|
|
|
1411
1412
|
|
|
1412
1413
|
#### Defined in
|
|
1413
1414
|
|
|
1414
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1415
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/e725a33/src/storage/index.ts#L9)
|
|
1416
|
+
|
|
1417
|
+
___
|
|
1418
|
+
|
|
1419
|
+
### getMonthBounds
|
|
1420
|
+
|
|
1421
|
+
▸ **getMonthBounds**(`value`): [`Date`, `Date`]
|
|
1422
|
+
|
|
1423
|
+
获取当前月份的开始时间和结束时间
|
|
1424
|
+
|
|
1425
|
+
#### Parameters
|
|
1426
|
+
|
|
1427
|
+
| Name | Type |
|
|
1428
|
+
| :------ | :------ |
|
|
1429
|
+
| `value` | `string` \| `number` \| `Date` |
|
|
1430
|
+
|
|
1431
|
+
#### Returns
|
|
1432
|
+
|
|
1433
|
+
[`Date`, `Date`]
|
|
1434
|
+
|
|
1435
|
+
#### Defined in
|
|
1436
|
+
|
|
1437
|
+
getMonthBounds.ts:7
|
|
1438
|
+
|
|
1439
|
+
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1440
|
+
|
|
1441
|
+
#### Parameters
|
|
1442
|
+
|
|
1443
|
+
| Name | Type |
|
|
1444
|
+
| :------ | :------ |
|
|
1445
|
+
| `value` | `string` \| `number` \| `Date` |
|
|
1446
|
+
| `fmt` | `string` |
|
|
1447
|
+
|
|
1448
|
+
#### Returns
|
|
1449
|
+
|
|
1450
|
+
[`string`, `string`]
|
|
1451
|
+
|
|
1452
|
+
#### Defined in
|
|
1453
|
+
|
|
1454
|
+
getMonthBounds.ts:8
|
|
1415
1455
|
|
|
1416
1456
|
___
|
|
1417
1457
|
|
|
@@ -1434,7 +1474,7 @@ ___
|
|
|
1434
1474
|
|
|
1435
1475
|
#### Defined in
|
|
1436
1476
|
|
|
1437
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1477
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/getRandom.ts#L7)
|
|
1438
1478
|
|
|
1439
1479
|
___
|
|
1440
1480
|
|
|
@@ -1450,7 +1490,7 @@ ___
|
|
|
1450
1490
|
|
|
1451
1491
|
#### Defined in
|
|
1452
1492
|
|
|
1453
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1493
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/getRandomColor.ts#L4)
|
|
1454
1494
|
|
|
1455
1495
|
___
|
|
1456
1496
|
|
|
@@ -1472,7 +1512,7 @@ ___
|
|
|
1472
1512
|
|
|
1473
1513
|
#### Defined in
|
|
1474
1514
|
|
|
1475
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1515
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/getRandomNumber.ts#L7)
|
|
1476
1516
|
|
|
1477
1517
|
___
|
|
1478
1518
|
|
|
@@ -1495,7 +1535,7 @@ ___
|
|
|
1495
1535
|
|
|
1496
1536
|
#### Defined in
|
|
1497
1537
|
|
|
1498
|
-
getRangeDate.ts:7
|
|
1538
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/getRangeDate.ts#L7)
|
|
1499
1539
|
|
|
1500
1540
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1501
1541
|
|
|
@@ -1513,7 +1553,7 @@ getRangeDate.ts:7
|
|
|
1513
1553
|
|
|
1514
1554
|
#### Defined in
|
|
1515
1555
|
|
|
1516
|
-
getRangeDate.ts:11
|
|
1556
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/e725a33/src/getRangeDate.ts#L11)
|
|
1517
1557
|
|
|
1518
1558
|
___
|
|
1519
1559
|
|
|
@@ -1529,7 +1569,7 @@ ___
|
|
|
1529
1569
|
|
|
1530
1570
|
#### Defined in
|
|
1531
1571
|
|
|
1532
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1572
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/getScrollTop.ts#L4)
|
|
1533
1573
|
|
|
1534
1574
|
___
|
|
1535
1575
|
|
|
@@ -1551,7 +1591,7 @@ ___
|
|
|
1551
1591
|
|
|
1552
1592
|
#### Defined in
|
|
1553
1593
|
|
|
1554
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1594
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/getVideoInfo.ts#L4)
|
|
1555
1595
|
|
|
1556
1596
|
___
|
|
1557
1597
|
|
|
@@ -1574,7 +1614,7 @@ ___
|
|
|
1574
1614
|
|
|
1575
1615
|
#### Defined in
|
|
1576
1616
|
|
|
1577
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1617
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/getWeekday.ts#L6)
|
|
1578
1618
|
|
|
1579
1619
|
___
|
|
1580
1620
|
|
|
@@ -1590,7 +1630,7 @@ ___
|
|
|
1590
1630
|
|
|
1591
1631
|
#### Defined in
|
|
1592
1632
|
|
|
1593
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1633
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/inBrowser.ts#L4)
|
|
1594
1634
|
|
|
1595
1635
|
___
|
|
1596
1636
|
|
|
@@ -1612,7 +1652,7 @@ ___
|
|
|
1612
1652
|
|
|
1613
1653
|
#### Defined in
|
|
1614
1654
|
|
|
1615
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1655
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/insertLink.ts#L4)
|
|
1616
1656
|
|
|
1617
1657
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1618
1658
|
|
|
@@ -1629,7 +1669,7 @@ ___
|
|
|
1629
1669
|
|
|
1630
1670
|
#### Defined in
|
|
1631
1671
|
|
|
1632
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1672
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/insertLink.ts#L5)
|
|
1633
1673
|
|
|
1634
1674
|
___
|
|
1635
1675
|
|
|
@@ -1651,7 +1691,7 @@ ___
|
|
|
1651
1691
|
|
|
1652
1692
|
#### Defined in
|
|
1653
1693
|
|
|
1654
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1694
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/insertScript.ts#L4)
|
|
1655
1695
|
|
|
1656
1696
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1657
1697
|
|
|
@@ -1668,7 +1708,7 @@ ___
|
|
|
1668
1708
|
|
|
1669
1709
|
#### Defined in
|
|
1670
1710
|
|
|
1671
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1711
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/insertScript.ts#L5)
|
|
1672
1712
|
|
|
1673
1713
|
___
|
|
1674
1714
|
|
|
@@ -1690,7 +1730,7 @@ ___
|
|
|
1690
1730
|
|
|
1691
1731
|
#### Defined in
|
|
1692
1732
|
|
|
1693
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1733
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/insertStyle.ts#L4)
|
|
1694
1734
|
|
|
1695
1735
|
___
|
|
1696
1736
|
|
|
@@ -1719,7 +1759,7 @@ isAmount('1.123') => false
|
|
|
1719
1759
|
|
|
1720
1760
|
#### Defined in
|
|
1721
1761
|
|
|
1722
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1762
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/e725a33/src/isAmount.ts#L11)
|
|
1723
1763
|
|
|
1724
1764
|
___
|
|
1725
1765
|
|
|
@@ -1735,7 +1775,7 @@ ___
|
|
|
1735
1775
|
|
|
1736
1776
|
#### Defined in
|
|
1737
1777
|
|
|
1738
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
1778
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isAndroid.ts#L4)
|
|
1739
1779
|
|
|
1740
1780
|
___
|
|
1741
1781
|
|
|
@@ -1759,7 +1799,7 @@ val is any[]
|
|
|
1759
1799
|
|
|
1760
1800
|
#### Defined in
|
|
1761
1801
|
|
|
1762
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1802
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/isArray.ts#L6)
|
|
1763
1803
|
|
|
1764
1804
|
___
|
|
1765
1805
|
|
|
@@ -1781,7 +1821,7 @@ val is boolean
|
|
|
1781
1821
|
|
|
1782
1822
|
#### Defined in
|
|
1783
1823
|
|
|
1784
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
1824
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/isBoolean.ts#L5)
|
|
1785
1825
|
|
|
1786
1826
|
___
|
|
1787
1827
|
|
|
@@ -1803,7 +1843,7 @@ ___
|
|
|
1803
1843
|
|
|
1804
1844
|
#### Defined in
|
|
1805
1845
|
|
|
1806
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
1846
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isChinese.ts#L4)
|
|
1807
1847
|
|
|
1808
1848
|
___
|
|
1809
1849
|
|
|
@@ -1825,7 +1865,7 @@ val is Date
|
|
|
1825
1865
|
|
|
1826
1866
|
#### Defined in
|
|
1827
1867
|
|
|
1828
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1868
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isDate.ts#L4)
|
|
1829
1869
|
|
|
1830
1870
|
___
|
|
1831
1871
|
|
|
@@ -1847,7 +1887,7 @@ ___
|
|
|
1847
1887
|
|
|
1848
1888
|
#### Defined in
|
|
1849
1889
|
|
|
1850
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
1890
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isEmail.ts#L4)
|
|
1851
1891
|
|
|
1852
1892
|
___
|
|
1853
1893
|
|
|
@@ -1869,7 +1909,7 @@ ___
|
|
|
1869
1909
|
|
|
1870
1910
|
#### Defined in
|
|
1871
1911
|
|
|
1872
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
1912
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/isEmpty.ts#L6)
|
|
1873
1913
|
|
|
1874
1914
|
___
|
|
1875
1915
|
|
|
@@ -1891,7 +1931,7 @@ ___
|
|
|
1891
1931
|
|
|
1892
1932
|
#### Defined in
|
|
1893
1933
|
|
|
1894
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1934
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/isEmptyArray.ts#L6)
|
|
1895
1935
|
|
|
1896
1936
|
___
|
|
1897
1937
|
|
|
@@ -1913,7 +1953,7 @@ ___
|
|
|
1913
1953
|
|
|
1914
1954
|
#### Defined in
|
|
1915
1955
|
|
|
1916
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
1956
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/isEmptyObject.ts#L5)
|
|
1917
1957
|
|
|
1918
1958
|
___
|
|
1919
1959
|
|
|
@@ -1935,7 +1975,7 @@ val is Error
|
|
|
1935
1975
|
|
|
1936
1976
|
#### Defined in
|
|
1937
1977
|
|
|
1938
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
1978
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isError.ts#L4)
|
|
1939
1979
|
|
|
1940
1980
|
___
|
|
1941
1981
|
|
|
@@ -1957,7 +1997,7 @@ val is Function
|
|
|
1957
1997
|
|
|
1958
1998
|
#### Defined in
|
|
1959
1999
|
|
|
1960
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2000
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isFunction.ts#L4)
|
|
1961
2001
|
|
|
1962
2002
|
___
|
|
1963
2003
|
|
|
@@ -1975,7 +2015,7 @@ ___
|
|
|
1975
2015
|
|
|
1976
2016
|
#### Defined in
|
|
1977
2017
|
|
|
1978
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2018
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/isIE.ts#L6)
|
|
1979
2019
|
|
|
1980
2020
|
___
|
|
1981
2021
|
|
|
@@ -1991,7 +2031,7 @@ ___
|
|
|
1991
2031
|
|
|
1992
2032
|
#### Defined in
|
|
1993
2033
|
|
|
1994
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2034
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isIOS.ts#L4)
|
|
1995
2035
|
|
|
1996
2036
|
___
|
|
1997
2037
|
|
|
@@ -2013,7 +2053,7 @@ ___
|
|
|
2013
2053
|
|
|
2014
2054
|
#### Defined in
|
|
2015
2055
|
|
|
2016
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2056
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isIdCard.ts#L4)
|
|
2017
2057
|
|
|
2018
2058
|
___
|
|
2019
2059
|
|
|
@@ -2035,7 +2075,7 @@ ___
|
|
|
2035
2075
|
|
|
2036
2076
|
#### Defined in
|
|
2037
2077
|
|
|
2038
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2078
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/isJSONString.ts#L7)
|
|
2039
2079
|
|
|
2040
2080
|
___
|
|
2041
2081
|
|
|
@@ -2057,7 +2097,7 @@ ___
|
|
|
2057
2097
|
|
|
2058
2098
|
#### Defined in
|
|
2059
2099
|
|
|
2060
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2100
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/isLan.ts#L5)
|
|
2061
2101
|
|
|
2062
2102
|
___
|
|
2063
2103
|
|
|
@@ -2079,7 +2119,7 @@ ___
|
|
|
2079
2119
|
|
|
2080
2120
|
#### Defined in
|
|
2081
2121
|
|
|
2082
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2122
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/isLicenseCode.ts#L5)
|
|
2083
2123
|
|
|
2084
2124
|
___
|
|
2085
2125
|
|
|
@@ -2095,7 +2135,7 @@ ___
|
|
|
2095
2135
|
|
|
2096
2136
|
#### Defined in
|
|
2097
2137
|
|
|
2098
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2138
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isMobile.ts#L4)
|
|
2099
2139
|
|
|
2100
2140
|
___
|
|
2101
2141
|
|
|
@@ -2118,7 +2158,7 @@ ___
|
|
|
2118
2158
|
|
|
2119
2159
|
#### Defined in
|
|
2120
2160
|
|
|
2121
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2161
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/isNativeFunction.ts#L7)
|
|
2122
2162
|
|
|
2123
2163
|
___
|
|
2124
2164
|
|
|
@@ -2140,7 +2180,7 @@ val is null
|
|
|
2140
2180
|
|
|
2141
2181
|
#### Defined in
|
|
2142
2182
|
|
|
2143
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2183
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isNull.ts#L4)
|
|
2144
2184
|
|
|
2145
2185
|
___
|
|
2146
2186
|
|
|
@@ -2162,7 +2202,7 @@ val is number
|
|
|
2162
2202
|
|
|
2163
2203
|
#### Defined in
|
|
2164
2204
|
|
|
2165
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2205
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/isNumber.ts#L5)
|
|
2166
2206
|
|
|
2167
2207
|
___
|
|
2168
2208
|
|
|
@@ -2184,7 +2224,7 @@ val is Record<string, any\>
|
|
|
2184
2224
|
|
|
2185
2225
|
#### Defined in
|
|
2186
2226
|
|
|
2187
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2227
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isObject.ts#L4)
|
|
2188
2228
|
|
|
2189
2229
|
___
|
|
2190
2230
|
|
|
@@ -2206,7 +2246,7 @@ ___
|
|
|
2206
2246
|
|
|
2207
2247
|
#### Defined in
|
|
2208
2248
|
|
|
2209
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2249
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isPhone.ts#L4)
|
|
2210
2250
|
|
|
2211
2251
|
___
|
|
2212
2252
|
|
|
@@ -2234,7 +2274,7 @@ val is Promise<T\>
|
|
|
2234
2274
|
|
|
2235
2275
|
#### Defined in
|
|
2236
2276
|
|
|
2237
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2277
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isPromise.ts#L4)
|
|
2238
2278
|
|
|
2239
2279
|
___
|
|
2240
2280
|
|
|
@@ -2256,7 +2296,7 @@ val is RegExp
|
|
|
2256
2296
|
|
|
2257
2297
|
#### Defined in
|
|
2258
2298
|
|
|
2259
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2299
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isRegExp.ts#L4)
|
|
2260
2300
|
|
|
2261
2301
|
___
|
|
2262
2302
|
|
|
@@ -2278,7 +2318,7 @@ val is string
|
|
|
2278
2318
|
|
|
2279
2319
|
#### Defined in
|
|
2280
2320
|
|
|
2281
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2321
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isString.ts#L4)
|
|
2282
2322
|
|
|
2283
2323
|
___
|
|
2284
2324
|
|
|
@@ -2307,7 +2347,7 @@ val is T
|
|
|
2307
2347
|
|
|
2308
2348
|
#### Defined in
|
|
2309
2349
|
|
|
2310
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2350
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isType.ts#L4)
|
|
2311
2351
|
|
|
2312
2352
|
___
|
|
2313
2353
|
|
|
@@ -2329,7 +2369,7 @@ val is undefined
|
|
|
2329
2369
|
|
|
2330
2370
|
#### Defined in
|
|
2331
2371
|
|
|
2332
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2372
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isUndefined.ts#L4)
|
|
2333
2373
|
|
|
2334
2374
|
___
|
|
2335
2375
|
|
|
@@ -2373,7 +2413,7 @@ ___
|
|
|
2373
2413
|
|
|
2374
2414
|
#### Defined in
|
|
2375
2415
|
|
|
2376
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2416
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/isValidDate.ts#L6)
|
|
2377
2417
|
|
|
2378
2418
|
___
|
|
2379
2419
|
|
|
@@ -2389,7 +2429,7 @@ ___
|
|
|
2389
2429
|
|
|
2390
2430
|
#### Defined in
|
|
2391
2431
|
|
|
2392
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2432
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/isWeChat.ts#L4)
|
|
2393
2433
|
|
|
2394
2434
|
___
|
|
2395
2435
|
|
|
@@ -2406,7 +2446,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2406
2446
|
|
|
2407
2447
|
#### Defined in
|
|
2408
2448
|
|
|
2409
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2449
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/isWeChatMiniProgram.ts#L5)
|
|
2410
2450
|
|
|
2411
2451
|
___
|
|
2412
2452
|
|
|
@@ -2430,7 +2470,7 @@ ___
|
|
|
2430
2470
|
|
|
2431
2471
|
#### Defined in
|
|
2432
2472
|
|
|
2433
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2473
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/e725a33/src/isWeChat.ts#L12)
|
|
2434
2474
|
|
|
2435
2475
|
___
|
|
2436
2476
|
|
|
@@ -2452,7 +2492,7 @@ val is Window
|
|
|
2452
2492
|
|
|
2453
2493
|
#### Defined in
|
|
2454
2494
|
|
|
2455
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2495
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/isWindow.ts#L5)
|
|
2456
2496
|
|
|
2457
2497
|
___
|
|
2458
2498
|
|
|
@@ -2475,7 +2515,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2475
2515
|
|
|
2476
2516
|
#### Defined in
|
|
2477
2517
|
|
|
2478
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2518
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/kebabCase.ts#L5)
|
|
2479
2519
|
|
|
2480
2520
|
___
|
|
2481
2521
|
|
|
@@ -2504,7 +2544,7 @@ list 生成器,快速生成数据
|
|
|
2504
2544
|
|
|
2505
2545
|
#### Defined in
|
|
2506
2546
|
|
|
2507
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2547
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/listGenerator.ts#L5)
|
|
2508
2548
|
|
|
2509
2549
|
___
|
|
2510
2550
|
|
|
@@ -2524,7 +2564,7 @@ ___
|
|
|
2524
2564
|
|
|
2525
2565
|
#### Defined in
|
|
2526
2566
|
|
|
2527
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2567
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/e725a33/src/makePhoneCall.ts#L1)
|
|
2528
2568
|
|
|
2529
2569
|
___
|
|
2530
2570
|
|
|
@@ -2549,7 +2589,7 @@ ___
|
|
|
2549
2589
|
|
|
2550
2590
|
#### Defined in
|
|
2551
2591
|
|
|
2552
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2592
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/e725a33/src/mousewheel.ts#L22)
|
|
2553
2593
|
|
|
2554
2594
|
___
|
|
2555
2595
|
|
|
@@ -2565,7 +2605,7 @@ ___
|
|
|
2565
2605
|
|
|
2566
2606
|
#### Defined in
|
|
2567
2607
|
|
|
2568
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2608
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/nf.ts#L4)
|
|
2569
2609
|
|
|
2570
2610
|
___
|
|
2571
2611
|
|
|
@@ -2589,7 +2629,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2589
2629
|
|
|
2590
2630
|
#### Defined in
|
|
2591
2631
|
|
|
2592
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
2632
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/normalizeDate.ts#L8)
|
|
2593
2633
|
|
|
2594
2634
|
___
|
|
2595
2635
|
|
|
@@ -2611,7 +2651,7 @@ ___
|
|
|
2611
2651
|
|
|
2612
2652
|
#### Defined in
|
|
2613
2653
|
|
|
2614
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2654
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/normalizePath.ts#L4)
|
|
2615
2655
|
|
|
2616
2656
|
___
|
|
2617
2657
|
|
|
@@ -2641,7 +2681,7 @@ ___
|
|
|
2641
2681
|
|
|
2642
2682
|
#### Defined in
|
|
2643
2683
|
|
|
2644
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2684
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/omit.ts#L4)
|
|
2645
2685
|
|
|
2646
2686
|
___
|
|
2647
2687
|
|
|
@@ -2665,7 +2705,7 @@ ___
|
|
|
2665
2705
|
|
|
2666
2706
|
#### Defined in
|
|
2667
2707
|
|
|
2668
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2708
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/padding.ts#L7)
|
|
2669
2709
|
|
|
2670
2710
|
___
|
|
2671
2711
|
|
|
@@ -2691,7 +2731,7 @@ ___
|
|
|
2691
2731
|
|
|
2692
2732
|
#### Defined in
|
|
2693
2733
|
|
|
2694
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
2734
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/parseDate.ts#L5)
|
|
2695
2735
|
|
|
2696
2736
|
___
|
|
2697
2737
|
|
|
@@ -2714,7 +2754,7 @@ ___
|
|
|
2714
2754
|
|
|
2715
2755
|
#### Defined in
|
|
2716
2756
|
|
|
2717
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
2757
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/parseError.ts#L8)
|
|
2718
2758
|
|
|
2719
2759
|
___
|
|
2720
2760
|
|
|
@@ -2744,7 +2784,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
2744
2784
|
|
|
2745
2785
|
#### Defined in
|
|
2746
2786
|
|
|
2747
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2787
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/parseObject.ts#L5)
|
|
2748
2788
|
|
|
2749
2789
|
___
|
|
2750
2790
|
|
|
@@ -2773,7 +2813,7 @@ ___
|
|
|
2773
2813
|
|
|
2774
2814
|
#### Defined in
|
|
2775
2815
|
|
|
2776
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
2816
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/parsePath.ts#L6)
|
|
2777
2817
|
|
|
2778
2818
|
___
|
|
2779
2819
|
|
|
@@ -2796,7 +2836,7 @@ ___
|
|
|
2796
2836
|
|
|
2797
2837
|
#### Defined in
|
|
2798
2838
|
|
|
2799
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
2839
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/parseQuery.ts#L8)
|
|
2800
2840
|
|
|
2801
2841
|
___
|
|
2802
2842
|
|
|
@@ -2826,7 +2866,7 @@ ___
|
|
|
2826
2866
|
|
|
2827
2867
|
#### Defined in
|
|
2828
2868
|
|
|
2829
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
2869
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/parseQueryString.ts#L6)
|
|
2830
2870
|
|
|
2831
2871
|
___
|
|
2832
2872
|
|
|
@@ -2849,7 +2889,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
2849
2889
|
|
|
2850
2890
|
#### Defined in
|
|
2851
2891
|
|
|
2852
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
2892
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/pascalCase.ts#L8)
|
|
2853
2893
|
|
|
2854
2894
|
___
|
|
2855
2895
|
|
|
@@ -2879,7 +2919,7 @@ ___
|
|
|
2879
2919
|
|
|
2880
2920
|
#### Defined in
|
|
2881
2921
|
|
|
2882
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
2922
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/pick.ts#L4)
|
|
2883
2923
|
|
|
2884
2924
|
___
|
|
2885
2925
|
|
|
@@ -2902,7 +2942,7 @@ ___
|
|
|
2902
2942
|
|
|
2903
2943
|
#### Defined in
|
|
2904
2944
|
|
|
2905
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2945
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/replaceCrlf.ts#L4)
|
|
2906
2946
|
|
|
2907
2947
|
___
|
|
2908
2948
|
|
|
@@ -2926,7 +2966,7 @@ ___
|
|
|
2926
2966
|
|
|
2927
2967
|
#### Defined in
|
|
2928
2968
|
|
|
2929
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
2969
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/requestFullScreen.ts#L6)
|
|
2930
2970
|
|
|
2931
2971
|
___
|
|
2932
2972
|
|
|
@@ -2952,7 +2992,7 @@ reserve(0, '--') => 0
|
|
|
2952
2992
|
|
|
2953
2993
|
#### Defined in
|
|
2954
2994
|
|
|
2955
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
2995
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/e725a33/src/reserve.ts#L8)
|
|
2956
2996
|
|
|
2957
2997
|
___
|
|
2958
2998
|
|
|
@@ -2976,7 +3016,7 @@ ___
|
|
|
2976
3016
|
|
|
2977
3017
|
#### Defined in
|
|
2978
3018
|
|
|
2979
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3019
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/rgbToHex.ts#L4)
|
|
2980
3020
|
|
|
2981
3021
|
___
|
|
2982
3022
|
|
|
@@ -2999,7 +3039,7 @@ ___
|
|
|
2999
3039
|
|
|
3000
3040
|
#### Defined in
|
|
3001
3041
|
|
|
3002
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3042
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/round.ts#L6)
|
|
3003
3043
|
|
|
3004
3044
|
___
|
|
3005
3045
|
|
|
@@ -3015,7 +3055,7 @@ ___
|
|
|
3015
3055
|
|
|
3016
3056
|
#### Defined in
|
|
3017
3057
|
|
|
3018
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3058
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/scrollToTop.ts#L4)
|
|
3019
3059
|
|
|
3020
3060
|
___
|
|
3021
3061
|
|
|
@@ -3037,7 +3077,7 @@ ___
|
|
|
3037
3077
|
|
|
3038
3078
|
#### Defined in
|
|
3039
3079
|
|
|
3040
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3080
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/setScrollTop.ts#L4)
|
|
3041
3081
|
|
|
3042
3082
|
___
|
|
3043
3083
|
|
|
@@ -3060,7 +3100,7 @@ ___
|
|
|
3060
3100
|
|
|
3061
3101
|
#### Defined in
|
|
3062
3102
|
|
|
3063
|
-
[sleep.ts:6](https://github.com/daysnap/utils/blob/
|
|
3103
|
+
[sleep.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/sleep.ts#L6)
|
|
3064
3104
|
|
|
3065
3105
|
___
|
|
3066
3106
|
|
|
@@ -3089,7 +3129,7 @@ ___
|
|
|
3089
3129
|
|
|
3090
3130
|
#### Defined in
|
|
3091
3131
|
|
|
3092
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3132
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/splitArray.ts#L4)
|
|
3093
3133
|
|
|
3094
3134
|
___
|
|
3095
3135
|
|
|
@@ -3112,7 +3152,7 @@ ___
|
|
|
3112
3152
|
|
|
3113
3153
|
#### Defined in
|
|
3114
3154
|
|
|
3115
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3155
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/stringTrim.ts#L6)
|
|
3116
3156
|
|
|
3117
3157
|
___
|
|
3118
3158
|
|
|
@@ -3134,7 +3174,7 @@ ___
|
|
|
3134
3174
|
|
|
3135
3175
|
#### Defined in
|
|
3136
3176
|
|
|
3137
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3177
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/e725a33/src/stringifyQuery.ts#L7)
|
|
3138
3178
|
|
|
3139
3179
|
___
|
|
3140
3180
|
|
|
@@ -3158,7 +3198,7 @@ ___
|
|
|
3158
3198
|
|
|
3159
3199
|
#### Defined in
|
|
3160
3200
|
|
|
3161
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3201
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/stringifyQueryString.ts#L6)
|
|
3162
3202
|
|
|
3163
3203
|
___
|
|
3164
3204
|
|
|
@@ -3202,7 +3242,7 @@ ___
|
|
|
3202
3242
|
|
|
3203
3243
|
#### Defined in
|
|
3204
3244
|
|
|
3205
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3245
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/e725a33/src/throttle.ts#L48)
|
|
3206
3246
|
|
|
3207
3247
|
___
|
|
3208
3248
|
|
|
@@ -3245,7 +3285,7 @@ ___
|
|
|
3245
3285
|
|
|
3246
3286
|
#### Defined in
|
|
3247
3287
|
|
|
3248
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3288
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/e725a33/src/throttle.ts#L5)
|
|
3249
3289
|
|
|
3250
3290
|
___
|
|
3251
3291
|
|
|
@@ -3288,7 +3328,7 @@ ___
|
|
|
3288
3328
|
|
|
3289
3329
|
#### Defined in
|
|
3290
3330
|
|
|
3291
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3331
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/e725a33/src/throttle.ts#L25)
|
|
3292
3332
|
|
|
3293
3333
|
___
|
|
3294
3334
|
|
|
@@ -3310,7 +3350,7 @@ ___
|
|
|
3310
3350
|
|
|
3311
3351
|
#### Defined in
|
|
3312
3352
|
|
|
3313
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3353
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/toCDB.ts#L4)
|
|
3314
3354
|
|
|
3315
3355
|
___
|
|
3316
3356
|
|
|
@@ -3332,7 +3372,7 @@ ___
|
|
|
3332
3372
|
|
|
3333
3373
|
#### Defined in
|
|
3334
3374
|
|
|
3335
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3375
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/toDBC.ts#L4)
|
|
3336
3376
|
|
|
3337
3377
|
___
|
|
3338
3378
|
|
|
@@ -3356,7 +3396,7 @@ ___
|
|
|
3356
3396
|
|
|
3357
3397
|
#### Defined in
|
|
3358
3398
|
|
|
3359
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3399
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/e725a33/src/typeOf.ts#L6)
|
|
3360
3400
|
|
|
3361
3401
|
___
|
|
3362
3402
|
|
|
@@ -3385,4 +3425,4 @@ ___
|
|
|
3385
3425
|
|
|
3386
3426
|
#### Defined in
|
|
3387
3427
|
|
|
3388
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3428
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/e725a33/src/withPreventConsecutiveClicks.ts#L4)
|