@daysnap/utils 0.0.82 → 0.0.84

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/3bb201f/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/3bb201f/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/3bb201f/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/3bb201f/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/3bb201f/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/3bb201f/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/3bb201f/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/3bb201f/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/3bb201f/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)
@@ -99,6 +99,7 @@
99
99
  - [kebabCase](modules.md#kebabcase)
100
100
  - [listGenerator](modules.md#listgenerator)
101
101
  - [mousewheel](modules.md#mousewheel)
102
+ - [nf](modules.md#nf)
102
103
  - [normalizePath](modules.md#normalizepath)
103
104
  - [omit](modules.md#omit)
104
105
  - [padding](modules.md#padding)
@@ -135,7 +136,7 @@
135
136
 
136
137
  #### Defined in
137
138
 
138
- [trap.ts:15](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L15)
139
+ [trap.ts:15](https://github.com/daysnap/utils/blob/3bb201f/src/trap.ts#L15)
139
140
 
140
141
  ## Functions
141
142
 
@@ -173,7 +174,7 @@ res = { '1': '男', '2': '女' }
173
174
 
174
175
  #### Defined in
175
176
 
176
- [ato.ts:12](https://github.com/daysnap/utils/blob/a80f0a1/src/ato.ts#L12)
177
+ [ato.ts:12](https://github.com/daysnap/utils/blob/3bb201f/src/ato.ts#L12)
177
178
 
178
179
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
179
180
 
@@ -198,7 +199,7 @@ res = { '1': '男', '2': '女' }
198
199
 
199
200
  #### Defined in
200
201
 
201
- [ato.ts:16](https://github.com/daysnap/utils/blob/a80f0a1/src/ato.ts#L16)
202
+ [ato.ts:16](https://github.com/daysnap/utils/blob/3bb201f/src/ato.ts#L16)
202
203
 
203
204
  ___
204
205
 
@@ -221,7 +222,7 @@ base64 转 blob
221
222
 
222
223
  #### Defined in
223
224
 
224
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/base64ToBlob.ts#L6)
225
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/base64ToBlob.ts#L6)
225
226
 
226
227
  ___
227
228
 
@@ -243,7 +244,7 @@ blob 转 base64
243
244
 
244
245
  #### Defined in
245
246
 
246
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/blobToBase64.ts#L4)
247
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/blobToBase64.ts#L4)
247
248
 
248
249
  ___
249
250
 
@@ -284,7 +285,7 @@ ___
284
285
 
285
286
  #### Defined in
286
287
 
287
- [cached.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/cached.ts#L5)
288
+ [cached.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/cached.ts#L5)
288
289
 
289
290
  ___
290
291
 
@@ -307,7 +308,7 @@ camelCase('hello-world') => helloWorld
307
308
 
308
309
  #### Defined in
309
310
 
310
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/camelCase.ts#L5)
311
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/camelCase.ts#L5)
311
312
 
312
313
  ___
313
314
 
@@ -331,7 +332,7 @@ canvas 转 blob 文件
331
332
 
332
333
  #### Defined in
333
334
 
334
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/canvasToBlob.ts#L4)
335
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/canvasToBlob.ts#L4)
335
336
 
336
337
  ___
337
338
 
@@ -354,7 +355,7 @@ capitalize('hello world') => Hello world
354
355
 
355
356
  #### Defined in
356
357
 
357
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/capitalize.ts#L5)
358
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/capitalize.ts#L5)
358
359
 
359
360
  ___
360
361
 
@@ -378,7 +379,7 @@ ___
378
379
 
379
380
  #### Defined in
380
381
 
381
- [clamp.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/clamp.ts#L7)
382
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/clamp.ts#L7)
382
383
 
383
384
  ___
384
385
 
@@ -406,7 +407,7 @@ ___
406
407
 
407
408
  #### Defined in
408
409
 
409
- [clone.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/clone.ts#L8)
410
+ [clone.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/clone.ts#L8)
410
411
 
411
412
  ___
412
413
 
@@ -434,7 +435,7 @@ ___
434
435
 
435
436
  #### Defined in
436
437
 
437
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/cloneSimple.ts#L7)
438
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/cloneSimple.ts#L7)
438
439
 
439
440
  ___
440
441
 
@@ -456,7 +457,7 @@ ___
456
457
 
457
458
  #### Defined in
458
459
 
459
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/createHexColorByHash.ts#L4)
460
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/createHexColorByHash.ts#L4)
460
461
 
461
462
  ___
462
463
 
@@ -482,7 +483,7 @@ ___
482
483
 
483
484
  #### Defined in
484
485
 
485
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/compareVersion.ts#L9)
486
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/3bb201f/src/compareVersion.ts#L9)
486
487
 
487
488
  ___
488
489
 
@@ -504,7 +505,7 @@ ___
504
505
 
505
506
  #### Defined in
506
507
 
507
- [compressImage.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/compressImage.ts#L6)
508
+ [compressImage.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/compressImage.ts#L6)
508
509
 
509
510
  ___
510
511
 
@@ -542,7 +543,7 @@ ___
542
543
 
543
544
  #### Defined in
544
545
 
545
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/createLinearFunction.ts#L9)
546
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/3bb201f/src/createLinearFunction.ts#L9)
546
547
 
547
548
  ___
548
549
 
@@ -574,7 +575,7 @@ ___
574
575
 
575
576
  #### Defined in
576
577
 
577
- [trap.ts:49](https://github.com/daysnap/utils/blob/a80f0a1/src/trap.ts#L49)
578
+ [trap.ts:49](https://github.com/daysnap/utils/blob/3bb201f/src/trap.ts#L49)
578
579
 
579
580
  ___
580
581
 
@@ -637,7 +638,7 @@ fn() 执行的时候就会执行showLoading
637
638
 
638
639
  #### Defined in
639
640
 
640
- [createWithLoading.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/createWithLoading.ts#L9)
641
+ [createWithLoading.ts:9](https://github.com/daysnap/utils/blob/3bb201f/src/createWithLoading.ts#L9)
641
642
 
642
643
  ___
643
644
 
@@ -680,7 +681,7 @@ ___
680
681
 
681
682
  #### Defined in
682
683
 
683
- [debounce.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/debounce.ts#L5)
684
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/debounce.ts#L5)
684
685
 
685
686
  ___
686
687
 
@@ -704,7 +705,7 @@ ___
704
705
 
705
706
  #### Defined in
706
707
 
707
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/downloadFile.ts#L4)
708
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/downloadFile.ts#L4)
708
709
 
709
710
  ___
710
711
 
@@ -733,7 +734,7 @@ ___
733
734
 
734
735
  #### Defined in
735
736
 
736
- [each.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/each.ts#L4)
737
+ [each.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/each.ts#L4)
737
738
 
738
739
  ▸ **each**<`T`\>(`data`, `callback`): `void`
739
740
 
@@ -756,7 +757,7 @@ ___
756
757
 
757
758
  #### Defined in
758
759
 
759
- [each.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/each.ts#L8)
760
+ [each.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/each.ts#L8)
760
761
 
761
762
  ___
762
763
 
@@ -774,7 +775,7 @@ ___
774
775
 
775
776
  #### Defined in
776
777
 
777
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/exitFullscreen.ts#L6)
778
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/exitFullscreen.ts#L6)
778
779
 
779
780
  ___
780
781
 
@@ -803,7 +804,7 @@ ___
803
804
 
804
805
  #### Defined in
805
806
 
806
- [storage/factory.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/factory.ts#L8)
807
+ [storage/factory.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/storage/factory.ts#L8)
807
808
 
808
809
  ___
809
810
 
@@ -825,7 +826,7 @@ ___
825
826
 
826
827
  #### Defined in
827
828
 
828
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterBankCardNo.ts#L4)
829
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/filterBankCardNo.ts#L4)
829
830
 
830
831
  ___
831
832
 
@@ -847,7 +848,7 @@ ___
847
848
 
848
849
  #### Defined in
849
850
 
850
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterCRLF.ts#L4)
851
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/filterCRLF.ts#L4)
851
852
 
852
853
  ___
853
854
 
@@ -869,7 +870,7 @@ ___
869
870
 
870
871
  #### Defined in
871
872
 
872
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterEmoji.ts#L4)
873
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/filterEmoji.ts#L4)
873
874
 
874
875
  ___
875
876
 
@@ -892,7 +893,7 @@ ___
892
893
 
893
894
  #### Defined in
894
895
 
895
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/a80f0a1/src/filterEmptyValue.ts#L12)
896
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/3bb201f/src/filterEmptyValue.ts#L12)
896
897
 
897
898
  ___
898
899
 
@@ -915,7 +916,7 @@ ___
915
916
 
916
917
  #### Defined in
917
918
 
918
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/filterIdCard.ts#L5)
919
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/filterIdCard.ts#L5)
919
920
 
920
921
  ___
921
922
 
@@ -937,7 +938,7 @@ ___
937
938
 
938
939
  #### Defined in
939
940
 
940
- [filterName.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/filterName.ts#L4)
941
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/filterName.ts#L4)
941
942
 
942
943
  ___
943
944
 
@@ -962,7 +963,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
962
963
 
963
964
  #### Defined in
964
965
 
965
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/filterPhone.ts#L6)
966
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/filterPhone.ts#L6)
966
967
 
967
968
  ___
968
969
 
@@ -989,7 +990,7 @@ str = '131****8888'
989
990
 
990
991
  #### Defined in
991
992
 
992
- [filterString.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/filterString.ts#L6)
993
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/filterString.ts#L6)
993
994
 
994
995
  ___
995
996
 
@@ -1012,7 +1013,7 @@ ___
1012
1013
 
1013
1014
  #### Defined in
1014
1015
 
1015
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/formatAmount.ts#L4)
1016
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/formatAmount.ts#L4)
1016
1017
 
1017
1018
  ___
1018
1019
 
@@ -1036,7 +1037,7 @@ ___
1036
1037
 
1037
1038
  #### Defined in
1038
1039
 
1039
- [formatDate.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/formatDate.ts#L8)
1040
+ [formatDate.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/formatDate.ts#L8)
1040
1041
 
1041
1042
  ___
1042
1043
 
@@ -1059,7 +1060,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1059
1060
 
1060
1061
  #### Defined in
1061
1062
 
1062
- [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/formatDateStr.ts#L5)
1063
+ [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/formatDateStr.ts#L5)
1063
1064
 
1064
1065
  ___
1065
1066
 
@@ -1079,7 +1080,7 @@ ___
1079
1080
 
1080
1081
  #### Defined in
1081
1082
 
1082
- [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/a80f0a1/src/formartDateToZN.ts#L3)
1083
+ [formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/3bb201f/src/formartDateToZN.ts#L3)
1083
1084
 
1084
1085
  ___
1085
1086
 
@@ -1104,7 +1105,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1104
1105
 
1105
1106
  #### Defined in
1106
1107
 
1107
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/a80f0a1/src/formatMessage.ts#L11)
1108
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/3bb201f/src/formatMessage.ts#L11)
1108
1109
 
1109
1110
  ___
1110
1111
 
@@ -1136,7 +1137,7 @@ rest = { xxx: 1 }
1136
1137
 
1137
1138
  #### Defined in
1138
1139
 
1139
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/formatPathParams.ts#L8)
1140
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/formatPathParams.ts#L8)
1140
1141
 
1141
1142
  ___
1142
1143
 
@@ -1158,7 +1159,7 @@ ___
1158
1159
 
1159
1160
  #### Defined in
1160
1161
 
1161
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getBlobByUrl.ts#L4)
1162
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/getBlobByUrl.ts#L4)
1162
1163
 
1163
1164
  ___
1164
1165
 
@@ -1181,7 +1182,7 @@ ___
1181
1182
 
1182
1183
  #### Defined in
1183
1184
 
1184
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/index.ts#L9)
1185
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/3bb201f/src/storage/index.ts#L9)
1185
1186
 
1186
1187
  ___
1187
1188
 
@@ -1203,7 +1204,7 @@ ___
1203
1204
 
1204
1205
  #### Defined in
1205
1206
 
1206
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getDayMillisecond.ts#L4)
1207
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/getDayMillisecond.ts#L4)
1207
1208
 
1208
1209
  ___
1209
1210
 
@@ -1225,7 +1226,7 @@ ___
1225
1226
 
1226
1227
  #### Defined in
1227
1228
 
1228
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getImageInfo.ts#L4)
1229
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/getImageInfo.ts#L4)
1229
1230
 
1230
1231
  ___
1231
1232
 
@@ -1248,7 +1249,7 @@ ___
1248
1249
 
1249
1250
  #### Defined in
1250
1251
 
1251
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/a80f0a1/src/storage/index.ts#L9)
1252
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/3bb201f/src/storage/index.ts#L9)
1252
1253
 
1253
1254
  ___
1254
1255
 
@@ -1271,7 +1272,7 @@ ___
1271
1272
 
1272
1273
  #### Defined in
1273
1274
 
1274
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/getRandom.ts#L7)
1275
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/getRandom.ts#L7)
1275
1276
 
1276
1277
  ___
1277
1278
 
@@ -1287,7 +1288,7 @@ ___
1287
1288
 
1288
1289
  #### Defined in
1289
1290
 
1290
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getRandomColor.ts#L4)
1291
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/getRandomColor.ts#L4)
1291
1292
 
1292
1293
  ___
1293
1294
 
@@ -1309,7 +1310,7 @@ ___
1309
1310
 
1310
1311
  #### Defined in
1311
1312
 
1312
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/getRandomNumber.ts#L7)
1313
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/getRandomNumber.ts#L7)
1313
1314
 
1314
1315
  ___
1315
1316
 
@@ -1331,7 +1332,7 @@ ___
1331
1332
 
1332
1333
  #### Defined in
1333
1334
 
1334
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/getVideoInfo.ts#L4)
1335
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/getVideoInfo.ts#L4)
1335
1336
 
1336
1337
  ___
1337
1338
 
@@ -1347,7 +1348,7 @@ ___
1347
1348
 
1348
1349
  #### Defined in
1349
1350
 
1350
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/inBrowser.ts#L4)
1351
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/inBrowser.ts#L4)
1351
1352
 
1352
1353
  ___
1353
1354
 
@@ -1369,7 +1370,7 @@ ___
1369
1370
 
1370
1371
  #### Defined in
1371
1372
 
1372
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/insertLink.ts#L4)
1373
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/insertLink.ts#L4)
1373
1374
 
1374
1375
  ▸ **insertLink**(`href`, `callback`): `void`
1375
1376
 
@@ -1386,7 +1387,7 @@ ___
1386
1387
 
1387
1388
  #### Defined in
1388
1389
 
1389
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/insertLink.ts#L5)
1390
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/insertLink.ts#L5)
1390
1391
 
1391
1392
  ___
1392
1393
 
@@ -1408,7 +1409,7 @@ ___
1408
1409
 
1409
1410
  #### Defined in
1410
1411
 
1411
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/insertScript.ts#L4)
1412
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/insertScript.ts#L4)
1412
1413
 
1413
1414
  ▸ **insertScript**(`src`, `callback`): `void`
1414
1415
 
@@ -1425,7 +1426,7 @@ ___
1425
1426
 
1426
1427
  #### Defined in
1427
1428
 
1428
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/insertScript.ts#L5)
1429
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/insertScript.ts#L5)
1429
1430
 
1430
1431
  ___
1431
1432
 
@@ -1447,7 +1448,7 @@ ___
1447
1448
 
1448
1449
  #### Defined in
1449
1450
 
1450
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/insertStyle.ts#L4)
1451
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/insertStyle.ts#L4)
1451
1452
 
1452
1453
  ___
1453
1454
 
@@ -1476,7 +1477,7 @@ isAmount('1.123') => false
1476
1477
 
1477
1478
  #### Defined in
1478
1479
 
1479
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/a80f0a1/src/isAmount.ts#L11)
1480
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/3bb201f/src/isAmount.ts#L11)
1480
1481
 
1481
1482
  ___
1482
1483
 
@@ -1492,7 +1493,7 @@ ___
1492
1493
 
1493
1494
  #### Defined in
1494
1495
 
1495
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isAndroid.ts#L4)
1496
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isAndroid.ts#L4)
1496
1497
 
1497
1498
  ___
1498
1499
 
@@ -1516,7 +1517,7 @@ val is any[]
1516
1517
 
1517
1518
  #### Defined in
1518
1519
 
1519
- [isArray.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isArray.ts#L6)
1520
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/isArray.ts#L6)
1520
1521
 
1521
1522
  ___
1522
1523
 
@@ -1538,7 +1539,7 @@ val is boolean
1538
1539
 
1539
1540
  #### Defined in
1540
1541
 
1541
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isBoolean.ts#L5)
1542
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/isBoolean.ts#L5)
1542
1543
 
1543
1544
  ___
1544
1545
 
@@ -1560,7 +1561,7 @@ ___
1560
1561
 
1561
1562
  #### Defined in
1562
1563
 
1563
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isChinese.ts#L4)
1564
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isChinese.ts#L4)
1564
1565
 
1565
1566
  ___
1566
1567
 
@@ -1582,7 +1583,7 @@ val is Date
1582
1583
 
1583
1584
  #### Defined in
1584
1585
 
1585
- [isDate.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isDate.ts#L4)
1586
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isDate.ts#L4)
1586
1587
 
1587
1588
  ___
1588
1589
 
@@ -1604,7 +1605,7 @@ ___
1604
1605
 
1605
1606
  #### Defined in
1606
1607
 
1607
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmail.ts#L4)
1608
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isEmail.ts#L4)
1608
1609
 
1609
1610
  ___
1610
1611
 
@@ -1626,7 +1627,7 @@ ___
1626
1627
 
1627
1628
  #### Defined in
1628
1629
 
1629
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmpty.ts#L6)
1630
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/isEmpty.ts#L6)
1630
1631
 
1631
1632
  ___
1632
1633
 
@@ -1648,7 +1649,7 @@ ___
1648
1649
 
1649
1650
  #### Defined in
1650
1651
 
1651
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmptyArray.ts#L6)
1652
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/isEmptyArray.ts#L6)
1652
1653
 
1653
1654
  ___
1654
1655
 
@@ -1670,7 +1671,7 @@ ___
1670
1671
 
1671
1672
  #### Defined in
1672
1673
 
1673
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isEmptyObject.ts#L5)
1674
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/isEmptyObject.ts#L5)
1674
1675
 
1675
1676
  ___
1676
1677
 
@@ -1692,7 +1693,7 @@ val is Error
1692
1693
 
1693
1694
  #### Defined in
1694
1695
 
1695
- [isError.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isError.ts#L4)
1696
+ [isError.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isError.ts#L4)
1696
1697
 
1697
1698
  ___
1698
1699
 
@@ -1714,7 +1715,7 @@ val is Function
1714
1715
 
1715
1716
  #### Defined in
1716
1717
 
1717
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isFunction.ts#L4)
1718
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isFunction.ts#L4)
1718
1719
 
1719
1720
  ___
1720
1721
 
@@ -1732,7 +1733,7 @@ ___
1732
1733
 
1733
1734
  #### Defined in
1734
1735
 
1735
- [isIE.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/isIE.ts#L6)
1736
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/isIE.ts#L6)
1736
1737
 
1737
1738
  ___
1738
1739
 
@@ -1748,7 +1749,7 @@ ___
1748
1749
 
1749
1750
  #### Defined in
1750
1751
 
1751
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isIOS.ts#L4)
1752
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isIOS.ts#L4)
1752
1753
 
1753
1754
  ___
1754
1755
 
@@ -1770,7 +1771,7 @@ ___
1770
1771
 
1771
1772
  #### Defined in
1772
1773
 
1773
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isIdCard.ts#L4)
1774
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isIdCard.ts#L4)
1774
1775
 
1775
1776
  ___
1776
1777
 
@@ -1792,7 +1793,7 @@ ___
1792
1793
 
1793
1794
  #### Defined in
1794
1795
 
1795
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/isJSONString.ts#L7)
1796
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/isJSONString.ts#L7)
1796
1797
 
1797
1798
  ___
1798
1799
 
@@ -1814,7 +1815,7 @@ ___
1814
1815
 
1815
1816
  #### Defined in
1816
1817
 
1817
- [isLan.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isLan.ts#L5)
1818
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/isLan.ts#L5)
1818
1819
 
1819
1820
  ___
1820
1821
 
@@ -1836,7 +1837,7 @@ ___
1836
1837
 
1837
1838
  #### Defined in
1838
1839
 
1839
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isLicenseCode.ts#L5)
1840
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/isLicenseCode.ts#L5)
1840
1841
 
1841
1842
  ___
1842
1843
 
@@ -1852,7 +1853,7 @@ ___
1852
1853
 
1853
1854
  #### Defined in
1854
1855
 
1855
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isMobile.ts#L4)
1856
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isMobile.ts#L4)
1856
1857
 
1857
1858
  ___
1858
1859
 
@@ -1875,7 +1876,7 @@ ___
1875
1876
 
1876
1877
  #### Defined in
1877
1878
 
1878
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/isNativeFunction.ts#L7)
1879
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/isNativeFunction.ts#L7)
1879
1880
 
1880
1881
  ___
1881
1882
 
@@ -1897,7 +1898,7 @@ val is null
1897
1898
 
1898
1899
  #### Defined in
1899
1900
 
1900
- [isNull.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isNull.ts#L4)
1901
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isNull.ts#L4)
1901
1902
 
1902
1903
  ___
1903
1904
 
@@ -1919,7 +1920,7 @@ val is number
1919
1920
 
1920
1921
  #### Defined in
1921
1922
 
1922
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isNumber.ts#L5)
1923
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/isNumber.ts#L5)
1923
1924
 
1924
1925
  ___
1925
1926
 
@@ -1941,7 +1942,7 @@ val is Record<string, any\>
1941
1942
 
1942
1943
  #### Defined in
1943
1944
 
1944
- [isObject.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isObject.ts#L4)
1945
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isObject.ts#L4)
1945
1946
 
1946
1947
  ___
1947
1948
 
@@ -1963,7 +1964,7 @@ ___
1963
1964
 
1964
1965
  #### Defined in
1965
1966
 
1966
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isPhone.ts#L4)
1967
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isPhone.ts#L4)
1967
1968
 
1968
1969
  ___
1969
1970
 
@@ -1991,7 +1992,7 @@ val is Promise<T\>
1991
1992
 
1992
1993
  #### Defined in
1993
1994
 
1994
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isPromise.ts#L4)
1995
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isPromise.ts#L4)
1995
1996
 
1996
1997
  ___
1997
1998
 
@@ -2013,7 +2014,7 @@ val is RegExp
2013
2014
 
2014
2015
  #### Defined in
2015
2016
 
2016
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isRegExp.ts#L4)
2017
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isRegExp.ts#L4)
2017
2018
 
2018
2019
  ___
2019
2020
 
@@ -2035,15 +2036,15 @@ val is string
2035
2036
 
2036
2037
  #### Defined in
2037
2038
 
2038
- [isString.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isString.ts#L4)
2039
+ [isString.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isString.ts#L4)
2039
2040
 
2040
2041
  ___
2041
2042
 
2042
- ### isURL
2043
+ ### isUndefined
2043
2044
 
2044
- ▸ **isURL**(`val`): `boolean`
2045
+ ▸ **isUndefined**(`val`): val is undefined
2045
2046
 
2046
- 判断是否是 url
2047
+ 校验是否是 undefined
2047
2048
 
2048
2049
  #### Parameters
2049
2050
 
@@ -2053,33 +2054,33 @@ ___
2053
2054
 
2054
2055
  #### Returns
2055
2056
 
2056
- `boolean`
2057
+ val is undefined
2057
2058
 
2058
2059
  #### Defined in
2059
2060
 
2060
- [isURL.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isURL.ts#L4)
2061
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isUndefined.ts#L4)
2061
2062
 
2062
2063
  ___
2063
2064
 
2064
- ### isUndefined
2065
+ ### isUrl
2065
2066
 
2066
- ▸ **isUndefined**(`val`): val is undefined
2067
+ ▸ **isUrl**(`val`): `boolean`
2067
2068
 
2068
- 校验是否是 undefined
2069
+ 判断是否是链接
2069
2070
 
2070
2071
  #### Parameters
2071
2072
 
2072
2073
  | Name | Type |
2073
2074
  | :------ | :------ |
2074
- | `val` | `unknown` |
2075
+ | `val` | `string` |
2075
2076
 
2076
2077
  #### Returns
2077
2078
 
2078
- val is undefined
2079
+ `boolean`
2079
2080
 
2080
2081
  #### Defined in
2081
2082
 
2082
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isUndefined.ts#L4)
2083
+ isUrl.ts:4
2083
2084
 
2084
2085
  ___
2085
2086
 
@@ -2095,7 +2096,7 @@ ___
2095
2096
 
2096
2097
  #### Defined in
2097
2098
 
2098
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/isWeChat.ts#L4)
2099
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/isWeChat.ts#L4)
2099
2100
 
2100
2101
  ___
2101
2102
 
@@ -2112,7 +2113,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2112
2113
 
2113
2114
  #### Defined in
2114
2115
 
2115
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isWeChatMiniProgram.ts#L5)
2116
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/isWeChatMiniProgram.ts#L5)
2116
2117
 
2117
2118
  ___
2118
2119
 
@@ -2132,7 +2133,7 @@ ___
2132
2133
 
2133
2134
  #### Defined in
2134
2135
 
2135
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/a80f0a1/src/isWeChat.ts#L12)
2136
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/3bb201f/src/isWeChat.ts#L12)
2136
2137
 
2137
2138
  ___
2138
2139
 
@@ -2154,7 +2155,7 @@ val is Window
2154
2155
 
2155
2156
  #### Defined in
2156
2157
 
2157
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/isWindow.ts#L5)
2158
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/isWindow.ts#L5)
2158
2159
 
2159
2160
  ___
2160
2161
 
@@ -2177,7 +2178,7 @@ kebabCase('helloWorld') => hello-world
2177
2178
 
2178
2179
  #### Defined in
2179
2180
 
2180
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/kebabCase.ts#L5)
2181
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/kebabCase.ts#L5)
2181
2182
 
2182
2183
  ___
2183
2184
 
@@ -2206,7 +2207,7 @@ list 生成器,快速生成数据
2206
2207
 
2207
2208
  #### Defined in
2208
2209
 
2209
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/listGenerator.ts#L5)
2210
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/listGenerator.ts#L5)
2210
2211
 
2211
2212
  ___
2212
2213
 
@@ -2231,7 +2232,23 @@ ___
2231
2232
 
2232
2233
  #### Defined in
2233
2234
 
2234
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/a80f0a1/src/mousewheel.ts#L22)
2235
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/3bb201f/src/mousewheel.ts#L22)
2236
+
2237
+ ___
2238
+
2239
+ ### nf
2240
+
2241
+ ▸ **nf**(): `void`
2242
+
2243
+ 空函数
2244
+
2245
+ #### Returns
2246
+
2247
+ `void`
2248
+
2249
+ #### Defined in
2250
+
2251
+ [nf.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/nf.ts#L4)
2235
2252
 
2236
2253
  ___
2237
2254
 
@@ -2253,7 +2270,7 @@ ___
2253
2270
 
2254
2271
  #### Defined in
2255
2272
 
2256
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/normalizePath.ts#L4)
2273
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/normalizePath.ts#L4)
2257
2274
 
2258
2275
  ___
2259
2276
 
@@ -2283,7 +2300,7 @@ ___
2283
2300
 
2284
2301
  #### Defined in
2285
2302
 
2286
- [omit.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/omit.ts#L4)
2303
+ [omit.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/omit.ts#L4)
2287
2304
 
2288
2305
  ___
2289
2306
 
@@ -2307,7 +2324,7 @@ ___
2307
2324
 
2308
2325
  #### Defined in
2309
2326
 
2310
- [padding.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/padding.ts#L7)
2327
+ [padding.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/padding.ts#L7)
2311
2328
 
2312
2329
  ___
2313
2330
 
@@ -2329,7 +2346,7 @@ ___
2329
2346
 
2330
2347
  #### Defined in
2331
2348
 
2332
- [parseDate.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/parseDate.ts#L4)
2349
+ [parseDate.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/parseDate.ts#L4)
2333
2350
 
2334
2351
  ___
2335
2352
 
@@ -2352,7 +2369,7 @@ ___
2352
2369
 
2353
2370
  #### Defined in
2354
2371
 
2355
- [parseError.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/parseError.ts#L8)
2372
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/parseError.ts#L8)
2356
2373
 
2357
2374
  ___
2358
2375
 
@@ -2382,7 +2399,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2382
2399
 
2383
2400
  #### Defined in
2384
2401
 
2385
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/parseObject.ts#L5)
2402
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/parseObject.ts#L5)
2386
2403
 
2387
2404
  ___
2388
2405
 
@@ -2411,7 +2428,7 @@ ___
2411
2428
 
2412
2429
  #### Defined in
2413
2430
 
2414
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/parsePath.ts#L6)
2431
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/parsePath.ts#L6)
2415
2432
 
2416
2433
  ___
2417
2434
 
@@ -2434,7 +2451,7 @@ ___
2434
2451
 
2435
2452
  #### Defined in
2436
2453
 
2437
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/parseQuery.ts#L8)
2454
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/parseQuery.ts#L8)
2438
2455
 
2439
2456
  ___
2440
2457
 
@@ -2457,7 +2474,7 @@ pascalCase('hello-world') => HelloWorld
2457
2474
 
2458
2475
  #### Defined in
2459
2476
 
2460
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/pascalCase.ts#L8)
2477
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/pascalCase.ts#L8)
2461
2478
 
2462
2479
  ___
2463
2480
 
@@ -2487,7 +2504,7 @@ ___
2487
2504
 
2488
2505
  #### Defined in
2489
2506
 
2490
- [pick.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/pick.ts#L4)
2507
+ [pick.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/pick.ts#L4)
2491
2508
 
2492
2509
  ___
2493
2510
 
@@ -2510,7 +2527,7 @@ ___
2510
2527
 
2511
2528
  #### Defined in
2512
2529
 
2513
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/replaceCrlf.ts#L4)
2530
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/replaceCrlf.ts#L4)
2514
2531
 
2515
2532
  ___
2516
2533
 
@@ -2534,7 +2551,7 @@ ___
2534
2551
 
2535
2552
  #### Defined in
2536
2553
 
2537
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/requestFullScreen.ts#L6)
2554
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/requestFullScreen.ts#L6)
2538
2555
 
2539
2556
  ___
2540
2557
 
@@ -2560,7 +2577,7 @@ reserve(0, '--') => 0
2560
2577
 
2561
2578
  #### Defined in
2562
2579
 
2563
- [reserve.ts:8](https://github.com/daysnap/utils/blob/a80f0a1/src/reserve.ts#L8)
2580
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/3bb201f/src/reserve.ts#L8)
2564
2581
 
2565
2582
  ___
2566
2583
 
@@ -2584,7 +2601,7 @@ ___
2584
2601
 
2585
2602
  #### Defined in
2586
2603
 
2587
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/rgbToHex.ts#L4)
2604
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/rgbToHex.ts#L4)
2588
2605
 
2589
2606
  ___
2590
2607
 
@@ -2607,7 +2624,7 @@ ___
2607
2624
 
2608
2625
  #### Defined in
2609
2626
 
2610
- [round.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/round.ts#L6)
2627
+ [round.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/round.ts#L6)
2611
2628
 
2612
2629
  ___
2613
2630
 
@@ -2623,7 +2640,7 @@ ___
2623
2640
 
2624
2641
  #### Defined in
2625
2642
 
2626
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/scrollToTop.ts#L4)
2643
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/scrollToTop.ts#L4)
2627
2644
 
2628
2645
  ___
2629
2646
 
@@ -2646,7 +2663,7 @@ ___
2646
2663
 
2647
2664
  #### Defined in
2648
2665
 
2649
- [sleep.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/sleep.ts#L6)
2666
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/sleep.ts#L6)
2650
2667
 
2651
2668
  ___
2652
2669
 
@@ -2675,7 +2692,7 @@ ___
2675
2692
 
2676
2693
  #### Defined in
2677
2694
 
2678
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/splitArray.ts#L4)
2695
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/splitArray.ts#L4)
2679
2696
 
2680
2697
  ___
2681
2698
 
@@ -2698,7 +2715,7 @@ ___
2698
2715
 
2699
2716
  #### Defined in
2700
2717
 
2701
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/stringTrim.ts#L6)
2718
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/stringTrim.ts#L6)
2702
2719
 
2703
2720
  ___
2704
2721
 
@@ -2720,7 +2737,7 @@ ___
2720
2737
 
2721
2738
  #### Defined in
2722
2739
 
2723
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/a80f0a1/src/stringifyQuery.ts#L7)
2740
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/3bb201f/src/stringifyQuery.ts#L7)
2724
2741
 
2725
2742
  ___
2726
2743
 
@@ -2764,7 +2781,7 @@ ___
2764
2781
 
2765
2782
  #### Defined in
2766
2783
 
2767
- [throttle.ts:48](https://github.com/daysnap/utils/blob/a80f0a1/src/throttle.ts#L48)
2784
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/3bb201f/src/throttle.ts#L48)
2768
2785
 
2769
2786
  ___
2770
2787
 
@@ -2807,7 +2824,7 @@ ___
2807
2824
 
2808
2825
  #### Defined in
2809
2826
 
2810
- [throttle.ts:5](https://github.com/daysnap/utils/blob/a80f0a1/src/throttle.ts#L5)
2827
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/3bb201f/src/throttle.ts#L5)
2811
2828
 
2812
2829
  ___
2813
2830
 
@@ -2850,7 +2867,7 @@ ___
2850
2867
 
2851
2868
  #### Defined in
2852
2869
 
2853
- [throttle.ts:25](https://github.com/daysnap/utils/blob/a80f0a1/src/throttle.ts#L25)
2870
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/3bb201f/src/throttle.ts#L25)
2854
2871
 
2855
2872
  ___
2856
2873
 
@@ -2872,7 +2889,7 @@ ___
2872
2889
 
2873
2890
  #### Defined in
2874
2891
 
2875
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/toCDB.ts#L4)
2892
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/toCDB.ts#L4)
2876
2893
 
2877
2894
  ___
2878
2895
 
@@ -2894,7 +2911,7 @@ ___
2894
2911
 
2895
2912
  #### Defined in
2896
2913
 
2897
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/a80f0a1/src/toDBC.ts#L4)
2914
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/toDBC.ts#L4)
2898
2915
 
2899
2916
  ___
2900
2917
 
@@ -2918,7 +2935,7 @@ ___
2918
2935
 
2919
2936
  #### Defined in
2920
2937
 
2921
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/a80f0a1/src/typeOf.ts#L6)
2938
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/3bb201f/src/typeOf.ts#L6)
2922
2939
 
2923
2940
  ___
2924
2941
 
@@ -2947,4 +2964,4 @@ ___
2947
2964
 
2948
2965
  #### Defined in
2949
2966
 
2950
- withPreventConsecutiveClicks.ts:4
2967
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/3bb201f/src/withPreventConsecutiveClicks.ts#L4)
package/es/index.d.ts CHANGED
@@ -69,14 +69,15 @@ 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';
77
77
  export * from './kebabCase';
78
78
  export * from './listGenerator';
79
79
  export * from './mousewheel';
80
+ export * from './nf';
80
81
  export * from './normalizePath';
81
82
  export * from './omit';
82
83
  export * from './padding';
package/es/index.js CHANGED
@@ -70,14 +70,15 @@ 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';
78
78
  export * from './kebabCase';
79
79
  export * from './listGenerator';
80
80
  export * from './mousewheel';
81
+ export * from './nf';
81
82
  export * from './normalizePath';
82
83
  export * from './omit';
83
84
  export * from './padding';
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/es/nf.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 空函数
3
+ */
4
+ export declare function nf(): void;
package/es/nf.js ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 空函数
3
+ */
4
+ export function nf() {
5
+ // 空函数
6
+ }
package/lib/index.d.ts CHANGED
@@ -69,14 +69,15 @@ 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';
77
77
  export * from './kebabCase';
78
78
  export * from './listGenerator';
79
79
  export * from './mousewheel';
80
+ export * from './nf';
80
81
  export * from './normalizePath';
81
82
  export * from './omit';
82
83
  export * from './padding';
package/lib/index.js CHANGED
@@ -86,14 +86,15 @@ __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);
94
94
  __exportStar(require("./kebabCase"), exports);
95
95
  __exportStar(require("./listGenerator"), exports);
96
96
  __exportStar(require("./mousewheel"), exports);
97
+ __exportStar(require("./nf"), exports);
97
98
  __exportStar(require("./normalizePath"), exports);
98
99
  __exportStar(require("./omit"), exports);
99
100
  __exportStar(require("./padding"), 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/lib/nf.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 空函数
3
+ */
4
+ export declare function nf(): void;
package/lib/nf.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nf = void 0;
4
+ /**
5
+ * 空函数
6
+ */
7
+ function nf() {
8
+ // 空函数
9
+ }
10
+ exports.nf = nf;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daysnap/utils",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
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;