@daysnap/utils 0.0.81 → 0.0.83

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/modules.md CHANGED
@@ -28,6 +28,7 @@
28
28
  - [colorGenByHash](modules.md#colorgenbyhash)
29
29
  - [compareVersion](modules.md#compareversion)
30
30
  - [compressImage](modules.md#compressimage)
31
+ - [createLinearFunction](modules.md#createlinearfunction)
31
32
  - [createTrapInstance](modules.md#createtrapinstance)
32
33
  - [createWithLoading](modules.md#createwithloading)
33
34
  - [debounce](modules.md#debounce)
@@ -89,8 +90,8 @@
89
90
  - [isPromise](modules.md#ispromise)
90
91
  - [isRegExp](modules.md#isregexp)
91
92
  - [isString](modules.md#isstring)
92
- - [isURL](modules.md#isurl)
93
93
  - [isUndefined](modules.md#isundefined)
94
+ - [isUrl](modules.md#isurl)
94
95
  - [isWeChat](modules.md#iswechat)
95
96
  - [isWeChatMiniProgram](modules.md#iswechatminiprogram)
96
97
  - [isWeixin](modules.md#isweixin)
@@ -124,6 +125,7 @@
124
125
  - [toCDB](modules.md#tocdb)
125
126
  - [toDBC](modules.md#todbc)
126
127
  - [typeOf](modules.md#typeof)
128
+ - [withPreventConsecutiveClicks](modules.md#withpreventconsecutiveclicks)
127
129
 
128
130
  ## Variables
129
131
 
@@ -133,7 +135,7 @@
133
135
 
134
136
  #### Defined in
135
137
 
136
- [trap.ts:15](https://github.com/daysnap/utils/blob/867c3c9/src/trap.ts#L15)
138
+ [trap.ts:15](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L15)
137
139
 
138
140
  ## Functions
139
141
 
@@ -171,7 +173,7 @@ res = { '1': '男', '2': '女' }
171
173
 
172
174
  #### Defined in
173
175
 
174
- [ato.ts:12](https://github.com/daysnap/utils/blob/867c3c9/src/ato.ts#L12)
176
+ [ato.ts:12](https://github.com/daysnap/utils/blob/cbc06da/src/ato.ts#L12)
175
177
 
176
178
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
177
179
 
@@ -196,7 +198,7 @@ res = { '1': '男', '2': '女' }
196
198
 
197
199
  #### Defined in
198
200
 
199
- [ato.ts:16](https://github.com/daysnap/utils/blob/867c3c9/src/ato.ts#L16)
201
+ [ato.ts:16](https://github.com/daysnap/utils/blob/cbc06da/src/ato.ts#L16)
200
202
 
201
203
  ___
202
204
 
@@ -219,7 +221,7 @@ base64 转 blob
219
221
 
220
222
  #### Defined in
221
223
 
222
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/base64ToBlob.ts#L6)
224
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/base64ToBlob.ts#L6)
223
225
 
224
226
  ___
225
227
 
@@ -241,7 +243,7 @@ blob 转 base64
241
243
 
242
244
  #### Defined in
243
245
 
244
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/blobToBase64.ts#L4)
246
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/blobToBase64.ts#L4)
245
247
 
246
248
  ___
247
249
 
@@ -282,7 +284,7 @@ ___
282
284
 
283
285
  #### Defined in
284
286
 
285
- [cached.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/cached.ts#L5)
287
+ [cached.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/cached.ts#L5)
286
288
 
287
289
  ___
288
290
 
@@ -305,7 +307,7 @@ camelCase('hello-world') => helloWorld
305
307
 
306
308
  #### Defined in
307
309
 
308
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/camelCase.ts#L5)
310
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/camelCase.ts#L5)
309
311
 
310
312
  ___
311
313
 
@@ -329,7 +331,7 @@ canvas 转 blob 文件
329
331
 
330
332
  #### Defined in
331
333
 
332
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/canvasToBlob.ts#L4)
334
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/canvasToBlob.ts#L4)
333
335
 
334
336
  ___
335
337
 
@@ -352,7 +354,7 @@ capitalize('hello world') => Hello world
352
354
 
353
355
  #### Defined in
354
356
 
355
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/capitalize.ts#L5)
357
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/capitalize.ts#L5)
356
358
 
357
359
  ___
358
360
 
@@ -376,7 +378,7 @@ ___
376
378
 
377
379
  #### Defined in
378
380
 
379
- [clamp.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/clamp.ts#L7)
381
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/clamp.ts#L7)
380
382
 
381
383
  ___
382
384
 
@@ -404,7 +406,7 @@ ___
404
406
 
405
407
  #### Defined in
406
408
 
407
- [clone.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/clone.ts#L8)
409
+ [clone.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/clone.ts#L8)
408
410
 
409
411
  ___
410
412
 
@@ -432,7 +434,7 @@ ___
432
434
 
433
435
  #### Defined in
434
436
 
435
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/cloneSimple.ts#L7)
437
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/cloneSimple.ts#L7)
436
438
 
437
439
  ___
438
440
 
@@ -454,7 +456,7 @@ ___
454
456
 
455
457
  #### Defined in
456
458
 
457
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/createHexColorByHash.ts#L4)
459
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/createHexColorByHash.ts#L4)
458
460
 
459
461
  ___
460
462
 
@@ -480,7 +482,7 @@ ___
480
482
 
481
483
  #### Defined in
482
484
 
483
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/867c3c9/src/compareVersion.ts#L9)
485
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/compareVersion.ts#L9)
484
486
 
485
487
  ___
486
488
 
@@ -502,7 +504,45 @@ ___
502
504
 
503
505
  #### Defined in
504
506
 
505
- [compressImage.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/compressImage.ts#L6)
507
+ [compressImage.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/compressImage.ts#L6)
508
+
509
+ ___
510
+
511
+ ### createLinearFunction
512
+
513
+ ▸ **createLinearFunction**(`x1`, `x2`, `y1`, `y2`): (`x`: `number`) => `number`
514
+
515
+ 创建一个线性函数
516
+ 主要用于动画值计算
517
+
518
+ #### Parameters
519
+
520
+ | Name | Type | Description |
521
+ | :------ | :------ | :------ |
522
+ | `x1` | `number` | 坐标轴 x1 |
523
+ | `x2` | `number` | 坐标轴 x2 |
524
+ | `y1` | `number` | 坐标轴 y1 |
525
+ | `y2` | `number` | 坐标轴 y2 |
526
+
527
+ #### Returns
528
+
529
+ `fn`
530
+
531
+ ▸ (`x`): `number`
532
+
533
+ ##### Parameters
534
+
535
+ | Name | Type |
536
+ | :------ | :------ |
537
+ | `x` | `number` |
538
+
539
+ ##### Returns
540
+
541
+ `number`
542
+
543
+ #### Defined in
544
+
545
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/createLinearFunction.ts#L9)
506
546
 
507
547
  ___
508
548
 
@@ -534,7 +574,7 @@ ___
534
574
 
535
575
  #### Defined in
536
576
 
537
- [trap.ts:49](https://github.com/daysnap/utils/blob/867c3c9/src/trap.ts#L49)
577
+ [trap.ts:49](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L49)
538
578
 
539
579
  ___
540
580
 
@@ -597,7 +637,7 @@ fn() 执行的时候就会执行showLoading
597
637
 
598
638
  #### Defined in
599
639
 
600
- [createWithLoading.ts:9](https://github.com/daysnap/utils/blob/867c3c9/src/createWithLoading.ts#L9)
640
+ [createWithLoading.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/createWithLoading.ts#L9)
601
641
 
602
642
  ___
603
643
 
@@ -640,7 +680,7 @@ ___
640
680
 
641
681
  #### Defined in
642
682
 
643
- [debounce.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/debounce.ts#L5)
683
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/debounce.ts#L5)
644
684
 
645
685
  ___
646
686
 
@@ -664,7 +704,7 @@ ___
664
704
 
665
705
  #### Defined in
666
706
 
667
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/downloadFile.ts#L4)
707
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/downloadFile.ts#L4)
668
708
 
669
709
  ___
670
710
 
@@ -693,7 +733,7 @@ ___
693
733
 
694
734
  #### Defined in
695
735
 
696
- [each.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/each.ts#L4)
736
+ [each.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/each.ts#L4)
697
737
 
698
738
  ▸ **each**<`T`\>(`data`, `callback`): `void`
699
739
 
@@ -716,7 +756,7 @@ ___
716
756
 
717
757
  #### Defined in
718
758
 
719
- [each.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/each.ts#L8)
759
+ [each.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/each.ts#L8)
720
760
 
721
761
  ___
722
762
 
@@ -734,7 +774,7 @@ ___
734
774
 
735
775
  #### Defined in
736
776
 
737
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/exitFullscreen.ts#L6)
777
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/exitFullscreen.ts#L6)
738
778
 
739
779
  ___
740
780
 
@@ -763,7 +803,7 @@ ___
763
803
 
764
804
  #### Defined in
765
805
 
766
- [storage/factory.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/storage/factory.ts#L8)
806
+ [storage/factory.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/storage/factory.ts#L8)
767
807
 
768
808
  ___
769
809
 
@@ -785,7 +825,7 @@ ___
785
825
 
786
826
  #### Defined in
787
827
 
788
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/filterBankCardNo.ts#L4)
828
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterBankCardNo.ts#L4)
789
829
 
790
830
  ___
791
831
 
@@ -807,7 +847,7 @@ ___
807
847
 
808
848
  #### Defined in
809
849
 
810
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/filterCRLF.ts#L4)
850
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterCRLF.ts#L4)
811
851
 
812
852
  ___
813
853
 
@@ -829,7 +869,7 @@ ___
829
869
 
830
870
  #### Defined in
831
871
 
832
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/filterEmoji.ts#L4)
872
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterEmoji.ts#L4)
833
873
 
834
874
  ___
835
875
 
@@ -852,7 +892,7 @@ ___
852
892
 
853
893
  #### Defined in
854
894
 
855
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/867c3c9/src/filterEmptyValue.ts#L12)
895
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/cbc06da/src/filterEmptyValue.ts#L12)
856
896
 
857
897
  ___
858
898
 
@@ -875,7 +915,7 @@ ___
875
915
 
876
916
  #### Defined in
877
917
 
878
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/filterIdCard.ts#L5)
918
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/filterIdCard.ts#L5)
879
919
 
880
920
  ___
881
921
 
@@ -897,7 +937,7 @@ ___
897
937
 
898
938
  #### Defined in
899
939
 
900
- [filterName.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/filterName.ts#L4)
940
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterName.ts#L4)
901
941
 
902
942
  ___
903
943
 
@@ -922,7 +962,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
922
962
 
923
963
  #### Defined in
924
964
 
925
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/filterPhone.ts#L6)
965
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/filterPhone.ts#L6)
926
966
 
927
967
  ___
928
968
 
@@ -949,7 +989,7 @@ str = '131****8888'
949
989
 
950
990
  #### Defined in
951
991
 
952
- [filterString.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/filterString.ts#L6)
992
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/filterString.ts#L6)
953
993
 
954
994
  ___
955
995
 
@@ -972,7 +1012,7 @@ ___
972
1012
 
973
1013
  #### Defined in
974
1014
 
975
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/formatAmount.ts#L4)
1015
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/formatAmount.ts#L4)
976
1016
 
977
1017
  ___
978
1018
 
@@ -996,7 +1036,7 @@ ___
996
1036
 
997
1037
  #### Defined in
998
1038
 
999
- [formatDate.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/formatDate.ts#L8)
1039
+ [formatDate.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/formatDate.ts#L8)
1000
1040
 
1001
1041
  ___
1002
1042
 
@@ -1019,7 +1059,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1019
1059
 
1020
1060
  #### Defined in
1021
1061
 
1022
- [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/formatDateStr.ts#L5)
1062
+ [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/formatDateStr.ts#L5)
1023
1063
 
1024
1064
  ___
1025
1065
 
@@ -1039,7 +1079,7 @@ ___
1039
1079
 
1040
1080
  #### Defined in
1041
1081
 
1042
- [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/867c3c9/src/formartDateToZN.ts#L3)
1082
+ [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/cbc06da/src/formartDateToZN.ts#L3)
1043
1083
 
1044
1084
  ___
1045
1085
 
@@ -1064,7 +1104,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1064
1104
 
1065
1105
  #### Defined in
1066
1106
 
1067
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/867c3c9/src/formatMessage.ts#L11)
1107
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/cbc06da/src/formatMessage.ts#L11)
1068
1108
 
1069
1109
  ___
1070
1110
 
@@ -1096,7 +1136,7 @@ rest = { xxx: 1 }
1096
1136
 
1097
1137
  #### Defined in
1098
1138
 
1099
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/formatPathParams.ts#L8)
1139
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/formatPathParams.ts#L8)
1100
1140
 
1101
1141
  ___
1102
1142
 
@@ -1118,7 +1158,7 @@ ___
1118
1158
 
1119
1159
  #### Defined in
1120
1160
 
1121
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/getBlobByUrl.ts#L4)
1161
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getBlobByUrl.ts#L4)
1122
1162
 
1123
1163
  ___
1124
1164
 
@@ -1141,7 +1181,7 @@ ___
1141
1181
 
1142
1182
  #### Defined in
1143
1183
 
1144
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/867c3c9/src/storage/index.ts#L9)
1184
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/storage/index.ts#L9)
1145
1185
 
1146
1186
  ___
1147
1187
 
@@ -1163,7 +1203,7 @@ ___
1163
1203
 
1164
1204
  #### Defined in
1165
1205
 
1166
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/getDayMillisecond.ts#L4)
1206
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getDayMillisecond.ts#L4)
1167
1207
 
1168
1208
  ___
1169
1209
 
@@ -1185,7 +1225,7 @@ ___
1185
1225
 
1186
1226
  #### Defined in
1187
1227
 
1188
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/getImageInfo.ts#L4)
1228
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getImageInfo.ts#L4)
1189
1229
 
1190
1230
  ___
1191
1231
 
@@ -1208,7 +1248,7 @@ ___
1208
1248
 
1209
1249
  #### Defined in
1210
1250
 
1211
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/867c3c9/src/storage/index.ts#L9)
1251
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/storage/index.ts#L9)
1212
1252
 
1213
1253
  ___
1214
1254
 
@@ -1231,7 +1271,7 @@ ___
1231
1271
 
1232
1272
  #### Defined in
1233
1273
 
1234
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/getRandom.ts#L7)
1274
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/getRandom.ts#L7)
1235
1275
 
1236
1276
  ___
1237
1277
 
@@ -1247,7 +1287,7 @@ ___
1247
1287
 
1248
1288
  #### Defined in
1249
1289
 
1250
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/getRandomColor.ts#L4)
1290
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getRandomColor.ts#L4)
1251
1291
 
1252
1292
  ___
1253
1293
 
@@ -1269,7 +1309,7 @@ ___
1269
1309
 
1270
1310
  #### Defined in
1271
1311
 
1272
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/getRandomNumber.ts#L7)
1312
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/getRandomNumber.ts#L7)
1273
1313
 
1274
1314
  ___
1275
1315
 
@@ -1291,7 +1331,7 @@ ___
1291
1331
 
1292
1332
  #### Defined in
1293
1333
 
1294
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/getVideoInfo.ts#L4)
1334
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getVideoInfo.ts#L4)
1295
1335
 
1296
1336
  ___
1297
1337
 
@@ -1307,7 +1347,7 @@ ___
1307
1347
 
1308
1348
  #### Defined in
1309
1349
 
1310
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/inBrowser.ts#L4)
1350
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/inBrowser.ts#L4)
1311
1351
 
1312
1352
  ___
1313
1353
 
@@ -1329,7 +1369,7 @@ ___
1329
1369
 
1330
1370
  #### Defined in
1331
1371
 
1332
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/insertLink.ts#L4)
1372
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/insertLink.ts#L4)
1333
1373
 
1334
1374
  ▸ **insertLink**(`href`, `callback`): `void`
1335
1375
 
@@ -1346,7 +1386,7 @@ ___
1346
1386
 
1347
1387
  #### Defined in
1348
1388
 
1349
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/insertLink.ts#L5)
1389
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/insertLink.ts#L5)
1350
1390
 
1351
1391
  ___
1352
1392
 
@@ -1368,7 +1408,7 @@ ___
1368
1408
 
1369
1409
  #### Defined in
1370
1410
 
1371
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/insertScript.ts#L4)
1411
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/insertScript.ts#L4)
1372
1412
 
1373
1413
  ▸ **insertScript**(`src`, `callback`): `void`
1374
1414
 
@@ -1385,7 +1425,7 @@ ___
1385
1425
 
1386
1426
  #### Defined in
1387
1427
 
1388
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/insertScript.ts#L5)
1428
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/insertScript.ts#L5)
1389
1429
 
1390
1430
  ___
1391
1431
 
@@ -1407,7 +1447,7 @@ ___
1407
1447
 
1408
1448
  #### Defined in
1409
1449
 
1410
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/insertStyle.ts#L4)
1450
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/insertStyle.ts#L4)
1411
1451
 
1412
1452
  ___
1413
1453
 
@@ -1436,7 +1476,7 @@ isAmount('1.123') => false
1436
1476
 
1437
1477
  #### Defined in
1438
1478
 
1439
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/867c3c9/src/isAmount.ts#L11)
1479
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/cbc06da/src/isAmount.ts#L11)
1440
1480
 
1441
1481
  ___
1442
1482
 
@@ -1452,7 +1492,7 @@ ___
1452
1492
 
1453
1493
  #### Defined in
1454
1494
 
1455
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isAndroid.ts#L4)
1495
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isAndroid.ts#L4)
1456
1496
 
1457
1497
  ___
1458
1498
 
@@ -1476,7 +1516,7 @@ val is any[]
1476
1516
 
1477
1517
  #### Defined in
1478
1518
 
1479
- [isArray.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/isArray.ts#L6)
1519
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isArray.ts#L6)
1480
1520
 
1481
1521
  ___
1482
1522
 
@@ -1498,7 +1538,7 @@ val is boolean
1498
1538
 
1499
1539
  #### Defined in
1500
1540
 
1501
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/isBoolean.ts#L5)
1541
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isBoolean.ts#L5)
1502
1542
 
1503
1543
  ___
1504
1544
 
@@ -1520,7 +1560,7 @@ ___
1520
1560
 
1521
1561
  #### Defined in
1522
1562
 
1523
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isChinese.ts#L4)
1563
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isChinese.ts#L4)
1524
1564
 
1525
1565
  ___
1526
1566
 
@@ -1542,7 +1582,7 @@ val is Date
1542
1582
 
1543
1583
  #### Defined in
1544
1584
 
1545
- [isDate.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isDate.ts#L4)
1585
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isDate.ts#L4)
1546
1586
 
1547
1587
  ___
1548
1588
 
@@ -1564,7 +1604,7 @@ ___
1564
1604
 
1565
1605
  #### Defined in
1566
1606
 
1567
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isEmail.ts#L4)
1607
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isEmail.ts#L4)
1568
1608
 
1569
1609
  ___
1570
1610
 
@@ -1586,7 +1626,7 @@ ___
1586
1626
 
1587
1627
  #### Defined in
1588
1628
 
1589
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/isEmpty.ts#L6)
1629
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isEmpty.ts#L6)
1590
1630
 
1591
1631
  ___
1592
1632
 
@@ -1608,7 +1648,7 @@ ___
1608
1648
 
1609
1649
  #### Defined in
1610
1650
 
1611
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/isEmptyArray.ts#L6)
1651
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isEmptyArray.ts#L6)
1612
1652
 
1613
1653
  ___
1614
1654
 
@@ -1630,7 +1670,7 @@ ___
1630
1670
 
1631
1671
  #### Defined in
1632
1672
 
1633
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/isEmptyObject.ts#L5)
1673
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isEmptyObject.ts#L5)
1634
1674
 
1635
1675
  ___
1636
1676
 
@@ -1652,7 +1692,7 @@ val is Error
1652
1692
 
1653
1693
  #### Defined in
1654
1694
 
1655
- [isError.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isError.ts#L4)
1695
+ [isError.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isError.ts#L4)
1656
1696
 
1657
1697
  ___
1658
1698
 
@@ -1674,7 +1714,7 @@ val is Function
1674
1714
 
1675
1715
  #### Defined in
1676
1716
 
1677
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isFunction.ts#L4)
1717
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isFunction.ts#L4)
1678
1718
 
1679
1719
  ___
1680
1720
 
@@ -1692,7 +1732,7 @@ ___
1692
1732
 
1693
1733
  #### Defined in
1694
1734
 
1695
- [isIE.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/isIE.ts#L6)
1735
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isIE.ts#L6)
1696
1736
 
1697
1737
  ___
1698
1738
 
@@ -1708,7 +1748,7 @@ ___
1708
1748
 
1709
1749
  #### Defined in
1710
1750
 
1711
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isIOS.ts#L4)
1751
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isIOS.ts#L4)
1712
1752
 
1713
1753
  ___
1714
1754
 
@@ -1730,7 +1770,7 @@ ___
1730
1770
 
1731
1771
  #### Defined in
1732
1772
 
1733
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isIdCard.ts#L4)
1773
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isIdCard.ts#L4)
1734
1774
 
1735
1775
  ___
1736
1776
 
@@ -1752,7 +1792,7 @@ ___
1752
1792
 
1753
1793
  #### Defined in
1754
1794
 
1755
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/isJSONString.ts#L7)
1795
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/isJSONString.ts#L7)
1756
1796
 
1757
1797
  ___
1758
1798
 
@@ -1774,7 +1814,7 @@ ___
1774
1814
 
1775
1815
  #### Defined in
1776
1816
 
1777
- [isLan.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/isLan.ts#L5)
1817
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isLan.ts#L5)
1778
1818
 
1779
1819
  ___
1780
1820
 
@@ -1796,7 +1836,7 @@ ___
1796
1836
 
1797
1837
  #### Defined in
1798
1838
 
1799
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/isLicenseCode.ts#L5)
1839
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isLicenseCode.ts#L5)
1800
1840
 
1801
1841
  ___
1802
1842
 
@@ -1812,7 +1852,7 @@ ___
1812
1852
 
1813
1853
  #### Defined in
1814
1854
 
1815
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isMobile.ts#L4)
1855
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isMobile.ts#L4)
1816
1856
 
1817
1857
  ___
1818
1858
 
@@ -1835,7 +1875,7 @@ ___
1835
1875
 
1836
1876
  #### Defined in
1837
1877
 
1838
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/isNativeFunction.ts#L7)
1878
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/isNativeFunction.ts#L7)
1839
1879
 
1840
1880
  ___
1841
1881
 
@@ -1857,7 +1897,7 @@ val is null
1857
1897
 
1858
1898
  #### Defined in
1859
1899
 
1860
- [isNull.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isNull.ts#L4)
1900
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isNull.ts#L4)
1861
1901
 
1862
1902
  ___
1863
1903
 
@@ -1879,7 +1919,7 @@ val is number
1879
1919
 
1880
1920
  #### Defined in
1881
1921
 
1882
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/isNumber.ts#L5)
1922
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isNumber.ts#L5)
1883
1923
 
1884
1924
  ___
1885
1925
 
@@ -1901,7 +1941,7 @@ val is Record<string, any\>
1901
1941
 
1902
1942
  #### Defined in
1903
1943
 
1904
- [isObject.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isObject.ts#L4)
1944
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isObject.ts#L4)
1905
1945
 
1906
1946
  ___
1907
1947
 
@@ -1923,7 +1963,7 @@ ___
1923
1963
 
1924
1964
  #### Defined in
1925
1965
 
1926
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isPhone.ts#L4)
1966
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isPhone.ts#L4)
1927
1967
 
1928
1968
  ___
1929
1969
 
@@ -1951,7 +1991,7 @@ val is Promise<T\>
1951
1991
 
1952
1992
  #### Defined in
1953
1993
 
1954
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isPromise.ts#L4)
1994
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isPromise.ts#L4)
1955
1995
 
1956
1996
  ___
1957
1997
 
@@ -1973,7 +2013,7 @@ val is RegExp
1973
2013
 
1974
2014
  #### Defined in
1975
2015
 
1976
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isRegExp.ts#L4)
2016
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isRegExp.ts#L4)
1977
2017
 
1978
2018
  ___
1979
2019
 
@@ -1995,15 +2035,15 @@ val is string
1995
2035
 
1996
2036
  #### Defined in
1997
2037
 
1998
- [isString.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isString.ts#L4)
2038
+ [isString.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isString.ts#L4)
1999
2039
 
2000
2040
  ___
2001
2041
 
2002
- ### isURL
2042
+ ### isUndefined
2003
2043
 
2004
- ▸ **isURL**(`val`): `boolean`
2044
+ ▸ **isUndefined**(`val`): val is undefined
2005
2045
 
2006
- 判断是否是 url
2046
+ 校验是否是 undefined
2007
2047
 
2008
2048
  #### Parameters
2009
2049
 
@@ -2013,33 +2053,33 @@ ___
2013
2053
 
2014
2054
  #### Returns
2015
2055
 
2016
- `boolean`
2056
+ val is undefined
2017
2057
 
2018
2058
  #### Defined in
2019
2059
 
2020
- [isURL.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isURL.ts#L4)
2060
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isUndefined.ts#L4)
2021
2061
 
2022
2062
  ___
2023
2063
 
2024
- ### isUndefined
2064
+ ### isUrl
2025
2065
 
2026
- ▸ **isUndefined**(`val`): val is undefined
2066
+ ▸ **isUrl**(`val`): `boolean`
2027
2067
 
2028
- 校验是否是 undefined
2068
+ 判断是否是链接
2029
2069
 
2030
2070
  #### Parameters
2031
2071
 
2032
2072
  | Name | Type |
2033
2073
  | :------ | :------ |
2034
- | `val` | `unknown` |
2074
+ | `val` | `string` |
2035
2075
 
2036
2076
  #### Returns
2037
2077
 
2038
- val is undefined
2078
+ `boolean`
2039
2079
 
2040
2080
  #### Defined in
2041
2081
 
2042
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isUndefined.ts#L4)
2082
+ isUrl.ts:4
2043
2083
 
2044
2084
  ___
2045
2085
 
@@ -2055,7 +2095,7 @@ ___
2055
2095
 
2056
2096
  #### Defined in
2057
2097
 
2058
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/isWeChat.ts#L4)
2098
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isWeChat.ts#L4)
2059
2099
 
2060
2100
  ___
2061
2101
 
@@ -2072,7 +2112,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2072
2112
 
2073
2113
  #### Defined in
2074
2114
 
2075
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/isWeChatMiniProgram.ts#L5)
2115
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isWeChatMiniProgram.ts#L5)
2076
2116
 
2077
2117
  ___
2078
2118
 
@@ -2092,7 +2132,7 @@ ___
2092
2132
 
2093
2133
  #### Defined in
2094
2134
 
2095
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/867c3c9/src/isWeChat.ts#L12)
2135
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/cbc06da/src/isWeChat.ts#L12)
2096
2136
 
2097
2137
  ___
2098
2138
 
@@ -2114,7 +2154,7 @@ val is Window
2114
2154
 
2115
2155
  #### Defined in
2116
2156
 
2117
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/isWindow.ts#L5)
2157
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isWindow.ts#L5)
2118
2158
 
2119
2159
  ___
2120
2160
 
@@ -2137,7 +2177,7 @@ kebabCase('helloWorld') => hello-world
2137
2177
 
2138
2178
  #### Defined in
2139
2179
 
2140
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/kebabCase.ts#L5)
2180
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/kebabCase.ts#L5)
2141
2181
 
2142
2182
  ___
2143
2183
 
@@ -2166,7 +2206,7 @@ list 生成器,快速生成数据
2166
2206
 
2167
2207
  #### Defined in
2168
2208
 
2169
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/listGenerator.ts#L5)
2209
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/listGenerator.ts#L5)
2170
2210
 
2171
2211
  ___
2172
2212
 
@@ -2191,7 +2231,7 @@ ___
2191
2231
 
2192
2232
  #### Defined in
2193
2233
 
2194
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/867c3c9/src/mousewheel.ts#L22)
2234
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/cbc06da/src/mousewheel.ts#L22)
2195
2235
 
2196
2236
  ___
2197
2237
 
@@ -2213,7 +2253,7 @@ ___
2213
2253
 
2214
2254
  #### Defined in
2215
2255
 
2216
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/normalizePath.ts#L4)
2256
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/normalizePath.ts#L4)
2217
2257
 
2218
2258
  ___
2219
2259
 
@@ -2243,7 +2283,7 @@ ___
2243
2283
 
2244
2284
  #### Defined in
2245
2285
 
2246
- [omit.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/omit.ts#L4)
2286
+ [omit.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/omit.ts#L4)
2247
2287
 
2248
2288
  ___
2249
2289
 
@@ -2267,7 +2307,7 @@ ___
2267
2307
 
2268
2308
  #### Defined in
2269
2309
 
2270
- [padding.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/padding.ts#L7)
2310
+ [padding.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/padding.ts#L7)
2271
2311
 
2272
2312
  ___
2273
2313
 
@@ -2289,7 +2329,7 @@ ___
2289
2329
 
2290
2330
  #### Defined in
2291
2331
 
2292
- [parseDate.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/parseDate.ts#L4)
2332
+ [parseDate.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/parseDate.ts#L4)
2293
2333
 
2294
2334
  ___
2295
2335
 
@@ -2312,7 +2352,7 @@ ___
2312
2352
 
2313
2353
  #### Defined in
2314
2354
 
2315
- [parseError.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/parseError.ts#L8)
2355
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/parseError.ts#L8)
2316
2356
 
2317
2357
  ___
2318
2358
 
@@ -2342,7 +2382,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2342
2382
 
2343
2383
  #### Defined in
2344
2384
 
2345
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/parseObject.ts#L5)
2385
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/parseObject.ts#L5)
2346
2386
 
2347
2387
  ___
2348
2388
 
@@ -2371,7 +2411,7 @@ ___
2371
2411
 
2372
2412
  #### Defined in
2373
2413
 
2374
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/parsePath.ts#L6)
2414
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/parsePath.ts#L6)
2375
2415
 
2376
2416
  ___
2377
2417
 
@@ -2394,7 +2434,7 @@ ___
2394
2434
 
2395
2435
  #### Defined in
2396
2436
 
2397
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/parseQuery.ts#L8)
2437
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/parseQuery.ts#L8)
2398
2438
 
2399
2439
  ___
2400
2440
 
@@ -2417,7 +2457,7 @@ pascalCase('hello-world') => HelloWorld
2417
2457
 
2418
2458
  #### Defined in
2419
2459
 
2420
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/pascalCase.ts#L8)
2460
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/pascalCase.ts#L8)
2421
2461
 
2422
2462
  ___
2423
2463
 
@@ -2447,7 +2487,7 @@ ___
2447
2487
 
2448
2488
  #### Defined in
2449
2489
 
2450
- [pick.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/pick.ts#L4)
2490
+ [pick.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/pick.ts#L4)
2451
2491
 
2452
2492
  ___
2453
2493
 
@@ -2470,7 +2510,7 @@ ___
2470
2510
 
2471
2511
  #### Defined in
2472
2512
 
2473
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/replaceCrlf.ts#L4)
2513
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/replaceCrlf.ts#L4)
2474
2514
 
2475
2515
  ___
2476
2516
 
@@ -2494,7 +2534,7 @@ ___
2494
2534
 
2495
2535
  #### Defined in
2496
2536
 
2497
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/requestFullScreen.ts#L6)
2537
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/requestFullScreen.ts#L6)
2498
2538
 
2499
2539
  ___
2500
2540
 
@@ -2520,7 +2560,7 @@ reserve(0, '--') => 0
2520
2560
 
2521
2561
  #### Defined in
2522
2562
 
2523
- [reserve.ts:8](https://github.com/daysnap/utils/blob/867c3c9/src/reserve.ts#L8)
2563
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/reserve.ts#L8)
2524
2564
 
2525
2565
  ___
2526
2566
 
@@ -2544,7 +2584,7 @@ ___
2544
2584
 
2545
2585
  #### Defined in
2546
2586
 
2547
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/rgbToHex.ts#L4)
2587
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/rgbToHex.ts#L4)
2548
2588
 
2549
2589
  ___
2550
2590
 
@@ -2567,7 +2607,7 @@ ___
2567
2607
 
2568
2608
  #### Defined in
2569
2609
 
2570
- [round.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/round.ts#L6)
2610
+ [round.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/round.ts#L6)
2571
2611
 
2572
2612
  ___
2573
2613
 
@@ -2583,7 +2623,7 @@ ___
2583
2623
 
2584
2624
  #### Defined in
2585
2625
 
2586
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/scrollToTop.ts#L4)
2626
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/scrollToTop.ts#L4)
2587
2627
 
2588
2628
  ___
2589
2629
 
@@ -2606,7 +2646,7 @@ ___
2606
2646
 
2607
2647
  #### Defined in
2608
2648
 
2609
- [sleep.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/sleep.ts#L6)
2649
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/sleep.ts#L6)
2610
2650
 
2611
2651
  ___
2612
2652
 
@@ -2635,7 +2675,7 @@ ___
2635
2675
 
2636
2676
  #### Defined in
2637
2677
 
2638
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/splitArray.ts#L4)
2678
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/splitArray.ts#L4)
2639
2679
 
2640
2680
  ___
2641
2681
 
@@ -2658,7 +2698,7 @@ ___
2658
2698
 
2659
2699
  #### Defined in
2660
2700
 
2661
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/stringTrim.ts#L6)
2701
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/stringTrim.ts#L6)
2662
2702
 
2663
2703
  ___
2664
2704
 
@@ -2680,7 +2720,7 @@ ___
2680
2720
 
2681
2721
  #### Defined in
2682
2722
 
2683
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/867c3c9/src/stringifyQuery.ts#L7)
2723
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/stringifyQuery.ts#L7)
2684
2724
 
2685
2725
  ___
2686
2726
 
@@ -2724,7 +2764,7 @@ ___
2724
2764
 
2725
2765
  #### Defined in
2726
2766
 
2727
- [throttle.ts:48](https://github.com/daysnap/utils/blob/867c3c9/src/throttle.ts#L48)
2767
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/cbc06da/src/throttle.ts#L48)
2728
2768
 
2729
2769
  ___
2730
2770
 
@@ -2767,7 +2807,7 @@ ___
2767
2807
 
2768
2808
  #### Defined in
2769
2809
 
2770
- [throttle.ts:5](https://github.com/daysnap/utils/blob/867c3c9/src/throttle.ts#L5)
2810
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/throttle.ts#L5)
2771
2811
 
2772
2812
  ___
2773
2813
 
@@ -2810,7 +2850,7 @@ ___
2810
2850
 
2811
2851
  #### Defined in
2812
2852
 
2813
- [throttle.ts:25](https://github.com/daysnap/utils/blob/867c3c9/src/throttle.ts#L25)
2853
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/cbc06da/src/throttle.ts#L25)
2814
2854
 
2815
2855
  ___
2816
2856
 
@@ -2832,7 +2872,7 @@ ___
2832
2872
 
2833
2873
  #### Defined in
2834
2874
 
2835
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/toCDB.ts#L4)
2875
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/toCDB.ts#L4)
2836
2876
 
2837
2877
  ___
2838
2878
 
@@ -2854,7 +2894,7 @@ ___
2854
2894
 
2855
2895
  #### Defined in
2856
2896
 
2857
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/867c3c9/src/toDBC.ts#L4)
2897
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/toDBC.ts#L4)
2858
2898
 
2859
2899
  ___
2860
2900
 
@@ -2878,4 +2918,33 @@ ___
2878
2918
 
2879
2919
  #### Defined in
2880
2920
 
2881
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/867c3c9/src/typeOf.ts#L6)
2921
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/typeOf.ts#L6)
2922
+
2923
+ ___
2924
+
2925
+ ### withPreventConsecutiveClicks
2926
+
2927
+ ▸ **withPreventConsecutiveClicks**<`T`\>(`fn`, `ms?`): `T`
2928
+
2929
+ 防止连续点击
2930
+
2931
+ #### Type parameters
2932
+
2933
+ | Name | Type |
2934
+ | :------ | :------ |
2935
+ | `T` | extends (...`args`: `any`[]) => `Promise`<`any`\> |
2936
+
2937
+ #### Parameters
2938
+
2939
+ | Name | Type |
2940
+ | :------ | :------ |
2941
+ | `fn` | `T` |
2942
+ | `ms?` | `number` |
2943
+
2944
+ #### Returns
2945
+
2946
+ `T`
2947
+
2948
+ #### Defined in
2949
+
2950
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/withPreventConsecutiveClicks.ts#L4)