@daysnap/utils 0.0.83 → 0.0.85
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/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +188 -115
- package/es/index.d.ts +3 -0
- package/es/index.js +3 -0
- package/es/nf.d.ts +4 -0
- package/es/nf.js +6 -0
- package/es/parseQueryString.d.ts +6 -0
- package/es/parseQueryString.js +14 -0
- package/es/stringifyQueryString.d.ts +6 -0
- package/es/stringifyQueryString.js +13 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/nf.d.ts +4 -0
- package/lib/nf.js +10 -0
- package/lib/parseQueryString.d.ts +6 -0
- package/lib/parseQueryString.js +18 -0
- package/lib/stringifyQueryString.d.ts +6 -0
- package/lib/stringifyQueryString.js +17 -0
- package/package.json +1 -1
package/docs/modules.md
CHANGED
|
@@ -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)
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
- [parseObject](modules.md#parseobject)
|
|
108
109
|
- [parsePath](modules.md#parsepath)
|
|
109
110
|
- [parseQuery](modules.md#parsequery)
|
|
111
|
+
- [parseQueryString](modules.md#parsequerystring)
|
|
110
112
|
- [pascalCase](modules.md#pascalcase)
|
|
111
113
|
- [pick](modules.md#pick)
|
|
112
114
|
- [replaceCrlf](modules.md#replacecrlf)
|
|
@@ -119,6 +121,7 @@
|
|
|
119
121
|
- [splitArray](modules.md#splitarray)
|
|
120
122
|
- [stringTrim](modules.md#stringtrim)
|
|
121
123
|
- [stringifyQuery](modules.md#stringifyquery)
|
|
124
|
+
- [stringifyQueryString](modules.md#stringifyquerystring)
|
|
122
125
|
- [throttle](modules.md#throttle)
|
|
123
126
|
- [throttleLeading](modules.md#throttleleading)
|
|
124
127
|
- [throttleTrailing](modules.md#throttletrailing)
|
|
@@ -135,7 +138,7 @@
|
|
|
135
138
|
|
|
136
139
|
#### Defined in
|
|
137
140
|
|
|
138
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
141
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/9b0669b/src/trap.ts#L15)
|
|
139
142
|
|
|
140
143
|
## Functions
|
|
141
144
|
|
|
@@ -173,7 +176,7 @@ res = { '1': '男', '2': '女' }
|
|
|
173
176
|
|
|
174
177
|
#### Defined in
|
|
175
178
|
|
|
176
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
179
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/9b0669b/src/ato.ts#L12)
|
|
177
180
|
|
|
178
181
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
179
182
|
|
|
@@ -198,7 +201,7 @@ res = { '1': '男', '2': '女' }
|
|
|
198
201
|
|
|
199
202
|
#### Defined in
|
|
200
203
|
|
|
201
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
204
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/9b0669b/src/ato.ts#L16)
|
|
202
205
|
|
|
203
206
|
___
|
|
204
207
|
|
|
@@ -221,7 +224,7 @@ base64 转 blob
|
|
|
221
224
|
|
|
222
225
|
#### Defined in
|
|
223
226
|
|
|
224
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
227
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/base64ToBlob.ts#L6)
|
|
225
228
|
|
|
226
229
|
___
|
|
227
230
|
|
|
@@ -243,7 +246,7 @@ blob 转 base64
|
|
|
243
246
|
|
|
244
247
|
#### Defined in
|
|
245
248
|
|
|
246
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
249
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/blobToBase64.ts#L4)
|
|
247
250
|
|
|
248
251
|
___
|
|
249
252
|
|
|
@@ -284,7 +287,7 @@ ___
|
|
|
284
287
|
|
|
285
288
|
#### Defined in
|
|
286
289
|
|
|
287
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
290
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/cached.ts#L5)
|
|
288
291
|
|
|
289
292
|
___
|
|
290
293
|
|
|
@@ -307,7 +310,7 @@ camelCase('hello-world') => helloWorld
|
|
|
307
310
|
|
|
308
311
|
#### Defined in
|
|
309
312
|
|
|
310
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
313
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/camelCase.ts#L5)
|
|
311
314
|
|
|
312
315
|
___
|
|
313
316
|
|
|
@@ -331,7 +334,7 @@ canvas 转 blob 文件
|
|
|
331
334
|
|
|
332
335
|
#### Defined in
|
|
333
336
|
|
|
334
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
337
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/canvasToBlob.ts#L4)
|
|
335
338
|
|
|
336
339
|
___
|
|
337
340
|
|
|
@@ -354,7 +357,7 @@ capitalize('hello world') => Hello world
|
|
|
354
357
|
|
|
355
358
|
#### Defined in
|
|
356
359
|
|
|
357
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
360
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/capitalize.ts#L5)
|
|
358
361
|
|
|
359
362
|
___
|
|
360
363
|
|
|
@@ -378,7 +381,7 @@ ___
|
|
|
378
381
|
|
|
379
382
|
#### Defined in
|
|
380
383
|
|
|
381
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
384
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/clamp.ts#L7)
|
|
382
385
|
|
|
383
386
|
___
|
|
384
387
|
|
|
@@ -406,7 +409,7 @@ ___
|
|
|
406
409
|
|
|
407
410
|
#### Defined in
|
|
408
411
|
|
|
409
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
412
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/clone.ts#L8)
|
|
410
413
|
|
|
411
414
|
___
|
|
412
415
|
|
|
@@ -434,7 +437,7 @@ ___
|
|
|
434
437
|
|
|
435
438
|
#### Defined in
|
|
436
439
|
|
|
437
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
440
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/cloneSimple.ts#L7)
|
|
438
441
|
|
|
439
442
|
___
|
|
440
443
|
|
|
@@ -456,7 +459,7 @@ ___
|
|
|
456
459
|
|
|
457
460
|
#### Defined in
|
|
458
461
|
|
|
459
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
462
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/createHexColorByHash.ts#L4)
|
|
460
463
|
|
|
461
464
|
___
|
|
462
465
|
|
|
@@ -482,7 +485,7 @@ ___
|
|
|
482
485
|
|
|
483
486
|
#### Defined in
|
|
484
487
|
|
|
485
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
488
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/9b0669b/src/compareVersion.ts#L9)
|
|
486
489
|
|
|
487
490
|
___
|
|
488
491
|
|
|
@@ -504,7 +507,7 @@ ___
|
|
|
504
507
|
|
|
505
508
|
#### Defined in
|
|
506
509
|
|
|
507
|
-
[compressImage.ts:6](https://github.com/daysnap/utils/blob/
|
|
510
|
+
[compressImage.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/compressImage.ts#L6)
|
|
508
511
|
|
|
509
512
|
___
|
|
510
513
|
|
|
@@ -542,7 +545,7 @@ ___
|
|
|
542
545
|
|
|
543
546
|
#### Defined in
|
|
544
547
|
|
|
545
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
548
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/9b0669b/src/createLinearFunction.ts#L9)
|
|
546
549
|
|
|
547
550
|
___
|
|
548
551
|
|
|
@@ -574,7 +577,7 @@ ___
|
|
|
574
577
|
|
|
575
578
|
#### Defined in
|
|
576
579
|
|
|
577
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
580
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/9b0669b/src/trap.ts#L49)
|
|
578
581
|
|
|
579
582
|
___
|
|
580
583
|
|
|
@@ -637,7 +640,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
637
640
|
|
|
638
641
|
#### Defined in
|
|
639
642
|
|
|
640
|
-
[createWithLoading.ts:9](https://github.com/daysnap/utils/blob/
|
|
643
|
+
[createWithLoading.ts:9](https://github.com/daysnap/utils/blob/9b0669b/src/createWithLoading.ts#L9)
|
|
641
644
|
|
|
642
645
|
___
|
|
643
646
|
|
|
@@ -680,7 +683,7 @@ ___
|
|
|
680
683
|
|
|
681
684
|
#### Defined in
|
|
682
685
|
|
|
683
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
686
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/debounce.ts#L5)
|
|
684
687
|
|
|
685
688
|
___
|
|
686
689
|
|
|
@@ -704,7 +707,7 @@ ___
|
|
|
704
707
|
|
|
705
708
|
#### Defined in
|
|
706
709
|
|
|
707
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
710
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/downloadFile.ts#L4)
|
|
708
711
|
|
|
709
712
|
___
|
|
710
713
|
|
|
@@ -733,7 +736,7 @@ ___
|
|
|
733
736
|
|
|
734
737
|
#### Defined in
|
|
735
738
|
|
|
736
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
739
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/each.ts#L4)
|
|
737
740
|
|
|
738
741
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
739
742
|
|
|
@@ -756,7 +759,7 @@ ___
|
|
|
756
759
|
|
|
757
760
|
#### Defined in
|
|
758
761
|
|
|
759
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
762
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/each.ts#L8)
|
|
760
763
|
|
|
761
764
|
___
|
|
762
765
|
|
|
@@ -774,7 +777,7 @@ ___
|
|
|
774
777
|
|
|
775
778
|
#### Defined in
|
|
776
779
|
|
|
777
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
780
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/exitFullscreen.ts#L6)
|
|
778
781
|
|
|
779
782
|
___
|
|
780
783
|
|
|
@@ -803,7 +806,7 @@ ___
|
|
|
803
806
|
|
|
804
807
|
#### Defined in
|
|
805
808
|
|
|
806
|
-
[storage/factory.ts:8](https://github.com/daysnap/utils/blob/
|
|
809
|
+
[storage/factory.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/storage/factory.ts#L8)
|
|
807
810
|
|
|
808
811
|
___
|
|
809
812
|
|
|
@@ -825,7 +828,7 @@ ___
|
|
|
825
828
|
|
|
826
829
|
#### Defined in
|
|
827
830
|
|
|
828
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
831
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/filterBankCardNo.ts#L4)
|
|
829
832
|
|
|
830
833
|
___
|
|
831
834
|
|
|
@@ -847,7 +850,7 @@ ___
|
|
|
847
850
|
|
|
848
851
|
#### Defined in
|
|
849
852
|
|
|
850
|
-
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/
|
|
853
|
+
[filterCRLF.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/filterCRLF.ts#L4)
|
|
851
854
|
|
|
852
855
|
___
|
|
853
856
|
|
|
@@ -869,7 +872,7 @@ ___
|
|
|
869
872
|
|
|
870
873
|
#### Defined in
|
|
871
874
|
|
|
872
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
875
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/filterEmoji.ts#L4)
|
|
873
876
|
|
|
874
877
|
___
|
|
875
878
|
|
|
@@ -892,7 +895,7 @@ ___
|
|
|
892
895
|
|
|
893
896
|
#### Defined in
|
|
894
897
|
|
|
895
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
898
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/9b0669b/src/filterEmptyValue.ts#L12)
|
|
896
899
|
|
|
897
900
|
___
|
|
898
901
|
|
|
@@ -915,7 +918,7 @@ ___
|
|
|
915
918
|
|
|
916
919
|
#### Defined in
|
|
917
920
|
|
|
918
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
921
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/filterIdCard.ts#L5)
|
|
919
922
|
|
|
920
923
|
___
|
|
921
924
|
|
|
@@ -937,7 +940,7 @@ ___
|
|
|
937
940
|
|
|
938
941
|
#### Defined in
|
|
939
942
|
|
|
940
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
943
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/filterName.ts#L4)
|
|
941
944
|
|
|
942
945
|
___
|
|
943
946
|
|
|
@@ -962,7 +965,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
962
965
|
|
|
963
966
|
#### Defined in
|
|
964
967
|
|
|
965
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
968
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/filterPhone.ts#L6)
|
|
966
969
|
|
|
967
970
|
___
|
|
968
971
|
|
|
@@ -989,7 +992,7 @@ str = '131****8888'
|
|
|
989
992
|
|
|
990
993
|
#### Defined in
|
|
991
994
|
|
|
992
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
995
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/filterString.ts#L6)
|
|
993
996
|
|
|
994
997
|
___
|
|
995
998
|
|
|
@@ -1012,7 +1015,7 @@ ___
|
|
|
1012
1015
|
|
|
1013
1016
|
#### Defined in
|
|
1014
1017
|
|
|
1015
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1018
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/formatAmount.ts#L4)
|
|
1016
1019
|
|
|
1017
1020
|
___
|
|
1018
1021
|
|
|
@@ -1036,7 +1039,7 @@ ___
|
|
|
1036
1039
|
|
|
1037
1040
|
#### Defined in
|
|
1038
1041
|
|
|
1039
|
-
[formatDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
1042
|
+
[formatDate.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/formatDate.ts#L8)
|
|
1040
1043
|
|
|
1041
1044
|
___
|
|
1042
1045
|
|
|
@@ -1059,7 +1062,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1059
1062
|
|
|
1060
1063
|
#### Defined in
|
|
1061
1064
|
|
|
1062
|
-
[formatDateStr.ts:5](https://github.com/daysnap/utils/blob/
|
|
1065
|
+
[formatDateStr.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/formatDateStr.ts#L5)
|
|
1063
1066
|
|
|
1064
1067
|
___
|
|
1065
1068
|
|
|
@@ -1079,7 +1082,7 @@ ___
|
|
|
1079
1082
|
|
|
1080
1083
|
#### Defined in
|
|
1081
1084
|
|
|
1082
|
-
[formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/
|
|
1085
|
+
[formartDateToZN.ts:3](https://github.com/daysnap/utils/blob/9b0669b/src/formartDateToZN.ts#L3)
|
|
1083
1086
|
|
|
1084
1087
|
___
|
|
1085
1088
|
|
|
@@ -1104,7 +1107,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1104
1107
|
|
|
1105
1108
|
#### Defined in
|
|
1106
1109
|
|
|
1107
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1110
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/9b0669b/src/formatMessage.ts#L11)
|
|
1108
1111
|
|
|
1109
1112
|
___
|
|
1110
1113
|
|
|
@@ -1136,7 +1139,7 @@ rest = { xxx: 1 }
|
|
|
1136
1139
|
|
|
1137
1140
|
#### Defined in
|
|
1138
1141
|
|
|
1139
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1142
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/formatPathParams.ts#L8)
|
|
1140
1143
|
|
|
1141
1144
|
___
|
|
1142
1145
|
|
|
@@ -1158,7 +1161,7 @@ ___
|
|
|
1158
1161
|
|
|
1159
1162
|
#### Defined in
|
|
1160
1163
|
|
|
1161
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1164
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/getBlobByUrl.ts#L4)
|
|
1162
1165
|
|
|
1163
1166
|
___
|
|
1164
1167
|
|
|
@@ -1181,7 +1184,7 @@ ___
|
|
|
1181
1184
|
|
|
1182
1185
|
#### Defined in
|
|
1183
1186
|
|
|
1184
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1187
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/9b0669b/src/storage/index.ts#L9)
|
|
1185
1188
|
|
|
1186
1189
|
___
|
|
1187
1190
|
|
|
@@ -1203,7 +1206,7 @@ ___
|
|
|
1203
1206
|
|
|
1204
1207
|
#### Defined in
|
|
1205
1208
|
|
|
1206
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1209
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/getDayMillisecond.ts#L4)
|
|
1207
1210
|
|
|
1208
1211
|
___
|
|
1209
1212
|
|
|
@@ -1225,7 +1228,7 @@ ___
|
|
|
1225
1228
|
|
|
1226
1229
|
#### Defined in
|
|
1227
1230
|
|
|
1228
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1231
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/getImageInfo.ts#L4)
|
|
1229
1232
|
|
|
1230
1233
|
___
|
|
1231
1234
|
|
|
@@ -1248,7 +1251,7 @@ ___
|
|
|
1248
1251
|
|
|
1249
1252
|
#### Defined in
|
|
1250
1253
|
|
|
1251
|
-
[storage/index.ts:9](https://github.com/daysnap/utils/blob/
|
|
1254
|
+
[storage/index.ts:9](https://github.com/daysnap/utils/blob/9b0669b/src/storage/index.ts#L9)
|
|
1252
1255
|
|
|
1253
1256
|
___
|
|
1254
1257
|
|
|
@@ -1271,7 +1274,7 @@ ___
|
|
|
1271
1274
|
|
|
1272
1275
|
#### Defined in
|
|
1273
1276
|
|
|
1274
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1277
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/getRandom.ts#L7)
|
|
1275
1278
|
|
|
1276
1279
|
___
|
|
1277
1280
|
|
|
@@ -1287,7 +1290,7 @@ ___
|
|
|
1287
1290
|
|
|
1288
1291
|
#### Defined in
|
|
1289
1292
|
|
|
1290
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1293
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/getRandomColor.ts#L4)
|
|
1291
1294
|
|
|
1292
1295
|
___
|
|
1293
1296
|
|
|
@@ -1309,7 +1312,7 @@ ___
|
|
|
1309
1312
|
|
|
1310
1313
|
#### Defined in
|
|
1311
1314
|
|
|
1312
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1315
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/getRandomNumber.ts#L7)
|
|
1313
1316
|
|
|
1314
1317
|
___
|
|
1315
1318
|
|
|
@@ -1331,7 +1334,7 @@ ___
|
|
|
1331
1334
|
|
|
1332
1335
|
#### Defined in
|
|
1333
1336
|
|
|
1334
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1337
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/getVideoInfo.ts#L4)
|
|
1335
1338
|
|
|
1336
1339
|
___
|
|
1337
1340
|
|
|
@@ -1347,7 +1350,7 @@ ___
|
|
|
1347
1350
|
|
|
1348
1351
|
#### Defined in
|
|
1349
1352
|
|
|
1350
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1353
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/inBrowser.ts#L4)
|
|
1351
1354
|
|
|
1352
1355
|
___
|
|
1353
1356
|
|
|
@@ -1369,7 +1372,7 @@ ___
|
|
|
1369
1372
|
|
|
1370
1373
|
#### Defined in
|
|
1371
1374
|
|
|
1372
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1375
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/insertLink.ts#L4)
|
|
1373
1376
|
|
|
1374
1377
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1375
1378
|
|
|
@@ -1386,7 +1389,7 @@ ___
|
|
|
1386
1389
|
|
|
1387
1390
|
#### Defined in
|
|
1388
1391
|
|
|
1389
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1392
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/insertLink.ts#L5)
|
|
1390
1393
|
|
|
1391
1394
|
___
|
|
1392
1395
|
|
|
@@ -1408,7 +1411,7 @@ ___
|
|
|
1408
1411
|
|
|
1409
1412
|
#### Defined in
|
|
1410
1413
|
|
|
1411
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1414
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/insertScript.ts#L4)
|
|
1412
1415
|
|
|
1413
1416
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1414
1417
|
|
|
@@ -1425,7 +1428,7 @@ ___
|
|
|
1425
1428
|
|
|
1426
1429
|
#### Defined in
|
|
1427
1430
|
|
|
1428
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1431
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/insertScript.ts#L5)
|
|
1429
1432
|
|
|
1430
1433
|
___
|
|
1431
1434
|
|
|
@@ -1447,7 +1450,7 @@ ___
|
|
|
1447
1450
|
|
|
1448
1451
|
#### Defined in
|
|
1449
1452
|
|
|
1450
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1453
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/insertStyle.ts#L4)
|
|
1451
1454
|
|
|
1452
1455
|
___
|
|
1453
1456
|
|
|
@@ -1476,7 +1479,7 @@ isAmount('1.123') => false
|
|
|
1476
1479
|
|
|
1477
1480
|
#### Defined in
|
|
1478
1481
|
|
|
1479
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1482
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/9b0669b/src/isAmount.ts#L11)
|
|
1480
1483
|
|
|
1481
1484
|
___
|
|
1482
1485
|
|
|
@@ -1492,7 +1495,7 @@ ___
|
|
|
1492
1495
|
|
|
1493
1496
|
#### Defined in
|
|
1494
1497
|
|
|
1495
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
1498
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isAndroid.ts#L4)
|
|
1496
1499
|
|
|
1497
1500
|
___
|
|
1498
1501
|
|
|
@@ -1516,7 +1519,7 @@ val is any[]
|
|
|
1516
1519
|
|
|
1517
1520
|
#### Defined in
|
|
1518
1521
|
|
|
1519
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1522
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/isArray.ts#L6)
|
|
1520
1523
|
|
|
1521
1524
|
___
|
|
1522
1525
|
|
|
@@ -1538,7 +1541,7 @@ val is boolean
|
|
|
1538
1541
|
|
|
1539
1542
|
#### Defined in
|
|
1540
1543
|
|
|
1541
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
1544
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/isBoolean.ts#L5)
|
|
1542
1545
|
|
|
1543
1546
|
___
|
|
1544
1547
|
|
|
@@ -1560,7 +1563,7 @@ ___
|
|
|
1560
1563
|
|
|
1561
1564
|
#### Defined in
|
|
1562
1565
|
|
|
1563
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
1566
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isChinese.ts#L4)
|
|
1564
1567
|
|
|
1565
1568
|
___
|
|
1566
1569
|
|
|
@@ -1582,7 +1585,7 @@ val is Date
|
|
|
1582
1585
|
|
|
1583
1586
|
#### Defined in
|
|
1584
1587
|
|
|
1585
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1588
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isDate.ts#L4)
|
|
1586
1589
|
|
|
1587
1590
|
___
|
|
1588
1591
|
|
|
@@ -1604,7 +1607,7 @@ ___
|
|
|
1604
1607
|
|
|
1605
1608
|
#### Defined in
|
|
1606
1609
|
|
|
1607
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
1610
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isEmail.ts#L4)
|
|
1608
1611
|
|
|
1609
1612
|
___
|
|
1610
1613
|
|
|
@@ -1626,7 +1629,7 @@ ___
|
|
|
1626
1629
|
|
|
1627
1630
|
#### Defined in
|
|
1628
1631
|
|
|
1629
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
1632
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/isEmpty.ts#L6)
|
|
1630
1633
|
|
|
1631
1634
|
___
|
|
1632
1635
|
|
|
@@ -1648,7 +1651,7 @@ ___
|
|
|
1648
1651
|
|
|
1649
1652
|
#### Defined in
|
|
1650
1653
|
|
|
1651
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
1654
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/isEmptyArray.ts#L6)
|
|
1652
1655
|
|
|
1653
1656
|
___
|
|
1654
1657
|
|
|
@@ -1670,7 +1673,7 @@ ___
|
|
|
1670
1673
|
|
|
1671
1674
|
#### Defined in
|
|
1672
1675
|
|
|
1673
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
1676
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/isEmptyObject.ts#L5)
|
|
1674
1677
|
|
|
1675
1678
|
___
|
|
1676
1679
|
|
|
@@ -1692,7 +1695,7 @@ val is Error
|
|
|
1692
1695
|
|
|
1693
1696
|
#### Defined in
|
|
1694
1697
|
|
|
1695
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
1698
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isError.ts#L4)
|
|
1696
1699
|
|
|
1697
1700
|
___
|
|
1698
1701
|
|
|
@@ -1714,7 +1717,7 @@ val is Function
|
|
|
1714
1717
|
|
|
1715
1718
|
#### Defined in
|
|
1716
1719
|
|
|
1717
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
1720
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isFunction.ts#L4)
|
|
1718
1721
|
|
|
1719
1722
|
___
|
|
1720
1723
|
|
|
@@ -1732,7 +1735,7 @@ ___
|
|
|
1732
1735
|
|
|
1733
1736
|
#### Defined in
|
|
1734
1737
|
|
|
1735
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
1738
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/isIE.ts#L6)
|
|
1736
1739
|
|
|
1737
1740
|
___
|
|
1738
1741
|
|
|
@@ -1748,7 +1751,7 @@ ___
|
|
|
1748
1751
|
|
|
1749
1752
|
#### Defined in
|
|
1750
1753
|
|
|
1751
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
1754
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isIOS.ts#L4)
|
|
1752
1755
|
|
|
1753
1756
|
___
|
|
1754
1757
|
|
|
@@ -1770,7 +1773,7 @@ ___
|
|
|
1770
1773
|
|
|
1771
1774
|
#### Defined in
|
|
1772
1775
|
|
|
1773
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
1776
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isIdCard.ts#L4)
|
|
1774
1777
|
|
|
1775
1778
|
___
|
|
1776
1779
|
|
|
@@ -1792,7 +1795,7 @@ ___
|
|
|
1792
1795
|
|
|
1793
1796
|
#### Defined in
|
|
1794
1797
|
|
|
1795
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
1798
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/isJSONString.ts#L7)
|
|
1796
1799
|
|
|
1797
1800
|
___
|
|
1798
1801
|
|
|
@@ -1814,7 +1817,7 @@ ___
|
|
|
1814
1817
|
|
|
1815
1818
|
#### Defined in
|
|
1816
1819
|
|
|
1817
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
1820
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/isLan.ts#L5)
|
|
1818
1821
|
|
|
1819
1822
|
___
|
|
1820
1823
|
|
|
@@ -1836,7 +1839,7 @@ ___
|
|
|
1836
1839
|
|
|
1837
1840
|
#### Defined in
|
|
1838
1841
|
|
|
1839
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
1842
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/isLicenseCode.ts#L5)
|
|
1840
1843
|
|
|
1841
1844
|
___
|
|
1842
1845
|
|
|
@@ -1852,7 +1855,7 @@ ___
|
|
|
1852
1855
|
|
|
1853
1856
|
#### Defined in
|
|
1854
1857
|
|
|
1855
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
1858
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isMobile.ts#L4)
|
|
1856
1859
|
|
|
1857
1860
|
___
|
|
1858
1861
|
|
|
@@ -1875,7 +1878,7 @@ ___
|
|
|
1875
1878
|
|
|
1876
1879
|
#### Defined in
|
|
1877
1880
|
|
|
1878
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
1881
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/isNativeFunction.ts#L7)
|
|
1879
1882
|
|
|
1880
1883
|
___
|
|
1881
1884
|
|
|
@@ -1897,7 +1900,7 @@ val is null
|
|
|
1897
1900
|
|
|
1898
1901
|
#### Defined in
|
|
1899
1902
|
|
|
1900
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
1903
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isNull.ts#L4)
|
|
1901
1904
|
|
|
1902
1905
|
___
|
|
1903
1906
|
|
|
@@ -1919,7 +1922,7 @@ val is number
|
|
|
1919
1922
|
|
|
1920
1923
|
#### Defined in
|
|
1921
1924
|
|
|
1922
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
1925
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/isNumber.ts#L5)
|
|
1923
1926
|
|
|
1924
1927
|
___
|
|
1925
1928
|
|
|
@@ -1941,7 +1944,7 @@ val is Record<string, any\>
|
|
|
1941
1944
|
|
|
1942
1945
|
#### Defined in
|
|
1943
1946
|
|
|
1944
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
1947
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isObject.ts#L4)
|
|
1945
1948
|
|
|
1946
1949
|
___
|
|
1947
1950
|
|
|
@@ -1963,7 +1966,7 @@ ___
|
|
|
1963
1966
|
|
|
1964
1967
|
#### Defined in
|
|
1965
1968
|
|
|
1966
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
1969
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isPhone.ts#L4)
|
|
1967
1970
|
|
|
1968
1971
|
___
|
|
1969
1972
|
|
|
@@ -1991,7 +1994,7 @@ val is Promise<T\>
|
|
|
1991
1994
|
|
|
1992
1995
|
#### Defined in
|
|
1993
1996
|
|
|
1994
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
1997
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isPromise.ts#L4)
|
|
1995
1998
|
|
|
1996
1999
|
___
|
|
1997
2000
|
|
|
@@ -2013,7 +2016,7 @@ val is RegExp
|
|
|
2013
2016
|
|
|
2014
2017
|
#### Defined in
|
|
2015
2018
|
|
|
2016
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2019
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isRegExp.ts#L4)
|
|
2017
2020
|
|
|
2018
2021
|
___
|
|
2019
2022
|
|
|
@@ -2035,7 +2038,7 @@ val is string
|
|
|
2035
2038
|
|
|
2036
2039
|
#### Defined in
|
|
2037
2040
|
|
|
2038
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2041
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isString.ts#L4)
|
|
2039
2042
|
|
|
2040
2043
|
___
|
|
2041
2044
|
|
|
@@ -2057,7 +2060,7 @@ val is undefined
|
|
|
2057
2060
|
|
|
2058
2061
|
#### Defined in
|
|
2059
2062
|
|
|
2060
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2063
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isUndefined.ts#L4)
|
|
2061
2064
|
|
|
2062
2065
|
___
|
|
2063
2066
|
|
|
@@ -2095,7 +2098,7 @@ ___
|
|
|
2095
2098
|
|
|
2096
2099
|
#### Defined in
|
|
2097
2100
|
|
|
2098
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2101
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/isWeChat.ts#L4)
|
|
2099
2102
|
|
|
2100
2103
|
___
|
|
2101
2104
|
|
|
@@ -2112,7 +2115,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2112
2115
|
|
|
2113
2116
|
#### Defined in
|
|
2114
2117
|
|
|
2115
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2118
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/isWeChatMiniProgram.ts#L5)
|
|
2116
2119
|
|
|
2117
2120
|
___
|
|
2118
2121
|
|
|
@@ -2132,7 +2135,7 @@ ___
|
|
|
2132
2135
|
|
|
2133
2136
|
#### Defined in
|
|
2134
2137
|
|
|
2135
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2138
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/9b0669b/src/isWeChat.ts#L12)
|
|
2136
2139
|
|
|
2137
2140
|
___
|
|
2138
2141
|
|
|
@@ -2154,7 +2157,7 @@ val is Window
|
|
|
2154
2157
|
|
|
2155
2158
|
#### Defined in
|
|
2156
2159
|
|
|
2157
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2160
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/isWindow.ts#L5)
|
|
2158
2161
|
|
|
2159
2162
|
___
|
|
2160
2163
|
|
|
@@ -2177,7 +2180,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2177
2180
|
|
|
2178
2181
|
#### Defined in
|
|
2179
2182
|
|
|
2180
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2183
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/kebabCase.ts#L5)
|
|
2181
2184
|
|
|
2182
2185
|
___
|
|
2183
2186
|
|
|
@@ -2206,7 +2209,7 @@ list 生成器,快速生成数据
|
|
|
2206
2209
|
|
|
2207
2210
|
#### Defined in
|
|
2208
2211
|
|
|
2209
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2212
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/listGenerator.ts#L5)
|
|
2210
2213
|
|
|
2211
2214
|
___
|
|
2212
2215
|
|
|
@@ -2231,7 +2234,23 @@ ___
|
|
|
2231
2234
|
|
|
2232
2235
|
#### Defined in
|
|
2233
2236
|
|
|
2234
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2237
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/9b0669b/src/mousewheel.ts#L22)
|
|
2238
|
+
|
|
2239
|
+
___
|
|
2240
|
+
|
|
2241
|
+
### nf
|
|
2242
|
+
|
|
2243
|
+
▸ **nf**(): `void`
|
|
2244
|
+
|
|
2245
|
+
空函数
|
|
2246
|
+
|
|
2247
|
+
#### Returns
|
|
2248
|
+
|
|
2249
|
+
`void`
|
|
2250
|
+
|
|
2251
|
+
#### Defined in
|
|
2252
|
+
|
|
2253
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/nf.ts#L4)
|
|
2235
2254
|
|
|
2236
2255
|
___
|
|
2237
2256
|
|
|
@@ -2253,7 +2272,7 @@ ___
|
|
|
2253
2272
|
|
|
2254
2273
|
#### Defined in
|
|
2255
2274
|
|
|
2256
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2275
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/normalizePath.ts#L4)
|
|
2257
2276
|
|
|
2258
2277
|
___
|
|
2259
2278
|
|
|
@@ -2283,7 +2302,7 @@ ___
|
|
|
2283
2302
|
|
|
2284
2303
|
#### Defined in
|
|
2285
2304
|
|
|
2286
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2305
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/omit.ts#L4)
|
|
2287
2306
|
|
|
2288
2307
|
___
|
|
2289
2308
|
|
|
@@ -2307,7 +2326,7 @@ ___
|
|
|
2307
2326
|
|
|
2308
2327
|
#### Defined in
|
|
2309
2328
|
|
|
2310
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2329
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/padding.ts#L7)
|
|
2311
2330
|
|
|
2312
2331
|
___
|
|
2313
2332
|
|
|
@@ -2329,7 +2348,7 @@ ___
|
|
|
2329
2348
|
|
|
2330
2349
|
#### Defined in
|
|
2331
2350
|
|
|
2332
|
-
[parseDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
2351
|
+
[parseDate.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/parseDate.ts#L4)
|
|
2333
2352
|
|
|
2334
2353
|
___
|
|
2335
2354
|
|
|
@@ -2352,7 +2371,7 @@ ___
|
|
|
2352
2371
|
|
|
2353
2372
|
#### Defined in
|
|
2354
2373
|
|
|
2355
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
2374
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/parseError.ts#L8)
|
|
2356
2375
|
|
|
2357
2376
|
___
|
|
2358
2377
|
|
|
@@ -2382,7 +2401,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
2382
2401
|
|
|
2383
2402
|
#### Defined in
|
|
2384
2403
|
|
|
2385
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2404
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/parseObject.ts#L5)
|
|
2386
2405
|
|
|
2387
2406
|
___
|
|
2388
2407
|
|
|
@@ -2411,7 +2430,7 @@ ___
|
|
|
2411
2430
|
|
|
2412
2431
|
#### Defined in
|
|
2413
2432
|
|
|
2414
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
2433
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/parsePath.ts#L6)
|
|
2415
2434
|
|
|
2416
2435
|
___
|
|
2417
2436
|
|
|
@@ -2434,7 +2453,37 @@ ___
|
|
|
2434
2453
|
|
|
2435
2454
|
#### Defined in
|
|
2436
2455
|
|
|
2437
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
2456
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/parseQuery.ts#L8)
|
|
2457
|
+
|
|
2458
|
+
___
|
|
2459
|
+
|
|
2460
|
+
### parseQueryString
|
|
2461
|
+
|
|
2462
|
+
▸ **parseQueryString**<`T`\>(`value`): `T`
|
|
2463
|
+
|
|
2464
|
+
解析 url 参数
|
|
2465
|
+
|
|
2466
|
+
在不支持 URLSearchParams 的环境下使用该方法
|
|
2467
|
+
|
|
2468
|
+
#### Type parameters
|
|
2469
|
+
|
|
2470
|
+
| Name | Type |
|
|
2471
|
+
| :------ | :------ |
|
|
2472
|
+
| `T` | extends `Record`<`string`, `any`\> |
|
|
2473
|
+
|
|
2474
|
+
#### Parameters
|
|
2475
|
+
|
|
2476
|
+
| Name | Type |
|
|
2477
|
+
| :------ | :------ |
|
|
2478
|
+
| `value` | `string` |
|
|
2479
|
+
|
|
2480
|
+
#### Returns
|
|
2481
|
+
|
|
2482
|
+
`T`
|
|
2483
|
+
|
|
2484
|
+
#### Defined in
|
|
2485
|
+
|
|
2486
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/parseQueryString.ts#L6)
|
|
2438
2487
|
|
|
2439
2488
|
___
|
|
2440
2489
|
|
|
@@ -2457,7 +2506,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
2457
2506
|
|
|
2458
2507
|
#### Defined in
|
|
2459
2508
|
|
|
2460
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
2509
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/pascalCase.ts#L8)
|
|
2461
2510
|
|
|
2462
2511
|
___
|
|
2463
2512
|
|
|
@@ -2487,7 +2536,7 @@ ___
|
|
|
2487
2536
|
|
|
2488
2537
|
#### Defined in
|
|
2489
2538
|
|
|
2490
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
2539
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/pick.ts#L4)
|
|
2491
2540
|
|
|
2492
2541
|
___
|
|
2493
2542
|
|
|
@@ -2510,7 +2559,7 @@ ___
|
|
|
2510
2559
|
|
|
2511
2560
|
#### Defined in
|
|
2512
2561
|
|
|
2513
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2562
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/replaceCrlf.ts#L4)
|
|
2514
2563
|
|
|
2515
2564
|
___
|
|
2516
2565
|
|
|
@@ -2534,7 +2583,7 @@ ___
|
|
|
2534
2583
|
|
|
2535
2584
|
#### Defined in
|
|
2536
2585
|
|
|
2537
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
2586
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/requestFullScreen.ts#L6)
|
|
2538
2587
|
|
|
2539
2588
|
___
|
|
2540
2589
|
|
|
@@ -2560,7 +2609,7 @@ reserve(0, '--') => 0
|
|
|
2560
2609
|
|
|
2561
2610
|
#### Defined in
|
|
2562
2611
|
|
|
2563
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
2612
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/9b0669b/src/reserve.ts#L8)
|
|
2564
2613
|
|
|
2565
2614
|
___
|
|
2566
2615
|
|
|
@@ -2584,7 +2633,7 @@ ___
|
|
|
2584
2633
|
|
|
2585
2634
|
#### Defined in
|
|
2586
2635
|
|
|
2587
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
2636
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/rgbToHex.ts#L4)
|
|
2588
2637
|
|
|
2589
2638
|
___
|
|
2590
2639
|
|
|
@@ -2607,7 +2656,7 @@ ___
|
|
|
2607
2656
|
|
|
2608
2657
|
#### Defined in
|
|
2609
2658
|
|
|
2610
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
2659
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/round.ts#L6)
|
|
2611
2660
|
|
|
2612
2661
|
___
|
|
2613
2662
|
|
|
@@ -2623,7 +2672,7 @@ ___
|
|
|
2623
2672
|
|
|
2624
2673
|
#### Defined in
|
|
2625
2674
|
|
|
2626
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
2675
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/scrollToTop.ts#L4)
|
|
2627
2676
|
|
|
2628
2677
|
___
|
|
2629
2678
|
|
|
@@ -2646,7 +2695,7 @@ ___
|
|
|
2646
2695
|
|
|
2647
2696
|
#### Defined in
|
|
2648
2697
|
|
|
2649
|
-
[sleep.ts:6](https://github.com/daysnap/utils/blob/
|
|
2698
|
+
[sleep.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/sleep.ts#L6)
|
|
2650
2699
|
|
|
2651
2700
|
___
|
|
2652
2701
|
|
|
@@ -2675,7 +2724,7 @@ ___
|
|
|
2675
2724
|
|
|
2676
2725
|
#### Defined in
|
|
2677
2726
|
|
|
2678
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
2727
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/splitArray.ts#L4)
|
|
2679
2728
|
|
|
2680
2729
|
___
|
|
2681
2730
|
|
|
@@ -2698,7 +2747,7 @@ ___
|
|
|
2698
2747
|
|
|
2699
2748
|
#### Defined in
|
|
2700
2749
|
|
|
2701
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
2750
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/stringTrim.ts#L6)
|
|
2702
2751
|
|
|
2703
2752
|
___
|
|
2704
2753
|
|
|
@@ -2720,7 +2769,31 @@ ___
|
|
|
2720
2769
|
|
|
2721
2770
|
#### Defined in
|
|
2722
2771
|
|
|
2723
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
2772
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/9b0669b/src/stringifyQuery.ts#L7)
|
|
2773
|
+
|
|
2774
|
+
___
|
|
2775
|
+
|
|
2776
|
+
### stringifyQueryString
|
|
2777
|
+
|
|
2778
|
+
▸ **stringifyQueryString**(`value`): `string`
|
|
2779
|
+
|
|
2780
|
+
将对象转换为查询字符串
|
|
2781
|
+
|
|
2782
|
+
在不支持 URLSearchParams 的环境下使用该方法
|
|
2783
|
+
|
|
2784
|
+
#### Parameters
|
|
2785
|
+
|
|
2786
|
+
| Name | Type |
|
|
2787
|
+
| :------ | :------ |
|
|
2788
|
+
| `value` | `Record`<`string`, `any`\> |
|
|
2789
|
+
|
|
2790
|
+
#### Returns
|
|
2791
|
+
|
|
2792
|
+
`string`
|
|
2793
|
+
|
|
2794
|
+
#### Defined in
|
|
2795
|
+
|
|
2796
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/stringifyQueryString.ts#L6)
|
|
2724
2797
|
|
|
2725
2798
|
___
|
|
2726
2799
|
|
|
@@ -2764,7 +2837,7 @@ ___
|
|
|
2764
2837
|
|
|
2765
2838
|
#### Defined in
|
|
2766
2839
|
|
|
2767
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
2840
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/9b0669b/src/throttle.ts#L48)
|
|
2768
2841
|
|
|
2769
2842
|
___
|
|
2770
2843
|
|
|
@@ -2807,7 +2880,7 @@ ___
|
|
|
2807
2880
|
|
|
2808
2881
|
#### Defined in
|
|
2809
2882
|
|
|
2810
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
2883
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/9b0669b/src/throttle.ts#L5)
|
|
2811
2884
|
|
|
2812
2885
|
___
|
|
2813
2886
|
|
|
@@ -2850,7 +2923,7 @@ ___
|
|
|
2850
2923
|
|
|
2851
2924
|
#### Defined in
|
|
2852
2925
|
|
|
2853
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
2926
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/9b0669b/src/throttle.ts#L25)
|
|
2854
2927
|
|
|
2855
2928
|
___
|
|
2856
2929
|
|
|
@@ -2872,7 +2945,7 @@ ___
|
|
|
2872
2945
|
|
|
2873
2946
|
#### Defined in
|
|
2874
2947
|
|
|
2875
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
2948
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/toCDB.ts#L4)
|
|
2876
2949
|
|
|
2877
2950
|
___
|
|
2878
2951
|
|
|
@@ -2894,7 +2967,7 @@ ___
|
|
|
2894
2967
|
|
|
2895
2968
|
#### Defined in
|
|
2896
2969
|
|
|
2897
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
2970
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/toDBC.ts#L4)
|
|
2898
2971
|
|
|
2899
2972
|
___
|
|
2900
2973
|
|
|
@@ -2918,7 +2991,7 @@ ___
|
|
|
2918
2991
|
|
|
2919
2992
|
#### Defined in
|
|
2920
2993
|
|
|
2921
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
2994
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/9b0669b/src/typeOf.ts#L6)
|
|
2922
2995
|
|
|
2923
2996
|
___
|
|
2924
2997
|
|
|
@@ -2947,4 +3020,4 @@ ___
|
|
|
2947
3020
|
|
|
2948
3021
|
#### Defined in
|
|
2949
3022
|
|
|
2950
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3023
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/9b0669b/src/withPreventConsecutiveClicks.ts#L4)
|