@daysnap/utils 0.0.82 → 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.
@@ -35,7 +35,7 @@
35
35
 
36
36
  #### Defined in
37
37
 
38
- [storage/factory.ts:3](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/factory.ts#L3)
38
+ [storage/factory.ts:3](https://github.com/daysnap/utils/blob/cbc06da/src/storage/factory.ts#L3)
39
39
 
40
40
  ___
41
41
 
@@ -49,7 +49,7 @@ ___
49
49
 
50
50
  #### Defined in
51
51
 
52
- [storage/factory.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/factory.ts#L4)
52
+ [storage/factory.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/storage/factory.ts#L4)
53
53
 
54
54
  ___
55
55
 
@@ -69,7 +69,7 @@ ___
69
69
 
70
70
  #### Defined in
71
71
 
72
- [storage/factory.ts:2](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/factory.ts#L2)
72
+ [storage/factory.ts:2](https://github.com/daysnap/utils/blob/cbc06da/src/storage/factory.ts#L2)
73
73
 
74
74
  ___
75
75
 
@@ -89,4 +89,4 @@ ___
89
89
 
90
90
  #### Defined in
91
91
 
92
- [storage/factory.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/factory.ts#L5)
92
+ [storage/factory.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/storage/factory.ts#L5)
@@ -31,7 +31,7 @@
31
31
 
32
32
  #### Defined in
33
33
 
34
- [trap.ts:12](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L12)
34
+ [trap.ts:12](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L12)
35
35
 
36
36
  ___
37
37
 
@@ -56,7 +56,7 @@ ___
56
56
 
57
57
  #### Defined in
58
58
 
59
- [trap.ts:10](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L10)
59
+ [trap.ts:10](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L10)
60
60
 
61
61
  ___
62
62
 
@@ -80,7 +80,7 @@ ___
80
80
 
81
81
  #### Defined in
82
82
 
83
- [trap.ts:11](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L11)
83
+ [trap.ts:11](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L11)
84
84
 
85
85
  ___
86
86
 
@@ -90,7 +90,7 @@ ___
90
90
 
91
91
  #### Defined in
92
92
 
93
- [trap.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L8)
93
+ [trap.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L8)
94
94
 
95
95
  ___
96
96
 
@@ -115,4 +115,4 @@ ___
115
115
 
116
116
  #### Defined in
117
117
 
118
- [trap.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L9)
118
+ [trap.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L9)
package/docs/modules.md CHANGED
@@ -90,8 +90,8 @@
90
90
  - [isPromise](modules.md#ispromise)
91
91
  - [isRegExp](modules.md#isregexp)
92
92
  - [isString](modules.md#isstring)
93
- - [isURL](modules.md#isurl)
94
93
  - [isUndefined](modules.md#isundefined)
94
+ - [isUrl](modules.md#isurl)
95
95
  - [isWeChat](modules.md#iswechat)
96
96
  - [isWeChatMiniProgram](modules.md#iswechatminiprogram)
97
97
  - [isWeixin](modules.md#isweixin)
@@ -135,7 +135,7 @@
135
135
 
136
136
  #### Defined in
137
137
 
138
- [trap.ts:15](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L15)
138
+ [trap.ts:15](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L15)
139
139
 
140
140
  ## Functions
141
141
 
@@ -173,7 +173,7 @@ res = { '1': '男', '2': '女' }
173
173
 
174
174
  #### Defined in
175
175
 
176
- [ato.ts:12](https://github.com/daysnap/utils/blob/a80f0a1/src/ato.ts#L12)
176
+ [ato.ts:12](https://github.com/daysnap/utils/blob/cbc06da/src/ato.ts#L12)
177
177
 
178
178
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
179
179
 
@@ -198,7 +198,7 @@ res = { '1': '男', '2': '女' }
198
198
 
199
199
  #### Defined in
200
200
 
201
- [ato.ts:16](https://github.com/daysnap/utils/blob/a80f0a1/src/ato.ts#L16)
201
+ [ato.ts:16](https://github.com/daysnap/utils/blob/cbc06da/src/ato.ts#L16)
202
202
 
203
203
  ___
204
204
 
@@ -221,7 +221,7 @@ base64 转 blob
221
221
 
222
222
  #### Defined in
223
223
 
224
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/base64ToBlob.ts#L6)
224
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/base64ToBlob.ts#L6)
225
225
 
226
226
  ___
227
227
 
@@ -243,7 +243,7 @@ blob 转 base64
243
243
 
244
244
  #### Defined in
245
245
 
246
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/blobToBase64.ts#L4)
246
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/blobToBase64.ts#L4)
247
247
 
248
248
  ___
249
249
 
@@ -284,7 +284,7 @@ ___
284
284
 
285
285
  #### Defined in
286
286
 
287
- [cached.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/cached.ts#L5)
287
+ [cached.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/cached.ts#L5)
288
288
 
289
289
  ___
290
290
 
@@ -307,7 +307,7 @@ camelCase('hello-world') => helloWorld
307
307
 
308
308
  #### Defined in
309
309
 
310
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/camelCase.ts#L5)
310
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/camelCase.ts#L5)
311
311
 
312
312
  ___
313
313
 
@@ -331,7 +331,7 @@ canvas 转 blob 文件
331
331
 
332
332
  #### Defined in
333
333
 
334
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/canvasToBlob.ts#L4)
334
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/canvasToBlob.ts#L4)
335
335
 
336
336
  ___
337
337
 
@@ -354,7 +354,7 @@ capitalize('hello world') => Hello world
354
354
 
355
355
  #### Defined in
356
356
 
357
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/capitalize.ts#L5)
357
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/capitalize.ts#L5)
358
358
 
359
359
  ___
360
360
 
@@ -378,7 +378,7 @@ ___
378
378
 
379
379
  #### Defined in
380
380
 
381
- [clamp.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/clamp.ts#L7)
381
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/clamp.ts#L7)
382
382
 
383
383
  ___
384
384
 
@@ -406,7 +406,7 @@ ___
406
406
 
407
407
  #### Defined in
408
408
 
409
- [clone.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/clone.ts#L8)
409
+ [clone.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/clone.ts#L8)
410
410
 
411
411
  ___
412
412
 
@@ -434,7 +434,7 @@ ___
434
434
 
435
435
  #### Defined in
436
436
 
437
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/cloneSimple.ts#L7)
437
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/cloneSimple.ts#L7)
438
438
 
439
439
  ___
440
440
 
@@ -456,7 +456,7 @@ ___
456
456
 
457
457
  #### Defined in
458
458
 
459
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/createHexColorByHash.ts#L4)
459
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/createHexColorByHash.ts#L4)
460
460
 
461
461
  ___
462
462
 
@@ -482,7 +482,7 @@ ___
482
482
 
483
483
  #### Defined in
484
484
 
485
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/compareVersion.ts#L9)
485
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/compareVersion.ts#L9)
486
486
 
487
487
  ___
488
488
 
@@ -504,7 +504,7 @@ ___
504
504
 
505
505
  #### Defined in
506
506
 
507
- [compressImage.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/compressImage.ts#L6)
507
+ [compressImage.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/compressImage.ts#L6)
508
508
 
509
509
  ___
510
510
 
@@ -542,7 +542,7 @@ ___
542
542
 
543
543
  #### Defined in
544
544
 
545
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/createLinearFunction.ts#L9)
545
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/createLinearFunction.ts#L9)
546
546
 
547
547
  ___
548
548
 
@@ -574,7 +574,7 @@ ___
574
574
 
575
575
  #### Defined in
576
576
 
577
- [trap.ts:49](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L49)
577
+ [trap.ts:49](https://github.com/daysnap/utils/blob/cbc06da/src/trap.ts#L49)
578
578
 
579
579
  ___
580
580
 
@@ -637,7 +637,7 @@ fn() 执行的时候就会执行showLoading
637
637
 
638
638
  #### Defined in
639
639
 
640
- [createWithLoading.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/createWithLoading.ts#L9)
640
+ [createWithLoading.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/createWithLoading.ts#L9)
641
641
 
642
642
  ___
643
643
 
@@ -680,7 +680,7 @@ ___
680
680
 
681
681
  #### Defined in
682
682
 
683
- [debounce.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/debounce.ts#L5)
683
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/debounce.ts#L5)
684
684
 
685
685
  ___
686
686
 
@@ -704,7 +704,7 @@ ___
704
704
 
705
705
  #### Defined in
706
706
 
707
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/downloadFile.ts#L4)
707
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/downloadFile.ts#L4)
708
708
 
709
709
  ___
710
710
 
@@ -733,7 +733,7 @@ ___
733
733
 
734
734
  #### Defined in
735
735
 
736
- [each.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/each.ts#L4)
736
+ [each.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/each.ts#L4)
737
737
 
738
738
  ▸ **each**<`T`\>(`data`, `callback`): `void`
739
739
 
@@ -756,7 +756,7 @@ ___
756
756
 
757
757
  #### Defined in
758
758
 
759
- [each.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/each.ts#L8)
759
+ [each.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/each.ts#L8)
760
760
 
761
761
  ___
762
762
 
@@ -774,7 +774,7 @@ ___
774
774
 
775
775
  #### Defined in
776
776
 
777
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/exitFullscreen.ts#L6)
777
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/exitFullscreen.ts#L6)
778
778
 
779
779
  ___
780
780
 
@@ -803,7 +803,7 @@ ___
803
803
 
804
804
  #### Defined in
805
805
 
806
- [storage/factory.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/factory.ts#L8)
806
+ [storage/factory.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/storage/factory.ts#L8)
807
807
 
808
808
  ___
809
809
 
@@ -825,7 +825,7 @@ ___
825
825
 
826
826
  #### Defined in
827
827
 
828
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterBankCardNo.ts#L4)
828
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterBankCardNo.ts#L4)
829
829
 
830
830
  ___
831
831
 
@@ -847,7 +847,7 @@ ___
847
847
 
848
848
  #### Defined in
849
849
 
850
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterCRLF.ts#L4)
850
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterCRLF.ts#L4)
851
851
 
852
852
  ___
853
853
 
@@ -869,7 +869,7 @@ ___
869
869
 
870
870
  #### Defined in
871
871
 
872
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterEmoji.ts#L4)
872
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterEmoji.ts#L4)
873
873
 
874
874
  ___
875
875
 
@@ -892,7 +892,7 @@ ___
892
892
 
893
893
  #### Defined in
894
894
 
895
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/a80f0a1/src/filterEmptyValue.ts#L12)
895
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/cbc06da/src/filterEmptyValue.ts#L12)
896
896
 
897
897
  ___
898
898
 
@@ -915,7 +915,7 @@ ___
915
915
 
916
916
  #### Defined in
917
917
 
918
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/filterIdCard.ts#L5)
918
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/filterIdCard.ts#L5)
919
919
 
920
920
  ___
921
921
 
@@ -937,7 +937,7 @@ ___
937
937
 
938
938
  #### Defined in
939
939
 
940
- [filterName.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterName.ts#L4)
940
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/filterName.ts#L4)
941
941
 
942
942
  ___
943
943
 
@@ -962,7 +962,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
962
962
 
963
963
  #### Defined in
964
964
 
965
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/filterPhone.ts#L6)
965
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/filterPhone.ts#L6)
966
966
 
967
967
  ___
968
968
 
@@ -989,7 +989,7 @@ str = '131****8888'
989
989
 
990
990
  #### Defined in
991
991
 
992
- [filterString.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/filterString.ts#L6)
992
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/filterString.ts#L6)
993
993
 
994
994
  ___
995
995
 
@@ -1012,7 +1012,7 @@ ___
1012
1012
 
1013
1013
  #### Defined in
1014
1014
 
1015
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/formatAmount.ts#L4)
1015
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/formatAmount.ts#L4)
1016
1016
 
1017
1017
  ___
1018
1018
 
@@ -1036,7 +1036,7 @@ ___
1036
1036
 
1037
1037
  #### Defined in
1038
1038
 
1039
- [formatDate.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/formatDate.ts#L8)
1039
+ [formatDate.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/formatDate.ts#L8)
1040
1040
 
1041
1041
  ___
1042
1042
 
@@ -1059,7 +1059,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1059
1059
 
1060
1060
  #### Defined in
1061
1061
 
1062
- [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/formatDateStr.ts#L5)
1062
+ [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/formatDateStr.ts#L5)
1063
1063
 
1064
1064
  ___
1065
1065
 
@@ -1079,7 +1079,7 @@ ___
1079
1079
 
1080
1080
  #### Defined in
1081
1081
 
1082
- [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/a80f0a1/src/formartDateToZN.ts#L3)
1082
+ [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/cbc06da/src/formartDateToZN.ts#L3)
1083
1083
 
1084
1084
  ___
1085
1085
 
@@ -1104,7 +1104,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1104
1104
 
1105
1105
  #### Defined in
1106
1106
 
1107
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/a80f0a1/src/formatMessage.ts#L11)
1107
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/cbc06da/src/formatMessage.ts#L11)
1108
1108
 
1109
1109
  ___
1110
1110
 
@@ -1136,7 +1136,7 @@ rest = { xxx: 1 }
1136
1136
 
1137
1137
  #### Defined in
1138
1138
 
1139
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/formatPathParams.ts#L8)
1139
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/formatPathParams.ts#L8)
1140
1140
 
1141
1141
  ___
1142
1142
 
@@ -1158,7 +1158,7 @@ ___
1158
1158
 
1159
1159
  #### Defined in
1160
1160
 
1161
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getBlobByUrl.ts#L4)
1161
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getBlobByUrl.ts#L4)
1162
1162
 
1163
1163
  ___
1164
1164
 
@@ -1181,7 +1181,7 @@ ___
1181
1181
 
1182
1182
  #### Defined in
1183
1183
 
1184
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/index.ts#L9)
1184
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/storage/index.ts#L9)
1185
1185
 
1186
1186
  ___
1187
1187
 
@@ -1203,7 +1203,7 @@ ___
1203
1203
 
1204
1204
  #### Defined in
1205
1205
 
1206
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getDayMillisecond.ts#L4)
1206
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getDayMillisecond.ts#L4)
1207
1207
 
1208
1208
  ___
1209
1209
 
@@ -1225,7 +1225,7 @@ ___
1225
1225
 
1226
1226
  #### Defined in
1227
1227
 
1228
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getImageInfo.ts#L4)
1228
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getImageInfo.ts#L4)
1229
1229
 
1230
1230
  ___
1231
1231
 
@@ -1248,7 +1248,7 @@ ___
1248
1248
 
1249
1249
  #### Defined in
1250
1250
 
1251
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/index.ts#L9)
1251
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/cbc06da/src/storage/index.ts#L9)
1252
1252
 
1253
1253
  ___
1254
1254
 
@@ -1271,7 +1271,7 @@ ___
1271
1271
 
1272
1272
  #### Defined in
1273
1273
 
1274
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/getRandom.ts#L7)
1274
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/getRandom.ts#L7)
1275
1275
 
1276
1276
  ___
1277
1277
 
@@ -1287,7 +1287,7 @@ ___
1287
1287
 
1288
1288
  #### Defined in
1289
1289
 
1290
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getRandomColor.ts#L4)
1290
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getRandomColor.ts#L4)
1291
1291
 
1292
1292
  ___
1293
1293
 
@@ -1309,7 +1309,7 @@ ___
1309
1309
 
1310
1310
  #### Defined in
1311
1311
 
1312
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/getRandomNumber.ts#L7)
1312
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/getRandomNumber.ts#L7)
1313
1313
 
1314
1314
  ___
1315
1315
 
@@ -1331,7 +1331,7 @@ ___
1331
1331
 
1332
1332
  #### Defined in
1333
1333
 
1334
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getVideoInfo.ts#L4)
1334
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/getVideoInfo.ts#L4)
1335
1335
 
1336
1336
  ___
1337
1337
 
@@ -1347,7 +1347,7 @@ ___
1347
1347
 
1348
1348
  #### Defined in
1349
1349
 
1350
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/inBrowser.ts#L4)
1350
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/inBrowser.ts#L4)
1351
1351
 
1352
1352
  ___
1353
1353
 
@@ -1369,7 +1369,7 @@ ___
1369
1369
 
1370
1370
  #### Defined in
1371
1371
 
1372
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/insertLink.ts#L4)
1372
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/insertLink.ts#L4)
1373
1373
 
1374
1374
  ▸ **insertLink**(`href`, `callback`): `void`
1375
1375
 
@@ -1386,7 +1386,7 @@ ___
1386
1386
 
1387
1387
  #### Defined in
1388
1388
 
1389
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/insertLink.ts#L5)
1389
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/insertLink.ts#L5)
1390
1390
 
1391
1391
  ___
1392
1392
 
@@ -1408,7 +1408,7 @@ ___
1408
1408
 
1409
1409
  #### Defined in
1410
1410
 
1411
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/insertScript.ts#L4)
1411
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/insertScript.ts#L4)
1412
1412
 
1413
1413
  ▸ **insertScript**(`src`, `callback`): `void`
1414
1414
 
@@ -1425,7 +1425,7 @@ ___
1425
1425
 
1426
1426
  #### Defined in
1427
1427
 
1428
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/insertScript.ts#L5)
1428
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/insertScript.ts#L5)
1429
1429
 
1430
1430
  ___
1431
1431
 
@@ -1447,7 +1447,7 @@ ___
1447
1447
 
1448
1448
  #### Defined in
1449
1449
 
1450
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/insertStyle.ts#L4)
1450
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/insertStyle.ts#L4)
1451
1451
 
1452
1452
  ___
1453
1453
 
@@ -1476,7 +1476,7 @@ isAmount('1.123') => false
1476
1476
 
1477
1477
  #### Defined in
1478
1478
 
1479
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/a80f0a1/src/isAmount.ts#L11)
1479
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/cbc06da/src/isAmount.ts#L11)
1480
1480
 
1481
1481
  ___
1482
1482
 
@@ -1492,7 +1492,7 @@ ___
1492
1492
 
1493
1493
  #### Defined in
1494
1494
 
1495
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isAndroid.ts#L4)
1495
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isAndroid.ts#L4)
1496
1496
 
1497
1497
  ___
1498
1498
 
@@ -1516,7 +1516,7 @@ val is any[]
1516
1516
 
1517
1517
  #### Defined in
1518
1518
 
1519
- [isArray.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isArray.ts#L6)
1519
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isArray.ts#L6)
1520
1520
 
1521
1521
  ___
1522
1522
 
@@ -1538,7 +1538,7 @@ val is boolean
1538
1538
 
1539
1539
  #### Defined in
1540
1540
 
1541
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isBoolean.ts#L5)
1541
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isBoolean.ts#L5)
1542
1542
 
1543
1543
  ___
1544
1544
 
@@ -1560,7 +1560,7 @@ ___
1560
1560
 
1561
1561
  #### Defined in
1562
1562
 
1563
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isChinese.ts#L4)
1563
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isChinese.ts#L4)
1564
1564
 
1565
1565
  ___
1566
1566
 
@@ -1582,7 +1582,7 @@ val is Date
1582
1582
 
1583
1583
  #### Defined in
1584
1584
 
1585
- [isDate.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isDate.ts#L4)
1585
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isDate.ts#L4)
1586
1586
 
1587
1587
  ___
1588
1588
 
@@ -1604,7 +1604,7 @@ ___
1604
1604
 
1605
1605
  #### Defined in
1606
1606
 
1607
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmail.ts#L4)
1607
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isEmail.ts#L4)
1608
1608
 
1609
1609
  ___
1610
1610
 
@@ -1626,7 +1626,7 @@ ___
1626
1626
 
1627
1627
  #### Defined in
1628
1628
 
1629
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmpty.ts#L6)
1629
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isEmpty.ts#L6)
1630
1630
 
1631
1631
  ___
1632
1632
 
@@ -1648,7 +1648,7 @@ ___
1648
1648
 
1649
1649
  #### Defined in
1650
1650
 
1651
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmptyArray.ts#L6)
1651
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isEmptyArray.ts#L6)
1652
1652
 
1653
1653
  ___
1654
1654
 
@@ -1670,7 +1670,7 @@ ___
1670
1670
 
1671
1671
  #### Defined in
1672
1672
 
1673
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmptyObject.ts#L5)
1673
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isEmptyObject.ts#L5)
1674
1674
 
1675
1675
  ___
1676
1676
 
@@ -1692,7 +1692,7 @@ val is Error
1692
1692
 
1693
1693
  #### Defined in
1694
1694
 
1695
- [isError.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isError.ts#L4)
1695
+ [isError.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isError.ts#L4)
1696
1696
 
1697
1697
  ___
1698
1698
 
@@ -1714,7 +1714,7 @@ val is Function
1714
1714
 
1715
1715
  #### Defined in
1716
1716
 
1717
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isFunction.ts#L4)
1717
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isFunction.ts#L4)
1718
1718
 
1719
1719
  ___
1720
1720
 
@@ -1732,7 +1732,7 @@ ___
1732
1732
 
1733
1733
  #### Defined in
1734
1734
 
1735
- [isIE.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isIE.ts#L6)
1735
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/isIE.ts#L6)
1736
1736
 
1737
1737
  ___
1738
1738
 
@@ -1748,7 +1748,7 @@ ___
1748
1748
 
1749
1749
  #### Defined in
1750
1750
 
1751
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isIOS.ts#L4)
1751
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isIOS.ts#L4)
1752
1752
 
1753
1753
  ___
1754
1754
 
@@ -1770,7 +1770,7 @@ ___
1770
1770
 
1771
1771
  #### Defined in
1772
1772
 
1773
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isIdCard.ts#L4)
1773
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isIdCard.ts#L4)
1774
1774
 
1775
1775
  ___
1776
1776
 
@@ -1792,7 +1792,7 @@ ___
1792
1792
 
1793
1793
  #### Defined in
1794
1794
 
1795
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/isJSONString.ts#L7)
1795
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/isJSONString.ts#L7)
1796
1796
 
1797
1797
  ___
1798
1798
 
@@ -1814,7 +1814,7 @@ ___
1814
1814
 
1815
1815
  #### Defined in
1816
1816
 
1817
- [isLan.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isLan.ts#L5)
1817
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isLan.ts#L5)
1818
1818
 
1819
1819
  ___
1820
1820
 
@@ -1836,7 +1836,7 @@ ___
1836
1836
 
1837
1837
  #### Defined in
1838
1838
 
1839
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isLicenseCode.ts#L5)
1839
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isLicenseCode.ts#L5)
1840
1840
 
1841
1841
  ___
1842
1842
 
@@ -1852,7 +1852,7 @@ ___
1852
1852
 
1853
1853
  #### Defined in
1854
1854
 
1855
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isMobile.ts#L4)
1855
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isMobile.ts#L4)
1856
1856
 
1857
1857
  ___
1858
1858
 
@@ -1875,7 +1875,7 @@ ___
1875
1875
 
1876
1876
  #### Defined in
1877
1877
 
1878
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/isNativeFunction.ts#L7)
1878
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/isNativeFunction.ts#L7)
1879
1879
 
1880
1880
  ___
1881
1881
 
@@ -1897,7 +1897,7 @@ val is null
1897
1897
 
1898
1898
  #### Defined in
1899
1899
 
1900
- [isNull.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isNull.ts#L4)
1900
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isNull.ts#L4)
1901
1901
 
1902
1902
  ___
1903
1903
 
@@ -1919,7 +1919,7 @@ val is number
1919
1919
 
1920
1920
  #### Defined in
1921
1921
 
1922
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isNumber.ts#L5)
1922
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isNumber.ts#L5)
1923
1923
 
1924
1924
  ___
1925
1925
 
@@ -1941,7 +1941,7 @@ val is Record<string, any\>
1941
1941
 
1942
1942
  #### Defined in
1943
1943
 
1944
- [isObject.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isObject.ts#L4)
1944
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isObject.ts#L4)
1945
1945
 
1946
1946
  ___
1947
1947
 
@@ -1963,7 +1963,7 @@ ___
1963
1963
 
1964
1964
  #### Defined in
1965
1965
 
1966
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isPhone.ts#L4)
1966
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isPhone.ts#L4)
1967
1967
 
1968
1968
  ___
1969
1969
 
@@ -1991,7 +1991,7 @@ val is Promise<T\>
1991
1991
 
1992
1992
  #### Defined in
1993
1993
 
1994
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isPromise.ts#L4)
1994
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isPromise.ts#L4)
1995
1995
 
1996
1996
  ___
1997
1997
 
@@ -2013,7 +2013,7 @@ val is RegExp
2013
2013
 
2014
2014
  #### Defined in
2015
2015
 
2016
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isRegExp.ts#L4)
2016
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isRegExp.ts#L4)
2017
2017
 
2018
2018
  ___
2019
2019
 
@@ -2035,15 +2035,15 @@ val is string
2035
2035
 
2036
2036
  #### Defined in
2037
2037
 
2038
- [isString.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isString.ts#L4)
2038
+ [isString.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isString.ts#L4)
2039
2039
 
2040
2040
  ___
2041
2041
 
2042
- ### isURL
2042
+ ### isUndefined
2043
2043
 
2044
- ▸ **isURL**(`val`): `boolean`
2044
+ ▸ **isUndefined**(`val`): val is undefined
2045
2045
 
2046
- 判断是否是 url
2046
+ 校验是否是 undefined
2047
2047
 
2048
2048
  #### Parameters
2049
2049
 
@@ -2053,33 +2053,33 @@ ___
2053
2053
 
2054
2054
  #### Returns
2055
2055
 
2056
- `boolean`
2056
+ val is undefined
2057
2057
 
2058
2058
  #### Defined in
2059
2059
 
2060
- [isURL.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isURL.ts#L4)
2060
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isUndefined.ts#L4)
2061
2061
 
2062
2062
  ___
2063
2063
 
2064
- ### isUndefined
2064
+ ### isUrl
2065
2065
 
2066
- ▸ **isUndefined**(`val`): val is undefined
2066
+ ▸ **isUrl**(`val`): `boolean`
2067
2067
 
2068
- 校验是否是 undefined
2068
+ 判断是否是链接
2069
2069
 
2070
2070
  #### Parameters
2071
2071
 
2072
2072
  | Name | Type |
2073
2073
  | :------ | :------ |
2074
- | `val` | `unknown` |
2074
+ | `val` | `string` |
2075
2075
 
2076
2076
  #### Returns
2077
2077
 
2078
- val is undefined
2078
+ `boolean`
2079
2079
 
2080
2080
  #### Defined in
2081
2081
 
2082
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isUndefined.ts#L4)
2082
+ isUrl.ts:4
2083
2083
 
2084
2084
  ___
2085
2085
 
@@ -2095,7 +2095,7 @@ ___
2095
2095
 
2096
2096
  #### Defined in
2097
2097
 
2098
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isWeChat.ts#L4)
2098
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/isWeChat.ts#L4)
2099
2099
 
2100
2100
  ___
2101
2101
 
@@ -2112,7 +2112,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2112
2112
 
2113
2113
  #### Defined in
2114
2114
 
2115
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isWeChatMiniProgram.ts#L5)
2115
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isWeChatMiniProgram.ts#L5)
2116
2116
 
2117
2117
  ___
2118
2118
 
@@ -2132,7 +2132,7 @@ ___
2132
2132
 
2133
2133
  #### Defined in
2134
2134
 
2135
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/a80f0a1/src/isWeChat.ts#L12)
2135
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/cbc06da/src/isWeChat.ts#L12)
2136
2136
 
2137
2137
  ___
2138
2138
 
@@ -2154,7 +2154,7 @@ val is Window
2154
2154
 
2155
2155
  #### Defined in
2156
2156
 
2157
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isWindow.ts#L5)
2157
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/isWindow.ts#L5)
2158
2158
 
2159
2159
  ___
2160
2160
 
@@ -2177,7 +2177,7 @@ kebabCase('helloWorld') => hello-world
2177
2177
 
2178
2178
  #### Defined in
2179
2179
 
2180
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/kebabCase.ts#L5)
2180
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/kebabCase.ts#L5)
2181
2181
 
2182
2182
  ___
2183
2183
 
@@ -2206,7 +2206,7 @@ list 生成器,快速生成数据
2206
2206
 
2207
2207
  #### Defined in
2208
2208
 
2209
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/listGenerator.ts#L5)
2209
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/listGenerator.ts#L5)
2210
2210
 
2211
2211
  ___
2212
2212
 
@@ -2231,7 +2231,7 @@ ___
2231
2231
 
2232
2232
  #### Defined in
2233
2233
 
2234
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/a80f0a1/src/mousewheel.ts#L22)
2234
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/cbc06da/src/mousewheel.ts#L22)
2235
2235
 
2236
2236
  ___
2237
2237
 
@@ -2253,7 +2253,7 @@ ___
2253
2253
 
2254
2254
  #### Defined in
2255
2255
 
2256
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/normalizePath.ts#L4)
2256
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/normalizePath.ts#L4)
2257
2257
 
2258
2258
  ___
2259
2259
 
@@ -2283,7 +2283,7 @@ ___
2283
2283
 
2284
2284
  #### Defined in
2285
2285
 
2286
- [omit.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/omit.ts#L4)
2286
+ [omit.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/omit.ts#L4)
2287
2287
 
2288
2288
  ___
2289
2289
 
@@ -2307,7 +2307,7 @@ ___
2307
2307
 
2308
2308
  #### Defined in
2309
2309
 
2310
- [padding.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/padding.ts#L7)
2310
+ [padding.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/padding.ts#L7)
2311
2311
 
2312
2312
  ___
2313
2313
 
@@ -2329,7 +2329,7 @@ ___
2329
2329
 
2330
2330
  #### Defined in
2331
2331
 
2332
- [parseDate.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/parseDate.ts#L4)
2332
+ [parseDate.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/parseDate.ts#L4)
2333
2333
 
2334
2334
  ___
2335
2335
 
@@ -2352,7 +2352,7 @@ ___
2352
2352
 
2353
2353
  #### Defined in
2354
2354
 
2355
- [parseError.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/parseError.ts#L8)
2355
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/parseError.ts#L8)
2356
2356
 
2357
2357
  ___
2358
2358
 
@@ -2382,7 +2382,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2382
2382
 
2383
2383
  #### Defined in
2384
2384
 
2385
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/parseObject.ts#L5)
2385
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/parseObject.ts#L5)
2386
2386
 
2387
2387
  ___
2388
2388
 
@@ -2411,7 +2411,7 @@ ___
2411
2411
 
2412
2412
  #### Defined in
2413
2413
 
2414
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/parsePath.ts#L6)
2414
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/parsePath.ts#L6)
2415
2415
 
2416
2416
  ___
2417
2417
 
@@ -2434,7 +2434,7 @@ ___
2434
2434
 
2435
2435
  #### Defined in
2436
2436
 
2437
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/parseQuery.ts#L8)
2437
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/parseQuery.ts#L8)
2438
2438
 
2439
2439
  ___
2440
2440
 
@@ -2457,7 +2457,7 @@ pascalCase('hello-world') => HelloWorld
2457
2457
 
2458
2458
  #### Defined in
2459
2459
 
2460
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/pascalCase.ts#L8)
2460
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/pascalCase.ts#L8)
2461
2461
 
2462
2462
  ___
2463
2463
 
@@ -2487,7 +2487,7 @@ ___
2487
2487
 
2488
2488
  #### Defined in
2489
2489
 
2490
- [pick.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/pick.ts#L4)
2490
+ [pick.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/pick.ts#L4)
2491
2491
 
2492
2492
  ___
2493
2493
 
@@ -2510,7 +2510,7 @@ ___
2510
2510
 
2511
2511
  #### Defined in
2512
2512
 
2513
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/replaceCrlf.ts#L4)
2513
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/replaceCrlf.ts#L4)
2514
2514
 
2515
2515
  ___
2516
2516
 
@@ -2534,7 +2534,7 @@ ___
2534
2534
 
2535
2535
  #### Defined in
2536
2536
 
2537
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/requestFullScreen.ts#L6)
2537
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/requestFullScreen.ts#L6)
2538
2538
 
2539
2539
  ___
2540
2540
 
@@ -2560,7 +2560,7 @@ reserve(0, '--') => 0
2560
2560
 
2561
2561
  #### Defined in
2562
2562
 
2563
- [reserve.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/reserve.ts#L8)
2563
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/cbc06da/src/reserve.ts#L8)
2564
2564
 
2565
2565
  ___
2566
2566
 
@@ -2584,7 +2584,7 @@ ___
2584
2584
 
2585
2585
  #### Defined in
2586
2586
 
2587
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/rgbToHex.ts#L4)
2587
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/rgbToHex.ts#L4)
2588
2588
 
2589
2589
  ___
2590
2590
 
@@ -2607,7 +2607,7 @@ ___
2607
2607
 
2608
2608
  #### Defined in
2609
2609
 
2610
- [round.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/round.ts#L6)
2610
+ [round.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/round.ts#L6)
2611
2611
 
2612
2612
  ___
2613
2613
 
@@ -2623,7 +2623,7 @@ ___
2623
2623
 
2624
2624
  #### Defined in
2625
2625
 
2626
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/scrollToTop.ts#L4)
2626
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/scrollToTop.ts#L4)
2627
2627
 
2628
2628
  ___
2629
2629
 
@@ -2646,7 +2646,7 @@ ___
2646
2646
 
2647
2647
  #### Defined in
2648
2648
 
2649
- [sleep.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/sleep.ts#L6)
2649
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/sleep.ts#L6)
2650
2650
 
2651
2651
  ___
2652
2652
 
@@ -2675,7 +2675,7 @@ ___
2675
2675
 
2676
2676
  #### Defined in
2677
2677
 
2678
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/splitArray.ts#L4)
2678
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/splitArray.ts#L4)
2679
2679
 
2680
2680
  ___
2681
2681
 
@@ -2698,7 +2698,7 @@ ___
2698
2698
 
2699
2699
  #### Defined in
2700
2700
 
2701
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/stringTrim.ts#L6)
2701
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/stringTrim.ts#L6)
2702
2702
 
2703
2703
  ___
2704
2704
 
@@ -2720,7 +2720,7 @@ ___
2720
2720
 
2721
2721
  #### Defined in
2722
2722
 
2723
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/stringifyQuery.ts#L7)
2723
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/cbc06da/src/stringifyQuery.ts#L7)
2724
2724
 
2725
2725
  ___
2726
2726
 
@@ -2764,7 +2764,7 @@ ___
2764
2764
 
2765
2765
  #### Defined in
2766
2766
 
2767
- [throttle.ts:48](https://github.com/daysnap/utils/blob/a80f0a1/src/throttle.ts#L48)
2767
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/cbc06da/src/throttle.ts#L48)
2768
2768
 
2769
2769
  ___
2770
2770
 
@@ -2807,7 +2807,7 @@ ___
2807
2807
 
2808
2808
  #### Defined in
2809
2809
 
2810
- [throttle.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/throttle.ts#L5)
2810
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/cbc06da/src/throttle.ts#L5)
2811
2811
 
2812
2812
  ___
2813
2813
 
@@ -2850,7 +2850,7 @@ ___
2850
2850
 
2851
2851
  #### Defined in
2852
2852
 
2853
- [throttle.ts:25](https://github.com/daysnap/utils/blob/a80f0a1/src/throttle.ts#L25)
2853
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/cbc06da/src/throttle.ts#L25)
2854
2854
 
2855
2855
  ___
2856
2856
 
@@ -2872,7 +2872,7 @@ ___
2872
2872
 
2873
2873
  #### Defined in
2874
2874
 
2875
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/toCDB.ts#L4)
2875
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/toCDB.ts#L4)
2876
2876
 
2877
2877
  ___
2878
2878
 
@@ -2894,7 +2894,7 @@ ___
2894
2894
 
2895
2895
  #### Defined in
2896
2896
 
2897
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/toDBC.ts#L4)
2897
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/toDBC.ts#L4)
2898
2898
 
2899
2899
  ___
2900
2900
 
@@ -2918,7 +2918,7 @@ ___
2918
2918
 
2919
2919
  #### Defined in
2920
2920
 
2921
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/typeOf.ts#L6)
2921
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/cbc06da/src/typeOf.ts#L6)
2922
2922
 
2923
2923
  ___
2924
2924
 
@@ -2947,4 +2947,4 @@ ___
2947
2947
 
2948
2948
  #### Defined in
2949
2949
 
2950
- withPreventConsecutiveClicks.ts:4
2950
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/cbc06da/src/withPreventConsecutiveClicks.ts#L4)
package/es/index.d.ts CHANGED
@@ -69,8 +69,8 @@ export * from './isPhone';
69
69
  export * from './isPromise';
70
70
  export * from './isRegExp';
71
71
  export * from './isString';
72
- export * from './isURL';
73
72
  export * from './isUndefined';
73
+ export * from './isUrl';
74
74
  export * from './isWeChat';
75
75
  export * from './isWeChatMiniProgram';
76
76
  export * from './isWindow';
package/es/index.js CHANGED
@@ -70,8 +70,8 @@ export * from './isPhone';
70
70
  export * from './isPromise';
71
71
  export * from './isRegExp';
72
72
  export * from './isString';
73
- export * from './isURL';
74
73
  export * from './isUndefined';
74
+ export * from './isUrl';
75
75
  export * from './isWeChat';
76
76
  export * from './isWeChatMiniProgram';
77
77
  export * from './isWindow';
package/es/isUrl.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 判断是否是链接
3
+ */
4
+ export declare function isUrl(val: string): boolean;
package/es/isUrl.js ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 判断是否是链接
3
+ */
4
+ export function isUrl(val) {
5
+ return /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/.test(val);
6
+ }
package/lib/index.d.ts CHANGED
@@ -69,8 +69,8 @@ export * from './isPhone';
69
69
  export * from './isPromise';
70
70
  export * from './isRegExp';
71
71
  export * from './isString';
72
- export * from './isURL';
73
72
  export * from './isUndefined';
73
+ export * from './isUrl';
74
74
  export * from './isWeChat';
75
75
  export * from './isWeChatMiniProgram';
76
76
  export * from './isWindow';
package/lib/index.js CHANGED
@@ -86,8 +86,8 @@ __exportStar(require("./isPhone"), exports);
86
86
  __exportStar(require("./isPromise"), exports);
87
87
  __exportStar(require("./isRegExp"), exports);
88
88
  __exportStar(require("./isString"), exports);
89
- __exportStar(require("./isURL"), exports);
90
89
  __exportStar(require("./isUndefined"), exports);
90
+ __exportStar(require("./isUrl"), exports);
91
91
  __exportStar(require("./isWeChat"), exports);
92
92
  __exportStar(require("./isWeChatMiniProgram"), exports);
93
93
  __exportStar(require("./isWindow"), exports);
package/lib/isUrl.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 判断是否是链接
3
+ */
4
+ export declare function isUrl(val: string): boolean;
package/lib/isUrl.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isUrl = void 0;
4
+ /**
5
+ * 判断是否是链接
6
+ */
7
+ function isUrl(val) {
8
+ return /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/.test(val);
9
+ }
10
+ exports.isUrl = isUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daysnap/utils",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "description": "通用的工具库",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
package/es/isURL.d.ts DELETED
@@ -1,4 +0,0 @@
1
- /**
2
- * 判断是否是 url
3
- */
4
- export declare function isURL(val: unknown): boolean;
package/es/isURL.js DELETED
@@ -1,6 +0,0 @@
1
- /**
2
- * 判断是否是 url
3
- */
4
- export function isURL(val) {
5
- return /^(http)|(\.*\/)/.test(`${val}`);
6
- }
package/lib/isURL.d.ts DELETED
@@ -1,4 +0,0 @@
1
- /**
2
- * 判断是否是 url
3
- */
4
- export declare function isURL(val: unknown): boolean;
package/lib/isURL.js DELETED
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isURL = void 0;
4
- /**
5
- * 判断是否是 url
6
- */
7
- function isURL(val) {
8
- return /^(http)|(\.*\/)/.test(`${val}`);
9
- }
10
- exports.isURL = isURL;