@daysnap/utils 0.1.19 → 0.1.21
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/classes/Poller.md +9 -9
- package/docs/classes/Storage.md +13 -13
- package/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/PollerOptions.md +1 -1
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +205 -152
- package/es/blobToBase64.d.ts +1 -1
- package/es/blobToBase64.js +1 -1
- package/es/{chunk-65FBSULU.js → chunk-2ZSZ4GDI.js} +2 -1
- package/es/chunk-ANY3ULZW.js +8 -0
- package/es/{chunk-YLHA5VH3.js → chunk-D5O4LXN3.js} +1 -1
- package/es/chunk-KH7MPMQF.js +15 -0
- package/es/chunk-N6ZMEBBU.js +23 -0
- package/es/{chunk-GLJALZRT.js → chunk-QT2EM4X2.js} +1 -1
- package/es/{chunk-DW5GIB4A.js → chunk-WXD7J2FR.js} +2 -1
- package/es/chunk-YUID5DXT.js +10 -0
- package/es/formartDateToZN.js +1 -1
- package/es/formatFileSize.js +1 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +32 -24
- package/es/{isURL.js → isUrl.js} +1 -1
- package/es/parseDecimalString.d.ts +10 -0
- package/es/parseDecimalString.js +6 -0
- package/es/parseNumberString.d.ts +9 -0
- package/es/parseNumberString.js +6 -0
- package/es/poller.js +2 -2
- package/es/sleep.d.ts +2 -1
- package/es/sleep.js +1 -1
- package/es/storage/index.js +3 -3
- package/lib/blobToBase64.cjs +2 -2
- package/lib/blobToBase64.d.cts +1 -1
- package/lib/{chunk-LJD6E7O5.cjs → chunk-EDVQTNLJ.cjs} +2 -1
- package/lib/{chunk-YMGGMXZL.cjs → chunk-I6VB2D7C.cjs} +1 -1
- package/lib/chunk-J5LO5FYM.cjs +23 -0
- package/lib/{chunk-DIJ3MI2T.cjs → chunk-KT3FWGJG.cjs} +2 -1
- package/lib/chunk-MDWZRDAT.cjs +8 -0
- package/lib/{chunk-TDUDOSU4.cjs → chunk-X4KLPUWQ.cjs} +2 -2
- package/lib/{chunk-CDHFRZQM.cjs → chunk-YIW4PW4Q.cjs} +2 -8
- package/lib/{chunk-XL3QSME6.cjs → chunk-YODLJ422.cjs} +2 -2
- package/lib/formartDateToZN.cjs +2 -2
- package/lib/formatFileSize.cjs +2 -2
- package/lib/index.cjs +28 -20
- package/lib/index.d.cts +3 -1
- package/lib/isUrl.cjs +6 -0
- package/lib/parseDecimalString.cjs +6 -0
- package/lib/parseDecimalString.d.cts +10 -0
- package/lib/parseNumberString.cjs +6 -0
- package/lib/parseNumberString.d.cts +9 -0
- package/lib/poller.cjs +3 -3
- package/lib/sleep.cjs +2 -2
- package/lib/sleep.d.cts +2 -1
- package/lib/storage/index.cjs +2 -2
- package/package.json +1 -1
- package/es/chunk-HRKQWKOJ.js +0 -21
- package/es/chunk-TNIIDDN4.js +0 -10
- package/lib/isURL.cjs +0 -6
- /package/es/{isURL.d.ts → isUrl.d.ts} +0 -0
- /package/lib/{isURL.d.cts → isUrl.d.cts} +0 -0
package/docs/modules.md
CHANGED
|
@@ -137,7 +137,9 @@
|
|
|
137
137
|
- [omit](modules.md#omit)
|
|
138
138
|
- [padding](modules.md#padding)
|
|
139
139
|
- [parseDate](modules.md#parsedate)
|
|
140
|
+
- [parseDecimalString](modules.md#parsedecimalstring)
|
|
140
141
|
- [parseError](modules.md#parseerror)
|
|
142
|
+
- [parseNumberString](modules.md#parsenumberstring)
|
|
141
143
|
- [parseObject](modules.md#parseobject)
|
|
142
144
|
- [parsePath](modules.md#parsepath)
|
|
143
145
|
- [parseQuery](modules.md#parsequery)
|
|
@@ -187,7 +189,7 @@
|
|
|
187
189
|
|
|
188
190
|
#### Defined in
|
|
189
191
|
|
|
190
|
-
[poller.ts:7](https://github.com/daysnap/utils/blob/
|
|
192
|
+
[poller.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/poller.ts#L7)
|
|
191
193
|
|
|
192
194
|
## Variables
|
|
193
195
|
|
|
@@ -206,7 +208,7 @@
|
|
|
206
208
|
|
|
207
209
|
#### Defined in
|
|
208
210
|
|
|
209
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
211
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/6b0ba36/src/eventBus.ts#L38)
|
|
210
212
|
|
|
211
213
|
___
|
|
212
214
|
|
|
@@ -216,7 +218,7 @@ ___
|
|
|
216
218
|
|
|
217
219
|
#### Defined in
|
|
218
220
|
|
|
219
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
221
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/6b0ba36/src/trap.ts#L15)
|
|
220
222
|
|
|
221
223
|
## Functions
|
|
222
224
|
|
|
@@ -254,7 +256,7 @@ res = { '1': '男', '2': '女' }
|
|
|
254
256
|
|
|
255
257
|
#### Defined in
|
|
256
258
|
|
|
257
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
259
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/6b0ba36/src/ato.ts#L12)
|
|
258
260
|
|
|
259
261
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
260
262
|
|
|
@@ -279,7 +281,7 @@ res = { '1': '男', '2': '女' }
|
|
|
279
281
|
|
|
280
282
|
#### Defined in
|
|
281
283
|
|
|
282
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
284
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/6b0ba36/src/ato.ts#L16)
|
|
283
285
|
|
|
284
286
|
___
|
|
285
287
|
|
|
@@ -299,7 +301,7 @@ ___
|
|
|
299
301
|
|
|
300
302
|
#### Defined in
|
|
301
303
|
|
|
302
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
304
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/6b0ba36/src/decode.ts#L41)
|
|
303
305
|
|
|
304
306
|
___
|
|
305
307
|
|
|
@@ -322,13 +324,13 @@ base64 转 blob
|
|
|
322
324
|
|
|
323
325
|
#### Defined in
|
|
324
326
|
|
|
325
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
327
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/base64ToBlob.ts#L6)
|
|
326
328
|
|
|
327
329
|
___
|
|
328
330
|
|
|
329
331
|
### blobToBase64
|
|
330
332
|
|
|
331
|
-
▸ **blobToBase64**(`blob
|
|
333
|
+
▸ **blobToBase64**(`blob`): `Promise`<`string` \| `ArrayBuffer`\>
|
|
332
334
|
|
|
333
335
|
blob 转 base64
|
|
334
336
|
|
|
@@ -337,7 +339,6 @@ blob 转 base64
|
|
|
337
339
|
| Name | Type |
|
|
338
340
|
| :------ | :------ |
|
|
339
341
|
| `blob` | `Blob` |
|
|
340
|
-
| `contentType?` | `string` |
|
|
341
342
|
|
|
342
343
|
#### Returns
|
|
343
344
|
|
|
@@ -345,7 +346,7 @@ blob 转 base64
|
|
|
345
346
|
|
|
346
347
|
#### Defined in
|
|
347
348
|
|
|
348
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
349
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/blobToBase64.ts#L4)
|
|
349
350
|
|
|
350
351
|
___
|
|
351
352
|
|
|
@@ -365,7 +366,7 @@ ___
|
|
|
365
366
|
|
|
366
367
|
#### Defined in
|
|
367
368
|
|
|
368
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
369
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/decode.ts#L8)
|
|
369
370
|
|
|
370
371
|
___
|
|
371
372
|
|
|
@@ -406,7 +407,7 @@ ___
|
|
|
406
407
|
|
|
407
408
|
#### Defined in
|
|
408
409
|
|
|
409
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
410
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/cached.ts#L5)
|
|
410
411
|
|
|
411
412
|
___
|
|
412
413
|
|
|
@@ -429,7 +430,7 @@ camelCase('hello-world') => helloWorld
|
|
|
429
430
|
|
|
430
431
|
#### Defined in
|
|
431
432
|
|
|
432
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
433
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/camelCase.ts#L5)
|
|
433
434
|
|
|
434
435
|
___
|
|
435
436
|
|
|
@@ -453,7 +454,7 @@ canvas 转 blob 文件
|
|
|
453
454
|
|
|
454
455
|
#### Defined in
|
|
455
456
|
|
|
456
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
457
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/canvasToBlob.ts#L4)
|
|
457
458
|
|
|
458
459
|
___
|
|
459
460
|
|
|
@@ -476,7 +477,7 @@ capitalize('hello world') => Hello world
|
|
|
476
477
|
|
|
477
478
|
#### Defined in
|
|
478
479
|
|
|
479
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
480
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/capitalize.ts#L5)
|
|
480
481
|
|
|
481
482
|
___
|
|
482
483
|
|
|
@@ -501,7 +502,7 @@ ___
|
|
|
501
502
|
|
|
502
503
|
#### Defined in
|
|
503
504
|
|
|
504
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
505
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/chooseMedia.ts#L5)
|
|
505
506
|
|
|
506
507
|
___
|
|
507
508
|
|
|
@@ -525,7 +526,7 @@ ___
|
|
|
525
526
|
|
|
526
527
|
#### Defined in
|
|
527
528
|
|
|
528
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
529
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/clamp.ts#L7)
|
|
529
530
|
|
|
530
531
|
___
|
|
531
532
|
|
|
@@ -553,7 +554,7 @@ ___
|
|
|
553
554
|
|
|
554
555
|
#### Defined in
|
|
555
556
|
|
|
556
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
557
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/clone.ts#L8)
|
|
557
558
|
|
|
558
559
|
___
|
|
559
560
|
|
|
@@ -581,7 +582,7 @@ ___
|
|
|
581
582
|
|
|
582
583
|
#### Defined in
|
|
583
584
|
|
|
584
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
585
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/cloneSimple.ts#L7)
|
|
585
586
|
|
|
586
587
|
___
|
|
587
588
|
|
|
@@ -603,7 +604,7 @@ ___
|
|
|
603
604
|
|
|
604
605
|
#### Defined in
|
|
605
606
|
|
|
606
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
607
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/createHexColorByHash.ts#L4)
|
|
607
608
|
|
|
608
609
|
___
|
|
609
610
|
|
|
@@ -629,7 +630,7 @@ ___
|
|
|
629
630
|
|
|
630
631
|
#### Defined in
|
|
631
632
|
|
|
632
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
633
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/6b0ba36/src/compareVersion.ts#L9)
|
|
633
634
|
|
|
634
635
|
___
|
|
635
636
|
|
|
@@ -652,7 +653,7 @@ ___
|
|
|
652
653
|
|
|
653
654
|
#### Defined in
|
|
654
655
|
|
|
655
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
656
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/compressImage.ts#L4)
|
|
656
657
|
|
|
657
658
|
___
|
|
658
659
|
|
|
@@ -674,7 +675,7 @@ ___
|
|
|
674
675
|
|
|
675
676
|
#### Defined in
|
|
676
677
|
|
|
677
|
-
[crToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
678
|
+
[crToBr.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/crToBr.ts#L4)
|
|
678
679
|
|
|
679
680
|
___
|
|
680
681
|
|
|
@@ -702,7 +703,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
702
703
|
|
|
703
704
|
#### Defined in
|
|
704
705
|
|
|
705
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
706
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/createFactory.ts#L4)
|
|
706
707
|
|
|
707
708
|
___
|
|
708
709
|
|
|
@@ -740,7 +741,7 @@ ___
|
|
|
740
741
|
|
|
741
742
|
#### Defined in
|
|
742
743
|
|
|
743
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
744
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/6b0ba36/src/createLinearFunction.ts#L9)
|
|
744
745
|
|
|
745
746
|
___
|
|
746
747
|
|
|
@@ -772,7 +773,7 @@ ___
|
|
|
772
773
|
|
|
773
774
|
#### Defined in
|
|
774
775
|
|
|
775
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
776
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/6b0ba36/src/trap.ts#L49)
|
|
776
777
|
|
|
777
778
|
___
|
|
778
779
|
|
|
@@ -835,7 +836,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
835
836
|
|
|
836
837
|
#### Defined in
|
|
837
838
|
|
|
838
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
839
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/6b0ba36/src/createWithLoading.ts#L11)
|
|
839
840
|
|
|
840
841
|
___
|
|
841
842
|
|
|
@@ -857,7 +858,7 @@ ___
|
|
|
857
858
|
|
|
858
859
|
#### Defined in
|
|
859
860
|
|
|
860
|
-
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
861
|
+
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/crlfToBr.ts#L4)
|
|
861
862
|
|
|
862
863
|
___
|
|
863
864
|
|
|
@@ -900,7 +901,7 @@ ___
|
|
|
900
901
|
|
|
901
902
|
#### Defined in
|
|
902
903
|
|
|
903
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
904
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/debounce.ts#L5)
|
|
904
905
|
|
|
905
906
|
___
|
|
906
907
|
|
|
@@ -924,7 +925,7 @@ ___
|
|
|
924
925
|
|
|
925
926
|
#### Defined in
|
|
926
927
|
|
|
927
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
928
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/downloadFile.ts#L4)
|
|
928
929
|
|
|
929
930
|
___
|
|
930
931
|
|
|
@@ -953,7 +954,7 @@ ___
|
|
|
953
954
|
|
|
954
955
|
#### Defined in
|
|
955
956
|
|
|
956
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
957
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/each.ts#L4)
|
|
957
958
|
|
|
958
959
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
959
960
|
|
|
@@ -976,7 +977,7 @@ ___
|
|
|
976
977
|
|
|
977
978
|
#### Defined in
|
|
978
979
|
|
|
979
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
980
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/each.ts#L8)
|
|
980
981
|
|
|
981
982
|
___
|
|
982
983
|
|
|
@@ -994,7 +995,7 @@ ___
|
|
|
994
995
|
|
|
995
996
|
#### Defined in
|
|
996
997
|
|
|
997
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
998
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/exitFullscreen.ts#L6)
|
|
998
999
|
|
|
999
1000
|
___
|
|
1000
1001
|
|
|
@@ -1023,7 +1024,7 @@ ___
|
|
|
1023
1024
|
|
|
1024
1025
|
#### Defined in
|
|
1025
1026
|
|
|
1026
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
1027
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/6b0ba36/src/storage/factory.ts#L11)
|
|
1027
1028
|
|
|
1028
1029
|
___
|
|
1029
1030
|
|
|
@@ -1045,7 +1046,7 @@ ___
|
|
|
1045
1046
|
|
|
1046
1047
|
#### Defined in
|
|
1047
1048
|
|
|
1048
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1049
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/filterBankCardNo.ts#L4)
|
|
1049
1050
|
|
|
1050
1051
|
___
|
|
1051
1052
|
|
|
@@ -1075,7 +1076,7 @@ ___
|
|
|
1075
1076
|
|
|
1076
1077
|
#### Defined in
|
|
1077
1078
|
|
|
1078
|
-
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/
|
|
1079
|
+
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/6b0ba36/src/crlfToBr.ts#L12)
|
|
1079
1080
|
|
|
1080
1081
|
___
|
|
1081
1082
|
|
|
@@ -1097,7 +1098,7 @@ ___
|
|
|
1097
1098
|
|
|
1098
1099
|
#### Defined in
|
|
1099
1100
|
|
|
1100
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1101
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/filterEmoji.ts#L4)
|
|
1101
1102
|
|
|
1102
1103
|
___
|
|
1103
1104
|
|
|
@@ -1120,7 +1121,7 @@ ___
|
|
|
1120
1121
|
|
|
1121
1122
|
#### Defined in
|
|
1122
1123
|
|
|
1123
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1124
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/6b0ba36/src/filterEmptyValue.ts#L12)
|
|
1124
1125
|
|
|
1125
1126
|
___
|
|
1126
1127
|
|
|
@@ -1143,7 +1144,7 @@ ___
|
|
|
1143
1144
|
|
|
1144
1145
|
#### Defined in
|
|
1145
1146
|
|
|
1146
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1147
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/filterIdCard.ts#L5)
|
|
1147
1148
|
|
|
1148
1149
|
___
|
|
1149
1150
|
|
|
@@ -1165,7 +1166,7 @@ ___
|
|
|
1165
1166
|
|
|
1166
1167
|
#### Defined in
|
|
1167
1168
|
|
|
1168
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1169
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/filterName.ts#L4)
|
|
1169
1170
|
|
|
1170
1171
|
___
|
|
1171
1172
|
|
|
@@ -1190,7 +1191,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1190
1191
|
|
|
1191
1192
|
#### Defined in
|
|
1192
1193
|
|
|
1193
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1194
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/filterPhone.ts#L6)
|
|
1194
1195
|
|
|
1195
1196
|
___
|
|
1196
1197
|
|
|
@@ -1217,7 +1218,7 @@ str = '131****8888'
|
|
|
1217
1218
|
|
|
1218
1219
|
#### Defined in
|
|
1219
1220
|
|
|
1220
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1221
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/filterString.ts#L6)
|
|
1221
1222
|
|
|
1222
1223
|
___
|
|
1223
1224
|
|
|
@@ -1240,7 +1241,7 @@ ___
|
|
|
1240
1241
|
|
|
1241
1242
|
#### Defined in
|
|
1242
1243
|
|
|
1243
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1244
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/formatAmount.ts#L4)
|
|
1244
1245
|
|
|
1245
1246
|
___
|
|
1246
1247
|
|
|
@@ -1264,7 +1265,7 @@ ___
|
|
|
1264
1265
|
|
|
1265
1266
|
#### Defined in
|
|
1266
1267
|
|
|
1267
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1268
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/formatDate.ts#L7)
|
|
1268
1269
|
|
|
1269
1270
|
___
|
|
1270
1271
|
|
|
@@ -1295,7 +1296,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1295
1296
|
|
|
1296
1297
|
#### Defined in
|
|
1297
1298
|
|
|
1298
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1299
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/formatDateStr.ts#L6)
|
|
1299
1300
|
|
|
1300
1301
|
___
|
|
1301
1302
|
|
|
@@ -1315,7 +1316,7 @@ ___
|
|
|
1315
1316
|
|
|
1316
1317
|
#### Defined in
|
|
1317
1318
|
|
|
1318
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1319
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/formartDateToZN.ts#L4)
|
|
1319
1320
|
|
|
1320
1321
|
___
|
|
1321
1322
|
|
|
@@ -1338,7 +1339,7 @@ ___
|
|
|
1338
1339
|
|
|
1339
1340
|
#### Defined in
|
|
1340
1341
|
|
|
1341
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1342
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/formatFileSize.ts#L4)
|
|
1342
1343
|
|
|
1343
1344
|
___
|
|
1344
1345
|
|
|
@@ -1361,7 +1362,7 @@ yyyyMMdd -> yyyy-MM-dd
|
|
|
1361
1362
|
|
|
1362
1363
|
#### Defined in
|
|
1363
1364
|
|
|
1364
|
-
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1365
|
+
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/formatGapDate.ts#L4)
|
|
1365
1366
|
|
|
1366
1367
|
___
|
|
1367
1368
|
|
|
@@ -1386,7 +1387,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1386
1387
|
|
|
1387
1388
|
#### Defined in
|
|
1388
1389
|
|
|
1389
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1390
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/6b0ba36/src/formatMessage.ts#L11)
|
|
1390
1391
|
|
|
1391
1392
|
___
|
|
1392
1393
|
|
|
@@ -1418,7 +1419,7 @@ rest = { xxx: 1 }
|
|
|
1418
1419
|
|
|
1419
1420
|
#### Defined in
|
|
1420
1421
|
|
|
1421
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1422
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/formatPathParams.ts#L8)
|
|
1422
1423
|
|
|
1423
1424
|
___
|
|
1424
1425
|
|
|
@@ -1440,7 +1441,7 @@ ___
|
|
|
1440
1441
|
|
|
1441
1442
|
#### Defined in
|
|
1442
1443
|
|
|
1443
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1444
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/getBlobByUrl.ts#L4)
|
|
1444
1445
|
|
|
1445
1446
|
___
|
|
1446
1447
|
|
|
@@ -1463,7 +1464,7 @@ ___
|
|
|
1463
1464
|
|
|
1464
1465
|
#### Defined in
|
|
1465
1466
|
|
|
1466
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1467
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/6b0ba36/src/storage/index.ts#L10)
|
|
1467
1468
|
|
|
1468
1469
|
___
|
|
1469
1470
|
|
|
@@ -1486,7 +1487,7 @@ ___
|
|
|
1486
1487
|
|
|
1487
1488
|
#### Defined in
|
|
1488
1489
|
|
|
1489
|
-
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/
|
|
1490
|
+
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/getDateBoundsByMonths.ts#L8)
|
|
1490
1491
|
|
|
1491
1492
|
▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
|
|
1492
1493
|
|
|
@@ -1504,7 +1505,7 @@ ___
|
|
|
1504
1505
|
|
|
1505
1506
|
#### Defined in
|
|
1506
1507
|
|
|
1507
|
-
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/
|
|
1508
|
+
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/6b0ba36/src/getDateBoundsByMonths.ts#L12)
|
|
1508
1509
|
|
|
1509
1510
|
___
|
|
1510
1511
|
|
|
@@ -1526,7 +1527,7 @@ ___
|
|
|
1526
1527
|
|
|
1527
1528
|
#### Defined in
|
|
1528
1529
|
|
|
1529
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1530
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/getDayMillisecond.ts#L4)
|
|
1530
1531
|
|
|
1531
1532
|
___
|
|
1532
1533
|
|
|
@@ -1549,7 +1550,7 @@ ___
|
|
|
1549
1550
|
|
|
1550
1551
|
#### Defined in
|
|
1551
1552
|
|
|
1552
|
-
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/
|
|
1553
|
+
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/getDaysOfMonth.ts#L4)
|
|
1553
1554
|
|
|
1554
1555
|
___
|
|
1555
1556
|
|
|
@@ -1572,7 +1573,7 @@ ___
|
|
|
1572
1573
|
|
|
1573
1574
|
#### Defined in
|
|
1574
1575
|
|
|
1575
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1576
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/getImageInfo.ts#L4)
|
|
1576
1577
|
|
|
1577
1578
|
___
|
|
1578
1579
|
|
|
@@ -1595,7 +1596,7 @@ ___
|
|
|
1595
1596
|
|
|
1596
1597
|
#### Defined in
|
|
1597
1598
|
|
|
1598
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1599
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/6b0ba36/src/storage/index.ts#L10)
|
|
1599
1600
|
|
|
1600
1601
|
___
|
|
1601
1602
|
|
|
@@ -1617,7 +1618,7 @@ ___
|
|
|
1617
1618
|
|
|
1618
1619
|
#### Defined in
|
|
1619
1620
|
|
|
1620
|
-
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1621
|
+
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/getMonthBounds.ts#L7)
|
|
1621
1622
|
|
|
1622
1623
|
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1623
1624
|
|
|
@@ -1634,7 +1635,7 @@ ___
|
|
|
1634
1635
|
|
|
1635
1636
|
#### Defined in
|
|
1636
1637
|
|
|
1637
|
-
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/
|
|
1638
|
+
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/getMonthBounds.ts#L8)
|
|
1638
1639
|
|
|
1639
1640
|
___
|
|
1640
1641
|
|
|
@@ -1657,7 +1658,7 @@ ___
|
|
|
1657
1658
|
|
|
1658
1659
|
#### Defined in
|
|
1659
1660
|
|
|
1660
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1661
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/getRandom.ts#L7)
|
|
1661
1662
|
|
|
1662
1663
|
___
|
|
1663
1664
|
|
|
@@ -1673,7 +1674,7 @@ ___
|
|
|
1673
1674
|
|
|
1674
1675
|
#### Defined in
|
|
1675
1676
|
|
|
1676
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1677
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/getRandomColor.ts#L4)
|
|
1677
1678
|
|
|
1678
1679
|
___
|
|
1679
1680
|
|
|
@@ -1695,7 +1696,7 @@ ___
|
|
|
1695
1696
|
|
|
1696
1697
|
#### Defined in
|
|
1697
1698
|
|
|
1698
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1699
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/getRandomNumber.ts#L7)
|
|
1699
1700
|
|
|
1700
1701
|
___
|
|
1701
1702
|
|
|
@@ -1718,7 +1719,7 @@ ___
|
|
|
1718
1719
|
|
|
1719
1720
|
#### Defined in
|
|
1720
1721
|
|
|
1721
|
-
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1722
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/getRangeDate.ts#L7)
|
|
1722
1723
|
|
|
1723
1724
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1724
1725
|
|
|
@@ -1736,7 +1737,7 @@ ___
|
|
|
1736
1737
|
|
|
1737
1738
|
#### Defined in
|
|
1738
1739
|
|
|
1739
|
-
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/
|
|
1740
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/6b0ba36/src/getRangeDate.ts#L11)
|
|
1740
1741
|
|
|
1741
1742
|
___
|
|
1742
1743
|
|
|
@@ -1752,7 +1753,7 @@ ___
|
|
|
1752
1753
|
|
|
1753
1754
|
#### Defined in
|
|
1754
1755
|
|
|
1755
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1756
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/getScrollTop.ts#L4)
|
|
1756
1757
|
|
|
1757
1758
|
___
|
|
1758
1759
|
|
|
@@ -1774,7 +1775,7 @@ ___
|
|
|
1774
1775
|
|
|
1775
1776
|
#### Defined in
|
|
1776
1777
|
|
|
1777
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1778
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/getVideoInfo.ts#L4)
|
|
1778
1779
|
|
|
1779
1780
|
___
|
|
1780
1781
|
|
|
@@ -1797,7 +1798,7 @@ ___
|
|
|
1797
1798
|
|
|
1798
1799
|
#### Defined in
|
|
1799
1800
|
|
|
1800
|
-
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1801
|
+
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/getWeekBounds.ts#L7)
|
|
1801
1802
|
|
|
1802
1803
|
▸ **getWeekBounds**(`value`, `sundayIsFirstDay`, `fmt`): [`string`, `string`]
|
|
1803
1804
|
|
|
@@ -1815,7 +1816,7 @@ ___
|
|
|
1815
1816
|
|
|
1816
1817
|
#### Defined in
|
|
1817
1818
|
|
|
1818
|
-
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/
|
|
1819
|
+
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/6b0ba36/src/getWeekBounds.ts#L11)
|
|
1819
1820
|
|
|
1820
1821
|
___
|
|
1821
1822
|
|
|
@@ -1838,7 +1839,7 @@ ___
|
|
|
1838
1839
|
|
|
1839
1840
|
#### Defined in
|
|
1840
1841
|
|
|
1841
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1842
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/getWeekday.ts#L6)
|
|
1842
1843
|
|
|
1843
1844
|
___
|
|
1844
1845
|
|
|
@@ -1854,7 +1855,7 @@ ___
|
|
|
1854
1855
|
|
|
1855
1856
|
#### Defined in
|
|
1856
1857
|
|
|
1857
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1858
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/inBrowser.ts#L4)
|
|
1858
1859
|
|
|
1859
1860
|
___
|
|
1860
1861
|
|
|
@@ -1876,7 +1877,7 @@ ___
|
|
|
1876
1877
|
|
|
1877
1878
|
#### Defined in
|
|
1878
1879
|
|
|
1879
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1880
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/insertLink.ts#L4)
|
|
1880
1881
|
|
|
1881
1882
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1882
1883
|
|
|
@@ -1893,7 +1894,7 @@ ___
|
|
|
1893
1894
|
|
|
1894
1895
|
#### Defined in
|
|
1895
1896
|
|
|
1896
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1897
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/insertLink.ts#L5)
|
|
1897
1898
|
|
|
1898
1899
|
___
|
|
1899
1900
|
|
|
@@ -1915,7 +1916,7 @@ ___
|
|
|
1915
1916
|
|
|
1916
1917
|
#### Defined in
|
|
1917
1918
|
|
|
1918
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1919
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/insertScript.ts#L4)
|
|
1919
1920
|
|
|
1920
1921
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1921
1922
|
|
|
@@ -1932,7 +1933,7 @@ ___
|
|
|
1932
1933
|
|
|
1933
1934
|
#### Defined in
|
|
1934
1935
|
|
|
1935
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1936
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/insertScript.ts#L5)
|
|
1936
1937
|
|
|
1937
1938
|
___
|
|
1938
1939
|
|
|
@@ -1954,7 +1955,7 @@ ___
|
|
|
1954
1955
|
|
|
1955
1956
|
#### Defined in
|
|
1956
1957
|
|
|
1957
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1958
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/insertStyle.ts#L4)
|
|
1958
1959
|
|
|
1959
1960
|
___
|
|
1960
1961
|
|
|
@@ -1983,7 +1984,7 @@ isAmount('1.123') => false
|
|
|
1983
1984
|
|
|
1984
1985
|
#### Defined in
|
|
1985
1986
|
|
|
1986
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1987
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/6b0ba36/src/isAmount.ts#L11)
|
|
1987
1988
|
|
|
1988
1989
|
___
|
|
1989
1990
|
|
|
@@ -1999,7 +2000,7 @@ ___
|
|
|
1999
2000
|
|
|
2000
2001
|
#### Defined in
|
|
2001
2002
|
|
|
2002
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
2003
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isAndroid.ts#L4)
|
|
2003
2004
|
|
|
2004
2005
|
___
|
|
2005
2006
|
|
|
@@ -2023,7 +2024,7 @@ val is any[]
|
|
|
2023
2024
|
|
|
2024
2025
|
#### Defined in
|
|
2025
2026
|
|
|
2026
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2027
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/isArray.ts#L6)
|
|
2027
2028
|
|
|
2028
2029
|
___
|
|
2029
2030
|
|
|
@@ -2045,7 +2046,7 @@ val is boolean
|
|
|
2045
2046
|
|
|
2046
2047
|
#### Defined in
|
|
2047
2048
|
|
|
2048
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
2049
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isBoolean.ts#L5)
|
|
2049
2050
|
|
|
2050
2051
|
___
|
|
2051
2052
|
|
|
@@ -2067,7 +2068,7 @@ ___
|
|
|
2067
2068
|
|
|
2068
2069
|
#### Defined in
|
|
2069
2070
|
|
|
2070
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
2071
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isChinese.ts#L4)
|
|
2071
2072
|
|
|
2072
2073
|
___
|
|
2073
2074
|
|
|
@@ -2089,7 +2090,7 @@ val is Date
|
|
|
2089
2090
|
|
|
2090
2091
|
#### Defined in
|
|
2091
2092
|
|
|
2092
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
2093
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isDate.ts#L4)
|
|
2093
2094
|
|
|
2094
2095
|
___
|
|
2095
2096
|
|
|
@@ -2111,7 +2112,7 @@ ___
|
|
|
2111
2112
|
|
|
2112
2113
|
#### Defined in
|
|
2113
2114
|
|
|
2114
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
2115
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isEmail.ts#L4)
|
|
2115
2116
|
|
|
2116
2117
|
___
|
|
2117
2118
|
|
|
@@ -2133,7 +2134,7 @@ ___
|
|
|
2133
2134
|
|
|
2134
2135
|
#### Defined in
|
|
2135
2136
|
|
|
2136
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
2137
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/isEmpty.ts#L6)
|
|
2137
2138
|
|
|
2138
2139
|
___
|
|
2139
2140
|
|
|
@@ -2155,7 +2156,7 @@ ___
|
|
|
2155
2156
|
|
|
2156
2157
|
#### Defined in
|
|
2157
2158
|
|
|
2158
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2159
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/isEmptyArray.ts#L6)
|
|
2159
2160
|
|
|
2160
2161
|
___
|
|
2161
2162
|
|
|
@@ -2177,7 +2178,7 @@ ___
|
|
|
2177
2178
|
|
|
2178
2179
|
#### Defined in
|
|
2179
2180
|
|
|
2180
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2181
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isEmptyObject.ts#L5)
|
|
2181
2182
|
|
|
2182
2183
|
___
|
|
2183
2184
|
|
|
@@ -2199,7 +2200,7 @@ val is Error
|
|
|
2199
2200
|
|
|
2200
2201
|
#### Defined in
|
|
2201
2202
|
|
|
2202
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
2203
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isError.ts#L4)
|
|
2203
2204
|
|
|
2204
2205
|
___
|
|
2205
2206
|
|
|
@@ -2221,7 +2222,7 @@ val is Function
|
|
|
2221
2222
|
|
|
2222
2223
|
#### Defined in
|
|
2223
2224
|
|
|
2224
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2225
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isFunction.ts#L4)
|
|
2225
2226
|
|
|
2226
2227
|
___
|
|
2227
2228
|
|
|
@@ -2239,7 +2240,7 @@ ___
|
|
|
2239
2240
|
|
|
2240
2241
|
#### Defined in
|
|
2241
2242
|
|
|
2242
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2243
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/isIE.ts#L6)
|
|
2243
2244
|
|
|
2244
2245
|
___
|
|
2245
2246
|
|
|
@@ -2255,7 +2256,7 @@ ___
|
|
|
2255
2256
|
|
|
2256
2257
|
#### Defined in
|
|
2257
2258
|
|
|
2258
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2259
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isIOS.ts#L4)
|
|
2259
2260
|
|
|
2260
2261
|
___
|
|
2261
2262
|
|
|
@@ -2277,7 +2278,7 @@ ___
|
|
|
2277
2278
|
|
|
2278
2279
|
#### Defined in
|
|
2279
2280
|
|
|
2280
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2281
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isIdCard.ts#L4)
|
|
2281
2282
|
|
|
2282
2283
|
___
|
|
2283
2284
|
|
|
@@ -2299,7 +2300,7 @@ ___
|
|
|
2299
2300
|
|
|
2300
2301
|
#### Defined in
|
|
2301
2302
|
|
|
2302
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2303
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/isJSONString.ts#L7)
|
|
2303
2304
|
|
|
2304
2305
|
___
|
|
2305
2306
|
|
|
@@ -2321,7 +2322,7 @@ ___
|
|
|
2321
2322
|
|
|
2322
2323
|
#### Defined in
|
|
2323
2324
|
|
|
2324
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2325
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isLan.ts#L5)
|
|
2325
2326
|
|
|
2326
2327
|
___
|
|
2327
2328
|
|
|
@@ -2344,7 +2345,7 @@ ___
|
|
|
2344
2345
|
|
|
2345
2346
|
#### Defined in
|
|
2346
2347
|
|
|
2347
|
-
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/
|
|
2348
|
+
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isLeapYear.ts#L5)
|
|
2348
2349
|
|
|
2349
2350
|
___
|
|
2350
2351
|
|
|
@@ -2366,7 +2367,7 @@ ___
|
|
|
2366
2367
|
|
|
2367
2368
|
#### Defined in
|
|
2368
2369
|
|
|
2369
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2370
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isLicenseCode.ts#L5)
|
|
2370
2371
|
|
|
2371
2372
|
___
|
|
2372
2373
|
|
|
@@ -2382,7 +2383,7 @@ ___
|
|
|
2382
2383
|
|
|
2383
2384
|
#### Defined in
|
|
2384
2385
|
|
|
2385
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2386
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isMobile.ts#L4)
|
|
2386
2387
|
|
|
2387
2388
|
___
|
|
2388
2389
|
|
|
@@ -2405,7 +2406,7 @@ ___
|
|
|
2405
2406
|
|
|
2406
2407
|
#### Defined in
|
|
2407
2408
|
|
|
2408
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2409
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/isNativeFunction.ts#L7)
|
|
2409
2410
|
|
|
2410
2411
|
___
|
|
2411
2412
|
|
|
@@ -2427,7 +2428,7 @@ val is null
|
|
|
2427
2428
|
|
|
2428
2429
|
#### Defined in
|
|
2429
2430
|
|
|
2430
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2431
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isNull.ts#L4)
|
|
2431
2432
|
|
|
2432
2433
|
___
|
|
2433
2434
|
|
|
@@ -2449,7 +2450,7 @@ val is number
|
|
|
2449
2450
|
|
|
2450
2451
|
#### Defined in
|
|
2451
2452
|
|
|
2452
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2453
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isNumber.ts#L5)
|
|
2453
2454
|
|
|
2454
2455
|
___
|
|
2455
2456
|
|
|
@@ -2471,7 +2472,7 @@ val is Record<string, any\>
|
|
|
2471
2472
|
|
|
2472
2473
|
#### Defined in
|
|
2473
2474
|
|
|
2474
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2475
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isObject.ts#L4)
|
|
2475
2476
|
|
|
2476
2477
|
___
|
|
2477
2478
|
|
|
@@ -2493,7 +2494,7 @@ ___
|
|
|
2493
2494
|
|
|
2494
2495
|
#### Defined in
|
|
2495
2496
|
|
|
2496
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2497
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isPhone.ts#L4)
|
|
2497
2498
|
|
|
2498
2499
|
___
|
|
2499
2500
|
|
|
@@ -2521,7 +2522,7 @@ val is Promise<T\>
|
|
|
2521
2522
|
|
|
2522
2523
|
#### Defined in
|
|
2523
2524
|
|
|
2524
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2525
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isPromise.ts#L4)
|
|
2525
2526
|
|
|
2526
2527
|
___
|
|
2527
2528
|
|
|
@@ -2543,7 +2544,7 @@ val is RegExp
|
|
|
2543
2544
|
|
|
2544
2545
|
#### Defined in
|
|
2545
2546
|
|
|
2546
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2547
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isRegExp.ts#L4)
|
|
2547
2548
|
|
|
2548
2549
|
___
|
|
2549
2550
|
|
|
@@ -2565,7 +2566,7 @@ val is string
|
|
|
2565
2566
|
|
|
2566
2567
|
#### Defined in
|
|
2567
2568
|
|
|
2568
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2569
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isString.ts#L4)
|
|
2569
2570
|
|
|
2570
2571
|
___
|
|
2571
2572
|
|
|
@@ -2594,7 +2595,7 @@ val is T
|
|
|
2594
2595
|
|
|
2595
2596
|
#### Defined in
|
|
2596
2597
|
|
|
2597
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2598
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isType.ts#L4)
|
|
2598
2599
|
|
|
2599
2600
|
___
|
|
2600
2601
|
|
|
@@ -2616,7 +2617,7 @@ val is undefined
|
|
|
2616
2617
|
|
|
2617
2618
|
#### Defined in
|
|
2618
2619
|
|
|
2619
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2620
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isUndefined.ts#L4)
|
|
2620
2621
|
|
|
2621
2622
|
___
|
|
2622
2623
|
|
|
@@ -2638,7 +2639,7 @@ ___
|
|
|
2638
2639
|
|
|
2639
2640
|
#### Defined in
|
|
2640
2641
|
|
|
2641
|
-
|
|
2642
|
+
isUrl.ts:4
|
|
2642
2643
|
|
|
2643
2644
|
___
|
|
2644
2645
|
|
|
@@ -2660,7 +2661,7 @@ ___
|
|
|
2660
2661
|
|
|
2661
2662
|
#### Defined in
|
|
2662
2663
|
|
|
2663
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2664
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/isValidDate.ts#L6)
|
|
2664
2665
|
|
|
2665
2666
|
___
|
|
2666
2667
|
|
|
@@ -2676,7 +2677,7 @@ ___
|
|
|
2676
2677
|
|
|
2677
2678
|
#### Defined in
|
|
2678
2679
|
|
|
2679
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2680
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/isWeChat.ts#L4)
|
|
2680
2681
|
|
|
2681
2682
|
___
|
|
2682
2683
|
|
|
@@ -2693,7 +2694,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2693
2694
|
|
|
2694
2695
|
#### Defined in
|
|
2695
2696
|
|
|
2696
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2697
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isWeChatMiniProgram.ts#L5)
|
|
2697
2698
|
|
|
2698
2699
|
___
|
|
2699
2700
|
|
|
@@ -2717,7 +2718,7 @@ ___
|
|
|
2717
2718
|
|
|
2718
2719
|
#### Defined in
|
|
2719
2720
|
|
|
2720
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2721
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/6b0ba36/src/isWeChat.ts#L12)
|
|
2721
2722
|
|
|
2722
2723
|
___
|
|
2723
2724
|
|
|
@@ -2739,7 +2740,7 @@ val is Window
|
|
|
2739
2740
|
|
|
2740
2741
|
#### Defined in
|
|
2741
2742
|
|
|
2742
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2743
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/isWindow.ts#L5)
|
|
2743
2744
|
|
|
2744
2745
|
___
|
|
2745
2746
|
|
|
@@ -2762,7 +2763,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2762
2763
|
|
|
2763
2764
|
#### Defined in
|
|
2764
2765
|
|
|
2765
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2766
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/kebabCase.ts#L5)
|
|
2766
2767
|
|
|
2767
2768
|
___
|
|
2768
2769
|
|
|
@@ -2784,7 +2785,7 @@ ___
|
|
|
2784
2785
|
|
|
2785
2786
|
#### Defined in
|
|
2786
2787
|
|
|
2787
|
-
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
2788
|
+
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/lfToBr.ts#L4)
|
|
2788
2789
|
|
|
2789
2790
|
___
|
|
2790
2791
|
|
|
@@ -2806,7 +2807,7 @@ list 生成器,快速生成数据
|
|
|
2806
2807
|
|
|
2807
2808
|
#### Defined in
|
|
2808
2809
|
|
|
2809
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2810
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/listGenerator.ts#L5)
|
|
2810
2811
|
|
|
2811
2812
|
▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
|
|
2812
2813
|
|
|
@@ -2829,7 +2830,7 @@ list 生成器,快速生成数据
|
|
|
2829
2830
|
|
|
2830
2831
|
#### Defined in
|
|
2831
2832
|
|
|
2832
|
-
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/
|
|
2833
|
+
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/listGenerator.ts#L6)
|
|
2833
2834
|
|
|
2834
2835
|
___
|
|
2835
2836
|
|
|
@@ -2849,7 +2850,7 @@ ___
|
|
|
2849
2850
|
|
|
2850
2851
|
#### Defined in
|
|
2851
2852
|
|
|
2852
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2853
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/6b0ba36/src/makePhoneCall.ts#L1)
|
|
2853
2854
|
|
|
2854
2855
|
___
|
|
2855
2856
|
|
|
@@ -2874,7 +2875,7 @@ ___
|
|
|
2874
2875
|
|
|
2875
2876
|
#### Defined in
|
|
2876
2877
|
|
|
2877
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2878
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/6b0ba36/src/mousewheel.ts#L22)
|
|
2878
2879
|
|
|
2879
2880
|
___
|
|
2880
2881
|
|
|
@@ -2890,7 +2891,7 @@ ___
|
|
|
2890
2891
|
|
|
2891
2892
|
#### Defined in
|
|
2892
2893
|
|
|
2893
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2894
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/nf.ts#L4)
|
|
2894
2895
|
|
|
2895
2896
|
___
|
|
2896
2897
|
|
|
@@ -2914,7 +2915,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2914
2915
|
|
|
2915
2916
|
#### Defined in
|
|
2916
2917
|
|
|
2917
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
2918
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/normalizeDate.ts#L8)
|
|
2918
2919
|
|
|
2919
2920
|
___
|
|
2920
2921
|
|
|
@@ -2936,7 +2937,7 @@ ___
|
|
|
2936
2937
|
|
|
2937
2938
|
#### Defined in
|
|
2938
2939
|
|
|
2939
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2940
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/normalizePath.ts#L4)
|
|
2940
2941
|
|
|
2941
2942
|
___
|
|
2942
2943
|
|
|
@@ -2966,7 +2967,7 @@ ___
|
|
|
2966
2967
|
|
|
2967
2968
|
#### Defined in
|
|
2968
2969
|
|
|
2969
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2970
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/omit.ts#L4)
|
|
2970
2971
|
|
|
2971
2972
|
___
|
|
2972
2973
|
|
|
@@ -2990,7 +2991,7 @@ ___
|
|
|
2990
2991
|
|
|
2991
2992
|
#### Defined in
|
|
2992
2993
|
|
|
2993
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2994
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/padding.ts#L7)
|
|
2994
2995
|
|
|
2995
2996
|
___
|
|
2996
2997
|
|
|
@@ -3016,7 +3017,33 @@ ___
|
|
|
3016
3017
|
|
|
3017
3018
|
#### Defined in
|
|
3018
3019
|
|
|
3019
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
3020
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/parseDate.ts#L5)
|
|
3021
|
+
|
|
3022
|
+
___
|
|
3023
|
+
|
|
3024
|
+
### parseDecimalString
|
|
3025
|
+
|
|
3026
|
+
▸ **parseDecimalString**(`val`, `options?`): `string`
|
|
3027
|
+
|
|
3028
|
+
解析小数数字
|
|
3029
|
+
主要用户处理用户输入,只让输入数字的情况
|
|
3030
|
+
|
|
3031
|
+
#### Parameters
|
|
3032
|
+
|
|
3033
|
+
| Name | Type |
|
|
3034
|
+
| :------ | :------ |
|
|
3035
|
+
| `val` | `string` |
|
|
3036
|
+
| `options` | `Object` |
|
|
3037
|
+
| `options.allowNegativeNumber?` | `boolean` |
|
|
3038
|
+
| `options.precision?` | `number` |
|
|
3039
|
+
|
|
3040
|
+
#### Returns
|
|
3041
|
+
|
|
3042
|
+
`string`
|
|
3043
|
+
|
|
3044
|
+
#### Defined in
|
|
3045
|
+
|
|
3046
|
+
parseDecimalString.ts:5
|
|
3020
3047
|
|
|
3021
3048
|
___
|
|
3022
3049
|
|
|
@@ -3039,7 +3066,32 @@ ___
|
|
|
3039
3066
|
|
|
3040
3067
|
#### Defined in
|
|
3041
3068
|
|
|
3042
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
3069
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/parseError.ts#L8)
|
|
3070
|
+
|
|
3071
|
+
___
|
|
3072
|
+
|
|
3073
|
+
### parseNumberString
|
|
3074
|
+
|
|
3075
|
+
▸ **parseNumberString**(`val`): `string`
|
|
3076
|
+
|
|
3077
|
+
解析数字
|
|
3078
|
+
主要用户处理用户输入,只让输入数字的情况
|
|
3079
|
+
0123xxxx => 0123
|
|
3080
|
+
x0123 => ''
|
|
3081
|
+
|
|
3082
|
+
#### Parameters
|
|
3083
|
+
|
|
3084
|
+
| Name | Type |
|
|
3085
|
+
| :------ | :------ |
|
|
3086
|
+
| `val` | `string` |
|
|
3087
|
+
|
|
3088
|
+
#### Returns
|
|
3089
|
+
|
|
3090
|
+
`string`
|
|
3091
|
+
|
|
3092
|
+
#### Defined in
|
|
3093
|
+
|
|
3094
|
+
parseNumberString.ts:7
|
|
3043
3095
|
|
|
3044
3096
|
___
|
|
3045
3097
|
|
|
@@ -3069,7 +3121,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
3069
3121
|
|
|
3070
3122
|
#### Defined in
|
|
3071
3123
|
|
|
3072
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
3124
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/parseObject.ts#L5)
|
|
3073
3125
|
|
|
3074
3126
|
___
|
|
3075
3127
|
|
|
@@ -3098,7 +3150,7 @@ ___
|
|
|
3098
3150
|
|
|
3099
3151
|
#### Defined in
|
|
3100
3152
|
|
|
3101
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
3153
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/parsePath.ts#L6)
|
|
3102
3154
|
|
|
3103
3155
|
___
|
|
3104
3156
|
|
|
@@ -3121,7 +3173,7 @@ ___
|
|
|
3121
3173
|
|
|
3122
3174
|
#### Defined in
|
|
3123
3175
|
|
|
3124
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
3176
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/parseQuery.ts#L8)
|
|
3125
3177
|
|
|
3126
3178
|
___
|
|
3127
3179
|
|
|
@@ -3151,7 +3203,7 @@ ___
|
|
|
3151
3203
|
|
|
3152
3204
|
#### Defined in
|
|
3153
3205
|
|
|
3154
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3206
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/parseQueryString.ts#L6)
|
|
3155
3207
|
|
|
3156
3208
|
___
|
|
3157
3209
|
|
|
@@ -3174,7 +3226,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
3174
3226
|
|
|
3175
3227
|
#### Defined in
|
|
3176
3228
|
|
|
3177
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
3229
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/pascalCase.ts#L8)
|
|
3178
3230
|
|
|
3179
3231
|
___
|
|
3180
3232
|
|
|
@@ -3204,7 +3256,7 @@ ___
|
|
|
3204
3256
|
|
|
3205
3257
|
#### Defined in
|
|
3206
3258
|
|
|
3207
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
3259
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/pick.ts#L4)
|
|
3208
3260
|
|
|
3209
3261
|
___
|
|
3210
3262
|
|
|
@@ -3227,7 +3279,7 @@ ___
|
|
|
3227
3279
|
|
|
3228
3280
|
#### Defined in
|
|
3229
3281
|
|
|
3230
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
3282
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/replaceCrlf.ts#L4)
|
|
3231
3283
|
|
|
3232
3284
|
___
|
|
3233
3285
|
|
|
@@ -3251,7 +3303,7 @@ ___
|
|
|
3251
3303
|
|
|
3252
3304
|
#### Defined in
|
|
3253
3305
|
|
|
3254
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
3306
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/requestFullScreen.ts#L6)
|
|
3255
3307
|
|
|
3256
3308
|
___
|
|
3257
3309
|
|
|
@@ -3277,7 +3329,7 @@ reserve(0, '--') => 0
|
|
|
3277
3329
|
|
|
3278
3330
|
#### Defined in
|
|
3279
3331
|
|
|
3280
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
3332
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/6b0ba36/src/reserve.ts#L8)
|
|
3281
3333
|
|
|
3282
3334
|
___
|
|
3283
3335
|
|
|
@@ -3301,7 +3353,7 @@ ___
|
|
|
3301
3353
|
|
|
3302
3354
|
#### Defined in
|
|
3303
3355
|
|
|
3304
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3356
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/rgbToHex.ts#L4)
|
|
3305
3357
|
|
|
3306
3358
|
___
|
|
3307
3359
|
|
|
@@ -3324,7 +3376,7 @@ ___
|
|
|
3324
3376
|
|
|
3325
3377
|
#### Defined in
|
|
3326
3378
|
|
|
3327
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3379
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/round.ts#L6)
|
|
3328
3380
|
|
|
3329
3381
|
___
|
|
3330
3382
|
|
|
@@ -3340,7 +3392,7 @@ ___
|
|
|
3340
3392
|
|
|
3341
3393
|
#### Defined in
|
|
3342
3394
|
|
|
3343
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3395
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/scrollToTop.ts#L4)
|
|
3344
3396
|
|
|
3345
3397
|
___
|
|
3346
3398
|
|
|
@@ -3362,13 +3414,13 @@ ___
|
|
|
3362
3414
|
|
|
3363
3415
|
#### Defined in
|
|
3364
3416
|
|
|
3365
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3417
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/setScrollTop.ts#L4)
|
|
3366
3418
|
|
|
3367
3419
|
___
|
|
3368
3420
|
|
|
3369
3421
|
### sleep
|
|
3370
3422
|
|
|
3371
|
-
▸ **sleep**(`ms`, `isSuccess?`): `Promise`<`void`\>
|
|
3423
|
+
▸ **sleep**(`ms`, `isSuccess?`, `res?`): `Promise`<`void`\>
|
|
3372
3424
|
|
|
3373
3425
|
休眠方法
|
|
3374
3426
|
|
|
@@ -3378,6 +3430,7 @@ ___
|
|
|
3378
3430
|
| :------ | :------ | :------ | :------ |
|
|
3379
3431
|
| `ms` | `number` | `undefined` | 休眠时长 毫秒 |
|
|
3380
3432
|
| `isSuccess` | `boolean` | `true` | 默认执行成功 |
|
|
3433
|
+
| `res?` | `any` | `undefined` | 数据 |
|
|
3381
3434
|
|
|
3382
3435
|
#### Returns
|
|
3383
3436
|
|
|
@@ -3385,7 +3438,7 @@ ___
|
|
|
3385
3438
|
|
|
3386
3439
|
#### Defined in
|
|
3387
3440
|
|
|
3388
|
-
[sleep.ts:
|
|
3441
|
+
[sleep.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/sleep.ts#L7)
|
|
3389
3442
|
|
|
3390
3443
|
___
|
|
3391
3444
|
|
|
@@ -3414,7 +3467,7 @@ ___
|
|
|
3414
3467
|
|
|
3415
3468
|
#### Defined in
|
|
3416
3469
|
|
|
3417
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3470
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/splitArray.ts#L4)
|
|
3418
3471
|
|
|
3419
3472
|
___
|
|
3420
3473
|
|
|
@@ -3437,7 +3490,7 @@ ___
|
|
|
3437
3490
|
|
|
3438
3491
|
#### Defined in
|
|
3439
3492
|
|
|
3440
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3493
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/stringTrim.ts#L6)
|
|
3441
3494
|
|
|
3442
3495
|
___
|
|
3443
3496
|
|
|
@@ -3459,7 +3512,7 @@ ___
|
|
|
3459
3512
|
|
|
3460
3513
|
#### Defined in
|
|
3461
3514
|
|
|
3462
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3515
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/6b0ba36/src/stringifyQuery.ts#L7)
|
|
3463
3516
|
|
|
3464
3517
|
___
|
|
3465
3518
|
|
|
@@ -3483,7 +3536,7 @@ ___
|
|
|
3483
3536
|
|
|
3484
3537
|
#### Defined in
|
|
3485
3538
|
|
|
3486
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3539
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/stringifyQueryString.ts#L6)
|
|
3487
3540
|
|
|
3488
3541
|
___
|
|
3489
3542
|
|
|
@@ -3527,7 +3580,7 @@ ___
|
|
|
3527
3580
|
|
|
3528
3581
|
#### Defined in
|
|
3529
3582
|
|
|
3530
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3583
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/6b0ba36/src/throttle.ts#L48)
|
|
3531
3584
|
|
|
3532
3585
|
___
|
|
3533
3586
|
|
|
@@ -3570,7 +3623,7 @@ ___
|
|
|
3570
3623
|
|
|
3571
3624
|
#### Defined in
|
|
3572
3625
|
|
|
3573
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3626
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/6b0ba36/src/throttle.ts#L5)
|
|
3574
3627
|
|
|
3575
3628
|
___
|
|
3576
3629
|
|
|
@@ -3613,7 +3666,7 @@ ___
|
|
|
3613
3666
|
|
|
3614
3667
|
#### Defined in
|
|
3615
3668
|
|
|
3616
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3669
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/6b0ba36/src/throttle.ts#L25)
|
|
3617
3670
|
|
|
3618
3671
|
___
|
|
3619
3672
|
|
|
@@ -3635,7 +3688,7 @@ ___
|
|
|
3635
3688
|
|
|
3636
3689
|
#### Defined in
|
|
3637
3690
|
|
|
3638
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3691
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/toCDB.ts#L4)
|
|
3639
3692
|
|
|
3640
3693
|
___
|
|
3641
3694
|
|
|
@@ -3657,7 +3710,7 @@ ___
|
|
|
3657
3710
|
|
|
3658
3711
|
#### Defined in
|
|
3659
3712
|
|
|
3660
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3713
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/toDBC.ts#L4)
|
|
3661
3714
|
|
|
3662
3715
|
___
|
|
3663
3716
|
|
|
@@ -3681,7 +3734,7 @@ ___
|
|
|
3681
3734
|
|
|
3682
3735
|
#### Defined in
|
|
3683
3736
|
|
|
3684
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3737
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/6b0ba36/src/typeOf.ts#L6)
|
|
3685
3738
|
|
|
3686
3739
|
___
|
|
3687
3740
|
|
|
@@ -3709,7 +3762,7 @@ ___
|
|
|
3709
3762
|
|
|
3710
3763
|
#### Defined in
|
|
3711
3764
|
|
|
3712
|
-
[withCache.ts:4](https://github.com/daysnap/utils/blob/
|
|
3765
|
+
[withCache.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/withCache.ts#L4)
|
|
3713
3766
|
|
|
3714
3767
|
___
|
|
3715
3768
|
|
|
@@ -3738,4 +3791,4 @@ ___
|
|
|
3738
3791
|
|
|
3739
3792
|
#### Defined in
|
|
3740
3793
|
|
|
3741
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3794
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/6b0ba36/src/withPreventConsecutiveClicks.ts#L4)
|