@daysnap/utils 0.1.9 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/modules.md CHANGED
@@ -62,6 +62,7 @@
62
62
  - [getDayMillisecond](modules.md#getdaymillisecond)
63
63
  - [getImageInfo](modules.md#getimageinfo)
64
64
  - [getLocal](modules.md#getlocal)
65
+ - [getMonthBounds](modules.md#getmonthbounds)
65
66
  - [getRandom](modules.md#getrandom)
66
67
  - [getRandomColor](modules.md#getrandomcolor)
67
68
  - [getRandomNumber](modules.md#getrandomnumber)
@@ -143,6 +144,7 @@
143
144
  - [toCDB](modules.md#tocdb)
144
145
  - [toDBC](modules.md#todbc)
145
146
  - [typeOf](modules.md#typeof)
147
+ - [withCache](modules.md#withcache)
146
148
  - [withPreventConsecutiveClicks](modules.md#withpreventconsecutiveclicks)
147
149
 
148
150
  ## Variables
@@ -162,7 +164,7 @@
162
164
 
163
165
  #### Defined in
164
166
 
165
- [eventBus.ts:38](https://github.com/daysnap/utils/blob/c7e0698/src/eventBus.ts#L38)
167
+ [eventBus.ts:38](https://github.com/daysnap/utils/blob/c4d6925/src/eventBus.ts#L38)
166
168
 
167
169
  ___
168
170
 
@@ -172,7 +174,7 @@ ___
172
174
 
173
175
  #### Defined in
174
176
 
175
- [trap.ts:15](https://github.com/daysnap/utils/blob/c7e0698/src/trap.ts#L15)
177
+ [trap.ts:15](https://github.com/daysnap/utils/blob/c4d6925/src/trap.ts#L15)
176
178
 
177
179
  ## Functions
178
180
 
@@ -210,7 +212,7 @@ res = { '1': '男', '2': '女' }
210
212
 
211
213
  #### Defined in
212
214
 
213
- [ato.ts:12](https://github.com/daysnap/utils/blob/c7e0698/src/ato.ts#L12)
215
+ [ato.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/ato.ts#L12)
214
216
 
215
217
  ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
216
218
 
@@ -235,7 +237,7 @@ res = { '1': '男', '2': '女' }
235
237
 
236
238
  #### Defined in
237
239
 
238
- [ato.ts:16](https://github.com/daysnap/utils/blob/c7e0698/src/ato.ts#L16)
240
+ [ato.ts:16](https://github.com/daysnap/utils/blob/c4d6925/src/ato.ts#L16)
239
241
 
240
242
  ___
241
243
 
@@ -255,7 +257,7 @@ ___
255
257
 
256
258
  #### Defined in
257
259
 
258
- [decode.ts:41](https://github.com/daysnap/utils/blob/c7e0698/src/decode.ts#L41)
260
+ [decode.ts:41](https://github.com/daysnap/utils/blob/c4d6925/src/decode.ts#L41)
259
261
 
260
262
  ___
261
263
 
@@ -278,7 +280,7 @@ base64 转 blob
278
280
 
279
281
  #### Defined in
280
282
 
281
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/base64ToBlob.ts#L6)
283
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/base64ToBlob.ts#L6)
282
284
 
283
285
  ___
284
286
 
@@ -300,7 +302,7 @@ blob 转 base64
300
302
 
301
303
  #### Defined in
302
304
 
303
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/blobToBase64.ts#L4)
305
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/blobToBase64.ts#L4)
304
306
 
305
307
  ___
306
308
 
@@ -320,7 +322,7 @@ ___
320
322
 
321
323
  #### Defined in
322
324
 
323
- [decode.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/decode.ts#L8)
325
+ [decode.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/decode.ts#L8)
324
326
 
325
327
  ___
326
328
 
@@ -361,7 +363,7 @@ ___
361
363
 
362
364
  #### Defined in
363
365
 
364
- [cached.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/cached.ts#L5)
366
+ [cached.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/cached.ts#L5)
365
367
 
366
368
  ___
367
369
 
@@ -384,7 +386,7 @@ camelCase('hello-world') => helloWorld
384
386
 
385
387
  #### Defined in
386
388
 
387
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/camelCase.ts#L5)
389
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/camelCase.ts#L5)
388
390
 
389
391
  ___
390
392
 
@@ -408,7 +410,7 @@ canvas 转 blob 文件
408
410
 
409
411
  #### Defined in
410
412
 
411
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/canvasToBlob.ts#L4)
413
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/canvasToBlob.ts#L4)
412
414
 
413
415
  ___
414
416
 
@@ -431,7 +433,7 @@ capitalize('hello world') => Hello world
431
433
 
432
434
  #### Defined in
433
435
 
434
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/capitalize.ts#L5)
436
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/capitalize.ts#L5)
435
437
 
436
438
  ___
437
439
 
@@ -456,7 +458,7 @@ ___
456
458
 
457
459
  #### Defined in
458
460
 
459
- [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/chooseMedia.ts#L5)
461
+ [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/chooseMedia.ts#L5)
460
462
 
461
463
  ___
462
464
 
@@ -480,7 +482,7 @@ ___
480
482
 
481
483
  #### Defined in
482
484
 
483
- [clamp.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/clamp.ts#L7)
485
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/clamp.ts#L7)
484
486
 
485
487
  ___
486
488
 
@@ -508,7 +510,7 @@ ___
508
510
 
509
511
  #### Defined in
510
512
 
511
- [clone.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/clone.ts#L8)
513
+ [clone.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/clone.ts#L8)
512
514
 
513
515
  ___
514
516
 
@@ -536,7 +538,7 @@ ___
536
538
 
537
539
  #### Defined in
538
540
 
539
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/cloneSimple.ts#L7)
541
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/cloneSimple.ts#L7)
540
542
 
541
543
  ___
542
544
 
@@ -558,7 +560,7 @@ ___
558
560
 
559
561
  #### Defined in
560
562
 
561
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/createHexColorByHash.ts#L4)
563
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/createHexColorByHash.ts#L4)
562
564
 
563
565
  ___
564
566
 
@@ -584,7 +586,7 @@ ___
584
586
 
585
587
  #### Defined in
586
588
 
587
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/compareVersion.ts#L9)
589
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/compareVersion.ts#L9)
588
590
 
589
591
  ___
590
592
 
@@ -607,7 +609,7 @@ ___
607
609
 
608
610
  #### Defined in
609
611
 
610
- [compressImage.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/compressImage.ts#L4)
612
+ [compressImage.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/compressImage.ts#L4)
611
613
 
612
614
  ___
613
615
 
@@ -635,7 +637,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
635
637
 
636
638
  #### Defined in
637
639
 
638
- [createFactory.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/createFactory.ts#L4)
640
+ [createFactory.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/createFactory.ts#L4)
639
641
 
640
642
  ___
641
643
 
@@ -673,7 +675,7 @@ ___
673
675
 
674
676
  #### Defined in
675
677
 
676
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/createLinearFunction.ts#L9)
678
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/createLinearFunction.ts#L9)
677
679
 
678
680
  ___
679
681
 
@@ -705,7 +707,7 @@ ___
705
707
 
706
708
  #### Defined in
707
709
 
708
- [trap.ts:49](https://github.com/daysnap/utils/blob/c7e0698/src/trap.ts#L49)
710
+ [trap.ts:49](https://github.com/daysnap/utils/blob/c4d6925/src/trap.ts#L49)
709
711
 
710
712
  ___
711
713
 
@@ -768,7 +770,7 @@ fn() 执行的时候就会执行showLoading
768
770
 
769
771
  #### Defined in
770
772
 
771
- [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/createWithLoading.ts#L11)
773
+ [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/createWithLoading.ts#L11)
772
774
 
773
775
  ___
774
776
 
@@ -811,7 +813,7 @@ ___
811
813
 
812
814
  #### Defined in
813
815
 
814
- [debounce.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/debounce.ts#L5)
816
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/debounce.ts#L5)
815
817
 
816
818
  ___
817
819
 
@@ -835,7 +837,7 @@ ___
835
837
 
836
838
  #### Defined in
837
839
 
838
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/downloadFile.ts#L4)
840
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/downloadFile.ts#L4)
839
841
 
840
842
  ___
841
843
 
@@ -864,7 +866,7 @@ ___
864
866
 
865
867
  #### Defined in
866
868
 
867
- [each.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/each.ts#L4)
869
+ [each.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/each.ts#L4)
868
870
 
869
871
  ▸ **each**<`T`\>(`data`, `callback`): `void`
870
872
 
@@ -887,7 +889,7 @@ ___
887
889
 
888
890
  #### Defined in
889
891
 
890
- [each.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/each.ts#L8)
892
+ [each.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/each.ts#L8)
891
893
 
892
894
  ___
893
895
 
@@ -905,7 +907,7 @@ ___
905
907
 
906
908
  #### Defined in
907
909
 
908
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/exitFullscreen.ts#L6)
910
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/exitFullscreen.ts#L6)
909
911
 
910
912
  ___
911
913
 
@@ -934,7 +936,7 @@ ___
934
936
 
935
937
  #### Defined in
936
938
 
937
- [storage/factory.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/storage/factory.ts#L11)
939
+ [storage/factory.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/storage/factory.ts#L11)
938
940
 
939
941
  ___
940
942
 
@@ -956,7 +958,7 @@ ___
956
958
 
957
959
  #### Defined in
958
960
 
959
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterBankCardNo.ts#L4)
961
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterBankCardNo.ts#L4)
960
962
 
961
963
  ___
962
964
 
@@ -978,7 +980,7 @@ ___
978
980
 
979
981
  #### Defined in
980
982
 
981
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterCRLF.ts#L4)
983
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterCRLF.ts#L4)
982
984
 
983
985
  ___
984
986
 
@@ -1000,7 +1002,7 @@ ___
1000
1002
 
1001
1003
  #### Defined in
1002
1004
 
1003
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterEmoji.ts#L4)
1005
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterEmoji.ts#L4)
1004
1006
 
1005
1007
  ___
1006
1008
 
@@ -1023,7 +1025,7 @@ ___
1023
1025
 
1024
1026
  #### Defined in
1025
1027
 
1026
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/c7e0698/src/filterEmptyValue.ts#L12)
1028
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/filterEmptyValue.ts#L12)
1027
1029
 
1028
1030
  ___
1029
1031
 
@@ -1046,7 +1048,7 @@ ___
1046
1048
 
1047
1049
  #### Defined in
1048
1050
 
1049
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/filterIdCard.ts#L5)
1051
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/filterIdCard.ts#L5)
1050
1052
 
1051
1053
  ___
1052
1054
 
@@ -1068,7 +1070,7 @@ ___
1068
1070
 
1069
1071
  #### Defined in
1070
1072
 
1071
- [filterName.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/filterName.ts#L4)
1073
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/filterName.ts#L4)
1072
1074
 
1073
1075
  ___
1074
1076
 
@@ -1093,7 +1095,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
1093
1095
 
1094
1096
  #### Defined in
1095
1097
 
1096
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/filterPhone.ts#L6)
1098
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/filterPhone.ts#L6)
1097
1099
 
1098
1100
  ___
1099
1101
 
@@ -1120,7 +1122,7 @@ str = '131****8888'
1120
1122
 
1121
1123
  #### Defined in
1122
1124
 
1123
- [filterString.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/filterString.ts#L6)
1125
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/filterString.ts#L6)
1124
1126
 
1125
1127
  ___
1126
1128
 
@@ -1143,7 +1145,7 @@ ___
1143
1145
 
1144
1146
  #### Defined in
1145
1147
 
1146
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/formatAmount.ts#L4)
1148
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formatAmount.ts#L4)
1147
1149
 
1148
1150
  ___
1149
1151
 
@@ -1167,7 +1169,7 @@ ___
1167
1169
 
1168
1170
  #### Defined in
1169
1171
 
1170
- [formatDate.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/formatDate.ts#L7)
1172
+ [formatDate.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/formatDate.ts#L7)
1171
1173
 
1172
1174
  ___
1173
1175
 
@@ -1198,7 +1200,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1198
1200
 
1199
1201
  #### Defined in
1200
1202
 
1201
- [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/formatDateStr.ts#L6)
1203
+ [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/formatDateStr.ts#L6)
1202
1204
 
1203
1205
  ___
1204
1206
 
@@ -1218,7 +1220,7 @@ ___
1218
1220
 
1219
1221
  #### Defined in
1220
1222
 
1221
- [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/formartDateToZN.ts#L4)
1223
+ [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formartDateToZN.ts#L4)
1222
1224
 
1223
1225
  ___
1224
1226
 
@@ -1241,7 +1243,7 @@ ___
1241
1243
 
1242
1244
  #### Defined in
1243
1245
 
1244
- [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/formatFileSize.ts#L4)
1246
+ [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/formatFileSize.ts#L4)
1245
1247
 
1246
1248
  ___
1247
1249
 
@@ -1266,7 +1268,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1266
1268
 
1267
1269
  #### Defined in
1268
1270
 
1269
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/formatMessage.ts#L11)
1271
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/formatMessage.ts#L11)
1270
1272
 
1271
1273
  ___
1272
1274
 
@@ -1298,7 +1300,7 @@ rest = { xxx: 1 }
1298
1300
 
1299
1301
  #### Defined in
1300
1302
 
1301
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/formatPathParams.ts#L8)
1303
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/formatPathParams.ts#L8)
1302
1304
 
1303
1305
  ___
1304
1306
 
@@ -1320,7 +1322,7 @@ ___
1320
1322
 
1321
1323
  #### Defined in
1322
1324
 
1323
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getBlobByUrl.ts#L4)
1325
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getBlobByUrl.ts#L4)
1324
1326
 
1325
1327
  ___
1326
1328
 
@@ -1343,7 +1345,7 @@ ___
1343
1345
 
1344
1346
  #### Defined in
1345
1347
 
1346
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/storage/index.ts#L9)
1348
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/storage/index.ts#L9)
1347
1349
 
1348
1350
  ___
1349
1351
 
@@ -1365,7 +1367,7 @@ ___
1365
1367
 
1366
1368
  #### Defined in
1367
1369
 
1368
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getDayMillisecond.ts#L4)
1370
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getDayMillisecond.ts#L4)
1369
1371
 
1370
1372
  ___
1371
1373
 
@@ -1388,7 +1390,7 @@ ___
1388
1390
 
1389
1391
  #### Defined in
1390
1392
 
1391
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getImageInfo.ts#L4)
1393
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getImageInfo.ts#L4)
1392
1394
 
1393
1395
  ___
1394
1396
 
@@ -1411,7 +1413,46 @@ ___
1411
1413
 
1412
1414
  #### Defined in
1413
1415
 
1414
- [storage/index.ts:9](https://github.com/daysnap/utils/blob/c7e0698/src/storage/index.ts#L9)
1416
+ [storage/index.ts:9](https://github.com/daysnap/utils/blob/c4d6925/src/storage/index.ts#L9)
1417
+
1418
+ ___
1419
+
1420
+ ### getMonthBounds
1421
+
1422
+ ▸ **getMonthBounds**(`value`): [`Date`, `Date`]
1423
+
1424
+ 获取当前月份的开始时间和结束时间
1425
+
1426
+ #### Parameters
1427
+
1428
+ | Name | Type |
1429
+ | :------ | :------ |
1430
+ | `value` | `string` \| `number` \| `Date` |
1431
+
1432
+ #### Returns
1433
+
1434
+ [`Date`, `Date`]
1435
+
1436
+ #### Defined in
1437
+
1438
+ [getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getMonthBounds.ts#L7)
1439
+
1440
+ ▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
1441
+
1442
+ #### Parameters
1443
+
1444
+ | Name | Type |
1445
+ | :------ | :------ |
1446
+ | `value` | `string` \| `number` \| `Date` |
1447
+ | `fmt` | `string` |
1448
+
1449
+ #### Returns
1450
+
1451
+ [`string`, `string`]
1452
+
1453
+ #### Defined in
1454
+
1455
+ [getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/getMonthBounds.ts#L8)
1415
1456
 
1416
1457
  ___
1417
1458
 
@@ -1434,7 +1475,7 @@ ___
1434
1475
 
1435
1476
  #### Defined in
1436
1477
 
1437
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/getRandom.ts#L7)
1478
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRandom.ts#L7)
1438
1479
 
1439
1480
  ___
1440
1481
 
@@ -1450,7 +1491,7 @@ ___
1450
1491
 
1451
1492
  #### Defined in
1452
1493
 
1453
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getRandomColor.ts#L4)
1494
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getRandomColor.ts#L4)
1454
1495
 
1455
1496
  ___
1456
1497
 
@@ -1472,7 +1513,7 @@ ___
1472
1513
 
1473
1514
  #### Defined in
1474
1515
 
1475
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/getRandomNumber.ts#L7)
1516
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRandomNumber.ts#L7)
1476
1517
 
1477
1518
  ___
1478
1519
 
@@ -1495,7 +1536,7 @@ ___
1495
1536
 
1496
1537
  #### Defined in
1497
1538
 
1498
- getRangeDate.ts:7
1539
+ [getRangeDate.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/getRangeDate.ts#L7)
1499
1540
 
1500
1541
  ▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
1501
1542
 
@@ -1513,7 +1554,7 @@ getRangeDate.ts:7
1513
1554
 
1514
1555
  #### Defined in
1515
1556
 
1516
- getRangeDate.ts:11
1557
+ [getRangeDate.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/getRangeDate.ts#L11)
1517
1558
 
1518
1559
  ___
1519
1560
 
@@ -1529,7 +1570,7 @@ ___
1529
1570
 
1530
1571
  #### Defined in
1531
1572
 
1532
- [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getScrollTop.ts#L4)
1573
+ [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getScrollTop.ts#L4)
1533
1574
 
1534
1575
  ___
1535
1576
 
@@ -1551,7 +1592,7 @@ ___
1551
1592
 
1552
1593
  #### Defined in
1553
1594
 
1554
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/getVideoInfo.ts#L4)
1595
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/getVideoInfo.ts#L4)
1555
1596
 
1556
1597
  ___
1557
1598
 
@@ -1574,7 +1615,7 @@ ___
1574
1615
 
1575
1616
  #### Defined in
1576
1617
 
1577
- [getWeekday.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/getWeekday.ts#L6)
1618
+ [getWeekday.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/getWeekday.ts#L6)
1578
1619
 
1579
1620
  ___
1580
1621
 
@@ -1590,7 +1631,7 @@ ___
1590
1631
 
1591
1632
  #### Defined in
1592
1633
 
1593
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/inBrowser.ts#L4)
1634
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/inBrowser.ts#L4)
1594
1635
 
1595
1636
  ___
1596
1637
 
@@ -1612,7 +1653,7 @@ ___
1612
1653
 
1613
1654
  #### Defined in
1614
1655
 
1615
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/insertLink.ts#L4)
1656
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertLink.ts#L4)
1616
1657
 
1617
1658
  ▸ **insertLink**(`href`, `callback`): `void`
1618
1659
 
@@ -1629,7 +1670,7 @@ ___
1629
1670
 
1630
1671
  #### Defined in
1631
1672
 
1632
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/insertLink.ts#L5)
1673
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/insertLink.ts#L5)
1633
1674
 
1634
1675
  ___
1635
1676
 
@@ -1651,7 +1692,7 @@ ___
1651
1692
 
1652
1693
  #### Defined in
1653
1694
 
1654
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/insertScript.ts#L4)
1695
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertScript.ts#L4)
1655
1696
 
1656
1697
  ▸ **insertScript**(`src`, `callback`): `void`
1657
1698
 
@@ -1668,7 +1709,7 @@ ___
1668
1709
 
1669
1710
  #### Defined in
1670
1711
 
1671
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/insertScript.ts#L5)
1712
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/insertScript.ts#L5)
1672
1713
 
1673
1714
  ___
1674
1715
 
@@ -1690,7 +1731,7 @@ ___
1690
1731
 
1691
1732
  #### Defined in
1692
1733
 
1693
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/insertStyle.ts#L4)
1734
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/insertStyle.ts#L4)
1694
1735
 
1695
1736
  ___
1696
1737
 
@@ -1719,7 +1760,7 @@ isAmount('1.123') => false
1719
1760
 
1720
1761
  #### Defined in
1721
1762
 
1722
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/c7e0698/src/isAmount.ts#L11)
1763
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/c4d6925/src/isAmount.ts#L11)
1723
1764
 
1724
1765
  ___
1725
1766
 
@@ -1735,7 +1776,7 @@ ___
1735
1776
 
1736
1777
  #### Defined in
1737
1778
 
1738
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isAndroid.ts#L4)
1779
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isAndroid.ts#L4)
1739
1780
 
1740
1781
  ___
1741
1782
 
@@ -1759,7 +1800,7 @@ val is any[]
1759
1800
 
1760
1801
  #### Defined in
1761
1802
 
1762
- [isArray.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isArray.ts#L6)
1803
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isArray.ts#L6)
1763
1804
 
1764
1805
  ___
1765
1806
 
@@ -1781,7 +1822,7 @@ val is boolean
1781
1822
 
1782
1823
  #### Defined in
1783
1824
 
1784
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isBoolean.ts#L5)
1825
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isBoolean.ts#L5)
1785
1826
 
1786
1827
  ___
1787
1828
 
@@ -1803,7 +1844,7 @@ ___
1803
1844
 
1804
1845
  #### Defined in
1805
1846
 
1806
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isChinese.ts#L4)
1847
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isChinese.ts#L4)
1807
1848
 
1808
1849
  ___
1809
1850
 
@@ -1825,7 +1866,7 @@ val is Date
1825
1866
 
1826
1867
  #### Defined in
1827
1868
 
1828
- [isDate.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isDate.ts#L4)
1869
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isDate.ts#L4)
1829
1870
 
1830
1871
  ___
1831
1872
 
@@ -1847,7 +1888,7 @@ ___
1847
1888
 
1848
1889
  #### Defined in
1849
1890
 
1850
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isEmail.ts#L4)
1891
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isEmail.ts#L4)
1851
1892
 
1852
1893
  ___
1853
1894
 
@@ -1869,7 +1910,7 @@ ___
1869
1910
 
1870
1911
  #### Defined in
1871
1912
 
1872
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isEmpty.ts#L6)
1913
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isEmpty.ts#L6)
1873
1914
 
1874
1915
  ___
1875
1916
 
@@ -1891,7 +1932,7 @@ ___
1891
1932
 
1892
1933
  #### Defined in
1893
1934
 
1894
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isEmptyArray.ts#L6)
1935
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isEmptyArray.ts#L6)
1895
1936
 
1896
1937
  ___
1897
1938
 
@@ -1913,7 +1954,7 @@ ___
1913
1954
 
1914
1955
  #### Defined in
1915
1956
 
1916
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isEmptyObject.ts#L5)
1957
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isEmptyObject.ts#L5)
1917
1958
 
1918
1959
  ___
1919
1960
 
@@ -1935,7 +1976,7 @@ val is Error
1935
1976
 
1936
1977
  #### Defined in
1937
1978
 
1938
- [isError.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isError.ts#L4)
1979
+ [isError.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isError.ts#L4)
1939
1980
 
1940
1981
  ___
1941
1982
 
@@ -1957,7 +1998,7 @@ val is Function
1957
1998
 
1958
1999
  #### Defined in
1959
2000
 
1960
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isFunction.ts#L4)
2001
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isFunction.ts#L4)
1961
2002
 
1962
2003
  ___
1963
2004
 
@@ -1975,7 +2016,7 @@ ___
1975
2016
 
1976
2017
  #### Defined in
1977
2018
 
1978
- [isIE.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isIE.ts#L6)
2019
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isIE.ts#L6)
1979
2020
 
1980
2021
  ___
1981
2022
 
@@ -1991,7 +2032,7 @@ ___
1991
2032
 
1992
2033
  #### Defined in
1993
2034
 
1994
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isIOS.ts#L4)
2035
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isIOS.ts#L4)
1995
2036
 
1996
2037
  ___
1997
2038
 
@@ -2013,7 +2054,7 @@ ___
2013
2054
 
2014
2055
  #### Defined in
2015
2056
 
2016
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isIdCard.ts#L4)
2057
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isIdCard.ts#L4)
2017
2058
 
2018
2059
  ___
2019
2060
 
@@ -2035,7 +2076,7 @@ ___
2035
2076
 
2036
2077
  #### Defined in
2037
2078
 
2038
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/isJSONString.ts#L7)
2079
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/isJSONString.ts#L7)
2039
2080
 
2040
2081
  ___
2041
2082
 
@@ -2057,7 +2098,7 @@ ___
2057
2098
 
2058
2099
  #### Defined in
2059
2100
 
2060
- [isLan.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isLan.ts#L5)
2101
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isLan.ts#L5)
2061
2102
 
2062
2103
  ___
2063
2104
 
@@ -2079,7 +2120,7 @@ ___
2079
2120
 
2080
2121
  #### Defined in
2081
2122
 
2082
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isLicenseCode.ts#L5)
2123
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isLicenseCode.ts#L5)
2083
2124
 
2084
2125
  ___
2085
2126
 
@@ -2095,7 +2136,7 @@ ___
2095
2136
 
2096
2137
  #### Defined in
2097
2138
 
2098
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isMobile.ts#L4)
2139
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isMobile.ts#L4)
2099
2140
 
2100
2141
  ___
2101
2142
 
@@ -2118,7 +2159,7 @@ ___
2118
2159
 
2119
2160
  #### Defined in
2120
2161
 
2121
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/isNativeFunction.ts#L7)
2162
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/isNativeFunction.ts#L7)
2122
2163
 
2123
2164
  ___
2124
2165
 
@@ -2140,7 +2181,7 @@ val is null
2140
2181
 
2141
2182
  #### Defined in
2142
2183
 
2143
- [isNull.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isNull.ts#L4)
2184
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isNull.ts#L4)
2144
2185
 
2145
2186
  ___
2146
2187
 
@@ -2162,7 +2203,7 @@ val is number
2162
2203
 
2163
2204
  #### Defined in
2164
2205
 
2165
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isNumber.ts#L5)
2206
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isNumber.ts#L5)
2166
2207
 
2167
2208
  ___
2168
2209
 
@@ -2184,7 +2225,7 @@ val is Record<string, any\>
2184
2225
 
2185
2226
  #### Defined in
2186
2227
 
2187
- [isObject.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isObject.ts#L4)
2228
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isObject.ts#L4)
2188
2229
 
2189
2230
  ___
2190
2231
 
@@ -2206,7 +2247,7 @@ ___
2206
2247
 
2207
2248
  #### Defined in
2208
2249
 
2209
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isPhone.ts#L4)
2250
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isPhone.ts#L4)
2210
2251
 
2211
2252
  ___
2212
2253
 
@@ -2234,7 +2275,7 @@ val is Promise<T\>
2234
2275
 
2235
2276
  #### Defined in
2236
2277
 
2237
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isPromise.ts#L4)
2278
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isPromise.ts#L4)
2238
2279
 
2239
2280
  ___
2240
2281
 
@@ -2256,7 +2297,7 @@ val is RegExp
2256
2297
 
2257
2298
  #### Defined in
2258
2299
 
2259
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isRegExp.ts#L4)
2300
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isRegExp.ts#L4)
2260
2301
 
2261
2302
  ___
2262
2303
 
@@ -2278,7 +2319,7 @@ val is string
2278
2319
 
2279
2320
  #### Defined in
2280
2321
 
2281
- [isString.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isString.ts#L4)
2322
+ [isString.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isString.ts#L4)
2282
2323
 
2283
2324
  ___
2284
2325
 
@@ -2307,7 +2348,7 @@ val is T
2307
2348
 
2308
2349
  #### Defined in
2309
2350
 
2310
- [isType.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isType.ts#L4)
2351
+ [isType.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isType.ts#L4)
2311
2352
 
2312
2353
  ___
2313
2354
 
@@ -2329,7 +2370,7 @@ val is undefined
2329
2370
 
2330
2371
  #### Defined in
2331
2372
 
2332
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isUndefined.ts#L4)
2373
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isUndefined.ts#L4)
2333
2374
 
2334
2375
  ___
2335
2376
 
@@ -2373,7 +2414,7 @@ ___
2373
2414
 
2374
2415
  #### Defined in
2375
2416
 
2376
- [isValidDate.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/isValidDate.ts#L6)
2417
+ [isValidDate.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/isValidDate.ts#L6)
2377
2418
 
2378
2419
  ___
2379
2420
 
@@ -2389,7 +2430,7 @@ ___
2389
2430
 
2390
2431
  #### Defined in
2391
2432
 
2392
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/isWeChat.ts#L4)
2433
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChat.ts#L4)
2393
2434
 
2394
2435
  ___
2395
2436
 
@@ -2406,7 +2447,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2406
2447
 
2407
2448
  #### Defined in
2408
2449
 
2409
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isWeChatMiniProgram.ts#L5)
2450
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChatMiniProgram.ts#L5)
2410
2451
 
2411
2452
  ___
2412
2453
 
@@ -2430,7 +2471,7 @@ ___
2430
2471
 
2431
2472
  #### Defined in
2432
2473
 
2433
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/c7e0698/src/isWeChat.ts#L12)
2474
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/c4d6925/src/isWeChat.ts#L12)
2434
2475
 
2435
2476
  ___
2436
2477
 
@@ -2452,7 +2493,7 @@ val is Window
2452
2493
 
2453
2494
  #### Defined in
2454
2495
 
2455
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/isWindow.ts#L5)
2496
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/isWindow.ts#L5)
2456
2497
 
2457
2498
  ___
2458
2499
 
@@ -2475,7 +2516,7 @@ kebabCase('helloWorld') => hello-world
2475
2516
 
2476
2517
  #### Defined in
2477
2518
 
2478
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/kebabCase.ts#L5)
2519
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/kebabCase.ts#L5)
2479
2520
 
2480
2521
  ___
2481
2522
 
@@ -2504,7 +2545,7 @@ list 生成器,快速生成数据
2504
2545
 
2505
2546
  #### Defined in
2506
2547
 
2507
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/listGenerator.ts#L5)
2548
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/listGenerator.ts#L5)
2508
2549
 
2509
2550
  ___
2510
2551
 
@@ -2524,7 +2565,7 @@ ___
2524
2565
 
2525
2566
  #### Defined in
2526
2567
 
2527
- [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/c7e0698/src/makePhoneCall.ts#L1)
2568
+ [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/c4d6925/src/makePhoneCall.ts#L1)
2528
2569
 
2529
2570
  ___
2530
2571
 
@@ -2549,7 +2590,7 @@ ___
2549
2590
 
2550
2591
  #### Defined in
2551
2592
 
2552
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/c7e0698/src/mousewheel.ts#L22)
2593
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/c4d6925/src/mousewheel.ts#L22)
2553
2594
 
2554
2595
  ___
2555
2596
 
@@ -2565,7 +2606,7 @@ ___
2565
2606
 
2566
2607
  #### Defined in
2567
2608
 
2568
- [nf.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/nf.ts#L4)
2609
+ [nf.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/nf.ts#L4)
2569
2610
 
2570
2611
  ___
2571
2612
 
@@ -2589,7 +2630,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
2589
2630
 
2590
2631
  #### Defined in
2591
2632
 
2592
- [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/normalizeDate.ts#L8)
2633
+ [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/normalizeDate.ts#L8)
2593
2634
 
2594
2635
  ___
2595
2636
 
@@ -2611,7 +2652,7 @@ ___
2611
2652
 
2612
2653
  #### Defined in
2613
2654
 
2614
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/normalizePath.ts#L4)
2655
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/normalizePath.ts#L4)
2615
2656
 
2616
2657
  ___
2617
2658
 
@@ -2641,7 +2682,7 @@ ___
2641
2682
 
2642
2683
  #### Defined in
2643
2684
 
2644
- [omit.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/omit.ts#L4)
2685
+ [omit.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/omit.ts#L4)
2645
2686
 
2646
2687
  ___
2647
2688
 
@@ -2665,7 +2706,7 @@ ___
2665
2706
 
2666
2707
  #### Defined in
2667
2708
 
2668
- [padding.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/padding.ts#L7)
2709
+ [padding.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/padding.ts#L7)
2669
2710
 
2670
2711
  ___
2671
2712
 
@@ -2691,7 +2732,7 @@ ___
2691
2732
 
2692
2733
  #### Defined in
2693
2734
 
2694
- [parseDate.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/parseDate.ts#L5)
2735
+ [parseDate.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/parseDate.ts#L5)
2695
2736
 
2696
2737
  ___
2697
2738
 
@@ -2714,7 +2755,7 @@ ___
2714
2755
 
2715
2756
  #### Defined in
2716
2757
 
2717
- [parseError.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/parseError.ts#L8)
2758
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/parseError.ts#L8)
2718
2759
 
2719
2760
  ___
2720
2761
 
@@ -2744,7 +2785,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
2744
2785
 
2745
2786
  #### Defined in
2746
2787
 
2747
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/parseObject.ts#L5)
2788
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/parseObject.ts#L5)
2748
2789
 
2749
2790
  ___
2750
2791
 
@@ -2773,7 +2814,7 @@ ___
2773
2814
 
2774
2815
  #### Defined in
2775
2816
 
2776
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/parsePath.ts#L6)
2817
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/parsePath.ts#L6)
2777
2818
 
2778
2819
  ___
2779
2820
 
@@ -2796,7 +2837,7 @@ ___
2796
2837
 
2797
2838
  #### Defined in
2798
2839
 
2799
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/parseQuery.ts#L8)
2840
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/parseQuery.ts#L8)
2800
2841
 
2801
2842
  ___
2802
2843
 
@@ -2826,7 +2867,7 @@ ___
2826
2867
 
2827
2868
  #### Defined in
2828
2869
 
2829
- [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/parseQueryString.ts#L6)
2870
+ [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/parseQueryString.ts#L6)
2830
2871
 
2831
2872
  ___
2832
2873
 
@@ -2849,7 +2890,7 @@ pascalCase('hello-world') => HelloWorld
2849
2890
 
2850
2891
  #### Defined in
2851
2892
 
2852
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/pascalCase.ts#L8)
2893
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/pascalCase.ts#L8)
2853
2894
 
2854
2895
  ___
2855
2896
 
@@ -2879,7 +2920,7 @@ ___
2879
2920
 
2880
2921
  #### Defined in
2881
2922
 
2882
- [pick.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/pick.ts#L4)
2923
+ [pick.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/pick.ts#L4)
2883
2924
 
2884
2925
  ___
2885
2926
 
@@ -2902,7 +2943,7 @@ ___
2902
2943
 
2903
2944
  #### Defined in
2904
2945
 
2905
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/replaceCrlf.ts#L4)
2946
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/replaceCrlf.ts#L4)
2906
2947
 
2907
2948
  ___
2908
2949
 
@@ -2926,7 +2967,7 @@ ___
2926
2967
 
2927
2968
  #### Defined in
2928
2969
 
2929
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/requestFullScreen.ts#L6)
2970
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/requestFullScreen.ts#L6)
2930
2971
 
2931
2972
  ___
2932
2973
 
@@ -2952,7 +2993,7 @@ reserve(0, '--') => 0
2952
2993
 
2953
2994
  #### Defined in
2954
2995
 
2955
- [reserve.ts:8](https://github.com/daysnap/utils/blob/c7e0698/src/reserve.ts#L8)
2996
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/c4d6925/src/reserve.ts#L8)
2956
2997
 
2957
2998
  ___
2958
2999
 
@@ -2976,7 +3017,7 @@ ___
2976
3017
 
2977
3018
  #### Defined in
2978
3019
 
2979
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/rgbToHex.ts#L4)
3020
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/rgbToHex.ts#L4)
2980
3021
 
2981
3022
  ___
2982
3023
 
@@ -2999,7 +3040,7 @@ ___
2999
3040
 
3000
3041
  #### Defined in
3001
3042
 
3002
- [round.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/round.ts#L6)
3043
+ [round.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/round.ts#L6)
3003
3044
 
3004
3045
  ___
3005
3046
 
@@ -3015,7 +3056,7 @@ ___
3015
3056
 
3016
3057
  #### Defined in
3017
3058
 
3018
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/scrollToTop.ts#L4)
3059
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/scrollToTop.ts#L4)
3019
3060
 
3020
3061
  ___
3021
3062
 
@@ -3037,7 +3078,7 @@ ___
3037
3078
 
3038
3079
  #### Defined in
3039
3080
 
3040
- [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/setScrollTop.ts#L4)
3081
+ [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/setScrollTop.ts#L4)
3041
3082
 
3042
3083
  ___
3043
3084
 
@@ -3060,7 +3101,7 @@ ___
3060
3101
 
3061
3102
  #### Defined in
3062
3103
 
3063
- [sleep.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/sleep.ts#L6)
3104
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/sleep.ts#L6)
3064
3105
 
3065
3106
  ___
3066
3107
 
@@ -3089,7 +3130,7 @@ ___
3089
3130
 
3090
3131
  #### Defined in
3091
3132
 
3092
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/splitArray.ts#L4)
3133
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/splitArray.ts#L4)
3093
3134
 
3094
3135
  ___
3095
3136
 
@@ -3112,7 +3153,7 @@ ___
3112
3153
 
3113
3154
  #### Defined in
3114
3155
 
3115
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/stringTrim.ts#L6)
3156
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/stringTrim.ts#L6)
3116
3157
 
3117
3158
  ___
3118
3159
 
@@ -3134,7 +3175,7 @@ ___
3134
3175
 
3135
3176
  #### Defined in
3136
3177
 
3137
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/c7e0698/src/stringifyQuery.ts#L7)
3178
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/c4d6925/src/stringifyQuery.ts#L7)
3138
3179
 
3139
3180
  ___
3140
3181
 
@@ -3158,7 +3199,7 @@ ___
3158
3199
 
3159
3200
  #### Defined in
3160
3201
 
3161
- [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/stringifyQueryString.ts#L6)
3202
+ [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/stringifyQueryString.ts#L6)
3162
3203
 
3163
3204
  ___
3164
3205
 
@@ -3202,7 +3243,7 @@ ___
3202
3243
 
3203
3244
  #### Defined in
3204
3245
 
3205
- [throttle.ts:48](https://github.com/daysnap/utils/blob/c7e0698/src/throttle.ts#L48)
3246
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L48)
3206
3247
 
3207
3248
  ___
3208
3249
 
@@ -3245,7 +3286,7 @@ ___
3245
3286
 
3246
3287
  #### Defined in
3247
3288
 
3248
- [throttle.ts:5](https://github.com/daysnap/utils/blob/c7e0698/src/throttle.ts#L5)
3289
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L5)
3249
3290
 
3250
3291
  ___
3251
3292
 
@@ -3288,7 +3329,7 @@ ___
3288
3329
 
3289
3330
  #### Defined in
3290
3331
 
3291
- [throttle.ts:25](https://github.com/daysnap/utils/blob/c7e0698/src/throttle.ts#L25)
3332
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/c4d6925/src/throttle.ts#L25)
3292
3333
 
3293
3334
  ___
3294
3335
 
@@ -3310,7 +3351,7 @@ ___
3310
3351
 
3311
3352
  #### Defined in
3312
3353
 
3313
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/toCDB.ts#L4)
3354
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/toCDB.ts#L4)
3314
3355
 
3315
3356
  ___
3316
3357
 
@@ -3332,7 +3373,7 @@ ___
3332
3373
 
3333
3374
  #### Defined in
3334
3375
 
3335
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/toDBC.ts#L4)
3376
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/toDBC.ts#L4)
3336
3377
 
3337
3378
  ___
3338
3379
 
@@ -3356,7 +3397,35 @@ ___
3356
3397
 
3357
3398
  #### Defined in
3358
3399
 
3359
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/c7e0698/src/typeOf.ts#L6)
3400
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/c4d6925/src/typeOf.ts#L6)
3401
+
3402
+ ___
3403
+
3404
+ ### withCache
3405
+
3406
+ ▸ **withCache**<`T`\>(`fn`): `T`
3407
+
3408
+ 缓存函数
3409
+
3410
+ #### Type parameters
3411
+
3412
+ | Name | Type |
3413
+ | :------ | :------ |
3414
+ | `T` | extends (...`args`: `any`[]) => `any` |
3415
+
3416
+ #### Parameters
3417
+
3418
+ | Name | Type |
3419
+ | :------ | :------ |
3420
+ | `fn` | `T` |
3421
+
3422
+ #### Returns
3423
+
3424
+ `T`
3425
+
3426
+ #### Defined in
3427
+
3428
+ withCache.ts:4
3360
3429
 
3361
3430
  ___
3362
3431
 
@@ -3385,4 +3454,4 @@ ___
3385
3454
 
3386
3455
  #### Defined in
3387
3456
 
3388
- [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/c7e0698/src/withPreventConsecutiveClicks.ts#L4)
3457
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/c4d6925/src/withPreventConsecutiveClicks.ts#L4)