@daysnap/utils 0.1.10 → 0.1.11
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 +164 -135
- package/es/chunk-ZI7MCCMB.js +22 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +4 -0
- package/es/withCache.d.ts +6 -0
- package/es/withCache.js +6 -0
- package/lib/chunk-2XXFQQUM.cjs +22 -0
- package/lib/index.cjs +5 -1
- package/lib/index.d.cts +1 -0
- package/lib/withCache.cjs +6 -0
- package/lib/withCache.d.cts +6 -0
- package/package.json +1 -1
package/docs/modules.md
CHANGED
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
- [toCDB](modules.md#tocdb)
|
|
145
145
|
- [toDBC](modules.md#todbc)
|
|
146
146
|
- [typeOf](modules.md#typeof)
|
|
147
|
+
- [withCache](modules.md#withcache)
|
|
147
148
|
- [withPreventConsecutiveClicks](modules.md#withpreventconsecutiveclicks)
|
|
148
149
|
|
|
149
150
|
## Variables
|
|
@@ -163,7 +164,7 @@
|
|
|
163
164
|
|
|
164
165
|
#### Defined in
|
|
165
166
|
|
|
166
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
167
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/c4d6925/src/eventBus.ts#L38)
|
|
167
168
|
|
|
168
169
|
___
|
|
169
170
|
|
|
@@ -173,7 +174,7 @@ ___
|
|
|
173
174
|
|
|
174
175
|
#### Defined in
|
|
175
176
|
|
|
176
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
177
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/c4d6925/src/trap.ts#L15)
|
|
177
178
|
|
|
178
179
|
## Functions
|
|
179
180
|
|
|
@@ -211,7 +212,7 @@ res = { '1': '男', '2': '女' }
|
|
|
211
212
|
|
|
212
213
|
#### Defined in
|
|
213
214
|
|
|
214
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
215
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/ato.ts#L12)
|
|
215
216
|
|
|
216
217
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
217
218
|
|
|
@@ -236,7 +237,7 @@ res = { '1': '男', '2': '女' }
|
|
|
236
237
|
|
|
237
238
|
#### Defined in
|
|
238
239
|
|
|
239
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
240
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/c4d6925/src/ato.ts#L16)
|
|
240
241
|
|
|
241
242
|
___
|
|
242
243
|
|
|
@@ -256,7 +257,7 @@ ___
|
|
|
256
257
|
|
|
257
258
|
#### Defined in
|
|
258
259
|
|
|
259
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
260
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/c4d6925/src/decode.ts#L41)
|
|
260
261
|
|
|
261
262
|
___
|
|
262
263
|
|
|
@@ -279,7 +280,7 @@ base64 转 blob
|
|
|
279
280
|
|
|
280
281
|
#### Defined in
|
|
281
282
|
|
|
282
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
283
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/base64ToBlob.ts#L6)
|
|
283
284
|
|
|
284
285
|
___
|
|
285
286
|
|
|
@@ -301,7 +302,7 @@ blob 转 base64
|
|
|
301
302
|
|
|
302
303
|
#### Defined in
|
|
303
304
|
|
|
304
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
305
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/blobToBase64.ts#L4)
|
|
305
306
|
|
|
306
307
|
___
|
|
307
308
|
|
|
@@ -321,7 +322,7 @@ ___
|
|
|
321
322
|
|
|
322
323
|
#### Defined in
|
|
323
324
|
|
|
324
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
325
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/decode.ts#L8)
|
|
325
326
|
|
|
326
327
|
___
|
|
327
328
|
|
|
@@ -362,7 +363,7 @@ ___
|
|
|
362
363
|
|
|
363
364
|
#### Defined in
|
|
364
365
|
|
|
365
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
366
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/cached.ts#L5)
|
|
366
367
|
|
|
367
368
|
___
|
|
368
369
|
|
|
@@ -385,7 +386,7 @@ camelCase('hello-world') => helloWorld
|
|
|
385
386
|
|
|
386
387
|
#### Defined in
|
|
387
388
|
|
|
388
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
389
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/camelCase.ts#L5)
|
|
389
390
|
|
|
390
391
|
___
|
|
391
392
|
|
|
@@ -409,7 +410,7 @@ canvas 转 blob 文件
|
|
|
409
410
|
|
|
410
411
|
#### Defined in
|
|
411
412
|
|
|
412
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
413
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/canvasToBlob.ts#L4)
|
|
413
414
|
|
|
414
415
|
___
|
|
415
416
|
|
|
@@ -432,7 +433,7 @@ capitalize('hello world') => Hello world
|
|
|
432
433
|
|
|
433
434
|
#### Defined in
|
|
434
435
|
|
|
435
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
436
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/capitalize.ts#L5)
|
|
436
437
|
|
|
437
438
|
___
|
|
438
439
|
|
|
@@ -457,7 +458,7 @@ ___
|
|
|
457
458
|
|
|
458
459
|
#### Defined in
|
|
459
460
|
|
|
460
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
461
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/chooseMedia.ts#L5)
|
|
461
462
|
|
|
462
463
|
___
|
|
463
464
|
|
|
@@ -481,7 +482,7 @@ ___
|
|
|
481
482
|
|
|
482
483
|
#### Defined in
|
|
483
484
|
|
|
484
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
485
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/clamp.ts#L7)
|
|
485
486
|
|
|
486
487
|
___
|
|
487
488
|
|
|
@@ -509,7 +510,7 @@ ___
|
|
|
509
510
|
|
|
510
511
|
#### Defined in
|
|
511
512
|
|
|
512
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
513
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/clone.ts#L8)
|
|
513
514
|
|
|
514
515
|
___
|
|
515
516
|
|
|
@@ -537,7 +538,7 @@ ___
|
|
|
537
538
|
|
|
538
539
|
#### Defined in
|
|
539
540
|
|
|
540
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
541
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/cloneSimple.ts#L7)
|
|
541
542
|
|
|
542
543
|
___
|
|
543
544
|
|
|
@@ -559,7 +560,7 @@ ___
|
|
|
559
560
|
|
|
560
561
|
#### Defined in
|
|
561
562
|
|
|
562
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
563
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/createHexColorByHash.ts#L4)
|
|
563
564
|
|
|
564
565
|
___
|
|
565
566
|
|
|
@@ -585,7 +586,7 @@ ___
|
|
|
585
586
|
|
|
586
587
|
#### Defined in
|
|
587
588
|
|
|
588
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
589
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/compareVersion.ts#L9)
|
|
589
590
|
|
|
590
591
|
___
|
|
591
592
|
|
|
@@ -608,7 +609,7 @@ ___
|
|
|
608
609
|
|
|
609
610
|
#### Defined in
|
|
610
611
|
|
|
611
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
612
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/compressImage.ts#L4)
|
|
612
613
|
|
|
613
614
|
___
|
|
614
615
|
|
|
@@ -636,7 +637,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
636
637
|
|
|
637
638
|
#### Defined in
|
|
638
639
|
|
|
639
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
640
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/createFactory.ts#L4)
|
|
640
641
|
|
|
641
642
|
___
|
|
642
643
|
|
|
@@ -674,7 +675,7 @@ ___
|
|
|
674
675
|
|
|
675
676
|
#### Defined in
|
|
676
677
|
|
|
677
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
678
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/createLinearFunction.ts#L9)
|
|
678
679
|
|
|
679
680
|
___
|
|
680
681
|
|
|
@@ -706,7 +707,7 @@ ___
|
|
|
706
707
|
|
|
707
708
|
#### Defined in
|
|
708
709
|
|
|
709
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
710
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/c4d6925/src/trap.ts#L49)
|
|
710
711
|
|
|
711
712
|
___
|
|
712
713
|
|
|
@@ -769,7 +770,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
769
770
|
|
|
770
771
|
#### Defined in
|
|
771
772
|
|
|
772
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
773
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/createWithLoading.ts#L11)
|
|
773
774
|
|
|
774
775
|
___
|
|
775
776
|
|
|
@@ -812,7 +813,7 @@ ___
|
|
|
812
813
|
|
|
813
814
|
#### Defined in
|
|
814
815
|
|
|
815
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
816
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/debounce.ts#L5)
|
|
816
817
|
|
|
817
818
|
___
|
|
818
819
|
|
|
@@ -836,7 +837,7 @@ ___
|
|
|
836
837
|
|
|
837
838
|
#### Defined in
|
|
838
839
|
|
|
839
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
840
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/downloadFile.ts#L4)
|
|
840
841
|
|
|
841
842
|
___
|
|
842
843
|
|
|
@@ -865,7 +866,7 @@ ___
|
|
|
865
866
|
|
|
866
867
|
#### Defined in
|
|
867
868
|
|
|
868
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
869
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/each.ts#L4)
|
|
869
870
|
|
|
870
871
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
871
872
|
|
|
@@ -888,7 +889,7 @@ ___
|
|
|
888
889
|
|
|
889
890
|
#### Defined in
|
|
890
891
|
|
|
891
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
892
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/each.ts#L8)
|
|
892
893
|
|
|
893
894
|
___
|
|
894
895
|
|
|
@@ -906,7 +907,7 @@ ___
|
|
|
906
907
|
|
|
907
908
|
#### Defined in
|
|
908
909
|
|
|
909
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
910
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/exitFullscreen.ts#L6)
|
|
910
911
|
|
|
911
912
|
___
|
|
912
913
|
|
|
@@ -935,7 +936,7 @@ ___
|
|
|
935
936
|
|
|
936
937
|
#### Defined in
|
|
937
938
|
|
|
938
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
939
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/storage/factory.ts#L11)
|
|
939
940
|
|
|
940
941
|
___
|
|
941
942
|
|
|
@@ -957,7 +958,7 @@ ___
|
|
|
957
958
|
|
|
958
959
|
#### Defined in
|
|
959
960
|
|
|
960
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
961
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterBankCardNo.ts#L4)
|
|
961
962
|
|
|
962
963
|
___
|
|
963
964
|
|
|
@@ -979,7 +980,7 @@ ___
|
|
|
979
980
|
|
|
980
981
|
#### Defined in
|
|
981
982
|
|
|
982
|
-
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/
|
|
983
|
+
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterCRLF.ts#L4)
|
|
983
984
|
|
|
984
985
|
___
|
|
985
986
|
|
|
@@ -1001,7 +1002,7 @@ ___
|
|
|
1001
1002
|
|
|
1002
1003
|
#### Defined in
|
|
1003
1004
|
|
|
1004
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1005
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterEmoji.ts#L4)
|
|
1005
1006
|
|
|
1006
1007
|
___
|
|
1007
1008
|
|
|
@@ -1024,7 +1025,7 @@ ___
|
|
|
1024
1025
|
|
|
1025
1026
|
#### Defined in
|
|
1026
1027
|
|
|
1027
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1028
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/filterEmptyValue.ts#L12)
|
|
1028
1029
|
|
|
1029
1030
|
___
|
|
1030
1031
|
|
|
@@ -1047,7 +1048,7 @@ ___
|
|
|
1047
1048
|
|
|
1048
1049
|
#### Defined in
|
|
1049
1050
|
|
|
1050
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1051
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/filterIdCard.ts#L5)
|
|
1051
1052
|
|
|
1052
1053
|
___
|
|
1053
1054
|
|
|
@@ -1069,7 +1070,7 @@ ___
|
|
|
1069
1070
|
|
|
1070
1071
|
#### Defined in
|
|
1071
1072
|
|
|
1072
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1073
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterName.ts#L4)
|
|
1073
1074
|
|
|
1074
1075
|
___
|
|
1075
1076
|
|
|
@@ -1094,7 +1095,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1094
1095
|
|
|
1095
1096
|
#### Defined in
|
|
1096
1097
|
|
|
1097
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1098
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/filterPhone.ts#L6)
|
|
1098
1099
|
|
|
1099
1100
|
___
|
|
1100
1101
|
|
|
@@ -1121,7 +1122,7 @@ str = '131****8888'
|
|
|
1121
1122
|
|
|
1122
1123
|
#### Defined in
|
|
1123
1124
|
|
|
1124
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1125
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/filterString.ts#L6)
|
|
1125
1126
|
|
|
1126
1127
|
___
|
|
1127
1128
|
|
|
@@ -1144,7 +1145,7 @@ ___
|
|
|
1144
1145
|
|
|
1145
1146
|
#### Defined in
|
|
1146
1147
|
|
|
1147
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1148
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formatAmount.ts#L4)
|
|
1148
1149
|
|
|
1149
1150
|
___
|
|
1150
1151
|
|
|
@@ -1168,7 +1169,7 @@ ___
|
|
|
1168
1169
|
|
|
1169
1170
|
#### Defined in
|
|
1170
1171
|
|
|
1171
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1172
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/formatDate.ts#L7)
|
|
1172
1173
|
|
|
1173
1174
|
___
|
|
1174
1175
|
|
|
@@ -1199,7 +1200,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1199
1200
|
|
|
1200
1201
|
#### Defined in
|
|
1201
1202
|
|
|
1202
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1203
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/formatDateStr.ts#L6)
|
|
1203
1204
|
|
|
1204
1205
|
___
|
|
1205
1206
|
|
|
@@ -1219,7 +1220,7 @@ ___
|
|
|
1219
1220
|
|
|
1220
1221
|
#### Defined in
|
|
1221
1222
|
|
|
1222
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1223
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formartDateToZN.ts#L4)
|
|
1223
1224
|
|
|
1224
1225
|
___
|
|
1225
1226
|
|
|
@@ -1242,7 +1243,7 @@ ___
|
|
|
1242
1243
|
|
|
1243
1244
|
#### Defined in
|
|
1244
1245
|
|
|
1245
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1246
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formatFileSize.ts#L4)
|
|
1246
1247
|
|
|
1247
1248
|
___
|
|
1248
1249
|
|
|
@@ -1267,7 +1268,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1267
1268
|
|
|
1268
1269
|
#### Defined in
|
|
1269
1270
|
|
|
1270
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1271
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/formatMessage.ts#L11)
|
|
1271
1272
|
|
|
1272
1273
|
___
|
|
1273
1274
|
|
|
@@ -1299,7 +1300,7 @@ rest = { xxx: 1 }
|
|
|
1299
1300
|
|
|
1300
1301
|
#### Defined in
|
|
1301
1302
|
|
|
1302
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1303
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/formatPathParams.ts#L8)
|
|
1303
1304
|
|
|
1304
1305
|
___
|
|
1305
1306
|
|
|
@@ -1321,7 +1322,7 @@ ___
|
|
|
1321
1322
|
|
|
1322
1323
|
#### Defined in
|
|
1323
1324
|
|
|
1324
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1325
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getBlobByUrl.ts#L4)
|
|
1325
1326
|
|
|
1326
1327
|
___
|
|
1327
1328
|
|
|
@@ -1344,7 +1345,7 @@ ___
|
|
|
1344
1345
|
|
|
1345
1346
|
#### Defined in
|
|
1346
1347
|
|
|
1347
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1348
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/storage/index.ts#L9)
|
|
1348
1349
|
|
|
1349
1350
|
___
|
|
1350
1351
|
|
|
@@ -1366,7 +1367,7 @@ ___
|
|
|
1366
1367
|
|
|
1367
1368
|
#### Defined in
|
|
1368
1369
|
|
|
1369
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1370
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getDayMillisecond.ts#L4)
|
|
1370
1371
|
|
|
1371
1372
|
___
|
|
1372
1373
|
|
|
@@ -1389,7 +1390,7 @@ ___
|
|
|
1389
1390
|
|
|
1390
1391
|
#### Defined in
|
|
1391
1392
|
|
|
1392
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1393
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getImageInfo.ts#L4)
|
|
1393
1394
|
|
|
1394
1395
|
___
|
|
1395
1396
|
|
|
@@ -1412,7 +1413,7 @@ ___
|
|
|
1412
1413
|
|
|
1413
1414
|
#### Defined in
|
|
1414
1415
|
|
|
1415
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1416
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/storage/index.ts#L9)
|
|
1416
1417
|
|
|
1417
1418
|
___
|
|
1418
1419
|
|
|
@@ -1434,7 +1435,7 @@ ___
|
|
|
1434
1435
|
|
|
1435
1436
|
#### Defined in
|
|
1436
1437
|
|
|
1437
|
-
getMonthBounds.ts:7
|
|
1438
|
+
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getMonthBounds.ts#L7)
|
|
1438
1439
|
|
|
1439
1440
|
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1440
1441
|
|
|
@@ -1451,7 +1452,7 @@ getMonthBounds.ts:7
|
|
|
1451
1452
|
|
|
1452
1453
|
#### Defined in
|
|
1453
1454
|
|
|
1454
|
-
getMonthBounds.ts:8
|
|
1455
|
+
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/getMonthBounds.ts#L8)
|
|
1455
1456
|
|
|
1456
1457
|
___
|
|
1457
1458
|
|
|
@@ -1474,7 +1475,7 @@ ___
|
|
|
1474
1475
|
|
|
1475
1476
|
#### Defined in
|
|
1476
1477
|
|
|
1477
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1478
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRandom.ts#L7)
|
|
1478
1479
|
|
|
1479
1480
|
___
|
|
1480
1481
|
|
|
@@ -1490,7 +1491,7 @@ ___
|
|
|
1490
1491
|
|
|
1491
1492
|
#### Defined in
|
|
1492
1493
|
|
|
1493
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1494
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getRandomColor.ts#L4)
|
|
1494
1495
|
|
|
1495
1496
|
___
|
|
1496
1497
|
|
|
@@ -1512,7 +1513,7 @@ ___
|
|
|
1512
1513
|
|
|
1513
1514
|
#### Defined in
|
|
1514
1515
|
|
|
1515
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1516
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRandomNumber.ts#L7)
|
|
1516
1517
|
|
|
1517
1518
|
___
|
|
1518
1519
|
|
|
@@ -1535,7 +1536,7 @@ ___
|
|
|
1535
1536
|
|
|
1536
1537
|
#### Defined in
|
|
1537
1538
|
|
|
1538
|
-
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1539
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRangeDate.ts#L7)
|
|
1539
1540
|
|
|
1540
1541
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1541
1542
|
|
|
@@ -1553,7 +1554,7 @@ ___
|
|
|
1553
1554
|
|
|
1554
1555
|
#### Defined in
|
|
1555
1556
|
|
|
1556
|
-
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/
|
|
1557
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/getRangeDate.ts#L11)
|
|
1557
1558
|
|
|
1558
1559
|
___
|
|
1559
1560
|
|
|
@@ -1569,7 +1570,7 @@ ___
|
|
|
1569
1570
|
|
|
1570
1571
|
#### Defined in
|
|
1571
1572
|
|
|
1572
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1573
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getScrollTop.ts#L4)
|
|
1573
1574
|
|
|
1574
1575
|
___
|
|
1575
1576
|
|
|
@@ -1591,7 +1592,7 @@ ___
|
|
|
1591
1592
|
|
|
1592
1593
|
#### Defined in
|
|
1593
1594
|
|
|
1594
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1595
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getVideoInfo.ts#L4)
|
|
1595
1596
|
|
|
1596
1597
|
___
|
|
1597
1598
|
|
|
@@ -1614,7 +1615,7 @@ ___
|
|
|
1614
1615
|
|
|
1615
1616
|
#### Defined in
|
|
1616
1617
|
|
|
1617
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1618
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/getWeekday.ts#L6)
|
|
1618
1619
|
|
|
1619
1620
|
___
|
|
1620
1621
|
|
|
@@ -1630,7 +1631,7 @@ ___
|
|
|
1630
1631
|
|
|
1631
1632
|
#### Defined in
|
|
1632
1633
|
|
|
1633
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1634
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/inBrowser.ts#L4)
|
|
1634
1635
|
|
|
1635
1636
|
___
|
|
1636
1637
|
|
|
@@ -1652,7 +1653,7 @@ ___
|
|
|
1652
1653
|
|
|
1653
1654
|
#### Defined in
|
|
1654
1655
|
|
|
1655
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1656
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertLink.ts#L4)
|
|
1656
1657
|
|
|
1657
1658
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1658
1659
|
|
|
@@ -1669,7 +1670,7 @@ ___
|
|
|
1669
1670
|
|
|
1670
1671
|
#### Defined in
|
|
1671
1672
|
|
|
1672
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1673
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/insertLink.ts#L5)
|
|
1673
1674
|
|
|
1674
1675
|
___
|
|
1675
1676
|
|
|
@@ -1691,7 +1692,7 @@ ___
|
|
|
1691
1692
|
|
|
1692
1693
|
#### Defined in
|
|
1693
1694
|
|
|
1694
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1695
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertScript.ts#L4)
|
|
1695
1696
|
|
|
1696
1697
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1697
1698
|
|
|
@@ -1708,7 +1709,7 @@ ___
|
|
|
1708
1709
|
|
|
1709
1710
|
#### Defined in
|
|
1710
1711
|
|
|
1711
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1712
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/insertScript.ts#L5)
|
|
1712
1713
|
|
|
1713
1714
|
___
|
|
1714
1715
|
|
|
@@ -1730,7 +1731,7 @@ ___
|
|
|
1730
1731
|
|
|
1731
1732
|
#### Defined in
|
|
1732
1733
|
|
|
1733
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1734
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertStyle.ts#L4)
|
|
1734
1735
|
|
|
1735
1736
|
___
|
|
1736
1737
|
|
|
@@ -1759,7 +1760,7 @@ isAmount('1.123') => false
|
|
|
1759
1760
|
|
|
1760
1761
|
#### Defined in
|
|
1761
1762
|
|
|
1762
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1763
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/isAmount.ts#L11)
|
|
1763
1764
|
|
|
1764
1765
|
___
|
|
1765
1766
|
|
|
@@ -1775,7 +1776,7 @@ ___
|
|
|
1775
1776
|
|
|
1776
1777
|
#### Defined in
|
|
1777
1778
|
|
|
1778
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
1779
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isAndroid.ts#L4)
|
|
1779
1780
|
|
|
1780
1781
|
___
|
|
1781
1782
|
|
|
@@ -1799,7 +1800,7 @@ val is any[]
|
|
|
1799
1800
|
|
|
1800
1801
|
#### Defined in
|
|
1801
1802
|
|
|
1802
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1803
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isArray.ts#L6)
|
|
1803
1804
|
|
|
1804
1805
|
___
|
|
1805
1806
|
|
|
@@ -1821,7 +1822,7 @@ val is boolean
|
|
|
1821
1822
|
|
|
1822
1823
|
#### Defined in
|
|
1823
1824
|
|
|
1824
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
1825
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isBoolean.ts#L5)
|
|
1825
1826
|
|
|
1826
1827
|
___
|
|
1827
1828
|
|
|
@@ -1843,7 +1844,7 @@ ___
|
|
|
1843
1844
|
|
|
1844
1845
|
#### Defined in
|
|
1845
1846
|
|
|
1846
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
1847
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isChinese.ts#L4)
|
|
1847
1848
|
|
|
1848
1849
|
___
|
|
1849
1850
|
|
|
@@ -1865,7 +1866,7 @@ val is Date
|
|
|
1865
1866
|
|
|
1866
1867
|
#### Defined in
|
|
1867
1868
|
|
|
1868
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1869
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isDate.ts#L4)
|
|
1869
1870
|
|
|
1870
1871
|
___
|
|
1871
1872
|
|
|
@@ -1887,7 +1888,7 @@ ___
|
|
|
1887
1888
|
|
|
1888
1889
|
#### Defined in
|
|
1889
1890
|
|
|
1890
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
1891
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isEmail.ts#L4)
|
|
1891
1892
|
|
|
1892
1893
|
___
|
|
1893
1894
|
|
|
@@ -1909,7 +1910,7 @@ ___
|
|
|
1909
1910
|
|
|
1910
1911
|
#### Defined in
|
|
1911
1912
|
|
|
1912
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
1913
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isEmpty.ts#L6)
|
|
1913
1914
|
|
|
1914
1915
|
___
|
|
1915
1916
|
|
|
@@ -1931,7 +1932,7 @@ ___
|
|
|
1931
1932
|
|
|
1932
1933
|
#### Defined in
|
|
1933
1934
|
|
|
1934
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1935
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isEmptyArray.ts#L6)
|
|
1935
1936
|
|
|
1936
1937
|
___
|
|
1937
1938
|
|
|
@@ -1953,7 +1954,7 @@ ___
|
|
|
1953
1954
|
|
|
1954
1955
|
#### Defined in
|
|
1955
1956
|
|
|
1956
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
1957
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isEmptyObject.ts#L5)
|
|
1957
1958
|
|
|
1958
1959
|
___
|
|
1959
1960
|
|
|
@@ -1975,7 +1976,7 @@ val is Error
|
|
|
1975
1976
|
|
|
1976
1977
|
#### Defined in
|
|
1977
1978
|
|
|
1978
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
1979
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isError.ts#L4)
|
|
1979
1980
|
|
|
1980
1981
|
___
|
|
1981
1982
|
|
|
@@ -1997,7 +1998,7 @@ val is Function
|
|
|
1997
1998
|
|
|
1998
1999
|
#### Defined in
|
|
1999
2000
|
|
|
2000
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2001
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isFunction.ts#L4)
|
|
2001
2002
|
|
|
2002
2003
|
___
|
|
2003
2004
|
|
|
@@ -2015,7 +2016,7 @@ ___
|
|
|
2015
2016
|
|
|
2016
2017
|
#### Defined in
|
|
2017
2018
|
|
|
2018
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2019
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isIE.ts#L6)
|
|
2019
2020
|
|
|
2020
2021
|
___
|
|
2021
2022
|
|
|
@@ -2031,7 +2032,7 @@ ___
|
|
|
2031
2032
|
|
|
2032
2033
|
#### Defined in
|
|
2033
2034
|
|
|
2034
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2035
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isIOS.ts#L4)
|
|
2035
2036
|
|
|
2036
2037
|
___
|
|
2037
2038
|
|
|
@@ -2053,7 +2054,7 @@ ___
|
|
|
2053
2054
|
|
|
2054
2055
|
#### Defined in
|
|
2055
2056
|
|
|
2056
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2057
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isIdCard.ts#L4)
|
|
2057
2058
|
|
|
2058
2059
|
___
|
|
2059
2060
|
|
|
@@ -2075,7 +2076,7 @@ ___
|
|
|
2075
2076
|
|
|
2076
2077
|
#### Defined in
|
|
2077
2078
|
|
|
2078
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2079
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/isJSONString.ts#L7)
|
|
2079
2080
|
|
|
2080
2081
|
___
|
|
2081
2082
|
|
|
@@ -2097,7 +2098,7 @@ ___
|
|
|
2097
2098
|
|
|
2098
2099
|
#### Defined in
|
|
2099
2100
|
|
|
2100
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2101
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isLan.ts#L5)
|
|
2101
2102
|
|
|
2102
2103
|
___
|
|
2103
2104
|
|
|
@@ -2119,7 +2120,7 @@ ___
|
|
|
2119
2120
|
|
|
2120
2121
|
#### Defined in
|
|
2121
2122
|
|
|
2122
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2123
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isLicenseCode.ts#L5)
|
|
2123
2124
|
|
|
2124
2125
|
___
|
|
2125
2126
|
|
|
@@ -2135,7 +2136,7 @@ ___
|
|
|
2135
2136
|
|
|
2136
2137
|
#### Defined in
|
|
2137
2138
|
|
|
2138
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2139
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isMobile.ts#L4)
|
|
2139
2140
|
|
|
2140
2141
|
___
|
|
2141
2142
|
|
|
@@ -2158,7 +2159,7 @@ ___
|
|
|
2158
2159
|
|
|
2159
2160
|
#### Defined in
|
|
2160
2161
|
|
|
2161
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2162
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/isNativeFunction.ts#L7)
|
|
2162
2163
|
|
|
2163
2164
|
___
|
|
2164
2165
|
|
|
@@ -2180,7 +2181,7 @@ val is null
|
|
|
2180
2181
|
|
|
2181
2182
|
#### Defined in
|
|
2182
2183
|
|
|
2183
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2184
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isNull.ts#L4)
|
|
2184
2185
|
|
|
2185
2186
|
___
|
|
2186
2187
|
|
|
@@ -2202,7 +2203,7 @@ val is number
|
|
|
2202
2203
|
|
|
2203
2204
|
#### Defined in
|
|
2204
2205
|
|
|
2205
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2206
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isNumber.ts#L5)
|
|
2206
2207
|
|
|
2207
2208
|
___
|
|
2208
2209
|
|
|
@@ -2224,7 +2225,7 @@ val is Record<string, any\>
|
|
|
2224
2225
|
|
|
2225
2226
|
#### Defined in
|
|
2226
2227
|
|
|
2227
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2228
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isObject.ts#L4)
|
|
2228
2229
|
|
|
2229
2230
|
___
|
|
2230
2231
|
|
|
@@ -2246,7 +2247,7 @@ ___
|
|
|
2246
2247
|
|
|
2247
2248
|
#### Defined in
|
|
2248
2249
|
|
|
2249
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2250
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isPhone.ts#L4)
|
|
2250
2251
|
|
|
2251
2252
|
___
|
|
2252
2253
|
|
|
@@ -2274,7 +2275,7 @@ val is Promise<T\>
|
|
|
2274
2275
|
|
|
2275
2276
|
#### Defined in
|
|
2276
2277
|
|
|
2277
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2278
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isPromise.ts#L4)
|
|
2278
2279
|
|
|
2279
2280
|
___
|
|
2280
2281
|
|
|
@@ -2296,7 +2297,7 @@ val is RegExp
|
|
|
2296
2297
|
|
|
2297
2298
|
#### Defined in
|
|
2298
2299
|
|
|
2299
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2300
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isRegExp.ts#L4)
|
|
2300
2301
|
|
|
2301
2302
|
___
|
|
2302
2303
|
|
|
@@ -2318,7 +2319,7 @@ val is string
|
|
|
2318
2319
|
|
|
2319
2320
|
#### Defined in
|
|
2320
2321
|
|
|
2321
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2322
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isString.ts#L4)
|
|
2322
2323
|
|
|
2323
2324
|
___
|
|
2324
2325
|
|
|
@@ -2347,7 +2348,7 @@ val is T
|
|
|
2347
2348
|
|
|
2348
2349
|
#### Defined in
|
|
2349
2350
|
|
|
2350
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2351
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isType.ts#L4)
|
|
2351
2352
|
|
|
2352
2353
|
___
|
|
2353
2354
|
|
|
@@ -2369,7 +2370,7 @@ val is undefined
|
|
|
2369
2370
|
|
|
2370
2371
|
#### Defined in
|
|
2371
2372
|
|
|
2372
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2373
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isUndefined.ts#L4)
|
|
2373
2374
|
|
|
2374
2375
|
___
|
|
2375
2376
|
|
|
@@ -2413,7 +2414,7 @@ ___
|
|
|
2413
2414
|
|
|
2414
2415
|
#### Defined in
|
|
2415
2416
|
|
|
2416
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2417
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isValidDate.ts#L6)
|
|
2417
2418
|
|
|
2418
2419
|
___
|
|
2419
2420
|
|
|
@@ -2429,7 +2430,7 @@ ___
|
|
|
2429
2430
|
|
|
2430
2431
|
#### Defined in
|
|
2431
2432
|
|
|
2432
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2433
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChat.ts#L4)
|
|
2433
2434
|
|
|
2434
2435
|
___
|
|
2435
2436
|
|
|
@@ -2446,7 +2447,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2446
2447
|
|
|
2447
2448
|
#### Defined in
|
|
2448
2449
|
|
|
2449
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2450
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChatMiniProgram.ts#L5)
|
|
2450
2451
|
|
|
2451
2452
|
___
|
|
2452
2453
|
|
|
@@ -2470,7 +2471,7 @@ ___
|
|
|
2470
2471
|
|
|
2471
2472
|
#### Defined in
|
|
2472
2473
|
|
|
2473
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2474
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChat.ts#L12)
|
|
2474
2475
|
|
|
2475
2476
|
___
|
|
2476
2477
|
|
|
@@ -2492,7 +2493,7 @@ val is Window
|
|
|
2492
2493
|
|
|
2493
2494
|
#### Defined in
|
|
2494
2495
|
|
|
2495
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2496
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isWindow.ts#L5)
|
|
2496
2497
|
|
|
2497
2498
|
___
|
|
2498
2499
|
|
|
@@ -2515,7 +2516,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2515
2516
|
|
|
2516
2517
|
#### Defined in
|
|
2517
2518
|
|
|
2518
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2519
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/kebabCase.ts#L5)
|
|
2519
2520
|
|
|
2520
2521
|
___
|
|
2521
2522
|
|
|
@@ -2544,7 +2545,7 @@ list 生成器,快速生成数据
|
|
|
2544
2545
|
|
|
2545
2546
|
#### Defined in
|
|
2546
2547
|
|
|
2547
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2548
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/listGenerator.ts#L5)
|
|
2548
2549
|
|
|
2549
2550
|
___
|
|
2550
2551
|
|
|
@@ -2564,7 +2565,7 @@ ___
|
|
|
2564
2565
|
|
|
2565
2566
|
#### Defined in
|
|
2566
2567
|
|
|
2567
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2568
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/c4d6925/src/makePhoneCall.ts#L1)
|
|
2568
2569
|
|
|
2569
2570
|
___
|
|
2570
2571
|
|
|
@@ -2589,7 +2590,7 @@ ___
|
|
|
2589
2590
|
|
|
2590
2591
|
#### Defined in
|
|
2591
2592
|
|
|
2592
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2593
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/c4d6925/src/mousewheel.ts#L22)
|
|
2593
2594
|
|
|
2594
2595
|
___
|
|
2595
2596
|
|
|
@@ -2605,7 +2606,7 @@ ___
|
|
|
2605
2606
|
|
|
2606
2607
|
#### Defined in
|
|
2607
2608
|
|
|
2608
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2609
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/nf.ts#L4)
|
|
2609
2610
|
|
|
2610
2611
|
___
|
|
2611
2612
|
|
|
@@ -2629,7 +2630,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2629
2630
|
|
|
2630
2631
|
#### Defined in
|
|
2631
2632
|
|
|
2632
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
2633
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/normalizeDate.ts#L8)
|
|
2633
2634
|
|
|
2634
2635
|
___
|
|
2635
2636
|
|
|
@@ -2651,7 +2652,7 @@ ___
|
|
|
2651
2652
|
|
|
2652
2653
|
#### Defined in
|
|
2653
2654
|
|
|
2654
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2655
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/normalizePath.ts#L4)
|
|
2655
2656
|
|
|
2656
2657
|
___
|
|
2657
2658
|
|
|
@@ -2681,7 +2682,7 @@ ___
|
|
|
2681
2682
|
|
|
2682
2683
|
#### Defined in
|
|
2683
2684
|
|
|
2684
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2685
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/omit.ts#L4)
|
|
2685
2686
|
|
|
2686
2687
|
___
|
|
2687
2688
|
|
|
@@ -2705,7 +2706,7 @@ ___
|
|
|
2705
2706
|
|
|
2706
2707
|
#### Defined in
|
|
2707
2708
|
|
|
2708
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2709
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/padding.ts#L7)
|
|
2709
2710
|
|
|
2710
2711
|
___
|
|
2711
2712
|
|
|
@@ -2731,7 +2732,7 @@ ___
|
|
|
2731
2732
|
|
|
2732
2733
|
#### Defined in
|
|
2733
2734
|
|
|
2734
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
2735
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/parseDate.ts#L5)
|
|
2735
2736
|
|
|
2736
2737
|
___
|
|
2737
2738
|
|
|
@@ -2754,7 +2755,7 @@ ___
|
|
|
2754
2755
|
|
|
2755
2756
|
#### Defined in
|
|
2756
2757
|
|
|
2757
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
2758
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/parseError.ts#L8)
|
|
2758
2759
|
|
|
2759
2760
|
___
|
|
2760
2761
|
|
|
@@ -2784,7 +2785,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
2784
2785
|
|
|
2785
2786
|
#### Defined in
|
|
2786
2787
|
|
|
2787
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2788
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/parseObject.ts#L5)
|
|
2788
2789
|
|
|
2789
2790
|
___
|
|
2790
2791
|
|
|
@@ -2813,7 +2814,7 @@ ___
|
|
|
2813
2814
|
|
|
2814
2815
|
#### Defined in
|
|
2815
2816
|
|
|
2816
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
2817
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/parsePath.ts#L6)
|
|
2817
2818
|
|
|
2818
2819
|
___
|
|
2819
2820
|
|
|
@@ -2836,7 +2837,7 @@ ___
|
|
|
2836
2837
|
|
|
2837
2838
|
#### Defined in
|
|
2838
2839
|
|
|
2839
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
2840
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/parseQuery.ts#L8)
|
|
2840
2841
|
|
|
2841
2842
|
___
|
|
2842
2843
|
|
|
@@ -2866,7 +2867,7 @@ ___
|
|
|
2866
2867
|
|
|
2867
2868
|
#### Defined in
|
|
2868
2869
|
|
|
2869
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
2870
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/parseQueryString.ts#L6)
|
|
2870
2871
|
|
|
2871
2872
|
___
|
|
2872
2873
|
|
|
@@ -2889,7 +2890,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
2889
2890
|
|
|
2890
2891
|
#### Defined in
|
|
2891
2892
|
|
|
2892
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
2893
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/pascalCase.ts#L8)
|
|
2893
2894
|
|
|
2894
2895
|
___
|
|
2895
2896
|
|
|
@@ -2919,7 +2920,7 @@ ___
|
|
|
2919
2920
|
|
|
2920
2921
|
#### Defined in
|
|
2921
2922
|
|
|
2922
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
2923
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/pick.ts#L4)
|
|
2923
2924
|
|
|
2924
2925
|
___
|
|
2925
2926
|
|
|
@@ -2942,7 +2943,7 @@ ___
|
|
|
2942
2943
|
|
|
2943
2944
|
#### Defined in
|
|
2944
2945
|
|
|
2945
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2946
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/replaceCrlf.ts#L4)
|
|
2946
2947
|
|
|
2947
2948
|
___
|
|
2948
2949
|
|
|
@@ -2966,7 +2967,7 @@ ___
|
|
|
2966
2967
|
|
|
2967
2968
|
#### Defined in
|
|
2968
2969
|
|
|
2969
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
2970
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/requestFullScreen.ts#L6)
|
|
2970
2971
|
|
|
2971
2972
|
___
|
|
2972
2973
|
|
|
@@ -2992,7 +2993,7 @@ reserve(0, '--') => 0
|
|
|
2992
2993
|
|
|
2993
2994
|
#### Defined in
|
|
2994
2995
|
|
|
2995
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
2996
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/reserve.ts#L8)
|
|
2996
2997
|
|
|
2997
2998
|
___
|
|
2998
2999
|
|
|
@@ -3016,7 +3017,7 @@ ___
|
|
|
3016
3017
|
|
|
3017
3018
|
#### Defined in
|
|
3018
3019
|
|
|
3019
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3020
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/rgbToHex.ts#L4)
|
|
3020
3021
|
|
|
3021
3022
|
___
|
|
3022
3023
|
|
|
@@ -3039,7 +3040,7 @@ ___
|
|
|
3039
3040
|
|
|
3040
3041
|
#### Defined in
|
|
3041
3042
|
|
|
3042
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3043
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/round.ts#L6)
|
|
3043
3044
|
|
|
3044
3045
|
___
|
|
3045
3046
|
|
|
@@ -3055,7 +3056,7 @@ ___
|
|
|
3055
3056
|
|
|
3056
3057
|
#### Defined in
|
|
3057
3058
|
|
|
3058
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3059
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/scrollToTop.ts#L4)
|
|
3059
3060
|
|
|
3060
3061
|
___
|
|
3061
3062
|
|
|
@@ -3077,7 +3078,7 @@ ___
|
|
|
3077
3078
|
|
|
3078
3079
|
#### Defined in
|
|
3079
3080
|
|
|
3080
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3081
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/setScrollTop.ts#L4)
|
|
3081
3082
|
|
|
3082
3083
|
___
|
|
3083
3084
|
|
|
@@ -3100,7 +3101,7 @@ ___
|
|
|
3100
3101
|
|
|
3101
3102
|
#### Defined in
|
|
3102
3103
|
|
|
3103
|
-
[sleep.ts:6](https://github.com/daysnap/utils/blob/
|
|
3104
|
+
[sleep.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/sleep.ts#L6)
|
|
3104
3105
|
|
|
3105
3106
|
___
|
|
3106
3107
|
|
|
@@ -3129,7 +3130,7 @@ ___
|
|
|
3129
3130
|
|
|
3130
3131
|
#### Defined in
|
|
3131
3132
|
|
|
3132
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3133
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/splitArray.ts#L4)
|
|
3133
3134
|
|
|
3134
3135
|
___
|
|
3135
3136
|
|
|
@@ -3152,7 +3153,7 @@ ___
|
|
|
3152
3153
|
|
|
3153
3154
|
#### Defined in
|
|
3154
3155
|
|
|
3155
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3156
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/stringTrim.ts#L6)
|
|
3156
3157
|
|
|
3157
3158
|
___
|
|
3158
3159
|
|
|
@@ -3174,7 +3175,7 @@ ___
|
|
|
3174
3175
|
|
|
3175
3176
|
#### Defined in
|
|
3176
3177
|
|
|
3177
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3178
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/stringifyQuery.ts#L7)
|
|
3178
3179
|
|
|
3179
3180
|
___
|
|
3180
3181
|
|
|
@@ -3198,7 +3199,7 @@ ___
|
|
|
3198
3199
|
|
|
3199
3200
|
#### Defined in
|
|
3200
3201
|
|
|
3201
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3202
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/stringifyQueryString.ts#L6)
|
|
3202
3203
|
|
|
3203
3204
|
___
|
|
3204
3205
|
|
|
@@ -3242,7 +3243,7 @@ ___
|
|
|
3242
3243
|
|
|
3243
3244
|
#### Defined in
|
|
3244
3245
|
|
|
3245
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3246
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L48)
|
|
3246
3247
|
|
|
3247
3248
|
___
|
|
3248
3249
|
|
|
@@ -3285,7 +3286,7 @@ ___
|
|
|
3285
3286
|
|
|
3286
3287
|
#### Defined in
|
|
3287
3288
|
|
|
3288
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3289
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L5)
|
|
3289
3290
|
|
|
3290
3291
|
___
|
|
3291
3292
|
|
|
@@ -3328,7 +3329,7 @@ ___
|
|
|
3328
3329
|
|
|
3329
3330
|
#### Defined in
|
|
3330
3331
|
|
|
3331
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3332
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L25)
|
|
3332
3333
|
|
|
3333
3334
|
___
|
|
3334
3335
|
|
|
@@ -3350,7 +3351,7 @@ ___
|
|
|
3350
3351
|
|
|
3351
3352
|
#### Defined in
|
|
3352
3353
|
|
|
3353
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3354
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/toCDB.ts#L4)
|
|
3354
3355
|
|
|
3355
3356
|
___
|
|
3356
3357
|
|
|
@@ -3372,7 +3373,7 @@ ___
|
|
|
3372
3373
|
|
|
3373
3374
|
#### Defined in
|
|
3374
3375
|
|
|
3375
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3376
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/toDBC.ts#L4)
|
|
3376
3377
|
|
|
3377
3378
|
___
|
|
3378
3379
|
|
|
@@ -3396,7 +3397,35 @@ ___
|
|
|
3396
3397
|
|
|
3397
3398
|
#### Defined in
|
|
3398
3399
|
|
|
3399
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3400
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/typeOf.ts#L6)
|
|
3401
|
+
|
|
3402
|
+
___
|
|
3403
|
+
|
|
3404
|
+
### withCache
|
|
3405
|
+
|
|
3406
|
+
▸ **withCache**<`T`\>(`fn`): `T`
|
|
3407
|
+
|
|
3408
|
+
缓存函数
|
|
3409
|
+
|
|
3410
|
+
#### Type parameters
|
|
3411
|
+
|
|
3412
|
+
| Name | Type |
|
|
3413
|
+
| :------ | :------ |
|
|
3414
|
+
| `T` | extends (...`args`: `any`[]) => `any` |
|
|
3415
|
+
|
|
3416
|
+
#### Parameters
|
|
3417
|
+
|
|
3418
|
+
| Name | Type |
|
|
3419
|
+
| :------ | :------ |
|
|
3420
|
+
| `fn` | `T` |
|
|
3421
|
+
|
|
3422
|
+
#### Returns
|
|
3423
|
+
|
|
3424
|
+
`T`
|
|
3425
|
+
|
|
3426
|
+
#### Defined in
|
|
3427
|
+
|
|
3428
|
+
withCache.ts:4
|
|
3400
3429
|
|
|
3401
3430
|
___
|
|
3402
3431
|
|
|
@@ -3425,4 +3454,4 @@ ___
|
|
|
3425
3454
|
|
|
3426
3455
|
#### Defined in
|
|
3427
3456
|
|
|
3428
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3457
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/withPreventConsecutiveClicks.ts#L4)
|