@daysnap/utils 0.1.6 → 0.1.8

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.
Files changed (37) hide show
  1. package/docs/interfaces/EventBusCallback.md +1 -1
  2. package/docs/interfaces/StorageManager.md +4 -4
  3. package/docs/interfaces/Trap.md +5 -5
  4. package/docs/modules.md +162 -132
  5. package/es/chunk-5EVWQVDV.js +8 -0
  6. package/es/{chunk-PRX2MBKT.js → chunk-EJMUWNXI.js} +1 -1
  7. package/es/{chunk-NGFLPGX6.js → chunk-SMNIKKYG.js} +1 -1
  8. package/es/{chunk-L3SGRXY4.js → chunk-TXWIC3L7.js} +1 -1
  9. package/es/filterEmptyValue.js +3 -3
  10. package/es/formatMessage.js +2 -2
  11. package/es/index.d.ts +1 -0
  12. package/es/index.js +23 -19
  13. package/es/isEmpty.js +2 -2
  14. package/es/isType.d.ts +6 -0
  15. package/es/isType.js +6 -0
  16. package/es/parseError.js +3 -3
  17. package/es/reserve.js +3 -3
  18. package/es/round.d.ts +1 -1
  19. package/lib/{chunk-32RJMGP7.cjs → chunk-4P4EJVBW.cjs} +2 -2
  20. package/lib/{chunk-POTEREGD.cjs → chunk-KEDGCQDC.cjs} +2 -2
  21. package/lib/chunk-SGXWZSMS.cjs +8 -0
  22. package/lib/{chunk-2KBZS6IE.cjs → chunk-SYJEN3G6.cjs} +2 -2
  23. package/lib/filterEmptyValue.cjs +4 -4
  24. package/lib/formatMessage.cjs +3 -3
  25. package/lib/index.cjs +20 -16
  26. package/lib/index.d.cts +1 -0
  27. package/lib/isEmpty.cjs +3 -3
  28. package/lib/isType.cjs +6 -0
  29. package/lib/isType.d.cts +6 -0
  30. package/lib/parseError.cjs +4 -4
  31. package/lib/reserve.cjs +4 -4
  32. package/lib/round.d.cts +1 -1
  33. package/package.json +1 -1
  34. package/es/{chunk-A3HVDNCH.js → chunk-YBAHLKXR.js} +3 -3
  35. package/es/{chunk-HGBFTHPD.js → chunk-YGV2UKBN.js} +3 -3
  36. package/lib/{chunk-NN5IQFG3.cjs → chunk-22FM4HKF.cjs} +2 -2
  37. package/lib/{chunk-CLG6CKOT.cjs → chunk-A2J34A3K.cjs} +2 -2
package/docs/modules.md CHANGED
@@ -99,6 +99,7 @@
99
99
  - [isPromise](modules.md#ispromise)
100
100
  - [isRegExp](modules.md#isregexp)
101
101
  - [isString](modules.md#isstring)
102
+ - [isType](modules.md#istype)
102
103
  - [isUndefined](modules.md#isundefined)
103
104
  - [isUrl](modules.md#isurl)
104
105
  - [isValidDate](modules.md#isvaliddate)
@@ -160,7 +161,7 @@
160
161
 
161
162
  #### Defined in
162
163
 
163
- eventBus.ts:38
164
+ [eventBus.ts:38](https://github.com/daysnap/utils/blob/7f37691/src/eventBus.ts#L38)
164
165
 
165
166
  ___
166
167
 
@@ -170,7 +171,7 @@ ___
170
171
 
171
172
  #### Defined in
172
173
 
173
- [trap.ts:15](https://github.com/daysnap/utils/blob/dab7fd8/src/trap.ts#L15)
174
+ [trap.ts:15](https://github.com/daysnap/utils/blob/7f37691/src/trap.ts#L15)
174
175
 
175
176
  ## Functions
176
177
 
@@ -208,7 +209,7 @@ res = { '1': '男', '2': '女' }
208
209
 
209
210
  #### Defined in
210
211
 
211
- [ato.ts:12](https://github.com/daysnap/utils/blob/dab7fd8/src/ato.ts#L12)
212
+ [ato.ts:12](https://github.com/daysnap/utils/blob/7f37691/src/ato.ts#L12)
212
213
 
213
214
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
214
215
 
@@ -233,7 +234,7 @@ res = { '1': '男', '2': '女' }
233
234
 
234
235
  #### Defined in
235
236
 
236
- [ato.ts:16](https://github.com/daysnap/utils/blob/dab7fd8/src/ato.ts#L16)
237
+ [ato.ts:16](https://github.com/daysnap/utils/blob/7f37691/src/ato.ts#L16)
237
238
 
238
239
  ___
239
240
 
@@ -253,7 +254,7 @@ ___
253
254
 
254
255
  #### Defined in
255
256
 
256
- [decode.ts:41](https://github.com/daysnap/utils/blob/dab7fd8/src/decode.ts#L41)
257
+ [decode.ts:41](https://github.com/daysnap/utils/blob/7f37691/src/decode.ts#L41)
257
258
 
258
259
  ___
259
260
 
@@ -276,7 +277,7 @@ base64 转 blob
276
277
 
277
278
  #### Defined in
278
279
 
279
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/base64ToBlob.ts#L6)
280
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/base64ToBlob.ts#L6)
280
281
 
281
282
  ___
282
283
 
@@ -298,7 +299,7 @@ blob 转 base64
298
299
 
299
300
  #### Defined in
300
301
 
301
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/blobToBase64.ts#L4)
302
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/blobToBase64.ts#L4)
302
303
 
303
304
  ___
304
305
 
@@ -318,7 +319,7 @@ ___
318
319
 
319
320
  #### Defined in
320
321
 
321
- [decode.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/decode.ts#L8)
322
+ [decode.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/decode.ts#L8)
322
323
 
323
324
  ___
324
325
 
@@ -359,7 +360,7 @@ ___
359
360
 
360
361
  #### Defined in
361
362
 
362
- [cached.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/cached.ts#L5)
363
+ [cached.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/cached.ts#L5)
363
364
 
364
365
  ___
365
366
 
@@ -382,7 +383,7 @@ camelCase('hello-world') => helloWorld
382
383
 
383
384
  #### Defined in
384
385
 
385
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/camelCase.ts#L5)
386
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/camelCase.ts#L5)
386
387
 
387
388
  ___
388
389
 
@@ -406,7 +407,7 @@ canvas 转 blob 文件
406
407
 
407
408
  #### Defined in
408
409
 
409
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/canvasToBlob.ts#L4)
410
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/canvasToBlob.ts#L4)
410
411
 
411
412
  ___
412
413
 
@@ -429,7 +430,7 @@ capitalize('hello world') => Hello world
429
430
 
430
431
  #### Defined in
431
432
 
432
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/capitalize.ts#L5)
433
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/capitalize.ts#L5)
433
434
 
434
435
  ___
435
436
 
@@ -454,7 +455,7 @@ ___
454
455
 
455
456
  #### Defined in
456
457
 
457
- [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/chooseMedia.ts#L5)
458
+ [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/chooseMedia.ts#L5)
458
459
 
459
460
  ___
460
461
 
@@ -478,7 +479,7 @@ ___
478
479
 
479
480
  #### Defined in
480
481
 
481
- [clamp.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/clamp.ts#L7)
482
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/clamp.ts#L7)
482
483
 
483
484
  ___
484
485
 
@@ -506,7 +507,7 @@ ___
506
507
 
507
508
  #### Defined in
508
509
 
509
- [clone.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/clone.ts#L8)
510
+ [clone.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/clone.ts#L8)
510
511
 
511
512
  ___
512
513
 
@@ -534,7 +535,7 @@ ___
534
535
 
535
536
  #### Defined in
536
537
 
537
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/cloneSimple.ts#L7)
538
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/cloneSimple.ts#L7)
538
539
 
539
540
  ___
540
541
 
@@ -556,7 +557,7 @@ ___
556
557
 
557
558
  #### Defined in
558
559
 
559
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/createHexColorByHash.ts#L4)
560
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/createHexColorByHash.ts#L4)
560
561
 
561
562
  ___
562
563
 
@@ -582,7 +583,7 @@ ___
582
583
 
583
584
  #### Defined in
584
585
 
585
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/dab7fd8/src/compareVersion.ts#L9)
586
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/7f37691/src/compareVersion.ts#L9)
586
587
 
587
588
  ___
588
589
 
@@ -605,7 +606,7 @@ ___
605
606
 
606
607
  #### Defined in
607
608
 
608
- [compressImage.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/compressImage.ts#L4)
609
+ [compressImage.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/compressImage.ts#L4)
609
610
 
610
611
  ___
611
612
 
@@ -633,7 +634,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
633
634
 
634
635
  #### Defined in
635
636
 
636
- [createFactory.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/createFactory.ts#L4)
637
+ [createFactory.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/createFactory.ts#L4)
637
638
 
638
639
  ___
639
640
 
@@ -671,7 +672,7 @@ ___
671
672
 
672
673
  #### Defined in
673
674
 
674
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/dab7fd8/src/createLinearFunction.ts#L9)
675
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/7f37691/src/createLinearFunction.ts#L9)
675
676
 
676
677
  ___
677
678
 
@@ -703,7 +704,7 @@ ___
703
704
 
704
705
  #### Defined in
705
706
 
706
- [trap.ts:49](https://github.com/daysnap/utils/blob/dab7fd8/src/trap.ts#L49)
707
+ [trap.ts:49](https://github.com/daysnap/utils/blob/7f37691/src/trap.ts#L49)
707
708
 
708
709
  ___
709
710
 
@@ -766,7 +767,7 @@ fn() 执行的时候就会执行showLoading
766
767
 
767
768
  #### Defined in
768
769
 
769
- [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/dab7fd8/src/createWithLoading.ts#L11)
770
+ [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/7f37691/src/createWithLoading.ts#L11)
770
771
 
771
772
  ___
772
773
 
@@ -809,7 +810,7 @@ ___
809
810
 
810
811
  #### Defined in
811
812
 
812
- [debounce.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/debounce.ts#L5)
813
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/debounce.ts#L5)
813
814
 
814
815
  ___
815
816
 
@@ -833,7 +834,7 @@ ___
833
834
 
834
835
  #### Defined in
835
836
 
836
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/downloadFile.ts#L4)
837
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/downloadFile.ts#L4)
837
838
 
838
839
  ___
839
840
 
@@ -862,7 +863,7 @@ ___
862
863
 
863
864
  #### Defined in
864
865
 
865
- [each.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/each.ts#L4)
866
+ [each.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/each.ts#L4)
866
867
 
867
868
  ▸ **each**<`T`\>(`data`, `callback`): `void`
868
869
 
@@ -885,7 +886,7 @@ ___
885
886
 
886
887
  #### Defined in
887
888
 
888
- [each.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/each.ts#L8)
889
+ [each.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/each.ts#L8)
889
890
 
890
891
  ___
891
892
 
@@ -903,7 +904,7 @@ ___
903
904
 
904
905
  #### Defined in
905
906
 
906
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/exitFullscreen.ts#L6)
907
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/exitFullscreen.ts#L6)
907
908
 
908
909
  ___
909
910
 
@@ -932,7 +933,7 @@ ___
932
933
 
933
934
  #### Defined in
934
935
 
935
- [storage/factory.ts:11](https://github.com/daysnap/utils/blob/dab7fd8/src/storage/factory.ts#L11)
936
+ [storage/factory.ts:11](https://github.com/daysnap/utils/blob/7f37691/src/storage/factory.ts#L11)
936
937
 
937
938
  ___
938
939
 
@@ -954,7 +955,7 @@ ___
954
955
 
955
956
  #### Defined in
956
957
 
957
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/filterBankCardNo.ts#L4)
958
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/filterBankCardNo.ts#L4)
958
959
 
959
960
  ___
960
961
 
@@ -976,7 +977,7 @@ ___
976
977
 
977
978
  #### Defined in
978
979
 
979
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/filterCRLF.ts#L4)
980
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/filterCRLF.ts#L4)
980
981
 
981
982
  ___
982
983
 
@@ -998,7 +999,7 @@ ___
998
999
 
999
1000
  #### Defined in
1000
1001
 
1001
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/filterEmoji.ts#L4)
1002
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/filterEmoji.ts#L4)
1002
1003
 
1003
1004
  ___
1004
1005
 
@@ -1021,7 +1022,7 @@ ___
1021
1022
 
1022
1023
  #### Defined in
1023
1024
 
1024
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/dab7fd8/src/filterEmptyValue.ts#L12)
1025
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/7f37691/src/filterEmptyValue.ts#L12)
1025
1026
 
1026
1027
  ___
1027
1028
 
@@ -1044,7 +1045,7 @@ ___
1044
1045
 
1045
1046
  #### Defined in
1046
1047
 
1047
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/filterIdCard.ts#L5)
1048
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/filterIdCard.ts#L5)
1048
1049
 
1049
1050
  ___
1050
1051
 
@@ -1066,7 +1067,7 @@ ___
1066
1067
 
1067
1068
  #### Defined in
1068
1069
 
1069
- [filterName.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/filterName.ts#L4)
1070
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/filterName.ts#L4)
1070
1071
 
1071
1072
  ___
1072
1073
 
@@ -1091,7 +1092,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
1091
1092
 
1092
1093
  #### Defined in
1093
1094
 
1094
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/filterPhone.ts#L6)
1095
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/filterPhone.ts#L6)
1095
1096
 
1096
1097
  ___
1097
1098
 
@@ -1118,7 +1119,7 @@ str = '131****8888'
1118
1119
 
1119
1120
  #### Defined in
1120
1121
 
1121
- [filterString.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/filterString.ts#L6)
1122
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/filterString.ts#L6)
1122
1123
 
1123
1124
  ___
1124
1125
 
@@ -1141,7 +1142,7 @@ ___
1141
1142
 
1142
1143
  #### Defined in
1143
1144
 
1144
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/formatAmount.ts#L4)
1145
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/formatAmount.ts#L4)
1145
1146
 
1146
1147
  ___
1147
1148
 
@@ -1165,7 +1166,7 @@ ___
1165
1166
 
1166
1167
  #### Defined in
1167
1168
 
1168
- [formatDate.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/formatDate.ts#L7)
1169
+ [formatDate.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/formatDate.ts#L7)
1169
1170
 
1170
1171
  ___
1171
1172
 
@@ -1196,7 +1197,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1196
1197
 
1197
1198
  #### Defined in
1198
1199
 
1199
- [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/formatDateStr.ts#L6)
1200
+ [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/formatDateStr.ts#L6)
1200
1201
 
1201
1202
  ___
1202
1203
 
@@ -1216,7 +1217,7 @@ ___
1216
1217
 
1217
1218
  #### Defined in
1218
1219
 
1219
- [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/formartDateToZN.ts#L4)
1220
+ [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/formartDateToZN.ts#L4)
1220
1221
 
1221
1222
  ___
1222
1223
 
@@ -1239,7 +1240,7 @@ ___
1239
1240
 
1240
1241
  #### Defined in
1241
1242
 
1242
- [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/formatFileSize.ts#L4)
1243
+ [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/formatFileSize.ts#L4)
1243
1244
 
1244
1245
  ___
1245
1246
 
@@ -1264,7 +1265,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1264
1265
 
1265
1266
  #### Defined in
1266
1267
 
1267
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/dab7fd8/src/formatMessage.ts#L11)
1268
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/7f37691/src/formatMessage.ts#L11)
1268
1269
 
1269
1270
  ___
1270
1271
 
@@ -1296,7 +1297,7 @@ rest = { xxx: 1 }
1296
1297
 
1297
1298
  #### Defined in
1298
1299
 
1299
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/formatPathParams.ts#L8)
1300
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/formatPathParams.ts#L8)
1300
1301
 
1301
1302
  ___
1302
1303
 
@@ -1318,7 +1319,7 @@ ___
1318
1319
 
1319
1320
  #### Defined in
1320
1321
 
1321
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/getBlobByUrl.ts#L4)
1322
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/getBlobByUrl.ts#L4)
1322
1323
 
1323
1324
  ___
1324
1325
 
@@ -1341,7 +1342,7 @@ ___
1341
1342
 
1342
1343
  #### Defined in
1343
1344
 
1344
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/dab7fd8/src/storage/index.ts#L9)
1345
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/7f37691/src/storage/index.ts#L9)
1345
1346
 
1346
1347
  ___
1347
1348
 
@@ -1363,7 +1364,7 @@ ___
1363
1364
 
1364
1365
  #### Defined in
1365
1366
 
1366
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/getDayMillisecond.ts#L4)
1367
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/getDayMillisecond.ts#L4)
1367
1368
 
1368
1369
  ___
1369
1370
 
@@ -1386,7 +1387,7 @@ ___
1386
1387
 
1387
1388
  #### Defined in
1388
1389
 
1389
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/getImageInfo.ts#L4)
1390
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/getImageInfo.ts#L4)
1390
1391
 
1391
1392
  ___
1392
1393
 
@@ -1409,7 +1410,7 @@ ___
1409
1410
 
1410
1411
  #### Defined in
1411
1412
 
1412
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/dab7fd8/src/storage/index.ts#L9)
1413
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/7f37691/src/storage/index.ts#L9)
1413
1414
 
1414
1415
  ___
1415
1416
 
@@ -1432,7 +1433,7 @@ ___
1432
1433
 
1433
1434
  #### Defined in
1434
1435
 
1435
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/getRandom.ts#L7)
1436
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/getRandom.ts#L7)
1436
1437
 
1437
1438
  ___
1438
1439
 
@@ -1448,7 +1449,7 @@ ___
1448
1449
 
1449
1450
  #### Defined in
1450
1451
 
1451
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/getRandomColor.ts#L4)
1452
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/getRandomColor.ts#L4)
1452
1453
 
1453
1454
  ___
1454
1455
 
@@ -1470,7 +1471,7 @@ ___
1470
1471
 
1471
1472
  #### Defined in
1472
1473
 
1473
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/getRandomNumber.ts#L7)
1474
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/getRandomNumber.ts#L7)
1474
1475
 
1475
1476
  ___
1476
1477
 
@@ -1486,7 +1487,7 @@ ___
1486
1487
 
1487
1488
  #### Defined in
1488
1489
 
1489
- [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/getScrollTop.ts#L4)
1490
+ [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/getScrollTop.ts#L4)
1490
1491
 
1491
1492
  ___
1492
1493
 
@@ -1508,7 +1509,7 @@ ___
1508
1509
 
1509
1510
  #### Defined in
1510
1511
 
1511
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/getVideoInfo.ts#L4)
1512
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/getVideoInfo.ts#L4)
1512
1513
 
1513
1514
  ___
1514
1515
 
@@ -1531,7 +1532,7 @@ ___
1531
1532
 
1532
1533
  #### Defined in
1533
1534
 
1534
- [getWeekday.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/getWeekday.ts#L6)
1535
+ [getWeekday.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/getWeekday.ts#L6)
1535
1536
 
1536
1537
  ___
1537
1538
 
@@ -1547,7 +1548,7 @@ ___
1547
1548
 
1548
1549
  #### Defined in
1549
1550
 
1550
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/inBrowser.ts#L4)
1551
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/inBrowser.ts#L4)
1551
1552
 
1552
1553
  ___
1553
1554
 
@@ -1569,7 +1570,7 @@ ___
1569
1570
 
1570
1571
  #### Defined in
1571
1572
 
1572
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/insertLink.ts#L4)
1573
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/insertLink.ts#L4)
1573
1574
 
1574
1575
  ▸ **insertLink**(`href`, `callback`): `void`
1575
1576
 
@@ -1586,7 +1587,7 @@ ___
1586
1587
 
1587
1588
  #### Defined in
1588
1589
 
1589
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/insertLink.ts#L5)
1590
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/insertLink.ts#L5)
1590
1591
 
1591
1592
  ___
1592
1593
 
@@ -1608,7 +1609,7 @@ ___
1608
1609
 
1609
1610
  #### Defined in
1610
1611
 
1611
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/insertScript.ts#L4)
1612
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/insertScript.ts#L4)
1612
1613
 
1613
1614
  ▸ **insertScript**(`src`, `callback`): `void`
1614
1615
 
@@ -1625,7 +1626,7 @@ ___
1625
1626
 
1626
1627
  #### Defined in
1627
1628
 
1628
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/insertScript.ts#L5)
1629
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/insertScript.ts#L5)
1629
1630
 
1630
1631
  ___
1631
1632
 
@@ -1647,7 +1648,7 @@ ___
1647
1648
 
1648
1649
  #### Defined in
1649
1650
 
1650
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/insertStyle.ts#L4)
1651
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/insertStyle.ts#L4)
1651
1652
 
1652
1653
  ___
1653
1654
 
@@ -1676,7 +1677,7 @@ isAmount('1.123') => false
1676
1677
 
1677
1678
  #### Defined in
1678
1679
 
1679
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/dab7fd8/src/isAmount.ts#L11)
1680
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/7f37691/src/isAmount.ts#L11)
1680
1681
 
1681
1682
  ___
1682
1683
 
@@ -1692,7 +1693,7 @@ ___
1692
1693
 
1693
1694
  #### Defined in
1694
1695
 
1695
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isAndroid.ts#L4)
1696
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isAndroid.ts#L4)
1696
1697
 
1697
1698
  ___
1698
1699
 
@@ -1716,7 +1717,7 @@ val is any[]
1716
1717
 
1717
1718
  #### Defined in
1718
1719
 
1719
- [isArray.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/isArray.ts#L6)
1720
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/isArray.ts#L6)
1720
1721
 
1721
1722
  ___
1722
1723
 
@@ -1738,7 +1739,7 @@ val is boolean
1738
1739
 
1739
1740
  #### Defined in
1740
1741
 
1741
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/isBoolean.ts#L5)
1742
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/isBoolean.ts#L5)
1742
1743
 
1743
1744
  ___
1744
1745
 
@@ -1760,7 +1761,7 @@ ___
1760
1761
 
1761
1762
  #### Defined in
1762
1763
 
1763
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isChinese.ts#L4)
1764
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isChinese.ts#L4)
1764
1765
 
1765
1766
  ___
1766
1767
 
@@ -1782,7 +1783,7 @@ val is Date
1782
1783
 
1783
1784
  #### Defined in
1784
1785
 
1785
- [isDate.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isDate.ts#L4)
1786
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isDate.ts#L4)
1786
1787
 
1787
1788
  ___
1788
1789
 
@@ -1804,7 +1805,7 @@ ___
1804
1805
 
1805
1806
  #### Defined in
1806
1807
 
1807
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isEmail.ts#L4)
1808
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isEmail.ts#L4)
1808
1809
 
1809
1810
  ___
1810
1811
 
@@ -1826,7 +1827,7 @@ ___
1826
1827
 
1827
1828
  #### Defined in
1828
1829
 
1829
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/isEmpty.ts#L6)
1830
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/isEmpty.ts#L6)
1830
1831
 
1831
1832
  ___
1832
1833
 
@@ -1848,7 +1849,7 @@ ___
1848
1849
 
1849
1850
  #### Defined in
1850
1851
 
1851
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/isEmptyArray.ts#L6)
1852
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/isEmptyArray.ts#L6)
1852
1853
 
1853
1854
  ___
1854
1855
 
@@ -1870,7 +1871,7 @@ ___
1870
1871
 
1871
1872
  #### Defined in
1872
1873
 
1873
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/isEmptyObject.ts#L5)
1874
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/isEmptyObject.ts#L5)
1874
1875
 
1875
1876
  ___
1876
1877
 
@@ -1892,7 +1893,7 @@ val is Error
1892
1893
 
1893
1894
  #### Defined in
1894
1895
 
1895
- [isError.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isError.ts#L4)
1896
+ [isError.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isError.ts#L4)
1896
1897
 
1897
1898
  ___
1898
1899
 
@@ -1914,7 +1915,7 @@ val is Function
1914
1915
 
1915
1916
  #### Defined in
1916
1917
 
1917
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isFunction.ts#L4)
1918
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isFunction.ts#L4)
1918
1919
 
1919
1920
  ___
1920
1921
 
@@ -1932,7 +1933,7 @@ ___
1932
1933
 
1933
1934
  #### Defined in
1934
1935
 
1935
- [isIE.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/isIE.ts#L6)
1936
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/isIE.ts#L6)
1936
1937
 
1937
1938
  ___
1938
1939
 
@@ -1948,7 +1949,7 @@ ___
1948
1949
 
1949
1950
  #### Defined in
1950
1951
 
1951
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isIOS.ts#L4)
1952
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isIOS.ts#L4)
1952
1953
 
1953
1954
  ___
1954
1955
 
@@ -1970,7 +1971,7 @@ ___
1970
1971
 
1971
1972
  #### Defined in
1972
1973
 
1973
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isIdCard.ts#L4)
1974
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isIdCard.ts#L4)
1974
1975
 
1975
1976
  ___
1976
1977
 
@@ -1992,7 +1993,7 @@ ___
1992
1993
 
1993
1994
  #### Defined in
1994
1995
 
1995
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/isJSONString.ts#L7)
1996
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/isJSONString.ts#L7)
1996
1997
 
1997
1998
  ___
1998
1999
 
@@ -2014,7 +2015,7 @@ ___
2014
2015
 
2015
2016
  #### Defined in
2016
2017
 
2017
- [isLan.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/isLan.ts#L5)
2018
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/isLan.ts#L5)
2018
2019
 
2019
2020
  ___
2020
2021
 
@@ -2036,7 +2037,7 @@ ___
2036
2037
 
2037
2038
  #### Defined in
2038
2039
 
2039
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/isLicenseCode.ts#L5)
2040
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/isLicenseCode.ts#L5)
2040
2041
 
2041
2042
  ___
2042
2043
 
@@ -2052,7 +2053,7 @@ ___
2052
2053
 
2053
2054
  #### Defined in
2054
2055
 
2055
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isMobile.ts#L4)
2056
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isMobile.ts#L4)
2056
2057
 
2057
2058
  ___
2058
2059
 
@@ -2075,7 +2076,7 @@ ___
2075
2076
 
2076
2077
  #### Defined in
2077
2078
 
2078
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/isNativeFunction.ts#L7)
2079
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/isNativeFunction.ts#L7)
2079
2080
 
2080
2081
  ___
2081
2082
 
@@ -2097,7 +2098,7 @@ val is null
2097
2098
 
2098
2099
  #### Defined in
2099
2100
 
2100
- [isNull.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isNull.ts#L4)
2101
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isNull.ts#L4)
2101
2102
 
2102
2103
  ___
2103
2104
 
@@ -2119,7 +2120,7 @@ val is number
2119
2120
 
2120
2121
  #### Defined in
2121
2122
 
2122
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/isNumber.ts#L5)
2123
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/isNumber.ts#L5)
2123
2124
 
2124
2125
  ___
2125
2126
 
@@ -2141,7 +2142,7 @@ val is Record<string, any\>
2141
2142
 
2142
2143
  #### Defined in
2143
2144
 
2144
- [isObject.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isObject.ts#L4)
2145
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isObject.ts#L4)
2145
2146
 
2146
2147
  ___
2147
2148
 
@@ -2163,7 +2164,7 @@ ___
2163
2164
 
2164
2165
  #### Defined in
2165
2166
 
2166
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isPhone.ts#L4)
2167
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isPhone.ts#L4)
2167
2168
 
2168
2169
  ___
2169
2170
 
@@ -2191,7 +2192,7 @@ val is Promise<T\>
2191
2192
 
2192
2193
  #### Defined in
2193
2194
 
2194
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isPromise.ts#L4)
2195
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isPromise.ts#L4)
2195
2196
 
2196
2197
  ___
2197
2198
 
@@ -2213,7 +2214,7 @@ val is RegExp
2213
2214
 
2214
2215
  #### Defined in
2215
2216
 
2216
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isRegExp.ts#L4)
2217
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isRegExp.ts#L4)
2217
2218
 
2218
2219
  ___
2219
2220
 
@@ -2235,7 +2236,36 @@ val is string
2235
2236
 
2236
2237
  #### Defined in
2237
2238
 
2238
- [isString.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isString.ts#L4)
2239
+ [isString.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isString.ts#L4)
2240
+
2241
+ ___
2242
+
2243
+ ### isType
2244
+
2245
+ ▸ **isType**<`T`\>(`val`, `checker`): val is T
2246
+
2247
+ 联合类型判断成其中某种类型
2248
+
2249
+ #### Type parameters
2250
+
2251
+ | Name | Type |
2252
+ | :------ | :------ |
2253
+ | `T` | `any` |
2254
+
2255
+ #### Parameters
2256
+
2257
+ | Name | Type |
2258
+ | :------ | :------ |
2259
+ | `val` | `unknown` |
2260
+ | `checker` | (`v`: `any`) => `boolean` |
2261
+
2262
+ #### Returns
2263
+
2264
+ val is T
2265
+
2266
+ #### Defined in
2267
+
2268
+ isType.ts:4
2239
2269
 
2240
2270
  ___
2241
2271
 
@@ -2257,7 +2287,7 @@ val is undefined
2257
2287
 
2258
2288
  #### Defined in
2259
2289
 
2260
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isUndefined.ts#L4)
2290
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isUndefined.ts#L4)
2261
2291
 
2262
2292
  ___
2263
2293
 
@@ -2301,7 +2331,7 @@ ___
2301
2331
 
2302
2332
  #### Defined in
2303
2333
 
2304
- [isValidDate.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/isValidDate.ts#L6)
2334
+ [isValidDate.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/isValidDate.ts#L6)
2305
2335
 
2306
2336
  ___
2307
2337
 
@@ -2317,7 +2347,7 @@ ___
2317
2347
 
2318
2348
  #### Defined in
2319
2349
 
2320
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/isWeChat.ts#L4)
2350
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/isWeChat.ts#L4)
2321
2351
 
2322
2352
  ___
2323
2353
 
@@ -2334,7 +2364,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2334
2364
 
2335
2365
  #### Defined in
2336
2366
 
2337
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/isWeChatMiniProgram.ts#L5)
2367
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/isWeChatMiniProgram.ts#L5)
2338
2368
 
2339
2369
  ___
2340
2370
 
@@ -2358,7 +2388,7 @@ ___
2358
2388
 
2359
2389
  #### Defined in
2360
2390
 
2361
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/dab7fd8/src/isWeChat.ts#L12)
2391
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/7f37691/src/isWeChat.ts#L12)
2362
2392
 
2363
2393
  ___
2364
2394
 
@@ -2380,7 +2410,7 @@ val is Window
2380
2410
 
2381
2411
  #### Defined in
2382
2412
 
2383
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/isWindow.ts#L5)
2413
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/isWindow.ts#L5)
2384
2414
 
2385
2415
  ___
2386
2416
 
@@ -2403,7 +2433,7 @@ kebabCase('helloWorld') => hello-world
2403
2433
 
2404
2434
  #### Defined in
2405
2435
 
2406
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/kebabCase.ts#L5)
2436
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/kebabCase.ts#L5)
2407
2437
 
2408
2438
  ___
2409
2439
 
@@ -2432,7 +2462,7 @@ list 生成器,快速生成数据
2432
2462
 
2433
2463
  #### Defined in
2434
2464
 
2435
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/listGenerator.ts#L5)
2465
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/listGenerator.ts#L5)
2436
2466
 
2437
2467
  ___
2438
2468
 
@@ -2452,7 +2482,7 @@ ___
2452
2482
 
2453
2483
  #### Defined in
2454
2484
 
2455
- [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/dab7fd8/src/makePhoneCall.ts#L1)
2485
+ [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/7f37691/src/makePhoneCall.ts#L1)
2456
2486
 
2457
2487
  ___
2458
2488
 
@@ -2477,7 +2507,7 @@ ___
2477
2507
 
2478
2508
  #### Defined in
2479
2509
 
2480
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/dab7fd8/src/mousewheel.ts#L22)
2510
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/7f37691/src/mousewheel.ts#L22)
2481
2511
 
2482
2512
  ___
2483
2513
 
@@ -2493,7 +2523,7 @@ ___
2493
2523
 
2494
2524
  #### Defined in
2495
2525
 
2496
- [nf.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/nf.ts#L4)
2526
+ [nf.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/nf.ts#L4)
2497
2527
 
2498
2528
  ___
2499
2529
 
@@ -2517,7 +2547,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
2517
2547
 
2518
2548
  #### Defined in
2519
2549
 
2520
- [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/normalizeDate.ts#L8)
2550
+ [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/normalizeDate.ts#L8)
2521
2551
 
2522
2552
  ___
2523
2553
 
@@ -2539,7 +2569,7 @@ ___
2539
2569
 
2540
2570
  #### Defined in
2541
2571
 
2542
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/normalizePath.ts#L4)
2572
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/normalizePath.ts#L4)
2543
2573
 
2544
2574
  ___
2545
2575
 
@@ -2569,7 +2599,7 @@ ___
2569
2599
 
2570
2600
  #### Defined in
2571
2601
 
2572
- [omit.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/omit.ts#L4)
2602
+ [omit.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/omit.ts#L4)
2573
2603
 
2574
2604
  ___
2575
2605
 
@@ -2593,7 +2623,7 @@ ___
2593
2623
 
2594
2624
  #### Defined in
2595
2625
 
2596
- [padding.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/padding.ts#L7)
2626
+ [padding.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/padding.ts#L7)
2597
2627
 
2598
2628
  ___
2599
2629
 
@@ -2619,7 +2649,7 @@ ___
2619
2649
 
2620
2650
  #### Defined in
2621
2651
 
2622
- [parseDate.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/parseDate.ts#L5)
2652
+ [parseDate.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/parseDate.ts#L5)
2623
2653
 
2624
2654
  ___
2625
2655
 
@@ -2642,7 +2672,7 @@ ___
2642
2672
 
2643
2673
  #### Defined in
2644
2674
 
2645
- [parseError.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/parseError.ts#L8)
2675
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/parseError.ts#L8)
2646
2676
 
2647
2677
  ___
2648
2678
 
@@ -2672,7 +2702,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2672
2702
 
2673
2703
  #### Defined in
2674
2704
 
2675
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/parseObject.ts#L5)
2705
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/parseObject.ts#L5)
2676
2706
 
2677
2707
  ___
2678
2708
 
@@ -2701,7 +2731,7 @@ ___
2701
2731
 
2702
2732
  #### Defined in
2703
2733
 
2704
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/parsePath.ts#L6)
2734
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/parsePath.ts#L6)
2705
2735
 
2706
2736
  ___
2707
2737
 
@@ -2724,7 +2754,7 @@ ___
2724
2754
 
2725
2755
  #### Defined in
2726
2756
 
2727
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/parseQuery.ts#L8)
2757
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/parseQuery.ts#L8)
2728
2758
 
2729
2759
  ___
2730
2760
 
@@ -2754,7 +2784,7 @@ ___
2754
2784
 
2755
2785
  #### Defined in
2756
2786
 
2757
- [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/parseQueryString.ts#L6)
2787
+ [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/parseQueryString.ts#L6)
2758
2788
 
2759
2789
  ___
2760
2790
 
@@ -2777,7 +2807,7 @@ pascalCase('hello-world') => HelloWorld
2777
2807
 
2778
2808
  #### Defined in
2779
2809
 
2780
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/pascalCase.ts#L8)
2810
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/pascalCase.ts#L8)
2781
2811
 
2782
2812
  ___
2783
2813
 
@@ -2807,7 +2837,7 @@ ___
2807
2837
 
2808
2838
  #### Defined in
2809
2839
 
2810
- [pick.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/pick.ts#L4)
2840
+ [pick.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/pick.ts#L4)
2811
2841
 
2812
2842
  ___
2813
2843
 
@@ -2830,7 +2860,7 @@ ___
2830
2860
 
2831
2861
  #### Defined in
2832
2862
 
2833
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/replaceCrlf.ts#L4)
2863
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/replaceCrlf.ts#L4)
2834
2864
 
2835
2865
  ___
2836
2866
 
@@ -2854,7 +2884,7 @@ ___
2854
2884
 
2855
2885
  #### Defined in
2856
2886
 
2857
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/requestFullScreen.ts#L6)
2887
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/requestFullScreen.ts#L6)
2858
2888
 
2859
2889
  ___
2860
2890
 
@@ -2880,7 +2910,7 @@ reserve(0, '--') => 0
2880
2910
 
2881
2911
  #### Defined in
2882
2912
 
2883
- [reserve.ts:8](https://github.com/daysnap/utils/blob/dab7fd8/src/reserve.ts#L8)
2913
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/7f37691/src/reserve.ts#L8)
2884
2914
 
2885
2915
  ___
2886
2916
 
@@ -2904,13 +2934,13 @@ ___
2904
2934
 
2905
2935
  #### Defined in
2906
2936
 
2907
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/rgbToHex.ts#L4)
2937
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/rgbToHex.ts#L4)
2908
2938
 
2909
2939
  ___
2910
2940
 
2911
2941
  ### round
2912
2942
 
2913
- ▸ **round**(`val`, `fractionDigits`): `any`
2943
+ ▸ **round**(`val`, `fractionDigits`): `string`
2914
2944
 
2915
2945
  四舍五入
2916
2946
 
@@ -2923,11 +2953,11 @@ ___
2923
2953
 
2924
2954
  #### Returns
2925
2955
 
2926
- `any`
2956
+ `string`
2927
2957
 
2928
2958
  #### Defined in
2929
2959
 
2930
- [round.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/round.ts#L6)
2960
+ [round.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/round.ts#L6)
2931
2961
 
2932
2962
  ___
2933
2963
 
@@ -2943,7 +2973,7 @@ ___
2943
2973
 
2944
2974
  #### Defined in
2945
2975
 
2946
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/scrollToTop.ts#L4)
2976
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/scrollToTop.ts#L4)
2947
2977
 
2948
2978
  ___
2949
2979
 
@@ -2965,7 +2995,7 @@ ___
2965
2995
 
2966
2996
  #### Defined in
2967
2997
 
2968
- [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/setScrollTop.ts#L4)
2998
+ [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/setScrollTop.ts#L4)
2969
2999
 
2970
3000
  ___
2971
3001
 
@@ -2988,7 +3018,7 @@ ___
2988
3018
 
2989
3019
  #### Defined in
2990
3020
 
2991
- [sleep.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/sleep.ts#L6)
3021
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/sleep.ts#L6)
2992
3022
 
2993
3023
  ___
2994
3024
 
@@ -3017,7 +3047,7 @@ ___
3017
3047
 
3018
3048
  #### Defined in
3019
3049
 
3020
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/splitArray.ts#L4)
3050
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/splitArray.ts#L4)
3021
3051
 
3022
3052
  ___
3023
3053
 
@@ -3040,7 +3070,7 @@ ___
3040
3070
 
3041
3071
  #### Defined in
3042
3072
 
3043
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/stringTrim.ts#L6)
3073
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/stringTrim.ts#L6)
3044
3074
 
3045
3075
  ___
3046
3076
 
@@ -3062,7 +3092,7 @@ ___
3062
3092
 
3063
3093
  #### Defined in
3064
3094
 
3065
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/dab7fd8/src/stringifyQuery.ts#L7)
3095
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/7f37691/src/stringifyQuery.ts#L7)
3066
3096
 
3067
3097
  ___
3068
3098
 
@@ -3086,7 +3116,7 @@ ___
3086
3116
 
3087
3117
  #### Defined in
3088
3118
 
3089
- [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/stringifyQueryString.ts#L6)
3119
+ [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/stringifyQueryString.ts#L6)
3090
3120
 
3091
3121
  ___
3092
3122
 
@@ -3130,7 +3160,7 @@ ___
3130
3160
 
3131
3161
  #### Defined in
3132
3162
 
3133
- [throttle.ts:48](https://github.com/daysnap/utils/blob/dab7fd8/src/throttle.ts#L48)
3163
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/7f37691/src/throttle.ts#L48)
3134
3164
 
3135
3165
  ___
3136
3166
 
@@ -3173,7 +3203,7 @@ ___
3173
3203
 
3174
3204
  #### Defined in
3175
3205
 
3176
- [throttle.ts:5](https://github.com/daysnap/utils/blob/dab7fd8/src/throttle.ts#L5)
3206
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/7f37691/src/throttle.ts#L5)
3177
3207
 
3178
3208
  ___
3179
3209
 
@@ -3216,7 +3246,7 @@ ___
3216
3246
 
3217
3247
  #### Defined in
3218
3248
 
3219
- [throttle.ts:25](https://github.com/daysnap/utils/blob/dab7fd8/src/throttle.ts#L25)
3249
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/7f37691/src/throttle.ts#L25)
3220
3250
 
3221
3251
  ___
3222
3252
 
@@ -3238,7 +3268,7 @@ ___
3238
3268
 
3239
3269
  #### Defined in
3240
3270
 
3241
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/toCDB.ts#L4)
3271
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/toCDB.ts#L4)
3242
3272
 
3243
3273
  ___
3244
3274
 
@@ -3260,7 +3290,7 @@ ___
3260
3290
 
3261
3291
  #### Defined in
3262
3292
 
3263
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/toDBC.ts#L4)
3293
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/toDBC.ts#L4)
3264
3294
 
3265
3295
  ___
3266
3296
 
@@ -3284,7 +3314,7 @@ ___
3284
3314
 
3285
3315
  #### Defined in
3286
3316
 
3287
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/dab7fd8/src/typeOf.ts#L6)
3317
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/7f37691/src/typeOf.ts#L6)
3288
3318
 
3289
3319
  ___
3290
3320
 
@@ -3313,4 +3343,4 @@ ___
3313
3343
 
3314
3344
  #### Defined in
3315
3345
 
3316
- [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/dab7fd8/src/withPreventConsecutiveClicks.ts#L4)
3346
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/7f37691/src/withPreventConsecutiveClicks.ts#L4)