@daysnap/utils 0.1.13 → 0.1.14
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 +151 -0
- package/docs/classes/Storage.md +13 -13
- package/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/PollerOptions.md +19 -0
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +169 -139
- package/es/chunk-GLJALZRT.js +43 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +15 -11
- package/es/poller.d.ts +20 -0
- package/es/poller.js +7 -0
- package/es/storage/index.js +3 -3
- package/lib/chunk-TDUDOSU4.cjs +43 -0
- package/lib/index.cjs +15 -11
- package/lib/index.d.cts +1 -0
- package/lib/poller.cjs +7 -0
- package/lib/poller.d.cts +20 -0
- package/lib/storage/index.cjs +2 -2
- package/package.json +1 -1
package/docs/modules.md
CHANGED
|
@@ -6,14 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
### Classes
|
|
8
8
|
|
|
9
|
+
- [Poller](classes/Poller.md)
|
|
9
10
|
- [Storage](classes/Storage.md)
|
|
10
11
|
|
|
11
12
|
### Interfaces
|
|
12
13
|
|
|
13
14
|
- [EventBusCallback](interfaces/EventBusCallback.md)
|
|
15
|
+
- [PollerOptions](interfaces/PollerOptions.md)
|
|
14
16
|
- [StorageManager](interfaces/StorageManager.md)
|
|
15
17
|
- [Trap](interfaces/Trap.md)
|
|
16
18
|
|
|
19
|
+
### Type Aliases
|
|
20
|
+
|
|
21
|
+
- [PollerTask](modules.md#pollertask)
|
|
22
|
+
|
|
17
23
|
### Variables
|
|
18
24
|
|
|
19
25
|
- [eventBus](modules.md#eventbus)
|
|
@@ -152,6 +158,30 @@
|
|
|
152
158
|
- [withCache](modules.md#withcache)
|
|
153
159
|
- [withPreventConsecutiveClicks](modules.md#withpreventconsecutiveclicks)
|
|
154
160
|
|
|
161
|
+
## Type Aliases
|
|
162
|
+
|
|
163
|
+
### PollerTask
|
|
164
|
+
|
|
165
|
+
Ƭ **PollerTask**: (`poller`: [`Poller`](classes/Poller.md)) => `void` \| `Promise`<`void`\>
|
|
166
|
+
|
|
167
|
+
#### Type declaration
|
|
168
|
+
|
|
169
|
+
▸ (`poller`): `void` \| `Promise`<`void`\>
|
|
170
|
+
|
|
171
|
+
##### Parameters
|
|
172
|
+
|
|
173
|
+
| Name | Type |
|
|
174
|
+
| :------ | :------ |
|
|
175
|
+
| `poller` | [`Poller`](classes/Poller.md) |
|
|
176
|
+
|
|
177
|
+
##### Returns
|
|
178
|
+
|
|
179
|
+
`void` \| `Promise`<`void`\>
|
|
180
|
+
|
|
181
|
+
#### Defined in
|
|
182
|
+
|
|
183
|
+
poller.ts:7
|
|
184
|
+
|
|
155
185
|
## Variables
|
|
156
186
|
|
|
157
187
|
### eventBus
|
|
@@ -169,7 +199,7 @@
|
|
|
169
199
|
|
|
170
200
|
#### Defined in
|
|
171
201
|
|
|
172
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
202
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/59e0309/src/eventBus.ts#L38)
|
|
173
203
|
|
|
174
204
|
___
|
|
175
205
|
|
|
@@ -179,7 +209,7 @@ ___
|
|
|
179
209
|
|
|
180
210
|
#### Defined in
|
|
181
211
|
|
|
182
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
212
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/59e0309/src/trap.ts#L15)
|
|
183
213
|
|
|
184
214
|
## Functions
|
|
185
215
|
|
|
@@ -217,7 +247,7 @@ res = { '1': '男', '2': '女' }
|
|
|
217
247
|
|
|
218
248
|
#### Defined in
|
|
219
249
|
|
|
220
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
250
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/59e0309/src/ato.ts#L12)
|
|
221
251
|
|
|
222
252
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
223
253
|
|
|
@@ -242,7 +272,7 @@ res = { '1': '男', '2': '女' }
|
|
|
242
272
|
|
|
243
273
|
#### Defined in
|
|
244
274
|
|
|
245
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
275
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/59e0309/src/ato.ts#L16)
|
|
246
276
|
|
|
247
277
|
___
|
|
248
278
|
|
|
@@ -262,7 +292,7 @@ ___
|
|
|
262
292
|
|
|
263
293
|
#### Defined in
|
|
264
294
|
|
|
265
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
295
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/59e0309/src/decode.ts#L41)
|
|
266
296
|
|
|
267
297
|
___
|
|
268
298
|
|
|
@@ -285,7 +315,7 @@ base64 转 blob
|
|
|
285
315
|
|
|
286
316
|
#### Defined in
|
|
287
317
|
|
|
288
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
318
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/base64ToBlob.ts#L6)
|
|
289
319
|
|
|
290
320
|
___
|
|
291
321
|
|
|
@@ -307,7 +337,7 @@ blob 转 base64
|
|
|
307
337
|
|
|
308
338
|
#### Defined in
|
|
309
339
|
|
|
310
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
340
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/blobToBase64.ts#L4)
|
|
311
341
|
|
|
312
342
|
___
|
|
313
343
|
|
|
@@ -327,7 +357,7 @@ ___
|
|
|
327
357
|
|
|
328
358
|
#### Defined in
|
|
329
359
|
|
|
330
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
360
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/decode.ts#L8)
|
|
331
361
|
|
|
332
362
|
___
|
|
333
363
|
|
|
@@ -368,7 +398,7 @@ ___
|
|
|
368
398
|
|
|
369
399
|
#### Defined in
|
|
370
400
|
|
|
371
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
401
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/cached.ts#L5)
|
|
372
402
|
|
|
373
403
|
___
|
|
374
404
|
|
|
@@ -391,7 +421,7 @@ camelCase('hello-world') => helloWorld
|
|
|
391
421
|
|
|
392
422
|
#### Defined in
|
|
393
423
|
|
|
394
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
424
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/camelCase.ts#L5)
|
|
395
425
|
|
|
396
426
|
___
|
|
397
427
|
|
|
@@ -415,7 +445,7 @@ canvas 转 blob 文件
|
|
|
415
445
|
|
|
416
446
|
#### Defined in
|
|
417
447
|
|
|
418
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
448
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/canvasToBlob.ts#L4)
|
|
419
449
|
|
|
420
450
|
___
|
|
421
451
|
|
|
@@ -438,7 +468,7 @@ capitalize('hello world') => Hello world
|
|
|
438
468
|
|
|
439
469
|
#### Defined in
|
|
440
470
|
|
|
441
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
471
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/capitalize.ts#L5)
|
|
442
472
|
|
|
443
473
|
___
|
|
444
474
|
|
|
@@ -463,7 +493,7 @@ ___
|
|
|
463
493
|
|
|
464
494
|
#### Defined in
|
|
465
495
|
|
|
466
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
496
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/chooseMedia.ts#L5)
|
|
467
497
|
|
|
468
498
|
___
|
|
469
499
|
|
|
@@ -487,7 +517,7 @@ ___
|
|
|
487
517
|
|
|
488
518
|
#### Defined in
|
|
489
519
|
|
|
490
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
520
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/clamp.ts#L7)
|
|
491
521
|
|
|
492
522
|
___
|
|
493
523
|
|
|
@@ -515,7 +545,7 @@ ___
|
|
|
515
545
|
|
|
516
546
|
#### Defined in
|
|
517
547
|
|
|
518
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
548
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/clone.ts#L8)
|
|
519
549
|
|
|
520
550
|
___
|
|
521
551
|
|
|
@@ -543,7 +573,7 @@ ___
|
|
|
543
573
|
|
|
544
574
|
#### Defined in
|
|
545
575
|
|
|
546
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
576
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/cloneSimple.ts#L7)
|
|
547
577
|
|
|
548
578
|
___
|
|
549
579
|
|
|
@@ -565,7 +595,7 @@ ___
|
|
|
565
595
|
|
|
566
596
|
#### Defined in
|
|
567
597
|
|
|
568
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
598
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/createHexColorByHash.ts#L4)
|
|
569
599
|
|
|
570
600
|
___
|
|
571
601
|
|
|
@@ -591,7 +621,7 @@ ___
|
|
|
591
621
|
|
|
592
622
|
#### Defined in
|
|
593
623
|
|
|
594
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
624
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/59e0309/src/compareVersion.ts#L9)
|
|
595
625
|
|
|
596
626
|
___
|
|
597
627
|
|
|
@@ -614,7 +644,7 @@ ___
|
|
|
614
644
|
|
|
615
645
|
#### Defined in
|
|
616
646
|
|
|
617
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
647
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/compressImage.ts#L4)
|
|
618
648
|
|
|
619
649
|
___
|
|
620
650
|
|
|
@@ -642,7 +672,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
642
672
|
|
|
643
673
|
#### Defined in
|
|
644
674
|
|
|
645
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
675
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/createFactory.ts#L4)
|
|
646
676
|
|
|
647
677
|
___
|
|
648
678
|
|
|
@@ -680,7 +710,7 @@ ___
|
|
|
680
710
|
|
|
681
711
|
#### Defined in
|
|
682
712
|
|
|
683
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
713
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/59e0309/src/createLinearFunction.ts#L9)
|
|
684
714
|
|
|
685
715
|
___
|
|
686
716
|
|
|
@@ -712,7 +742,7 @@ ___
|
|
|
712
742
|
|
|
713
743
|
#### Defined in
|
|
714
744
|
|
|
715
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
745
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/59e0309/src/trap.ts#L49)
|
|
716
746
|
|
|
717
747
|
___
|
|
718
748
|
|
|
@@ -775,7 +805,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
775
805
|
|
|
776
806
|
#### Defined in
|
|
777
807
|
|
|
778
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
808
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/59e0309/src/createWithLoading.ts#L11)
|
|
779
809
|
|
|
780
810
|
___
|
|
781
811
|
|
|
@@ -818,7 +848,7 @@ ___
|
|
|
818
848
|
|
|
819
849
|
#### Defined in
|
|
820
850
|
|
|
821
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
851
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/debounce.ts#L5)
|
|
822
852
|
|
|
823
853
|
___
|
|
824
854
|
|
|
@@ -842,7 +872,7 @@ ___
|
|
|
842
872
|
|
|
843
873
|
#### Defined in
|
|
844
874
|
|
|
845
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
875
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/downloadFile.ts#L4)
|
|
846
876
|
|
|
847
877
|
___
|
|
848
878
|
|
|
@@ -871,7 +901,7 @@ ___
|
|
|
871
901
|
|
|
872
902
|
#### Defined in
|
|
873
903
|
|
|
874
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
904
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/each.ts#L4)
|
|
875
905
|
|
|
876
906
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
877
907
|
|
|
@@ -894,7 +924,7 @@ ___
|
|
|
894
924
|
|
|
895
925
|
#### Defined in
|
|
896
926
|
|
|
897
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
927
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/each.ts#L8)
|
|
898
928
|
|
|
899
929
|
___
|
|
900
930
|
|
|
@@ -912,7 +942,7 @@ ___
|
|
|
912
942
|
|
|
913
943
|
#### Defined in
|
|
914
944
|
|
|
915
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
945
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/exitFullscreen.ts#L6)
|
|
916
946
|
|
|
917
947
|
___
|
|
918
948
|
|
|
@@ -941,7 +971,7 @@ ___
|
|
|
941
971
|
|
|
942
972
|
#### Defined in
|
|
943
973
|
|
|
944
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
974
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/59e0309/src/storage/factory.ts#L11)
|
|
945
975
|
|
|
946
976
|
___
|
|
947
977
|
|
|
@@ -963,7 +993,7 @@ ___
|
|
|
963
993
|
|
|
964
994
|
#### Defined in
|
|
965
995
|
|
|
966
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
996
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/filterBankCardNo.ts#L4)
|
|
967
997
|
|
|
968
998
|
___
|
|
969
999
|
|
|
@@ -985,7 +1015,7 @@ ___
|
|
|
985
1015
|
|
|
986
1016
|
#### Defined in
|
|
987
1017
|
|
|
988
|
-
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/
|
|
1018
|
+
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/filterCRLF.ts#L4)
|
|
989
1019
|
|
|
990
1020
|
___
|
|
991
1021
|
|
|
@@ -1007,7 +1037,7 @@ ___
|
|
|
1007
1037
|
|
|
1008
1038
|
#### Defined in
|
|
1009
1039
|
|
|
1010
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1040
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/filterEmoji.ts#L4)
|
|
1011
1041
|
|
|
1012
1042
|
___
|
|
1013
1043
|
|
|
@@ -1030,7 +1060,7 @@ ___
|
|
|
1030
1060
|
|
|
1031
1061
|
#### Defined in
|
|
1032
1062
|
|
|
1033
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1063
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/59e0309/src/filterEmptyValue.ts#L12)
|
|
1034
1064
|
|
|
1035
1065
|
___
|
|
1036
1066
|
|
|
@@ -1053,7 +1083,7 @@ ___
|
|
|
1053
1083
|
|
|
1054
1084
|
#### Defined in
|
|
1055
1085
|
|
|
1056
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1086
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/filterIdCard.ts#L5)
|
|
1057
1087
|
|
|
1058
1088
|
___
|
|
1059
1089
|
|
|
@@ -1075,7 +1105,7 @@ ___
|
|
|
1075
1105
|
|
|
1076
1106
|
#### Defined in
|
|
1077
1107
|
|
|
1078
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1108
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/filterName.ts#L4)
|
|
1079
1109
|
|
|
1080
1110
|
___
|
|
1081
1111
|
|
|
@@ -1100,7 +1130,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1100
1130
|
|
|
1101
1131
|
#### Defined in
|
|
1102
1132
|
|
|
1103
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1133
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/filterPhone.ts#L6)
|
|
1104
1134
|
|
|
1105
1135
|
___
|
|
1106
1136
|
|
|
@@ -1127,7 +1157,7 @@ str = '131****8888'
|
|
|
1127
1157
|
|
|
1128
1158
|
#### Defined in
|
|
1129
1159
|
|
|
1130
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1160
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/filterString.ts#L6)
|
|
1131
1161
|
|
|
1132
1162
|
___
|
|
1133
1163
|
|
|
@@ -1150,7 +1180,7 @@ ___
|
|
|
1150
1180
|
|
|
1151
1181
|
#### Defined in
|
|
1152
1182
|
|
|
1153
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1183
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/formatAmount.ts#L4)
|
|
1154
1184
|
|
|
1155
1185
|
___
|
|
1156
1186
|
|
|
@@ -1174,7 +1204,7 @@ ___
|
|
|
1174
1204
|
|
|
1175
1205
|
#### Defined in
|
|
1176
1206
|
|
|
1177
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1207
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/formatDate.ts#L7)
|
|
1178
1208
|
|
|
1179
1209
|
___
|
|
1180
1210
|
|
|
@@ -1205,7 +1235,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1205
1235
|
|
|
1206
1236
|
#### Defined in
|
|
1207
1237
|
|
|
1208
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1238
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/formatDateStr.ts#L6)
|
|
1209
1239
|
|
|
1210
1240
|
___
|
|
1211
1241
|
|
|
@@ -1225,7 +1255,7 @@ ___
|
|
|
1225
1255
|
|
|
1226
1256
|
#### Defined in
|
|
1227
1257
|
|
|
1228
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1258
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/formartDateToZN.ts#L4)
|
|
1229
1259
|
|
|
1230
1260
|
___
|
|
1231
1261
|
|
|
@@ -1248,7 +1278,7 @@ ___
|
|
|
1248
1278
|
|
|
1249
1279
|
#### Defined in
|
|
1250
1280
|
|
|
1251
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1281
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/formatFileSize.ts#L4)
|
|
1252
1282
|
|
|
1253
1283
|
___
|
|
1254
1284
|
|
|
@@ -1273,7 +1303,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1273
1303
|
|
|
1274
1304
|
#### Defined in
|
|
1275
1305
|
|
|
1276
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1306
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/59e0309/src/formatMessage.ts#L11)
|
|
1277
1307
|
|
|
1278
1308
|
___
|
|
1279
1309
|
|
|
@@ -1305,7 +1335,7 @@ rest = { xxx: 1 }
|
|
|
1305
1335
|
|
|
1306
1336
|
#### Defined in
|
|
1307
1337
|
|
|
1308
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1338
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/formatPathParams.ts#L8)
|
|
1309
1339
|
|
|
1310
1340
|
___
|
|
1311
1341
|
|
|
@@ -1327,7 +1357,7 @@ ___
|
|
|
1327
1357
|
|
|
1328
1358
|
#### Defined in
|
|
1329
1359
|
|
|
1330
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1360
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/getBlobByUrl.ts#L4)
|
|
1331
1361
|
|
|
1332
1362
|
___
|
|
1333
1363
|
|
|
@@ -1350,7 +1380,7 @@ ___
|
|
|
1350
1380
|
|
|
1351
1381
|
#### Defined in
|
|
1352
1382
|
|
|
1353
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1383
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/59e0309/src/storage/index.ts#L10)
|
|
1354
1384
|
|
|
1355
1385
|
___
|
|
1356
1386
|
|
|
@@ -1373,7 +1403,7 @@ ___
|
|
|
1373
1403
|
|
|
1374
1404
|
#### Defined in
|
|
1375
1405
|
|
|
1376
|
-
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/
|
|
1406
|
+
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/getDateBoundsByMonths.ts#L8)
|
|
1377
1407
|
|
|
1378
1408
|
▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
|
|
1379
1409
|
|
|
@@ -1391,7 +1421,7 @@ ___
|
|
|
1391
1421
|
|
|
1392
1422
|
#### Defined in
|
|
1393
1423
|
|
|
1394
|
-
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/
|
|
1424
|
+
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/59e0309/src/getDateBoundsByMonths.ts#L12)
|
|
1395
1425
|
|
|
1396
1426
|
___
|
|
1397
1427
|
|
|
@@ -1413,7 +1443,7 @@ ___
|
|
|
1413
1443
|
|
|
1414
1444
|
#### Defined in
|
|
1415
1445
|
|
|
1416
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1446
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/getDayMillisecond.ts#L4)
|
|
1417
1447
|
|
|
1418
1448
|
___
|
|
1419
1449
|
|
|
@@ -1436,7 +1466,7 @@ ___
|
|
|
1436
1466
|
|
|
1437
1467
|
#### Defined in
|
|
1438
1468
|
|
|
1439
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1469
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/getImageInfo.ts#L4)
|
|
1440
1470
|
|
|
1441
1471
|
___
|
|
1442
1472
|
|
|
@@ -1459,7 +1489,7 @@ ___
|
|
|
1459
1489
|
|
|
1460
1490
|
#### Defined in
|
|
1461
1491
|
|
|
1462
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1492
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/59e0309/src/storage/index.ts#L10)
|
|
1463
1493
|
|
|
1464
1494
|
___
|
|
1465
1495
|
|
|
@@ -1481,7 +1511,7 @@ ___
|
|
|
1481
1511
|
|
|
1482
1512
|
#### Defined in
|
|
1483
1513
|
|
|
1484
|
-
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1514
|
+
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/getMonthBounds.ts#L7)
|
|
1485
1515
|
|
|
1486
1516
|
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1487
1517
|
|
|
@@ -1498,7 +1528,7 @@ ___
|
|
|
1498
1528
|
|
|
1499
1529
|
#### Defined in
|
|
1500
1530
|
|
|
1501
|
-
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/
|
|
1531
|
+
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/getMonthBounds.ts#L8)
|
|
1502
1532
|
|
|
1503
1533
|
___
|
|
1504
1534
|
|
|
@@ -1521,7 +1551,7 @@ ___
|
|
|
1521
1551
|
|
|
1522
1552
|
#### Defined in
|
|
1523
1553
|
|
|
1524
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1554
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/getRandom.ts#L7)
|
|
1525
1555
|
|
|
1526
1556
|
___
|
|
1527
1557
|
|
|
@@ -1537,7 +1567,7 @@ ___
|
|
|
1537
1567
|
|
|
1538
1568
|
#### Defined in
|
|
1539
1569
|
|
|
1540
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1570
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/getRandomColor.ts#L4)
|
|
1541
1571
|
|
|
1542
1572
|
___
|
|
1543
1573
|
|
|
@@ -1559,7 +1589,7 @@ ___
|
|
|
1559
1589
|
|
|
1560
1590
|
#### Defined in
|
|
1561
1591
|
|
|
1562
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1592
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/getRandomNumber.ts#L7)
|
|
1563
1593
|
|
|
1564
1594
|
___
|
|
1565
1595
|
|
|
@@ -1582,7 +1612,7 @@ ___
|
|
|
1582
1612
|
|
|
1583
1613
|
#### Defined in
|
|
1584
1614
|
|
|
1585
|
-
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1615
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/getRangeDate.ts#L7)
|
|
1586
1616
|
|
|
1587
1617
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1588
1618
|
|
|
@@ -1600,7 +1630,7 @@ ___
|
|
|
1600
1630
|
|
|
1601
1631
|
#### Defined in
|
|
1602
1632
|
|
|
1603
|
-
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/
|
|
1633
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/59e0309/src/getRangeDate.ts#L11)
|
|
1604
1634
|
|
|
1605
1635
|
___
|
|
1606
1636
|
|
|
@@ -1616,7 +1646,7 @@ ___
|
|
|
1616
1646
|
|
|
1617
1647
|
#### Defined in
|
|
1618
1648
|
|
|
1619
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1649
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/getScrollTop.ts#L4)
|
|
1620
1650
|
|
|
1621
1651
|
___
|
|
1622
1652
|
|
|
@@ -1638,7 +1668,7 @@ ___
|
|
|
1638
1668
|
|
|
1639
1669
|
#### Defined in
|
|
1640
1670
|
|
|
1641
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1671
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/getVideoInfo.ts#L4)
|
|
1642
1672
|
|
|
1643
1673
|
___
|
|
1644
1674
|
|
|
@@ -1661,7 +1691,7 @@ ___
|
|
|
1661
1691
|
|
|
1662
1692
|
#### Defined in
|
|
1663
1693
|
|
|
1664
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1694
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/getWeekday.ts#L6)
|
|
1665
1695
|
|
|
1666
1696
|
___
|
|
1667
1697
|
|
|
@@ -1677,7 +1707,7 @@ ___
|
|
|
1677
1707
|
|
|
1678
1708
|
#### Defined in
|
|
1679
1709
|
|
|
1680
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1710
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/inBrowser.ts#L4)
|
|
1681
1711
|
|
|
1682
1712
|
___
|
|
1683
1713
|
|
|
@@ -1699,7 +1729,7 @@ ___
|
|
|
1699
1729
|
|
|
1700
1730
|
#### Defined in
|
|
1701
1731
|
|
|
1702
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1732
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/insertLink.ts#L4)
|
|
1703
1733
|
|
|
1704
1734
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1705
1735
|
|
|
@@ -1716,7 +1746,7 @@ ___
|
|
|
1716
1746
|
|
|
1717
1747
|
#### Defined in
|
|
1718
1748
|
|
|
1719
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1749
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/insertLink.ts#L5)
|
|
1720
1750
|
|
|
1721
1751
|
___
|
|
1722
1752
|
|
|
@@ -1738,7 +1768,7 @@ ___
|
|
|
1738
1768
|
|
|
1739
1769
|
#### Defined in
|
|
1740
1770
|
|
|
1741
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1771
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/insertScript.ts#L4)
|
|
1742
1772
|
|
|
1743
1773
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1744
1774
|
|
|
@@ -1755,7 +1785,7 @@ ___
|
|
|
1755
1785
|
|
|
1756
1786
|
#### Defined in
|
|
1757
1787
|
|
|
1758
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1788
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/insertScript.ts#L5)
|
|
1759
1789
|
|
|
1760
1790
|
___
|
|
1761
1791
|
|
|
@@ -1777,7 +1807,7 @@ ___
|
|
|
1777
1807
|
|
|
1778
1808
|
#### Defined in
|
|
1779
1809
|
|
|
1780
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1810
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/insertStyle.ts#L4)
|
|
1781
1811
|
|
|
1782
1812
|
___
|
|
1783
1813
|
|
|
@@ -1806,7 +1836,7 @@ isAmount('1.123') => false
|
|
|
1806
1836
|
|
|
1807
1837
|
#### Defined in
|
|
1808
1838
|
|
|
1809
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1839
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/59e0309/src/isAmount.ts#L11)
|
|
1810
1840
|
|
|
1811
1841
|
___
|
|
1812
1842
|
|
|
@@ -1822,7 +1852,7 @@ ___
|
|
|
1822
1852
|
|
|
1823
1853
|
#### Defined in
|
|
1824
1854
|
|
|
1825
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
1855
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isAndroid.ts#L4)
|
|
1826
1856
|
|
|
1827
1857
|
___
|
|
1828
1858
|
|
|
@@ -1846,7 +1876,7 @@ val is any[]
|
|
|
1846
1876
|
|
|
1847
1877
|
#### Defined in
|
|
1848
1878
|
|
|
1849
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1879
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/isArray.ts#L6)
|
|
1850
1880
|
|
|
1851
1881
|
___
|
|
1852
1882
|
|
|
@@ -1868,7 +1898,7 @@ val is boolean
|
|
|
1868
1898
|
|
|
1869
1899
|
#### Defined in
|
|
1870
1900
|
|
|
1871
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
1901
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/isBoolean.ts#L5)
|
|
1872
1902
|
|
|
1873
1903
|
___
|
|
1874
1904
|
|
|
@@ -1890,7 +1920,7 @@ ___
|
|
|
1890
1920
|
|
|
1891
1921
|
#### Defined in
|
|
1892
1922
|
|
|
1893
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
1923
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isChinese.ts#L4)
|
|
1894
1924
|
|
|
1895
1925
|
___
|
|
1896
1926
|
|
|
@@ -1912,7 +1942,7 @@ val is Date
|
|
|
1912
1942
|
|
|
1913
1943
|
#### Defined in
|
|
1914
1944
|
|
|
1915
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1945
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isDate.ts#L4)
|
|
1916
1946
|
|
|
1917
1947
|
___
|
|
1918
1948
|
|
|
@@ -1934,7 +1964,7 @@ ___
|
|
|
1934
1964
|
|
|
1935
1965
|
#### Defined in
|
|
1936
1966
|
|
|
1937
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
1967
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isEmail.ts#L4)
|
|
1938
1968
|
|
|
1939
1969
|
___
|
|
1940
1970
|
|
|
@@ -1956,7 +1986,7 @@ ___
|
|
|
1956
1986
|
|
|
1957
1987
|
#### Defined in
|
|
1958
1988
|
|
|
1959
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
1989
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/isEmpty.ts#L6)
|
|
1960
1990
|
|
|
1961
1991
|
___
|
|
1962
1992
|
|
|
@@ -1978,7 +2008,7 @@ ___
|
|
|
1978
2008
|
|
|
1979
2009
|
#### Defined in
|
|
1980
2010
|
|
|
1981
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2011
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/isEmptyArray.ts#L6)
|
|
1982
2012
|
|
|
1983
2013
|
___
|
|
1984
2014
|
|
|
@@ -2000,7 +2030,7 @@ ___
|
|
|
2000
2030
|
|
|
2001
2031
|
#### Defined in
|
|
2002
2032
|
|
|
2003
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2033
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/isEmptyObject.ts#L5)
|
|
2004
2034
|
|
|
2005
2035
|
___
|
|
2006
2036
|
|
|
@@ -2022,7 +2052,7 @@ val is Error
|
|
|
2022
2052
|
|
|
2023
2053
|
#### Defined in
|
|
2024
2054
|
|
|
2025
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
2055
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isError.ts#L4)
|
|
2026
2056
|
|
|
2027
2057
|
___
|
|
2028
2058
|
|
|
@@ -2044,7 +2074,7 @@ val is Function
|
|
|
2044
2074
|
|
|
2045
2075
|
#### Defined in
|
|
2046
2076
|
|
|
2047
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2077
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isFunction.ts#L4)
|
|
2048
2078
|
|
|
2049
2079
|
___
|
|
2050
2080
|
|
|
@@ -2062,7 +2092,7 @@ ___
|
|
|
2062
2092
|
|
|
2063
2093
|
#### Defined in
|
|
2064
2094
|
|
|
2065
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2095
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/isIE.ts#L6)
|
|
2066
2096
|
|
|
2067
2097
|
___
|
|
2068
2098
|
|
|
@@ -2078,7 +2108,7 @@ ___
|
|
|
2078
2108
|
|
|
2079
2109
|
#### Defined in
|
|
2080
2110
|
|
|
2081
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2111
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isIOS.ts#L4)
|
|
2082
2112
|
|
|
2083
2113
|
___
|
|
2084
2114
|
|
|
@@ -2100,7 +2130,7 @@ ___
|
|
|
2100
2130
|
|
|
2101
2131
|
#### Defined in
|
|
2102
2132
|
|
|
2103
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2133
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isIdCard.ts#L4)
|
|
2104
2134
|
|
|
2105
2135
|
___
|
|
2106
2136
|
|
|
@@ -2122,7 +2152,7 @@ ___
|
|
|
2122
2152
|
|
|
2123
2153
|
#### Defined in
|
|
2124
2154
|
|
|
2125
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2155
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/isJSONString.ts#L7)
|
|
2126
2156
|
|
|
2127
2157
|
___
|
|
2128
2158
|
|
|
@@ -2144,7 +2174,7 @@ ___
|
|
|
2144
2174
|
|
|
2145
2175
|
#### Defined in
|
|
2146
2176
|
|
|
2147
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2177
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/isLan.ts#L5)
|
|
2148
2178
|
|
|
2149
2179
|
___
|
|
2150
2180
|
|
|
@@ -2166,7 +2196,7 @@ ___
|
|
|
2166
2196
|
|
|
2167
2197
|
#### Defined in
|
|
2168
2198
|
|
|
2169
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2199
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/isLicenseCode.ts#L5)
|
|
2170
2200
|
|
|
2171
2201
|
___
|
|
2172
2202
|
|
|
@@ -2182,7 +2212,7 @@ ___
|
|
|
2182
2212
|
|
|
2183
2213
|
#### Defined in
|
|
2184
2214
|
|
|
2185
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2215
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isMobile.ts#L4)
|
|
2186
2216
|
|
|
2187
2217
|
___
|
|
2188
2218
|
|
|
@@ -2205,7 +2235,7 @@ ___
|
|
|
2205
2235
|
|
|
2206
2236
|
#### Defined in
|
|
2207
2237
|
|
|
2208
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2238
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/isNativeFunction.ts#L7)
|
|
2209
2239
|
|
|
2210
2240
|
___
|
|
2211
2241
|
|
|
@@ -2227,7 +2257,7 @@ val is null
|
|
|
2227
2257
|
|
|
2228
2258
|
#### Defined in
|
|
2229
2259
|
|
|
2230
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2260
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isNull.ts#L4)
|
|
2231
2261
|
|
|
2232
2262
|
___
|
|
2233
2263
|
|
|
@@ -2249,7 +2279,7 @@ val is number
|
|
|
2249
2279
|
|
|
2250
2280
|
#### Defined in
|
|
2251
2281
|
|
|
2252
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2282
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/isNumber.ts#L5)
|
|
2253
2283
|
|
|
2254
2284
|
___
|
|
2255
2285
|
|
|
@@ -2271,7 +2301,7 @@ val is Record<string, any\>
|
|
|
2271
2301
|
|
|
2272
2302
|
#### Defined in
|
|
2273
2303
|
|
|
2274
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2304
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isObject.ts#L4)
|
|
2275
2305
|
|
|
2276
2306
|
___
|
|
2277
2307
|
|
|
@@ -2293,7 +2323,7 @@ ___
|
|
|
2293
2323
|
|
|
2294
2324
|
#### Defined in
|
|
2295
2325
|
|
|
2296
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2326
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isPhone.ts#L4)
|
|
2297
2327
|
|
|
2298
2328
|
___
|
|
2299
2329
|
|
|
@@ -2321,7 +2351,7 @@ val is Promise<T\>
|
|
|
2321
2351
|
|
|
2322
2352
|
#### Defined in
|
|
2323
2353
|
|
|
2324
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2354
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isPromise.ts#L4)
|
|
2325
2355
|
|
|
2326
2356
|
___
|
|
2327
2357
|
|
|
@@ -2343,7 +2373,7 @@ val is RegExp
|
|
|
2343
2373
|
|
|
2344
2374
|
#### Defined in
|
|
2345
2375
|
|
|
2346
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2376
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isRegExp.ts#L4)
|
|
2347
2377
|
|
|
2348
2378
|
___
|
|
2349
2379
|
|
|
@@ -2365,7 +2395,7 @@ val is string
|
|
|
2365
2395
|
|
|
2366
2396
|
#### Defined in
|
|
2367
2397
|
|
|
2368
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2398
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isString.ts#L4)
|
|
2369
2399
|
|
|
2370
2400
|
___
|
|
2371
2401
|
|
|
@@ -2394,7 +2424,7 @@ val is T
|
|
|
2394
2424
|
|
|
2395
2425
|
#### Defined in
|
|
2396
2426
|
|
|
2397
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2427
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isType.ts#L4)
|
|
2398
2428
|
|
|
2399
2429
|
___
|
|
2400
2430
|
|
|
@@ -2416,7 +2446,7 @@ val is undefined
|
|
|
2416
2446
|
|
|
2417
2447
|
#### Defined in
|
|
2418
2448
|
|
|
2419
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2449
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isUndefined.ts#L4)
|
|
2420
2450
|
|
|
2421
2451
|
___
|
|
2422
2452
|
|
|
@@ -2460,7 +2490,7 @@ ___
|
|
|
2460
2490
|
|
|
2461
2491
|
#### Defined in
|
|
2462
2492
|
|
|
2463
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2493
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/isValidDate.ts#L6)
|
|
2464
2494
|
|
|
2465
2495
|
___
|
|
2466
2496
|
|
|
@@ -2476,7 +2506,7 @@ ___
|
|
|
2476
2506
|
|
|
2477
2507
|
#### Defined in
|
|
2478
2508
|
|
|
2479
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2509
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/isWeChat.ts#L4)
|
|
2480
2510
|
|
|
2481
2511
|
___
|
|
2482
2512
|
|
|
@@ -2493,7 +2523,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2493
2523
|
|
|
2494
2524
|
#### Defined in
|
|
2495
2525
|
|
|
2496
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2526
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/isWeChatMiniProgram.ts#L5)
|
|
2497
2527
|
|
|
2498
2528
|
___
|
|
2499
2529
|
|
|
@@ -2517,7 +2547,7 @@ ___
|
|
|
2517
2547
|
|
|
2518
2548
|
#### Defined in
|
|
2519
2549
|
|
|
2520
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2550
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/59e0309/src/isWeChat.ts#L12)
|
|
2521
2551
|
|
|
2522
2552
|
___
|
|
2523
2553
|
|
|
@@ -2539,7 +2569,7 @@ val is Window
|
|
|
2539
2569
|
|
|
2540
2570
|
#### Defined in
|
|
2541
2571
|
|
|
2542
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2572
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/isWindow.ts#L5)
|
|
2543
2573
|
|
|
2544
2574
|
___
|
|
2545
2575
|
|
|
@@ -2562,7 +2592,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2562
2592
|
|
|
2563
2593
|
#### Defined in
|
|
2564
2594
|
|
|
2565
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2595
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/kebabCase.ts#L5)
|
|
2566
2596
|
|
|
2567
2597
|
___
|
|
2568
2598
|
|
|
@@ -2584,7 +2614,7 @@ list 生成器,快速生成数据
|
|
|
2584
2614
|
|
|
2585
2615
|
#### Defined in
|
|
2586
2616
|
|
|
2587
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2617
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/listGenerator.ts#L5)
|
|
2588
2618
|
|
|
2589
2619
|
▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
|
|
2590
2620
|
|
|
@@ -2607,7 +2637,7 @@ list 生成器,快速生成数据
|
|
|
2607
2637
|
|
|
2608
2638
|
#### Defined in
|
|
2609
2639
|
|
|
2610
|
-
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/
|
|
2640
|
+
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/listGenerator.ts#L6)
|
|
2611
2641
|
|
|
2612
2642
|
___
|
|
2613
2643
|
|
|
@@ -2627,7 +2657,7 @@ ___
|
|
|
2627
2657
|
|
|
2628
2658
|
#### Defined in
|
|
2629
2659
|
|
|
2630
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2660
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/59e0309/src/makePhoneCall.ts#L1)
|
|
2631
2661
|
|
|
2632
2662
|
___
|
|
2633
2663
|
|
|
@@ -2652,7 +2682,7 @@ ___
|
|
|
2652
2682
|
|
|
2653
2683
|
#### Defined in
|
|
2654
2684
|
|
|
2655
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2685
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/59e0309/src/mousewheel.ts#L22)
|
|
2656
2686
|
|
|
2657
2687
|
___
|
|
2658
2688
|
|
|
@@ -2668,7 +2698,7 @@ ___
|
|
|
2668
2698
|
|
|
2669
2699
|
#### Defined in
|
|
2670
2700
|
|
|
2671
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2701
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/nf.ts#L4)
|
|
2672
2702
|
|
|
2673
2703
|
___
|
|
2674
2704
|
|
|
@@ -2692,7 +2722,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2692
2722
|
|
|
2693
2723
|
#### Defined in
|
|
2694
2724
|
|
|
2695
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
2725
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/normalizeDate.ts#L8)
|
|
2696
2726
|
|
|
2697
2727
|
___
|
|
2698
2728
|
|
|
@@ -2714,7 +2744,7 @@ ___
|
|
|
2714
2744
|
|
|
2715
2745
|
#### Defined in
|
|
2716
2746
|
|
|
2717
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2747
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/normalizePath.ts#L4)
|
|
2718
2748
|
|
|
2719
2749
|
___
|
|
2720
2750
|
|
|
@@ -2744,7 +2774,7 @@ ___
|
|
|
2744
2774
|
|
|
2745
2775
|
#### Defined in
|
|
2746
2776
|
|
|
2747
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2777
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/omit.ts#L4)
|
|
2748
2778
|
|
|
2749
2779
|
___
|
|
2750
2780
|
|
|
@@ -2768,7 +2798,7 @@ ___
|
|
|
2768
2798
|
|
|
2769
2799
|
#### Defined in
|
|
2770
2800
|
|
|
2771
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2801
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/padding.ts#L7)
|
|
2772
2802
|
|
|
2773
2803
|
___
|
|
2774
2804
|
|
|
@@ -2794,7 +2824,7 @@ ___
|
|
|
2794
2824
|
|
|
2795
2825
|
#### Defined in
|
|
2796
2826
|
|
|
2797
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
2827
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/parseDate.ts#L5)
|
|
2798
2828
|
|
|
2799
2829
|
___
|
|
2800
2830
|
|
|
@@ -2817,7 +2847,7 @@ ___
|
|
|
2817
2847
|
|
|
2818
2848
|
#### Defined in
|
|
2819
2849
|
|
|
2820
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
2850
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/parseError.ts#L8)
|
|
2821
2851
|
|
|
2822
2852
|
___
|
|
2823
2853
|
|
|
@@ -2847,7 +2877,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
2847
2877
|
|
|
2848
2878
|
#### Defined in
|
|
2849
2879
|
|
|
2850
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2880
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/parseObject.ts#L5)
|
|
2851
2881
|
|
|
2852
2882
|
___
|
|
2853
2883
|
|
|
@@ -2876,7 +2906,7 @@ ___
|
|
|
2876
2906
|
|
|
2877
2907
|
#### Defined in
|
|
2878
2908
|
|
|
2879
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
2909
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/parsePath.ts#L6)
|
|
2880
2910
|
|
|
2881
2911
|
___
|
|
2882
2912
|
|
|
@@ -2899,7 +2929,7 @@ ___
|
|
|
2899
2929
|
|
|
2900
2930
|
#### Defined in
|
|
2901
2931
|
|
|
2902
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
2932
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/parseQuery.ts#L8)
|
|
2903
2933
|
|
|
2904
2934
|
___
|
|
2905
2935
|
|
|
@@ -2929,7 +2959,7 @@ ___
|
|
|
2929
2959
|
|
|
2930
2960
|
#### Defined in
|
|
2931
2961
|
|
|
2932
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
2962
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/parseQueryString.ts#L6)
|
|
2933
2963
|
|
|
2934
2964
|
___
|
|
2935
2965
|
|
|
@@ -2952,7 +2982,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
2952
2982
|
|
|
2953
2983
|
#### Defined in
|
|
2954
2984
|
|
|
2955
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
2985
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/pascalCase.ts#L8)
|
|
2956
2986
|
|
|
2957
2987
|
___
|
|
2958
2988
|
|
|
@@ -2982,7 +3012,7 @@ ___
|
|
|
2982
3012
|
|
|
2983
3013
|
#### Defined in
|
|
2984
3014
|
|
|
2985
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
3015
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/pick.ts#L4)
|
|
2986
3016
|
|
|
2987
3017
|
___
|
|
2988
3018
|
|
|
@@ -3005,7 +3035,7 @@ ___
|
|
|
3005
3035
|
|
|
3006
3036
|
#### Defined in
|
|
3007
3037
|
|
|
3008
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
3038
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/replaceCrlf.ts#L4)
|
|
3009
3039
|
|
|
3010
3040
|
___
|
|
3011
3041
|
|
|
@@ -3029,7 +3059,7 @@ ___
|
|
|
3029
3059
|
|
|
3030
3060
|
#### Defined in
|
|
3031
3061
|
|
|
3032
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
3062
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/requestFullScreen.ts#L6)
|
|
3033
3063
|
|
|
3034
3064
|
___
|
|
3035
3065
|
|
|
@@ -3055,7 +3085,7 @@ reserve(0, '--') => 0
|
|
|
3055
3085
|
|
|
3056
3086
|
#### Defined in
|
|
3057
3087
|
|
|
3058
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
3088
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/59e0309/src/reserve.ts#L8)
|
|
3059
3089
|
|
|
3060
3090
|
___
|
|
3061
3091
|
|
|
@@ -3079,7 +3109,7 @@ ___
|
|
|
3079
3109
|
|
|
3080
3110
|
#### Defined in
|
|
3081
3111
|
|
|
3082
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3112
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/rgbToHex.ts#L4)
|
|
3083
3113
|
|
|
3084
3114
|
___
|
|
3085
3115
|
|
|
@@ -3102,7 +3132,7 @@ ___
|
|
|
3102
3132
|
|
|
3103
3133
|
#### Defined in
|
|
3104
3134
|
|
|
3105
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3135
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/round.ts#L6)
|
|
3106
3136
|
|
|
3107
3137
|
___
|
|
3108
3138
|
|
|
@@ -3118,7 +3148,7 @@ ___
|
|
|
3118
3148
|
|
|
3119
3149
|
#### Defined in
|
|
3120
3150
|
|
|
3121
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3151
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/scrollToTop.ts#L4)
|
|
3122
3152
|
|
|
3123
3153
|
___
|
|
3124
3154
|
|
|
@@ -3140,7 +3170,7 @@ ___
|
|
|
3140
3170
|
|
|
3141
3171
|
#### Defined in
|
|
3142
3172
|
|
|
3143
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3173
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/setScrollTop.ts#L4)
|
|
3144
3174
|
|
|
3145
3175
|
___
|
|
3146
3176
|
|
|
@@ -3163,7 +3193,7 @@ ___
|
|
|
3163
3193
|
|
|
3164
3194
|
#### Defined in
|
|
3165
3195
|
|
|
3166
|
-
[sleep.ts:6](https://github.com/daysnap/utils/blob/
|
|
3196
|
+
[sleep.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/sleep.ts#L6)
|
|
3167
3197
|
|
|
3168
3198
|
___
|
|
3169
3199
|
|
|
@@ -3192,7 +3222,7 @@ ___
|
|
|
3192
3222
|
|
|
3193
3223
|
#### Defined in
|
|
3194
3224
|
|
|
3195
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3225
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/splitArray.ts#L4)
|
|
3196
3226
|
|
|
3197
3227
|
___
|
|
3198
3228
|
|
|
@@ -3215,7 +3245,7 @@ ___
|
|
|
3215
3245
|
|
|
3216
3246
|
#### Defined in
|
|
3217
3247
|
|
|
3218
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3248
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/stringTrim.ts#L6)
|
|
3219
3249
|
|
|
3220
3250
|
___
|
|
3221
3251
|
|
|
@@ -3237,7 +3267,7 @@ ___
|
|
|
3237
3267
|
|
|
3238
3268
|
#### Defined in
|
|
3239
3269
|
|
|
3240
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3270
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/59e0309/src/stringifyQuery.ts#L7)
|
|
3241
3271
|
|
|
3242
3272
|
___
|
|
3243
3273
|
|
|
@@ -3261,7 +3291,7 @@ ___
|
|
|
3261
3291
|
|
|
3262
3292
|
#### Defined in
|
|
3263
3293
|
|
|
3264
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3294
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/stringifyQueryString.ts#L6)
|
|
3265
3295
|
|
|
3266
3296
|
___
|
|
3267
3297
|
|
|
@@ -3305,7 +3335,7 @@ ___
|
|
|
3305
3335
|
|
|
3306
3336
|
#### Defined in
|
|
3307
3337
|
|
|
3308
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3338
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/59e0309/src/throttle.ts#L48)
|
|
3309
3339
|
|
|
3310
3340
|
___
|
|
3311
3341
|
|
|
@@ -3348,7 +3378,7 @@ ___
|
|
|
3348
3378
|
|
|
3349
3379
|
#### Defined in
|
|
3350
3380
|
|
|
3351
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3381
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/59e0309/src/throttle.ts#L5)
|
|
3352
3382
|
|
|
3353
3383
|
___
|
|
3354
3384
|
|
|
@@ -3391,7 +3421,7 @@ ___
|
|
|
3391
3421
|
|
|
3392
3422
|
#### Defined in
|
|
3393
3423
|
|
|
3394
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3424
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/59e0309/src/throttle.ts#L25)
|
|
3395
3425
|
|
|
3396
3426
|
___
|
|
3397
3427
|
|
|
@@ -3413,7 +3443,7 @@ ___
|
|
|
3413
3443
|
|
|
3414
3444
|
#### Defined in
|
|
3415
3445
|
|
|
3416
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3446
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/toCDB.ts#L4)
|
|
3417
3447
|
|
|
3418
3448
|
___
|
|
3419
3449
|
|
|
@@ -3435,7 +3465,7 @@ ___
|
|
|
3435
3465
|
|
|
3436
3466
|
#### Defined in
|
|
3437
3467
|
|
|
3438
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3468
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/toDBC.ts#L4)
|
|
3439
3469
|
|
|
3440
3470
|
___
|
|
3441
3471
|
|
|
@@ -3459,7 +3489,7 @@ ___
|
|
|
3459
3489
|
|
|
3460
3490
|
#### Defined in
|
|
3461
3491
|
|
|
3462
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3492
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/59e0309/src/typeOf.ts#L6)
|
|
3463
3493
|
|
|
3464
3494
|
___
|
|
3465
3495
|
|
|
@@ -3487,7 +3517,7 @@ ___
|
|
|
3487
3517
|
|
|
3488
3518
|
#### Defined in
|
|
3489
3519
|
|
|
3490
|
-
[withCache.ts:4](https://github.com/daysnap/utils/blob/
|
|
3520
|
+
[withCache.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/withCache.ts#L4)
|
|
3491
3521
|
|
|
3492
3522
|
___
|
|
3493
3523
|
|
|
@@ -3516,4 +3546,4 @@ ___
|
|
|
3516
3546
|
|
|
3517
3547
|
#### Defined in
|
|
3518
3548
|
|
|
3519
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3549
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/59e0309/src/withPreventConsecutiveClicks.ts#L4)
|