@daysnap/utils 0.1.22 → 0.1.24

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
@@ -164,6 +164,7 @@
164
164
  - [throttleTrailing](modules.md#throttletrailing)
165
165
  - [toCDB](modules.md#tocdb)
166
166
  - [toDBC](modules.md#todbc)
167
+ - [toFormData](modules.md#toformdata)
167
168
  - [typeOf](modules.md#typeof)
168
169
  - [withCache](modules.md#withcache)
169
170
  - [withPreventConsecutiveClicks](modules.md#withpreventconsecutiveclicks)
@@ -190,7 +191,7 @@
190
191
 
191
192
  #### Defined in
192
193
 
193
- [poller.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/poller.ts#L7)
194
+ [poller.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/poller.ts#L7)
194
195
 
195
196
  ## Variables
196
197
 
@@ -209,7 +210,7 @@
209
210
 
210
211
  #### Defined in
211
212
 
212
- [eventBus.ts:38](https://github.com/daysnap/utils/blob/fc94354/src/eventBus.ts#L38)
213
+ [eventBus.ts:38](https://github.com/daysnap/utils/blob/d84478c/src/eventBus.ts#L38)
213
214
 
214
215
  ___
215
216
 
@@ -219,7 +220,7 @@ ___
219
220
 
220
221
  #### Defined in
221
222
 
222
- [trap.ts:15](https://github.com/daysnap/utils/blob/fc94354/src/trap.ts#L15)
223
+ [trap.ts:15](https://github.com/daysnap/utils/blob/d84478c/src/trap.ts#L15)
223
224
 
224
225
  ## Functions
225
226
 
@@ -248,7 +249,7 @@ res = { '1': '男', '2': '女' }
248
249
 
249
250
  | Name | Type |
250
251
  | :------ | :------ |
251
- | `options` | `T`[] |
252
+ | `options` | readonly `T`[] |
252
253
  | `labelKey` | `K` |
253
254
 
254
255
  #### Returns
@@ -257,9 +258,9 @@ res = { '1': '男', '2': '女' }
257
258
 
258
259
  #### Defined in
259
260
 
260
- [ato.ts:12](https://github.com/daysnap/utils/blob/fc94354/src/ato.ts#L12)
261
+ [ato.ts:12](https://github.com/daysnap/utils/blob/d84478c/src/ato.ts#L12)
261
262
 
262
- ▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
263
+ ▸ **ato**<`T`, `K`, `V`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `T`[`V`]\>
263
264
 
264
265
  #### Type parameters
265
266
 
@@ -267,22 +268,23 @@ res = { '1': '男', '2': '女' }
267
268
  | :------ | :------ |
268
269
  | `T` | extends `Record`<`string`, `any`\> |
269
270
  | `K` | extends `string` \| `number` \| `symbol` |
271
+ | `V` | extends `string` \| `number` \| `symbol` |
270
272
 
271
273
  #### Parameters
272
274
 
273
275
  | Name | Type |
274
276
  | :------ | :------ |
275
- | `options` | `T`[] |
277
+ | `options` | readonly `T`[] |
276
278
  | `labelKey` | `K` |
277
- | `valueKey` | `K` |
279
+ | `valueKey` | `V` |
278
280
 
279
281
  #### Returns
280
282
 
281
- `Record`<`T`[`K`], `any`\>
283
+ `Record`<`T`[`K`], `T`[`V`]\>
282
284
 
283
285
  #### Defined in
284
286
 
285
- [ato.ts:16](https://github.com/daysnap/utils/blob/fc94354/src/ato.ts#L16)
287
+ [ato.ts:16](https://github.com/daysnap/utils/blob/d84478c/src/ato.ts#L16)
286
288
 
287
289
  ___
288
290
 
@@ -302,7 +304,7 @@ ___
302
304
 
303
305
  #### Defined in
304
306
 
305
- [decode.ts:41](https://github.com/daysnap/utils/blob/fc94354/src/decode.ts#L41)
307
+ [decode.ts:41](https://github.com/daysnap/utils/blob/d84478c/src/decode.ts#L41)
306
308
 
307
309
  ___
308
310
 
@@ -325,7 +327,7 @@ base64 转 blob
325
327
 
326
328
  #### Defined in
327
329
 
328
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/base64ToBlob.ts#L6)
330
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/base64ToBlob.ts#L6)
329
331
 
330
332
  ___
331
333
 
@@ -347,7 +349,7 @@ blob 转 base64
347
349
 
348
350
  #### Defined in
349
351
 
350
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/blobToBase64.ts#L4)
352
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/blobToBase64.ts#L4)
351
353
 
352
354
  ___
353
355
 
@@ -367,7 +369,7 @@ ___
367
369
 
368
370
  #### Defined in
369
371
 
370
- [decode.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/decode.ts#L8)
372
+ [decode.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/decode.ts#L8)
371
373
 
372
374
  ___
373
375
 
@@ -408,7 +410,7 @@ ___
408
410
 
409
411
  #### Defined in
410
412
 
411
- [cached.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/cached.ts#L5)
413
+ [cached.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/cached.ts#L5)
412
414
 
413
415
  ___
414
416
 
@@ -431,7 +433,7 @@ camelCase('hello-world') => helloWorld
431
433
 
432
434
  #### Defined in
433
435
 
434
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/camelCase.ts#L5)
436
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/camelCase.ts#L5)
435
437
 
436
438
  ___
437
439
 
@@ -455,7 +457,7 @@ canvas 转 blob 文件
455
457
 
456
458
  #### Defined in
457
459
 
458
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/canvasToBlob.ts#L4)
460
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/canvasToBlob.ts#L4)
459
461
 
460
462
  ___
461
463
 
@@ -478,7 +480,7 @@ capitalize('hello world') => Hello world
478
480
 
479
481
  #### Defined in
480
482
 
481
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/capitalize.ts#L5)
483
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/capitalize.ts#L5)
482
484
 
483
485
  ___
484
486
 
@@ -503,7 +505,7 @@ ___
503
505
 
504
506
  #### Defined in
505
507
 
506
- [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/chooseMedia.ts#L5)
508
+ [chooseMedia.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/chooseMedia.ts#L5)
507
509
 
508
510
  ___
509
511
 
@@ -527,7 +529,7 @@ ___
527
529
 
528
530
  #### Defined in
529
531
 
530
- [clamp.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/clamp.ts#L7)
532
+ [clamp.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/clamp.ts#L7)
531
533
 
532
534
  ___
533
535
 
@@ -555,7 +557,7 @@ ___
555
557
 
556
558
  #### Defined in
557
559
 
558
- [clone.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/clone.ts#L8)
560
+ [clone.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/clone.ts#L8)
559
561
 
560
562
  ___
561
563
 
@@ -583,7 +585,7 @@ ___
583
585
 
584
586
  #### Defined in
585
587
 
586
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/cloneSimple.ts#L7)
588
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/cloneSimple.ts#L7)
587
589
 
588
590
  ___
589
591
 
@@ -605,7 +607,7 @@ ___
605
607
 
606
608
  #### Defined in
607
609
 
608
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/createHexColorByHash.ts#L4)
610
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/createHexColorByHash.ts#L4)
609
611
 
610
612
  ___
611
613
 
@@ -631,7 +633,7 @@ ___
631
633
 
632
634
  #### Defined in
633
635
 
634
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/fc94354/src/compareVersion.ts#L9)
636
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/d84478c/src/compareVersion.ts#L9)
635
637
 
636
638
  ___
637
639
 
@@ -654,7 +656,7 @@ ___
654
656
 
655
657
  #### Defined in
656
658
 
657
- [compressImage.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/compressImage.ts#L4)
659
+ [compressImage.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/compressImage.ts#L4)
658
660
 
659
661
  ___
660
662
 
@@ -676,7 +678,7 @@ ___
676
678
 
677
679
  #### Defined in
678
680
 
679
- [crToBr.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/crToBr.ts#L4)
681
+ [crToBr.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/crToBr.ts#L4)
680
682
 
681
683
  ___
682
684
 
@@ -704,7 +706,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
704
706
 
705
707
  #### Defined in
706
708
 
707
- [createFactory.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/createFactory.ts#L4)
709
+ [createFactory.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/createFactory.ts#L4)
708
710
 
709
711
  ___
710
712
 
@@ -742,7 +744,7 @@ ___
742
744
 
743
745
  #### Defined in
744
746
 
745
- [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/fc94354/src/createLinearFunction.ts#L9)
747
+ [createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/d84478c/src/createLinearFunction.ts#L9)
746
748
 
747
749
  ___
748
750
 
@@ -774,7 +776,7 @@ ___
774
776
 
775
777
  #### Defined in
776
778
 
777
- [trap.ts:49](https://github.com/daysnap/utils/blob/fc94354/src/trap.ts#L49)
779
+ [trap.ts:49](https://github.com/daysnap/utils/blob/d84478c/src/trap.ts#L49)
778
780
 
779
781
  ___
780
782
 
@@ -837,7 +839,7 @@ fn() 执行的时候就会执行showLoading
837
839
 
838
840
  #### Defined in
839
841
 
840
- [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/fc94354/src/createWithLoading.ts#L11)
842
+ [createWithLoading.ts:11](https://github.com/daysnap/utils/blob/d84478c/src/createWithLoading.ts#L11)
841
843
 
842
844
  ___
843
845
 
@@ -859,7 +861,7 @@ ___
859
861
 
860
862
  #### Defined in
861
863
 
862
- [crlfToBr.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/crlfToBr.ts#L4)
864
+ [crlfToBr.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/crlfToBr.ts#L4)
863
865
 
864
866
  ___
865
867
 
@@ -902,7 +904,7 @@ ___
902
904
 
903
905
  #### Defined in
904
906
 
905
- [debounce.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/debounce.ts#L5)
907
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/debounce.ts#L5)
906
908
 
907
909
  ___
908
910
 
@@ -926,7 +928,7 @@ ___
926
928
 
927
929
  #### Defined in
928
930
 
929
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/downloadFile.ts#L4)
931
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/downloadFile.ts#L4)
930
932
 
931
933
  ___
932
934
 
@@ -955,7 +957,7 @@ ___
955
957
 
956
958
  #### Defined in
957
959
 
958
- [each.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/each.ts#L4)
960
+ [each.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/each.ts#L4)
959
961
 
960
962
  ▸ **each**<`T`\>(`data`, `callback`): `void`
961
963
 
@@ -978,7 +980,7 @@ ___
978
980
 
979
981
  #### Defined in
980
982
 
981
- [each.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/each.ts#L8)
983
+ [each.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/each.ts#L8)
982
984
 
983
985
  ___
984
986
 
@@ -996,7 +998,7 @@ ___
996
998
 
997
999
  #### Defined in
998
1000
 
999
- [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/exitFullscreen.ts#L6)
1001
+ [exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/exitFullscreen.ts#L6)
1000
1002
 
1001
1003
  ___
1002
1004
 
@@ -1025,7 +1027,7 @@ ___
1025
1027
 
1026
1028
  #### Defined in
1027
1029
 
1028
- [storage/factory.ts:11](https://github.com/daysnap/utils/blob/fc94354/src/storage/factory.ts#L11)
1030
+ [storage/factory.ts:11](https://github.com/daysnap/utils/blob/d84478c/src/storage/factory.ts#L11)
1029
1031
 
1030
1032
  ___
1031
1033
 
@@ -1047,7 +1049,7 @@ ___
1047
1049
 
1048
1050
  #### Defined in
1049
1051
 
1050
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/filterBankCardNo.ts#L4)
1052
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/filterBankCardNo.ts#L4)
1051
1053
 
1052
1054
  ___
1053
1055
 
@@ -1077,7 +1079,7 @@ ___
1077
1079
 
1078
1080
  #### Defined in
1079
1081
 
1080
- [crlfToBr.ts:12](https://github.com/daysnap/utils/blob/fc94354/src/crlfToBr.ts#L12)
1082
+ [crlfToBr.ts:12](https://github.com/daysnap/utils/blob/d84478c/src/crlfToBr.ts#L12)
1081
1083
 
1082
1084
  ___
1083
1085
 
@@ -1099,7 +1101,7 @@ ___
1099
1101
 
1100
1102
  #### Defined in
1101
1103
 
1102
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/filterEmoji.ts#L4)
1104
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/filterEmoji.ts#L4)
1103
1105
 
1104
1106
  ___
1105
1107
 
@@ -1122,7 +1124,7 @@ ___
1122
1124
 
1123
1125
  #### Defined in
1124
1126
 
1125
- [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/fc94354/src/filterEmptyValue.ts#L12)
1127
+ [filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/d84478c/src/filterEmptyValue.ts#L12)
1126
1128
 
1127
1129
  ___
1128
1130
 
@@ -1145,7 +1147,7 @@ ___
1145
1147
 
1146
1148
  #### Defined in
1147
1149
 
1148
- [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/filterIdCard.ts#L5)
1150
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/filterIdCard.ts#L5)
1149
1151
 
1150
1152
  ___
1151
1153
 
@@ -1167,7 +1169,7 @@ ___
1167
1169
 
1168
1170
  #### Defined in
1169
1171
 
1170
- [filterName.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/filterName.ts#L4)
1172
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/filterName.ts#L4)
1171
1173
 
1172
1174
  ___
1173
1175
 
@@ -1192,7 +1194,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
1192
1194
 
1193
1195
  #### Defined in
1194
1196
 
1195
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/filterPhone.ts#L6)
1197
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/filterPhone.ts#L6)
1196
1198
 
1197
1199
  ___
1198
1200
 
@@ -1219,7 +1221,7 @@ str = '131****8888'
1219
1221
 
1220
1222
  #### Defined in
1221
1223
 
1222
- [filterString.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/filterString.ts#L6)
1224
+ [filterString.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/filterString.ts#L6)
1223
1225
 
1224
1226
  ___
1225
1227
 
@@ -1242,7 +1244,7 @@ ___
1242
1244
 
1243
1245
  #### Defined in
1244
1246
 
1245
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/formatAmount.ts#L4)
1247
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/formatAmount.ts#L4)
1246
1248
 
1247
1249
  ___
1248
1250
 
@@ -1266,7 +1268,7 @@ ___
1266
1268
 
1267
1269
  #### Defined in
1268
1270
 
1269
- [formatDate.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/formatDate.ts#L7)
1271
+ [formatDate.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/formatDate.ts#L7)
1270
1272
 
1271
1273
  ___
1272
1274
 
@@ -1297,7 +1299,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
1297
1299
 
1298
1300
  #### Defined in
1299
1301
 
1300
- [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/formatDateStr.ts#L6)
1302
+ [formatDateStr.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/formatDateStr.ts#L6)
1301
1303
 
1302
1304
  ___
1303
1305
 
@@ -1317,7 +1319,7 @@ ___
1317
1319
 
1318
1320
  #### Defined in
1319
1321
 
1320
- [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/formartDateToZN.ts#L4)
1322
+ [formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/formartDateToZN.ts#L4)
1321
1323
 
1322
1324
  ___
1323
1325
 
@@ -1340,7 +1342,7 @@ ___
1340
1342
 
1341
1343
  #### Defined in
1342
1344
 
1343
- [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/formatFileSize.ts#L4)
1345
+ [formatFileSize.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/formatFileSize.ts#L4)
1344
1346
 
1345
1347
  ___
1346
1348
 
@@ -1363,7 +1365,7 @@ yyyyMMdd -> yyyy-MM-dd
1363
1365
 
1364
1366
  #### Defined in
1365
1367
 
1366
- [formatGapDate.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/formatGapDate.ts#L4)
1368
+ [formatGapDate.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/formatGapDate.ts#L4)
1367
1369
 
1368
1370
  ___
1369
1371
 
@@ -1388,7 +1390,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
1388
1390
 
1389
1391
  #### Defined in
1390
1392
 
1391
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/fc94354/src/formatMessage.ts#L11)
1393
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/d84478c/src/formatMessage.ts#L11)
1392
1394
 
1393
1395
  ___
1394
1396
 
@@ -1420,7 +1422,7 @@ rest = { xxx: 1 }
1420
1422
 
1421
1423
  #### Defined in
1422
1424
 
1423
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/formatPathParams.ts#L8)
1425
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/formatPathParams.ts#L8)
1424
1426
 
1425
1427
  ___
1426
1428
 
@@ -1442,7 +1444,7 @@ ___
1442
1444
 
1443
1445
  #### Defined in
1444
1446
 
1445
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/getBlobByUrl.ts#L4)
1447
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/getBlobByUrl.ts#L4)
1446
1448
 
1447
1449
  ___
1448
1450
 
@@ -1465,7 +1467,7 @@ ___
1465
1467
 
1466
1468
  #### Defined in
1467
1469
 
1468
- [storage/index.ts:10](https://github.com/daysnap/utils/blob/fc94354/src/storage/index.ts#L10)
1470
+ [storage/index.ts:10](https://github.com/daysnap/utils/blob/d84478c/src/storage/index.ts#L10)
1469
1471
 
1470
1472
  ___
1471
1473
 
@@ -1488,7 +1490,7 @@ ___
1488
1490
 
1489
1491
  #### Defined in
1490
1492
 
1491
- [getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/getDateBoundsByMonths.ts#L8)
1493
+ [getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/getDateBoundsByMonths.ts#L8)
1492
1494
 
1493
1495
  ▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
1494
1496
 
@@ -1506,7 +1508,7 @@ ___
1506
1508
 
1507
1509
  #### Defined in
1508
1510
 
1509
- [getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/fc94354/src/getDateBoundsByMonths.ts#L12)
1511
+ [getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/d84478c/src/getDateBoundsByMonths.ts#L12)
1510
1512
 
1511
1513
  ___
1512
1514
 
@@ -1528,7 +1530,7 @@ ___
1528
1530
 
1529
1531
  #### Defined in
1530
1532
 
1531
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/getDayMillisecond.ts#L4)
1533
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/getDayMillisecond.ts#L4)
1532
1534
 
1533
1535
  ___
1534
1536
 
@@ -1551,7 +1553,7 @@ ___
1551
1553
 
1552
1554
  #### Defined in
1553
1555
 
1554
- [getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/getDaysOfMonth.ts#L4)
1556
+ [getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/getDaysOfMonth.ts#L4)
1555
1557
 
1556
1558
  ___
1557
1559
 
@@ -1574,7 +1576,7 @@ ___
1574
1576
 
1575
1577
  #### Defined in
1576
1578
 
1577
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/getImageInfo.ts#L4)
1579
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/getImageInfo.ts#L4)
1578
1580
 
1579
1581
  ___
1580
1582
 
@@ -1597,7 +1599,7 @@ ___
1597
1599
 
1598
1600
  #### Defined in
1599
1601
 
1600
- [storage/index.ts:10](https://github.com/daysnap/utils/blob/fc94354/src/storage/index.ts#L10)
1602
+ [storage/index.ts:10](https://github.com/daysnap/utils/blob/d84478c/src/storage/index.ts#L10)
1601
1603
 
1602
1604
  ___
1603
1605
 
@@ -1619,7 +1621,7 @@ ___
1619
1621
 
1620
1622
  #### Defined in
1621
1623
 
1622
- [getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/getMonthBounds.ts#L7)
1624
+ [getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/getMonthBounds.ts#L7)
1623
1625
 
1624
1626
  ▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
1625
1627
 
@@ -1636,7 +1638,7 @@ ___
1636
1638
 
1637
1639
  #### Defined in
1638
1640
 
1639
- [getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/getMonthBounds.ts#L8)
1641
+ [getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/getMonthBounds.ts#L8)
1640
1642
 
1641
1643
  ___
1642
1644
 
@@ -1659,7 +1661,7 @@ ___
1659
1661
 
1660
1662
  #### Defined in
1661
1663
 
1662
- [getRandom.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/getRandom.ts#L7)
1664
+ [getRandom.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/getRandom.ts#L7)
1663
1665
 
1664
1666
  ___
1665
1667
 
@@ -1675,7 +1677,7 @@ ___
1675
1677
 
1676
1678
  #### Defined in
1677
1679
 
1678
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/getRandomColor.ts#L4)
1680
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/getRandomColor.ts#L4)
1679
1681
 
1680
1682
  ___
1681
1683
 
@@ -1697,7 +1699,7 @@ ___
1697
1699
 
1698
1700
  #### Defined in
1699
1701
 
1700
- [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/getRandomNumber.ts#L7)
1702
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/getRandomNumber.ts#L7)
1701
1703
 
1702
1704
  ___
1703
1705
 
@@ -1720,7 +1722,7 @@ ___
1720
1722
 
1721
1723
  #### Defined in
1722
1724
 
1723
- [getRangeDate.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/getRangeDate.ts#L7)
1725
+ [getRangeDate.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/getRangeDate.ts#L7)
1724
1726
 
1725
1727
  ▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
1726
1728
 
@@ -1738,7 +1740,7 @@ ___
1738
1740
 
1739
1741
  #### Defined in
1740
1742
 
1741
- [getRangeDate.ts:11](https://github.com/daysnap/utils/blob/fc94354/src/getRangeDate.ts#L11)
1743
+ [getRangeDate.ts:11](https://github.com/daysnap/utils/blob/d84478c/src/getRangeDate.ts#L11)
1742
1744
 
1743
1745
  ___
1744
1746
 
@@ -1754,7 +1756,7 @@ ___
1754
1756
 
1755
1757
  #### Defined in
1756
1758
 
1757
- [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/getScrollTop.ts#L4)
1759
+ [getScrollTop.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/getScrollTop.ts#L4)
1758
1760
 
1759
1761
  ___
1760
1762
 
@@ -1776,7 +1778,7 @@ ___
1776
1778
 
1777
1779
  #### Defined in
1778
1780
 
1779
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/getVideoInfo.ts#L4)
1781
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/getVideoInfo.ts#L4)
1780
1782
 
1781
1783
  ___
1782
1784
 
@@ -1799,7 +1801,7 @@ ___
1799
1801
 
1800
1802
  #### Defined in
1801
1803
 
1802
- [getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/getWeekBounds.ts#L7)
1804
+ [getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/getWeekBounds.ts#L7)
1803
1805
 
1804
1806
  ▸ **getWeekBounds**(`value`, `sundayIsFirstDay`, `fmt`): [`string`, `string`]
1805
1807
 
@@ -1817,7 +1819,7 @@ ___
1817
1819
 
1818
1820
  #### Defined in
1819
1821
 
1820
- [getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/fc94354/src/getWeekBounds.ts#L11)
1822
+ [getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/d84478c/src/getWeekBounds.ts#L11)
1821
1823
 
1822
1824
  ___
1823
1825
 
@@ -1840,7 +1842,7 @@ ___
1840
1842
 
1841
1843
  #### Defined in
1842
1844
 
1843
- [getWeekday.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/getWeekday.ts#L6)
1845
+ [getWeekday.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/getWeekday.ts#L6)
1844
1846
 
1845
1847
  ___
1846
1848
 
@@ -1856,7 +1858,7 @@ ___
1856
1858
 
1857
1859
  #### Defined in
1858
1860
 
1859
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/inBrowser.ts#L4)
1861
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/inBrowser.ts#L4)
1860
1862
 
1861
1863
  ___
1862
1864
 
@@ -1878,7 +1880,7 @@ ___
1878
1880
 
1879
1881
  #### Defined in
1880
1882
 
1881
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/insertLink.ts#L4)
1883
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/insertLink.ts#L4)
1882
1884
 
1883
1885
  ▸ **insertLink**(`href`, `callback`): `void`
1884
1886
 
@@ -1895,7 +1897,7 @@ ___
1895
1897
 
1896
1898
  #### Defined in
1897
1899
 
1898
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/insertLink.ts#L5)
1900
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/insertLink.ts#L5)
1899
1901
 
1900
1902
  ___
1901
1903
 
@@ -1917,7 +1919,7 @@ ___
1917
1919
 
1918
1920
  #### Defined in
1919
1921
 
1920
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/insertScript.ts#L4)
1922
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/insertScript.ts#L4)
1921
1923
 
1922
1924
  ▸ **insertScript**(`src`, `callback`): `void`
1923
1925
 
@@ -1934,7 +1936,7 @@ ___
1934
1936
 
1935
1937
  #### Defined in
1936
1938
 
1937
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/insertScript.ts#L5)
1939
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/insertScript.ts#L5)
1938
1940
 
1939
1941
  ___
1940
1942
 
@@ -1956,7 +1958,7 @@ ___
1956
1958
 
1957
1959
  #### Defined in
1958
1960
 
1959
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/insertStyle.ts#L4)
1961
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/insertStyle.ts#L4)
1960
1962
 
1961
1963
  ___
1962
1964
 
@@ -1985,7 +1987,7 @@ isAmount('1.123') => false
1985
1987
 
1986
1988
  #### Defined in
1987
1989
 
1988
- [isAmount.ts:11](https://github.com/daysnap/utils/blob/fc94354/src/isAmount.ts#L11)
1990
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/d84478c/src/isAmount.ts#L11)
1989
1991
 
1990
1992
  ___
1991
1993
 
@@ -2001,7 +2003,7 @@ ___
2001
2003
 
2002
2004
  #### Defined in
2003
2005
 
2004
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isAndroid.ts#L4)
2006
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isAndroid.ts#L4)
2005
2007
 
2006
2008
  ___
2007
2009
 
@@ -2025,7 +2027,7 @@ val is any[]
2025
2027
 
2026
2028
  #### Defined in
2027
2029
 
2028
- [isArray.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/isArray.ts#L6)
2030
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/isArray.ts#L6)
2029
2031
 
2030
2032
  ___
2031
2033
 
@@ -2047,7 +2049,7 @@ val is boolean
2047
2049
 
2048
2050
  #### Defined in
2049
2051
 
2050
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isBoolean.ts#L5)
2052
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isBoolean.ts#L5)
2051
2053
 
2052
2054
  ___
2053
2055
 
@@ -2069,7 +2071,7 @@ ___
2069
2071
 
2070
2072
  #### Defined in
2071
2073
 
2072
- [isChinese.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isChinese.ts#L4)
2074
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isChinese.ts#L4)
2073
2075
 
2074
2076
  ___
2075
2077
 
@@ -2091,7 +2093,7 @@ val is Date
2091
2093
 
2092
2094
  #### Defined in
2093
2095
 
2094
- [isDate.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isDate.ts#L4)
2096
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isDate.ts#L4)
2095
2097
 
2096
2098
  ___
2097
2099
 
@@ -2113,7 +2115,7 @@ ___
2113
2115
 
2114
2116
  #### Defined in
2115
2117
 
2116
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isEmail.ts#L4)
2118
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isEmail.ts#L4)
2117
2119
 
2118
2120
  ___
2119
2121
 
@@ -2135,7 +2137,7 @@ ___
2135
2137
 
2136
2138
  #### Defined in
2137
2139
 
2138
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/isEmpty.ts#L6)
2140
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/isEmpty.ts#L6)
2139
2141
 
2140
2142
  ___
2141
2143
 
@@ -2157,7 +2159,7 @@ ___
2157
2159
 
2158
2160
  #### Defined in
2159
2161
 
2160
- [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/isEmptyArray.ts#L6)
2162
+ [isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/isEmptyArray.ts#L6)
2161
2163
 
2162
2164
  ___
2163
2165
 
@@ -2179,7 +2181,7 @@ ___
2179
2181
 
2180
2182
  #### Defined in
2181
2183
 
2182
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isEmptyObject.ts#L5)
2184
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isEmptyObject.ts#L5)
2183
2185
 
2184
2186
  ___
2185
2187
 
@@ -2201,7 +2203,7 @@ val is Error
2201
2203
 
2202
2204
  #### Defined in
2203
2205
 
2204
- [isError.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isError.ts#L4)
2206
+ [isError.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isError.ts#L4)
2205
2207
 
2206
2208
  ___
2207
2209
 
@@ -2223,7 +2225,7 @@ val is Function
2223
2225
 
2224
2226
  #### Defined in
2225
2227
 
2226
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isFunction.ts#L4)
2228
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isFunction.ts#L4)
2227
2229
 
2228
2230
  ___
2229
2231
 
@@ -2241,7 +2243,7 @@ ___
2241
2243
 
2242
2244
  #### Defined in
2243
2245
 
2244
- [isIE.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/isIE.ts#L6)
2246
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/isIE.ts#L6)
2245
2247
 
2246
2248
  ___
2247
2249
 
@@ -2257,7 +2259,7 @@ ___
2257
2259
 
2258
2260
  #### Defined in
2259
2261
 
2260
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isIOS.ts#L4)
2262
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isIOS.ts#L4)
2261
2263
 
2262
2264
  ___
2263
2265
 
@@ -2279,7 +2281,7 @@ ___
2279
2281
 
2280
2282
  #### Defined in
2281
2283
 
2282
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isIdCard.ts#L4)
2284
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isIdCard.ts#L4)
2283
2285
 
2284
2286
  ___
2285
2287
 
@@ -2301,7 +2303,7 @@ ___
2301
2303
 
2302
2304
  #### Defined in
2303
2305
 
2304
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/isJSONString.ts#L7)
2306
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/isJSONString.ts#L7)
2305
2307
 
2306
2308
  ___
2307
2309
 
@@ -2323,7 +2325,7 @@ ___
2323
2325
 
2324
2326
  #### Defined in
2325
2327
 
2326
- [isLan.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isLan.ts#L5)
2328
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isLan.ts#L5)
2327
2329
 
2328
2330
  ___
2329
2331
 
@@ -2346,7 +2348,7 @@ ___
2346
2348
 
2347
2349
  #### Defined in
2348
2350
 
2349
- [isLeapYear.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isLeapYear.ts#L5)
2351
+ [isLeapYear.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isLeapYear.ts#L5)
2350
2352
 
2351
2353
  ___
2352
2354
 
@@ -2368,7 +2370,7 @@ ___
2368
2370
 
2369
2371
  #### Defined in
2370
2372
 
2371
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isLicenseCode.ts#L5)
2373
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isLicenseCode.ts#L5)
2372
2374
 
2373
2375
  ___
2374
2376
 
@@ -2384,7 +2386,7 @@ ___
2384
2386
 
2385
2387
  #### Defined in
2386
2388
 
2387
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isMobile.ts#L4)
2389
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isMobile.ts#L4)
2388
2390
 
2389
2391
  ___
2390
2392
 
@@ -2407,7 +2409,7 @@ ___
2407
2409
 
2408
2410
  #### Defined in
2409
2411
 
2410
- [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/isNativeFunction.ts#L7)
2412
+ [isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/isNativeFunction.ts#L7)
2411
2413
 
2412
2414
  ___
2413
2415
 
@@ -2429,7 +2431,7 @@ val is null
2429
2431
 
2430
2432
  #### Defined in
2431
2433
 
2432
- [isNull.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isNull.ts#L4)
2434
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isNull.ts#L4)
2433
2435
 
2434
2436
  ___
2435
2437
 
@@ -2451,7 +2453,7 @@ val is number
2451
2453
 
2452
2454
  #### Defined in
2453
2455
 
2454
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isNumber.ts#L5)
2456
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isNumber.ts#L5)
2455
2457
 
2456
2458
  ___
2457
2459
 
@@ -2473,7 +2475,7 @@ val is Record<string, any\>
2473
2475
 
2474
2476
  #### Defined in
2475
2477
 
2476
- [isObject.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isObject.ts#L4)
2478
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isObject.ts#L4)
2477
2479
 
2478
2480
  ___
2479
2481
 
@@ -2495,7 +2497,7 @@ ___
2495
2497
 
2496
2498
  #### Defined in
2497
2499
 
2498
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isPhone.ts#L4)
2500
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isPhone.ts#L4)
2499
2501
 
2500
2502
  ___
2501
2503
 
@@ -2523,7 +2525,7 @@ val is Promise<T\>
2523
2525
 
2524
2526
  #### Defined in
2525
2527
 
2526
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isPromise.ts#L4)
2528
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isPromise.ts#L4)
2527
2529
 
2528
2530
  ___
2529
2531
 
@@ -2545,7 +2547,7 @@ val is RegExp
2545
2547
 
2546
2548
  #### Defined in
2547
2549
 
2548
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isRegExp.ts#L4)
2550
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isRegExp.ts#L4)
2549
2551
 
2550
2552
  ___
2551
2553
 
@@ -2567,7 +2569,7 @@ val is string
2567
2569
 
2568
2570
  #### Defined in
2569
2571
 
2570
- [isString.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isString.ts#L4)
2572
+ [isString.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isString.ts#L4)
2571
2573
 
2572
2574
  ___
2573
2575
 
@@ -2596,7 +2598,7 @@ val is T
2596
2598
 
2597
2599
  #### Defined in
2598
2600
 
2599
- [isType.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isType.ts#L4)
2601
+ [isType.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isType.ts#L4)
2600
2602
 
2601
2603
  ___
2602
2604
 
@@ -2618,7 +2620,7 @@ val is undefined
2618
2620
 
2619
2621
  #### Defined in
2620
2622
 
2621
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isUndefined.ts#L4)
2623
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isUndefined.ts#L4)
2622
2624
 
2623
2625
  ___
2624
2626
 
@@ -2662,7 +2664,7 @@ ___
2662
2664
 
2663
2665
  #### Defined in
2664
2666
 
2665
- [isValidDate.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/isValidDate.ts#L6)
2667
+ [isValidDate.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/isValidDate.ts#L6)
2666
2668
 
2667
2669
  ___
2668
2670
 
@@ -2678,7 +2680,7 @@ ___
2678
2680
 
2679
2681
  #### Defined in
2680
2682
 
2681
- [isWeChat.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/isWeChat.ts#L4)
2683
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/isWeChat.ts#L4)
2682
2684
 
2683
2685
  ___
2684
2686
 
@@ -2695,7 +2697,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
2695
2697
 
2696
2698
  #### Defined in
2697
2699
 
2698
- [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isWeChatMiniProgram.ts#L5)
2700
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isWeChatMiniProgram.ts#L5)
2699
2701
 
2700
2702
  ___
2701
2703
 
@@ -2719,7 +2721,7 @@ ___
2719
2721
 
2720
2722
  #### Defined in
2721
2723
 
2722
- [isWeChat.ts:12](https://github.com/daysnap/utils/blob/fc94354/src/isWeChat.ts#L12)
2724
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/d84478c/src/isWeChat.ts#L12)
2723
2725
 
2724
2726
  ___
2725
2727
 
@@ -2741,7 +2743,7 @@ val is Window
2741
2743
 
2742
2744
  #### Defined in
2743
2745
 
2744
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/isWindow.ts#L5)
2746
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/isWindow.ts#L5)
2745
2747
 
2746
2748
  ___
2747
2749
 
@@ -2764,7 +2766,7 @@ kebabCase('helloWorld') => hello-world
2764
2766
 
2765
2767
  #### Defined in
2766
2768
 
2767
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/kebabCase.ts#L5)
2769
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/kebabCase.ts#L5)
2768
2770
 
2769
2771
  ___
2770
2772
 
@@ -2786,7 +2788,7 @@ ___
2786
2788
 
2787
2789
  #### Defined in
2788
2790
 
2789
- [lfToBr.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/lfToBr.ts#L4)
2791
+ [lfToBr.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/lfToBr.ts#L4)
2790
2792
 
2791
2793
  ___
2792
2794
 
@@ -2808,7 +2810,7 @@ list 生成器,快速生成数据
2808
2810
 
2809
2811
  #### Defined in
2810
2812
 
2811
- [listGenerator.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/listGenerator.ts#L5)
2813
+ [listGenerator.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/listGenerator.ts#L5)
2812
2814
 
2813
2815
  ▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
2814
2816
 
@@ -2831,7 +2833,7 @@ list 生成器,快速生成数据
2831
2833
 
2832
2834
  #### Defined in
2833
2835
 
2834
- [listGenerator.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/listGenerator.ts#L6)
2836
+ [listGenerator.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/listGenerator.ts#L6)
2835
2837
 
2836
2838
  ___
2837
2839
 
@@ -2851,7 +2853,7 @@ ___
2851
2853
 
2852
2854
  #### Defined in
2853
2855
 
2854
- [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/fc94354/src/makePhoneCall.ts#L1)
2856
+ [makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/d84478c/src/makePhoneCall.ts#L1)
2855
2857
 
2856
2858
  ___
2857
2859
 
@@ -2876,7 +2878,7 @@ ___
2876
2878
 
2877
2879
  #### Defined in
2878
2880
 
2879
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/fc94354/src/mousewheel.ts#L22)
2881
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/d84478c/src/mousewheel.ts#L22)
2880
2882
 
2881
2883
  ___
2882
2884
 
@@ -2892,7 +2894,7 @@ ___
2892
2894
 
2893
2895
  #### Defined in
2894
2896
 
2895
- [nf.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/nf.ts#L4)
2897
+ [nf.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/nf.ts#L4)
2896
2898
 
2897
2899
  ___
2898
2900
 
@@ -2916,7 +2918,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
2916
2918
 
2917
2919
  #### Defined in
2918
2920
 
2919
- [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/normalizeDate.ts#L8)
2921
+ [normalizeDate.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/normalizeDate.ts#L8)
2920
2922
 
2921
2923
  ___
2922
2924
 
@@ -2938,7 +2940,7 @@ ___
2938
2940
 
2939
2941
  #### Defined in
2940
2942
 
2941
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/normalizePath.ts#L4)
2943
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/normalizePath.ts#L4)
2942
2944
 
2943
2945
  ___
2944
2946
 
@@ -2968,7 +2970,7 @@ ___
2968
2970
 
2969
2971
  #### Defined in
2970
2972
 
2971
- [omit.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/omit.ts#L4)
2973
+ [omit.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/omit.ts#L4)
2972
2974
 
2973
2975
  ___
2974
2976
 
@@ -2992,7 +2994,7 @@ ___
2992
2994
 
2993
2995
  #### Defined in
2994
2996
 
2995
- [padding.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/padding.ts#L7)
2997
+ [padding.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/padding.ts#L7)
2996
2998
 
2997
2999
  ___
2998
3000
 
@@ -3018,7 +3020,7 @@ ___
3018
3020
 
3019
3021
  #### Defined in
3020
3022
 
3021
- [parseDate.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/parseDate.ts#L5)
3023
+ [parseDate.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/parseDate.ts#L5)
3022
3024
 
3023
3025
  ___
3024
3026
 
@@ -3044,7 +3046,7 @@ ___
3044
3046
 
3045
3047
  #### Defined in
3046
3048
 
3047
- [parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/parseDecimalString.ts#L5)
3049
+ [parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/parseDecimalString.ts#L5)
3048
3050
 
3049
3051
  ___
3050
3052
 
@@ -3067,7 +3069,7 @@ ___
3067
3069
 
3068
3070
  #### Defined in
3069
3071
 
3070
- [parseError.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/parseError.ts#L8)
3072
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/parseError.ts#L8)
3071
3073
 
3072
3074
  ___
3073
3075
 
@@ -3092,7 +3094,7 @@ x0123 => ''
3092
3094
 
3093
3095
  #### Defined in
3094
3096
 
3095
- [parseNumberString.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/parseNumberString.ts#L7)
3097
+ [parseNumberString.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/parseNumberString.ts#L7)
3096
3098
 
3097
3099
  ___
3098
3100
 
@@ -3122,7 +3124,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
3122
3124
 
3123
3125
  #### Defined in
3124
3126
 
3125
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/parseObject.ts#L5)
3127
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/parseObject.ts#L5)
3126
3128
 
3127
3129
  ___
3128
3130
 
@@ -3151,7 +3153,7 @@ ___
3151
3153
 
3152
3154
  #### Defined in
3153
3155
 
3154
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/parsePath.ts#L6)
3156
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/parsePath.ts#L6)
3155
3157
 
3156
3158
  ___
3157
3159
 
@@ -3174,7 +3176,7 @@ ___
3174
3176
 
3175
3177
  #### Defined in
3176
3178
 
3177
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/parseQuery.ts#L8)
3179
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/parseQuery.ts#L8)
3178
3180
 
3179
3181
  ___
3180
3182
 
@@ -3204,7 +3206,7 @@ ___
3204
3206
 
3205
3207
  #### Defined in
3206
3208
 
3207
- [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/parseQueryString.ts#L6)
3209
+ [parseQueryString.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/parseQueryString.ts#L6)
3208
3210
 
3209
3211
  ___
3210
3212
 
@@ -3227,7 +3229,7 @@ pascalCase('hello-world') => HelloWorld
3227
3229
 
3228
3230
  #### Defined in
3229
3231
 
3230
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/pascalCase.ts#L8)
3232
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/pascalCase.ts#L8)
3231
3233
 
3232
3234
  ___
3233
3235
 
@@ -3257,7 +3259,7 @@ ___
3257
3259
 
3258
3260
  #### Defined in
3259
3261
 
3260
- [pick.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/pick.ts#L4)
3262
+ [pick.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/pick.ts#L4)
3261
3263
 
3262
3264
  ___
3263
3265
 
@@ -3280,7 +3282,7 @@ ___
3280
3282
 
3281
3283
  #### Defined in
3282
3284
 
3283
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/replaceCrlf.ts#L4)
3285
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/replaceCrlf.ts#L4)
3284
3286
 
3285
3287
  ___
3286
3288
 
@@ -3304,7 +3306,7 @@ ___
3304
3306
 
3305
3307
  #### Defined in
3306
3308
 
3307
- [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/requestFullScreen.ts#L6)
3309
+ [requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/requestFullScreen.ts#L6)
3308
3310
 
3309
3311
  ___
3310
3312
 
@@ -3330,7 +3332,7 @@ reserve(0, '--') => 0
3330
3332
 
3331
3333
  #### Defined in
3332
3334
 
3333
- [reserve.ts:8](https://github.com/daysnap/utils/blob/fc94354/src/reserve.ts#L8)
3335
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/d84478c/src/reserve.ts#L8)
3334
3336
 
3335
3337
  ___
3336
3338
 
@@ -3354,7 +3356,7 @@ ___
3354
3356
 
3355
3357
  #### Defined in
3356
3358
 
3357
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/rgbToHex.ts#L4)
3359
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/rgbToHex.ts#L4)
3358
3360
 
3359
3361
  ___
3360
3362
 
@@ -3377,7 +3379,7 @@ ___
3377
3379
 
3378
3380
  #### Defined in
3379
3381
 
3380
- [round.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/round.ts#L6)
3382
+ [round.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/round.ts#L6)
3381
3383
 
3382
3384
  ___
3383
3385
 
@@ -3402,7 +3404,7 @@ ___
3402
3404
 
3403
3405
  #### Defined in
3404
3406
 
3405
- roundUpToNearestInteger.ts:7
3407
+ [roundUpToNearestInteger.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/roundUpToNearestInteger.ts#L7)
3406
3408
 
3407
3409
  ___
3408
3410
 
@@ -3418,7 +3420,7 @@ ___
3418
3420
 
3419
3421
  #### Defined in
3420
3422
 
3421
- [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/scrollToTop.ts#L4)
3423
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/scrollToTop.ts#L4)
3422
3424
 
3423
3425
  ___
3424
3426
 
@@ -3440,7 +3442,7 @@ ___
3440
3442
 
3441
3443
  #### Defined in
3442
3444
 
3443
- [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/setScrollTop.ts#L4)
3445
+ [setScrollTop.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/setScrollTop.ts#L4)
3444
3446
 
3445
3447
  ___
3446
3448
 
@@ -3464,7 +3466,7 @@ ___
3464
3466
 
3465
3467
  #### Defined in
3466
3468
 
3467
- [sleep.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/sleep.ts#L7)
3469
+ [sleep.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/sleep.ts#L7)
3468
3470
 
3469
3471
  ___
3470
3472
 
@@ -3493,7 +3495,7 @@ ___
3493
3495
 
3494
3496
  #### Defined in
3495
3497
 
3496
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/splitArray.ts#L4)
3498
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/splitArray.ts#L4)
3497
3499
 
3498
3500
  ___
3499
3501
 
@@ -3516,7 +3518,7 @@ ___
3516
3518
 
3517
3519
  #### Defined in
3518
3520
 
3519
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/stringTrim.ts#L6)
3521
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/stringTrim.ts#L6)
3520
3522
 
3521
3523
  ___
3522
3524
 
@@ -3538,7 +3540,7 @@ ___
3538
3540
 
3539
3541
  #### Defined in
3540
3542
 
3541
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/fc94354/src/stringifyQuery.ts#L7)
3543
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/d84478c/src/stringifyQuery.ts#L7)
3542
3544
 
3543
3545
  ___
3544
3546
 
@@ -3562,7 +3564,7 @@ ___
3562
3564
 
3563
3565
  #### Defined in
3564
3566
 
3565
- [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/stringifyQueryString.ts#L6)
3567
+ [stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/stringifyQueryString.ts#L6)
3566
3568
 
3567
3569
  ___
3568
3570
 
@@ -3606,7 +3608,7 @@ ___
3606
3608
 
3607
3609
  #### Defined in
3608
3610
 
3609
- [throttle.ts:48](https://github.com/daysnap/utils/blob/fc94354/src/throttle.ts#L48)
3611
+ [throttle.ts:48](https://github.com/daysnap/utils/blob/d84478c/src/throttle.ts#L48)
3610
3612
 
3611
3613
  ___
3612
3614
 
@@ -3649,7 +3651,7 @@ ___
3649
3651
 
3650
3652
  #### Defined in
3651
3653
 
3652
- [throttle.ts:5](https://github.com/daysnap/utils/blob/fc94354/src/throttle.ts#L5)
3654
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/d84478c/src/throttle.ts#L5)
3653
3655
 
3654
3656
  ___
3655
3657
 
@@ -3692,7 +3694,7 @@ ___
3692
3694
 
3693
3695
  #### Defined in
3694
3696
 
3695
- [throttle.ts:25](https://github.com/daysnap/utils/blob/fc94354/src/throttle.ts#L25)
3697
+ [throttle.ts:25](https://github.com/daysnap/utils/blob/d84478c/src/throttle.ts#L25)
3696
3698
 
3697
3699
  ___
3698
3700
 
@@ -3714,7 +3716,7 @@ ___
3714
3716
 
3715
3717
  #### Defined in
3716
3718
 
3717
- [toCDB.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/toCDB.ts#L4)
3719
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/toCDB.ts#L4)
3718
3720
 
3719
3721
  ___
3720
3722
 
@@ -3736,7 +3738,29 @@ ___
3736
3738
 
3737
3739
  #### Defined in
3738
3740
 
3739
- [toDBC.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/toDBC.ts#L4)
3741
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/toDBC.ts#L4)
3742
+
3743
+ ___
3744
+
3745
+ ### toFormData
3746
+
3747
+ ▸ **toFormData**(`data`): `FormData`
3748
+
3749
+ 对象转 formdata 不考虑深层对象
3750
+
3751
+ #### Parameters
3752
+
3753
+ | Name | Type |
3754
+ | :------ | :------ |
3755
+ | `data` | `Record`<`string`, `any`\> |
3756
+
3757
+ #### Returns
3758
+
3759
+ `FormData`
3760
+
3761
+ #### Defined in
3762
+
3763
+ toFormData.ts:4
3740
3764
 
3741
3765
  ___
3742
3766
 
@@ -3760,7 +3784,7 @@ ___
3760
3784
 
3761
3785
  #### Defined in
3762
3786
 
3763
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/fc94354/src/typeOf.ts#L6)
3787
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/d84478c/src/typeOf.ts#L6)
3764
3788
 
3765
3789
  ___
3766
3790
 
@@ -3788,7 +3812,7 @@ ___
3788
3812
 
3789
3813
  #### Defined in
3790
3814
 
3791
- [withCache.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/withCache.ts#L4)
3815
+ [withCache.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/withCache.ts#L4)
3792
3816
 
3793
3817
  ___
3794
3818
 
@@ -3817,4 +3841,4 @@ ___
3817
3841
 
3818
3842
  #### Defined in
3819
3843
 
3820
- [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/fc94354/src/withPreventConsecutiveClicks.ts#L4)
3844
+ [withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/d84478c/src/withPreventConsecutiveClicks.ts#L4)