@daysnap/utils 0.1.31 → 0.1.33
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/classes/Poller.md +9 -9
- package/docs/classes/Storage.md +16 -16
- package/docs/interfaces/CreateWithToastOptions.md +37 -0
- package/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/PollerOptions.md +1 -1
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +227 -158
- package/es/chunk-P5GEZD4D.js +6 -0
- package/es/chunk-YUYAN2IU.js +29 -0
- package/es/createWithToast.d.ts +10 -0
- package/es/createWithToast.js +7 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +63 -55
- package/es/isPromiseLike.d.ts +6 -0
- package/es/isPromiseLike.js +6 -0
- package/es/storage/index.js +3 -3
- package/lib/chunk-6TPHE34J.cjs +29 -0
- package/lib/chunk-N455COPH.cjs +6 -0
- package/lib/createWithToast.cjs +7 -0
- package/lib/createWithToast.d.cts +10 -0
- package/lib/index.cjs +49 -41
- package/lib/index.d.cts +2 -0
- package/lib/isPromiseLike.cjs +6 -0
- package/lib/isPromiseLike.d.cts +6 -0
- package/lib/storage/index.cjs +2 -2
- package/package.json +1 -1
package/docs/modules.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
### Interfaces
|
|
13
13
|
|
|
14
|
+
- [CreateWithToastOptions](interfaces/CreateWithToastOptions.md)
|
|
14
15
|
- [EventBusCallback](interfaces/EventBusCallback.md)
|
|
15
16
|
- [PollerOptions](interfaces/PollerOptions.md)
|
|
16
17
|
- [StorageManager](interfaces/StorageManager.md)
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
- [createLinearFunction](modules.md#createlinearfunction)
|
|
50
51
|
- [createTrapInstance](modules.md#createtrapinstance)
|
|
51
52
|
- [createWithLoading](modules.md#createwithloading)
|
|
53
|
+
- [createWithToast](modules.md#createwithtoast)
|
|
52
54
|
- [crlfToBr](modules.md#crlftobr)
|
|
53
55
|
- [debounce](modules.md#debounce)
|
|
54
56
|
- [downloadFile](modules.md#downloadfile)
|
|
@@ -118,6 +120,7 @@
|
|
|
118
120
|
- [isObject](modules.md#isobject)
|
|
119
121
|
- [isPhone](modules.md#isphone)
|
|
120
122
|
- [isPromise](modules.md#ispromise)
|
|
123
|
+
- [isPromiseLike](modules.md#ispromiselike)
|
|
121
124
|
- [isRegExp](modules.md#isregexp)
|
|
122
125
|
- [isString](modules.md#isstring)
|
|
123
126
|
- [isType](modules.md#istype)
|
|
@@ -197,7 +200,7 @@
|
|
|
197
200
|
|
|
198
201
|
#### Defined in
|
|
199
202
|
|
|
200
|
-
[poller.ts:7](https://github.com/daysnap/utils/blob/
|
|
203
|
+
[poller.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/poller.ts#L7)
|
|
201
204
|
|
|
202
205
|
## Variables
|
|
203
206
|
|
|
@@ -216,7 +219,7 @@
|
|
|
216
219
|
|
|
217
220
|
#### Defined in
|
|
218
221
|
|
|
219
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
222
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/551cd93/src/eventBus.ts#L38)
|
|
220
223
|
|
|
221
224
|
___
|
|
222
225
|
|
|
@@ -241,7 +244,7 @@ ___
|
|
|
241
244
|
|
|
242
245
|
#### Defined in
|
|
243
246
|
|
|
244
|
-
[sounds.ts:13](https://github.com/daysnap/utils/blob/
|
|
247
|
+
[sounds.ts:13](https://github.com/daysnap/utils/blob/551cd93/src/sounds.ts#L13)
|
|
245
248
|
|
|
246
249
|
___
|
|
247
250
|
|
|
@@ -251,7 +254,7 @@ ___
|
|
|
251
254
|
|
|
252
255
|
#### Defined in
|
|
253
256
|
|
|
254
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
257
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/551cd93/src/trap.ts#L15)
|
|
255
258
|
|
|
256
259
|
## Functions
|
|
257
260
|
|
|
@@ -289,7 +292,7 @@ res = { '1': '男', '2': '女' }
|
|
|
289
292
|
|
|
290
293
|
#### Defined in
|
|
291
294
|
|
|
292
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
295
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/551cd93/src/ato.ts#L12)
|
|
293
296
|
|
|
294
297
|
▸ **ato**<`T`, `K`, `V`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `T`[`V`]\>
|
|
295
298
|
|
|
@@ -315,7 +318,7 @@ res = { '1': '男', '2': '女' }
|
|
|
315
318
|
|
|
316
319
|
#### Defined in
|
|
317
320
|
|
|
318
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
321
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/551cd93/src/ato.ts#L16)
|
|
319
322
|
|
|
320
323
|
___
|
|
321
324
|
|
|
@@ -335,7 +338,7 @@ ___
|
|
|
335
338
|
|
|
336
339
|
#### Defined in
|
|
337
340
|
|
|
338
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
341
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/551cd93/src/decode.ts#L41)
|
|
339
342
|
|
|
340
343
|
___
|
|
341
344
|
|
|
@@ -358,7 +361,7 @@ base64 转 blob
|
|
|
358
361
|
|
|
359
362
|
#### Defined in
|
|
360
363
|
|
|
361
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
364
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/base64ToBlob.ts#L6)
|
|
362
365
|
|
|
363
366
|
___
|
|
364
367
|
|
|
@@ -380,7 +383,7 @@ blob 转 base64
|
|
|
380
383
|
|
|
381
384
|
#### Defined in
|
|
382
385
|
|
|
383
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
386
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/blobToBase64.ts#L4)
|
|
384
387
|
|
|
385
388
|
___
|
|
386
389
|
|
|
@@ -400,7 +403,7 @@ ___
|
|
|
400
403
|
|
|
401
404
|
#### Defined in
|
|
402
405
|
|
|
403
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
406
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/decode.ts#L8)
|
|
404
407
|
|
|
405
408
|
___
|
|
406
409
|
|
|
@@ -441,7 +444,7 @@ ___
|
|
|
441
444
|
|
|
442
445
|
#### Defined in
|
|
443
446
|
|
|
444
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
447
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/cached.ts#L5)
|
|
445
448
|
|
|
446
449
|
___
|
|
447
450
|
|
|
@@ -464,7 +467,7 @@ camelCase('hello-world') => helloWorld
|
|
|
464
467
|
|
|
465
468
|
#### Defined in
|
|
466
469
|
|
|
467
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
470
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/camelCase.ts#L5)
|
|
468
471
|
|
|
469
472
|
___
|
|
470
473
|
|
|
@@ -488,7 +491,7 @@ canvas 转 blob 文件
|
|
|
488
491
|
|
|
489
492
|
#### Defined in
|
|
490
493
|
|
|
491
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
494
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/canvasToBlob.ts#L4)
|
|
492
495
|
|
|
493
496
|
___
|
|
494
497
|
|
|
@@ -511,7 +514,7 @@ capitalize('hello world') => Hello world
|
|
|
511
514
|
|
|
512
515
|
#### Defined in
|
|
513
516
|
|
|
514
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
517
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/capitalize.ts#L5)
|
|
515
518
|
|
|
516
519
|
___
|
|
517
520
|
|
|
@@ -536,7 +539,7 @@ ___
|
|
|
536
539
|
|
|
537
540
|
#### Defined in
|
|
538
541
|
|
|
539
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
542
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/chooseMedia.ts#L5)
|
|
540
543
|
|
|
541
544
|
___
|
|
542
545
|
|
|
@@ -560,7 +563,7 @@ ___
|
|
|
560
563
|
|
|
561
564
|
#### Defined in
|
|
562
565
|
|
|
563
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
566
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/clamp.ts#L7)
|
|
564
567
|
|
|
565
568
|
___
|
|
566
569
|
|
|
@@ -588,7 +591,7 @@ ___
|
|
|
588
591
|
|
|
589
592
|
#### Defined in
|
|
590
593
|
|
|
591
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
594
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/clone.ts#L8)
|
|
592
595
|
|
|
593
596
|
___
|
|
594
597
|
|
|
@@ -616,7 +619,7 @@ ___
|
|
|
616
619
|
|
|
617
620
|
#### Defined in
|
|
618
621
|
|
|
619
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
622
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/cloneSimple.ts#L7)
|
|
620
623
|
|
|
621
624
|
___
|
|
622
625
|
|
|
@@ -638,7 +641,7 @@ ___
|
|
|
638
641
|
|
|
639
642
|
#### Defined in
|
|
640
643
|
|
|
641
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
644
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/createHexColorByHash.ts#L4)
|
|
642
645
|
|
|
643
646
|
___
|
|
644
647
|
|
|
@@ -664,7 +667,7 @@ ___
|
|
|
664
667
|
|
|
665
668
|
#### Defined in
|
|
666
669
|
|
|
667
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
670
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/551cd93/src/compareVersion.ts#L9)
|
|
668
671
|
|
|
669
672
|
___
|
|
670
673
|
|
|
@@ -687,7 +690,7 @@ ___
|
|
|
687
690
|
|
|
688
691
|
#### Defined in
|
|
689
692
|
|
|
690
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
693
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/compressImage.ts#L4)
|
|
691
694
|
|
|
692
695
|
___
|
|
693
696
|
|
|
@@ -709,7 +712,7 @@ ___
|
|
|
709
712
|
|
|
710
713
|
#### Defined in
|
|
711
714
|
|
|
712
|
-
[crToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
715
|
+
[crToBr.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/crToBr.ts#L4)
|
|
713
716
|
|
|
714
717
|
___
|
|
715
718
|
|
|
@@ -737,7 +740,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
737
740
|
|
|
738
741
|
#### Defined in
|
|
739
742
|
|
|
740
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
743
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/createFactory.ts#L4)
|
|
741
744
|
|
|
742
745
|
___
|
|
743
746
|
|
|
@@ -775,7 +778,7 @@ ___
|
|
|
775
778
|
|
|
776
779
|
#### Defined in
|
|
777
780
|
|
|
778
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
781
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/551cd93/src/createLinearFunction.ts#L9)
|
|
779
782
|
|
|
780
783
|
___
|
|
781
784
|
|
|
@@ -807,7 +810,7 @@ ___
|
|
|
807
810
|
|
|
808
811
|
#### Defined in
|
|
809
812
|
|
|
810
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
813
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/551cd93/src/trap.ts#L49)
|
|
811
814
|
|
|
812
815
|
___
|
|
813
816
|
|
|
@@ -870,7 +873,45 @@ fn() 执行的时候就会执行showLoading
|
|
|
870
873
|
|
|
871
874
|
#### Defined in
|
|
872
875
|
|
|
873
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
876
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/551cd93/src/createWithLoading.ts#L11)
|
|
877
|
+
|
|
878
|
+
___
|
|
879
|
+
|
|
880
|
+
### createWithToast
|
|
881
|
+
|
|
882
|
+
▸ **createWithToast**(`options?`): <T\>(`fn`: `T`) => `T`
|
|
883
|
+
|
|
884
|
+
#### Parameters
|
|
885
|
+
|
|
886
|
+
| Name | Type |
|
|
887
|
+
| :------ | :------ |
|
|
888
|
+
| `options` | [`CreateWithToastOptions`](interfaces/CreateWithToastOptions.md) |
|
|
889
|
+
|
|
890
|
+
#### Returns
|
|
891
|
+
|
|
892
|
+
`fn`
|
|
893
|
+
|
|
894
|
+
▸ <`T`\>(`fn`): `T`
|
|
895
|
+
|
|
896
|
+
##### Type parameters
|
|
897
|
+
|
|
898
|
+
| Name | Type |
|
|
899
|
+
| :------ | :------ |
|
|
900
|
+
| `T` | extends (...`args`: `any`) => `any` |
|
|
901
|
+
|
|
902
|
+
##### Parameters
|
|
903
|
+
|
|
904
|
+
| Name | Type |
|
|
905
|
+
| :------ | :------ |
|
|
906
|
+
| `fn` | `T` |
|
|
907
|
+
|
|
908
|
+
##### Returns
|
|
909
|
+
|
|
910
|
+
`T`
|
|
911
|
+
|
|
912
|
+
#### Defined in
|
|
913
|
+
|
|
914
|
+
createWithToast.ts:11
|
|
874
915
|
|
|
875
916
|
___
|
|
876
917
|
|
|
@@ -892,7 +933,7 @@ ___
|
|
|
892
933
|
|
|
893
934
|
#### Defined in
|
|
894
935
|
|
|
895
|
-
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
936
|
+
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/crlfToBr.ts#L4)
|
|
896
937
|
|
|
897
938
|
___
|
|
898
939
|
|
|
@@ -935,7 +976,7 @@ ___
|
|
|
935
976
|
|
|
936
977
|
#### Defined in
|
|
937
978
|
|
|
938
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
979
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/debounce.ts#L5)
|
|
939
980
|
|
|
940
981
|
___
|
|
941
982
|
|
|
@@ -959,7 +1000,7 @@ ___
|
|
|
959
1000
|
|
|
960
1001
|
#### Defined in
|
|
961
1002
|
|
|
962
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
1003
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/downloadFile.ts#L4)
|
|
963
1004
|
|
|
964
1005
|
___
|
|
965
1006
|
|
|
@@ -988,7 +1029,7 @@ ___
|
|
|
988
1029
|
|
|
989
1030
|
#### Defined in
|
|
990
1031
|
|
|
991
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
1032
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/each.ts#L4)
|
|
992
1033
|
|
|
993
1034
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
994
1035
|
|
|
@@ -1011,7 +1052,7 @@ ___
|
|
|
1011
1052
|
|
|
1012
1053
|
#### Defined in
|
|
1013
1054
|
|
|
1014
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
1055
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/each.ts#L8)
|
|
1015
1056
|
|
|
1016
1057
|
___
|
|
1017
1058
|
|
|
@@ -1029,7 +1070,7 @@ ___
|
|
|
1029
1070
|
|
|
1030
1071
|
#### Defined in
|
|
1031
1072
|
|
|
1032
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
1073
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/exitFullscreen.ts#L6)
|
|
1033
1074
|
|
|
1034
1075
|
___
|
|
1035
1076
|
|
|
@@ -1058,7 +1099,7 @@ ___
|
|
|
1058
1099
|
|
|
1059
1100
|
#### Defined in
|
|
1060
1101
|
|
|
1061
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
1102
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/551cd93/src/storage/factory.ts#L11)
|
|
1062
1103
|
|
|
1063
1104
|
___
|
|
1064
1105
|
|
|
@@ -1080,7 +1121,7 @@ ___
|
|
|
1080
1121
|
|
|
1081
1122
|
#### Defined in
|
|
1082
1123
|
|
|
1083
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1124
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/filterBankCardNo.ts#L4)
|
|
1084
1125
|
|
|
1085
1126
|
___
|
|
1086
1127
|
|
|
@@ -1110,7 +1151,7 @@ ___
|
|
|
1110
1151
|
|
|
1111
1152
|
#### Defined in
|
|
1112
1153
|
|
|
1113
|
-
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/
|
|
1154
|
+
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/551cd93/src/crlfToBr.ts#L12)
|
|
1114
1155
|
|
|
1115
1156
|
___
|
|
1116
1157
|
|
|
@@ -1132,7 +1173,7 @@ ___
|
|
|
1132
1173
|
|
|
1133
1174
|
#### Defined in
|
|
1134
1175
|
|
|
1135
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1176
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/filterEmoji.ts#L4)
|
|
1136
1177
|
|
|
1137
1178
|
___
|
|
1138
1179
|
|
|
@@ -1155,7 +1196,7 @@ ___
|
|
|
1155
1196
|
|
|
1156
1197
|
#### Defined in
|
|
1157
1198
|
|
|
1158
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1199
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/551cd93/src/filterEmptyValue.ts#L12)
|
|
1159
1200
|
|
|
1160
1201
|
___
|
|
1161
1202
|
|
|
@@ -1178,7 +1219,7 @@ ___
|
|
|
1178
1219
|
|
|
1179
1220
|
#### Defined in
|
|
1180
1221
|
|
|
1181
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1222
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/filterIdCard.ts#L5)
|
|
1182
1223
|
|
|
1183
1224
|
___
|
|
1184
1225
|
|
|
@@ -1200,7 +1241,7 @@ ___
|
|
|
1200
1241
|
|
|
1201
1242
|
#### Defined in
|
|
1202
1243
|
|
|
1203
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1244
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/filterName.ts#L4)
|
|
1204
1245
|
|
|
1205
1246
|
___
|
|
1206
1247
|
|
|
@@ -1225,7 +1266,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1225
1266
|
|
|
1226
1267
|
#### Defined in
|
|
1227
1268
|
|
|
1228
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1269
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/filterPhone.ts#L6)
|
|
1229
1270
|
|
|
1230
1271
|
___
|
|
1231
1272
|
|
|
@@ -1252,7 +1293,7 @@ str = '131****8888'
|
|
|
1252
1293
|
|
|
1253
1294
|
#### Defined in
|
|
1254
1295
|
|
|
1255
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1296
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/filterString.ts#L6)
|
|
1256
1297
|
|
|
1257
1298
|
___
|
|
1258
1299
|
|
|
@@ -1275,7 +1316,7 @@ ___
|
|
|
1275
1316
|
|
|
1276
1317
|
#### Defined in
|
|
1277
1318
|
|
|
1278
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1319
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/formatAmount.ts#L4)
|
|
1279
1320
|
|
|
1280
1321
|
___
|
|
1281
1322
|
|
|
@@ -1299,7 +1340,7 @@ ___
|
|
|
1299
1340
|
|
|
1300
1341
|
#### Defined in
|
|
1301
1342
|
|
|
1302
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1343
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/formatDate.ts#L7)
|
|
1303
1344
|
|
|
1304
1345
|
___
|
|
1305
1346
|
|
|
@@ -1330,7 +1371,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1330
1371
|
|
|
1331
1372
|
#### Defined in
|
|
1332
1373
|
|
|
1333
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1374
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/formatDateStr.ts#L6)
|
|
1334
1375
|
|
|
1335
1376
|
___
|
|
1336
1377
|
|
|
@@ -1350,7 +1391,7 @@ ___
|
|
|
1350
1391
|
|
|
1351
1392
|
#### Defined in
|
|
1352
1393
|
|
|
1353
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1394
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/formartDateToZN.ts#L4)
|
|
1354
1395
|
|
|
1355
1396
|
___
|
|
1356
1397
|
|
|
@@ -1373,7 +1414,7 @@ ___
|
|
|
1373
1414
|
|
|
1374
1415
|
#### Defined in
|
|
1375
1416
|
|
|
1376
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1417
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/formatFileSize.ts#L4)
|
|
1377
1418
|
|
|
1378
1419
|
___
|
|
1379
1420
|
|
|
@@ -1396,7 +1437,7 @@ yyyyMMdd -> yyyy-MM-dd
|
|
|
1396
1437
|
|
|
1397
1438
|
#### Defined in
|
|
1398
1439
|
|
|
1399
|
-
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1440
|
+
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/formatGapDate.ts#L4)
|
|
1400
1441
|
|
|
1401
1442
|
___
|
|
1402
1443
|
|
|
@@ -1421,7 +1462,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1421
1462
|
|
|
1422
1463
|
#### Defined in
|
|
1423
1464
|
|
|
1424
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1465
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/551cd93/src/formatMessage.ts#L11)
|
|
1425
1466
|
|
|
1426
1467
|
___
|
|
1427
1468
|
|
|
@@ -1453,7 +1494,7 @@ rest = { xxx: 1 }
|
|
|
1453
1494
|
|
|
1454
1495
|
#### Defined in
|
|
1455
1496
|
|
|
1456
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1497
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/formatPathParams.ts#L8)
|
|
1457
1498
|
|
|
1458
1499
|
___
|
|
1459
1500
|
|
|
@@ -1475,7 +1516,7 @@ ___
|
|
|
1475
1516
|
|
|
1476
1517
|
#### Defined in
|
|
1477
1518
|
|
|
1478
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1519
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/getBlobByUrl.ts#L4)
|
|
1479
1520
|
|
|
1480
1521
|
___
|
|
1481
1522
|
|
|
@@ -1498,7 +1539,7 @@ ___
|
|
|
1498
1539
|
|
|
1499
1540
|
#### Defined in
|
|
1500
1541
|
|
|
1501
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1542
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/551cd93/src/storage/index.ts#L10)
|
|
1502
1543
|
|
|
1503
1544
|
___
|
|
1504
1545
|
|
|
@@ -1521,7 +1562,7 @@ ___
|
|
|
1521
1562
|
|
|
1522
1563
|
#### Defined in
|
|
1523
1564
|
|
|
1524
|
-
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/
|
|
1565
|
+
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/getDateBoundsByMonths.ts#L8)
|
|
1525
1566
|
|
|
1526
1567
|
▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
|
|
1527
1568
|
|
|
@@ -1539,7 +1580,7 @@ ___
|
|
|
1539
1580
|
|
|
1540
1581
|
#### Defined in
|
|
1541
1582
|
|
|
1542
|
-
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/
|
|
1583
|
+
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/551cd93/src/getDateBoundsByMonths.ts#L12)
|
|
1543
1584
|
|
|
1544
1585
|
___
|
|
1545
1586
|
|
|
@@ -1561,7 +1602,7 @@ ___
|
|
|
1561
1602
|
|
|
1562
1603
|
#### Defined in
|
|
1563
1604
|
|
|
1564
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1605
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/getDayMillisecond.ts#L4)
|
|
1565
1606
|
|
|
1566
1607
|
___
|
|
1567
1608
|
|
|
@@ -1584,7 +1625,7 @@ ___
|
|
|
1584
1625
|
|
|
1585
1626
|
#### Defined in
|
|
1586
1627
|
|
|
1587
|
-
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/
|
|
1628
|
+
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/getDaysOfMonth.ts#L4)
|
|
1588
1629
|
|
|
1589
1630
|
___
|
|
1590
1631
|
|
|
@@ -1607,7 +1648,7 @@ ___
|
|
|
1607
1648
|
|
|
1608
1649
|
#### Defined in
|
|
1609
1650
|
|
|
1610
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1651
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/getImageInfo.ts#L4)
|
|
1611
1652
|
|
|
1612
1653
|
___
|
|
1613
1654
|
|
|
@@ -1630,7 +1671,7 @@ ___
|
|
|
1630
1671
|
|
|
1631
1672
|
#### Defined in
|
|
1632
1673
|
|
|
1633
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1674
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/551cd93/src/storage/index.ts#L10)
|
|
1634
1675
|
|
|
1635
1676
|
___
|
|
1636
1677
|
|
|
@@ -1652,7 +1693,7 @@ ___
|
|
|
1652
1693
|
|
|
1653
1694
|
#### Defined in
|
|
1654
1695
|
|
|
1655
|
-
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1696
|
+
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/getMonthBounds.ts#L7)
|
|
1656
1697
|
|
|
1657
1698
|
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1658
1699
|
|
|
@@ -1669,7 +1710,7 @@ ___
|
|
|
1669
1710
|
|
|
1670
1711
|
#### Defined in
|
|
1671
1712
|
|
|
1672
|
-
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/
|
|
1713
|
+
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/getMonthBounds.ts#L8)
|
|
1673
1714
|
|
|
1674
1715
|
___
|
|
1675
1716
|
|
|
@@ -1692,7 +1733,7 @@ ___
|
|
|
1692
1733
|
|
|
1693
1734
|
#### Defined in
|
|
1694
1735
|
|
|
1695
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1736
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/getRandom.ts#L7)
|
|
1696
1737
|
|
|
1697
1738
|
___
|
|
1698
1739
|
|
|
@@ -1708,7 +1749,7 @@ ___
|
|
|
1708
1749
|
|
|
1709
1750
|
#### Defined in
|
|
1710
1751
|
|
|
1711
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1752
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/getRandomColor.ts#L4)
|
|
1712
1753
|
|
|
1713
1754
|
___
|
|
1714
1755
|
|
|
@@ -1730,7 +1771,7 @@ ___
|
|
|
1730
1771
|
|
|
1731
1772
|
#### Defined in
|
|
1732
1773
|
|
|
1733
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1774
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/getRandomNumber.ts#L7)
|
|
1734
1775
|
|
|
1735
1776
|
___
|
|
1736
1777
|
|
|
@@ -1753,7 +1794,7 @@ ___
|
|
|
1753
1794
|
|
|
1754
1795
|
#### Defined in
|
|
1755
1796
|
|
|
1756
|
-
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1797
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/getRangeDate.ts#L7)
|
|
1757
1798
|
|
|
1758
1799
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1759
1800
|
|
|
@@ -1771,7 +1812,7 @@ ___
|
|
|
1771
1812
|
|
|
1772
1813
|
#### Defined in
|
|
1773
1814
|
|
|
1774
|
-
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/
|
|
1815
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/551cd93/src/getRangeDate.ts#L11)
|
|
1775
1816
|
|
|
1776
1817
|
___
|
|
1777
1818
|
|
|
@@ -1787,7 +1828,7 @@ ___
|
|
|
1787
1828
|
|
|
1788
1829
|
#### Defined in
|
|
1789
1830
|
|
|
1790
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1831
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/getScrollTop.ts#L4)
|
|
1791
1832
|
|
|
1792
1833
|
___
|
|
1793
1834
|
|
|
@@ -1809,7 +1850,7 @@ ___
|
|
|
1809
1850
|
|
|
1810
1851
|
#### Defined in
|
|
1811
1852
|
|
|
1812
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1853
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/getVideoInfo.ts#L4)
|
|
1813
1854
|
|
|
1814
1855
|
___
|
|
1815
1856
|
|
|
@@ -1832,7 +1873,7 @@ ___
|
|
|
1832
1873
|
|
|
1833
1874
|
#### Defined in
|
|
1834
1875
|
|
|
1835
|
-
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1876
|
+
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/getWeekBounds.ts#L7)
|
|
1836
1877
|
|
|
1837
1878
|
▸ **getWeekBounds**(`value`, `sundayIsFirstDay`, `fmt`): [`string`, `string`]
|
|
1838
1879
|
|
|
@@ -1850,7 +1891,7 @@ ___
|
|
|
1850
1891
|
|
|
1851
1892
|
#### Defined in
|
|
1852
1893
|
|
|
1853
|
-
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/
|
|
1894
|
+
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/551cd93/src/getWeekBounds.ts#L11)
|
|
1854
1895
|
|
|
1855
1896
|
___
|
|
1856
1897
|
|
|
@@ -1873,7 +1914,7 @@ ___
|
|
|
1873
1914
|
|
|
1874
1915
|
#### Defined in
|
|
1875
1916
|
|
|
1876
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1917
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/getWeekday.ts#L6)
|
|
1877
1918
|
|
|
1878
1919
|
___
|
|
1879
1920
|
|
|
@@ -1889,7 +1930,7 @@ ___
|
|
|
1889
1930
|
|
|
1890
1931
|
#### Defined in
|
|
1891
1932
|
|
|
1892
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1933
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/inBrowser.ts#L4)
|
|
1893
1934
|
|
|
1894
1935
|
___
|
|
1895
1936
|
|
|
@@ -1911,7 +1952,7 @@ ___
|
|
|
1911
1952
|
|
|
1912
1953
|
#### Defined in
|
|
1913
1954
|
|
|
1914
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1955
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/insertLink.ts#L4)
|
|
1915
1956
|
|
|
1916
1957
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1917
1958
|
|
|
@@ -1928,7 +1969,7 @@ ___
|
|
|
1928
1969
|
|
|
1929
1970
|
#### Defined in
|
|
1930
1971
|
|
|
1931
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1972
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/insertLink.ts#L5)
|
|
1932
1973
|
|
|
1933
1974
|
___
|
|
1934
1975
|
|
|
@@ -1950,7 +1991,7 @@ ___
|
|
|
1950
1991
|
|
|
1951
1992
|
#### Defined in
|
|
1952
1993
|
|
|
1953
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1994
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/insertScript.ts#L4)
|
|
1954
1995
|
|
|
1955
1996
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1956
1997
|
|
|
@@ -1967,7 +2008,7 @@ ___
|
|
|
1967
2008
|
|
|
1968
2009
|
#### Defined in
|
|
1969
2010
|
|
|
1970
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
2011
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/insertScript.ts#L5)
|
|
1971
2012
|
|
|
1972
2013
|
___
|
|
1973
2014
|
|
|
@@ -1989,7 +2030,7 @@ ___
|
|
|
1989
2030
|
|
|
1990
2031
|
#### Defined in
|
|
1991
2032
|
|
|
1992
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
2033
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/insertStyle.ts#L4)
|
|
1993
2034
|
|
|
1994
2035
|
___
|
|
1995
2036
|
|
|
@@ -2018,7 +2059,7 @@ isAmount('1.123') => false
|
|
|
2018
2059
|
|
|
2019
2060
|
#### Defined in
|
|
2020
2061
|
|
|
2021
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
2062
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/551cd93/src/isAmount.ts#L11)
|
|
2022
2063
|
|
|
2023
2064
|
___
|
|
2024
2065
|
|
|
@@ -2034,7 +2075,7 @@ ___
|
|
|
2034
2075
|
|
|
2035
2076
|
#### Defined in
|
|
2036
2077
|
|
|
2037
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
2078
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isAndroid.ts#L4)
|
|
2038
2079
|
|
|
2039
2080
|
___
|
|
2040
2081
|
|
|
@@ -2064,7 +2105,7 @@ val is T[]
|
|
|
2064
2105
|
|
|
2065
2106
|
#### Defined in
|
|
2066
2107
|
|
|
2067
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2108
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/isArray.ts#L6)
|
|
2068
2109
|
|
|
2069
2110
|
___
|
|
2070
2111
|
|
|
@@ -2086,7 +2127,7 @@ val is boolean
|
|
|
2086
2127
|
|
|
2087
2128
|
#### Defined in
|
|
2088
2129
|
|
|
2089
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
2130
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isBoolean.ts#L5)
|
|
2090
2131
|
|
|
2091
2132
|
___
|
|
2092
2133
|
|
|
@@ -2108,7 +2149,7 @@ ___
|
|
|
2108
2149
|
|
|
2109
2150
|
#### Defined in
|
|
2110
2151
|
|
|
2111
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
2152
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isChinese.ts#L4)
|
|
2112
2153
|
|
|
2113
2154
|
___
|
|
2114
2155
|
|
|
@@ -2130,7 +2171,7 @@ val is Date
|
|
|
2130
2171
|
|
|
2131
2172
|
#### Defined in
|
|
2132
2173
|
|
|
2133
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
2174
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isDate.ts#L4)
|
|
2134
2175
|
|
|
2135
2176
|
___
|
|
2136
2177
|
|
|
@@ -2152,7 +2193,7 @@ ___
|
|
|
2152
2193
|
|
|
2153
2194
|
#### Defined in
|
|
2154
2195
|
|
|
2155
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
2196
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isEmail.ts#L4)
|
|
2156
2197
|
|
|
2157
2198
|
___
|
|
2158
2199
|
|
|
@@ -2174,7 +2215,7 @@ ___
|
|
|
2174
2215
|
|
|
2175
2216
|
#### Defined in
|
|
2176
2217
|
|
|
2177
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
2218
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/isEmpty.ts#L6)
|
|
2178
2219
|
|
|
2179
2220
|
___
|
|
2180
2221
|
|
|
@@ -2196,7 +2237,7 @@ ___
|
|
|
2196
2237
|
|
|
2197
2238
|
#### Defined in
|
|
2198
2239
|
|
|
2199
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2240
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/isEmptyArray.ts#L6)
|
|
2200
2241
|
|
|
2201
2242
|
___
|
|
2202
2243
|
|
|
@@ -2218,7 +2259,7 @@ ___
|
|
|
2218
2259
|
|
|
2219
2260
|
#### Defined in
|
|
2220
2261
|
|
|
2221
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2262
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isEmptyObject.ts#L5)
|
|
2222
2263
|
|
|
2223
2264
|
___
|
|
2224
2265
|
|
|
@@ -2240,7 +2281,7 @@ val is Error
|
|
|
2240
2281
|
|
|
2241
2282
|
#### Defined in
|
|
2242
2283
|
|
|
2243
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
2284
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isError.ts#L4)
|
|
2244
2285
|
|
|
2245
2286
|
___
|
|
2246
2287
|
|
|
@@ -2268,7 +2309,7 @@ val is T
|
|
|
2268
2309
|
|
|
2269
2310
|
#### Defined in
|
|
2270
2311
|
|
|
2271
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2312
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isFunction.ts#L4)
|
|
2272
2313
|
|
|
2273
2314
|
___
|
|
2274
2315
|
|
|
@@ -2286,7 +2327,7 @@ ___
|
|
|
2286
2327
|
|
|
2287
2328
|
#### Defined in
|
|
2288
2329
|
|
|
2289
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2330
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/isIE.ts#L6)
|
|
2290
2331
|
|
|
2291
2332
|
___
|
|
2292
2333
|
|
|
@@ -2302,7 +2343,7 @@ ___
|
|
|
2302
2343
|
|
|
2303
2344
|
#### Defined in
|
|
2304
2345
|
|
|
2305
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2346
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isIOS.ts#L4)
|
|
2306
2347
|
|
|
2307
2348
|
___
|
|
2308
2349
|
|
|
@@ -2324,7 +2365,7 @@ ___
|
|
|
2324
2365
|
|
|
2325
2366
|
#### Defined in
|
|
2326
2367
|
|
|
2327
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2368
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isIdCard.ts#L4)
|
|
2328
2369
|
|
|
2329
2370
|
___
|
|
2330
2371
|
|
|
@@ -2346,7 +2387,7 @@ ___
|
|
|
2346
2387
|
|
|
2347
2388
|
#### Defined in
|
|
2348
2389
|
|
|
2349
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2390
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/isJSONString.ts#L7)
|
|
2350
2391
|
|
|
2351
2392
|
___
|
|
2352
2393
|
|
|
@@ -2368,7 +2409,7 @@ ___
|
|
|
2368
2409
|
|
|
2369
2410
|
#### Defined in
|
|
2370
2411
|
|
|
2371
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2412
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isLan.ts#L5)
|
|
2372
2413
|
|
|
2373
2414
|
___
|
|
2374
2415
|
|
|
@@ -2391,7 +2432,7 @@ ___
|
|
|
2391
2432
|
|
|
2392
2433
|
#### Defined in
|
|
2393
2434
|
|
|
2394
|
-
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/
|
|
2435
|
+
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isLeapYear.ts#L5)
|
|
2395
2436
|
|
|
2396
2437
|
___
|
|
2397
2438
|
|
|
@@ -2413,7 +2454,7 @@ ___
|
|
|
2413
2454
|
|
|
2414
2455
|
#### Defined in
|
|
2415
2456
|
|
|
2416
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2457
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isLicenseCode.ts#L5)
|
|
2417
2458
|
|
|
2418
2459
|
___
|
|
2419
2460
|
|
|
@@ -2429,7 +2470,7 @@ ___
|
|
|
2429
2470
|
|
|
2430
2471
|
#### Defined in
|
|
2431
2472
|
|
|
2432
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2473
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isMobile.ts#L4)
|
|
2433
2474
|
|
|
2434
2475
|
___
|
|
2435
2476
|
|
|
@@ -2452,7 +2493,7 @@ ___
|
|
|
2452
2493
|
|
|
2453
2494
|
#### Defined in
|
|
2454
2495
|
|
|
2455
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2496
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/isNativeFunction.ts#L7)
|
|
2456
2497
|
|
|
2457
2498
|
___
|
|
2458
2499
|
|
|
@@ -2474,7 +2515,7 @@ ___
|
|
|
2474
2515
|
|
|
2475
2516
|
#### Defined in
|
|
2476
2517
|
|
|
2477
|
-
[isNotEmpty.ts:5](https://github.com/daysnap/utils/blob/
|
|
2518
|
+
[isNotEmpty.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isNotEmpty.ts#L5)
|
|
2478
2519
|
|
|
2479
2520
|
___
|
|
2480
2521
|
|
|
@@ -2496,7 +2537,7 @@ val is null
|
|
|
2496
2537
|
|
|
2497
2538
|
#### Defined in
|
|
2498
2539
|
|
|
2499
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2540
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isNull.ts#L4)
|
|
2500
2541
|
|
|
2501
2542
|
___
|
|
2502
2543
|
|
|
@@ -2518,7 +2559,7 @@ val is number
|
|
|
2518
2559
|
|
|
2519
2560
|
#### Defined in
|
|
2520
2561
|
|
|
2521
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2562
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isNumber.ts#L5)
|
|
2522
2563
|
|
|
2523
2564
|
___
|
|
2524
2565
|
|
|
@@ -2546,7 +2587,7 @@ val is T
|
|
|
2546
2587
|
|
|
2547
2588
|
#### Defined in
|
|
2548
2589
|
|
|
2549
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2590
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isObject.ts#L4)
|
|
2550
2591
|
|
|
2551
2592
|
___
|
|
2552
2593
|
|
|
@@ -2568,7 +2609,7 @@ ___
|
|
|
2568
2609
|
|
|
2569
2610
|
#### Defined in
|
|
2570
2611
|
|
|
2571
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2612
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isPhone.ts#L4)
|
|
2572
2613
|
|
|
2573
2614
|
___
|
|
2574
2615
|
|
|
@@ -2596,7 +2637,35 @@ val is Promise<T\>
|
|
|
2596
2637
|
|
|
2597
2638
|
#### Defined in
|
|
2598
2639
|
|
|
2599
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2640
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isPromise.ts#L4)
|
|
2641
|
+
|
|
2642
|
+
___
|
|
2643
|
+
|
|
2644
|
+
### isPromiseLike
|
|
2645
|
+
|
|
2646
|
+
▸ **isPromiseLike**<`T`\>(`value`): value is PromiseLike<T\>
|
|
2647
|
+
|
|
2648
|
+
说明
|
|
2649
|
+
|
|
2650
|
+
#### Type parameters
|
|
2651
|
+
|
|
2652
|
+
| Name |
|
|
2653
|
+
| :------ |
|
|
2654
|
+
| `T` |
|
|
2655
|
+
|
|
2656
|
+
#### Parameters
|
|
2657
|
+
|
|
2658
|
+
| Name | Type |
|
|
2659
|
+
| :------ | :------ |
|
|
2660
|
+
| `value` | `unknown` |
|
|
2661
|
+
|
|
2662
|
+
#### Returns
|
|
2663
|
+
|
|
2664
|
+
value is PromiseLike<T\>
|
|
2665
|
+
|
|
2666
|
+
#### Defined in
|
|
2667
|
+
|
|
2668
|
+
[isPromiseLike.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isPromiseLike.ts#L4)
|
|
2600
2669
|
|
|
2601
2670
|
___
|
|
2602
2671
|
|
|
@@ -2618,7 +2687,7 @@ val is RegExp
|
|
|
2618
2687
|
|
|
2619
2688
|
#### Defined in
|
|
2620
2689
|
|
|
2621
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2690
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isRegExp.ts#L4)
|
|
2622
2691
|
|
|
2623
2692
|
___
|
|
2624
2693
|
|
|
@@ -2640,7 +2709,7 @@ val is string
|
|
|
2640
2709
|
|
|
2641
2710
|
#### Defined in
|
|
2642
2711
|
|
|
2643
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2712
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isString.ts#L4)
|
|
2644
2713
|
|
|
2645
2714
|
___
|
|
2646
2715
|
|
|
@@ -2669,7 +2738,7 @@ val is T
|
|
|
2669
2738
|
|
|
2670
2739
|
#### Defined in
|
|
2671
2740
|
|
|
2672
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2741
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isType.ts#L4)
|
|
2673
2742
|
|
|
2674
2743
|
___
|
|
2675
2744
|
|
|
@@ -2691,7 +2760,7 @@ val is undefined
|
|
|
2691
2760
|
|
|
2692
2761
|
#### Defined in
|
|
2693
2762
|
|
|
2694
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2763
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isUndefined.ts#L4)
|
|
2695
2764
|
|
|
2696
2765
|
___
|
|
2697
2766
|
|
|
@@ -2735,7 +2804,7 @@ ___
|
|
|
2735
2804
|
|
|
2736
2805
|
#### Defined in
|
|
2737
2806
|
|
|
2738
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2807
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/isValidDate.ts#L6)
|
|
2739
2808
|
|
|
2740
2809
|
___
|
|
2741
2810
|
|
|
@@ -2751,7 +2820,7 @@ ___
|
|
|
2751
2820
|
|
|
2752
2821
|
#### Defined in
|
|
2753
2822
|
|
|
2754
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2823
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/isWeChat.ts#L4)
|
|
2755
2824
|
|
|
2756
2825
|
___
|
|
2757
2826
|
|
|
@@ -2768,7 +2837,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2768
2837
|
|
|
2769
2838
|
#### Defined in
|
|
2770
2839
|
|
|
2771
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2840
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isWeChatMiniProgram.ts#L5)
|
|
2772
2841
|
|
|
2773
2842
|
___
|
|
2774
2843
|
|
|
@@ -2792,7 +2861,7 @@ ___
|
|
|
2792
2861
|
|
|
2793
2862
|
#### Defined in
|
|
2794
2863
|
|
|
2795
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2864
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/551cd93/src/isWeChat.ts#L12)
|
|
2796
2865
|
|
|
2797
2866
|
___
|
|
2798
2867
|
|
|
@@ -2814,7 +2883,7 @@ val is Window
|
|
|
2814
2883
|
|
|
2815
2884
|
#### Defined in
|
|
2816
2885
|
|
|
2817
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2886
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/isWindow.ts#L5)
|
|
2818
2887
|
|
|
2819
2888
|
___
|
|
2820
2889
|
|
|
@@ -2837,7 +2906,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2837
2906
|
|
|
2838
2907
|
#### Defined in
|
|
2839
2908
|
|
|
2840
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2909
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/kebabCase.ts#L5)
|
|
2841
2910
|
|
|
2842
2911
|
___
|
|
2843
2912
|
|
|
@@ -2859,7 +2928,7 @@ ___
|
|
|
2859
2928
|
|
|
2860
2929
|
#### Defined in
|
|
2861
2930
|
|
|
2862
|
-
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
2931
|
+
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/lfToBr.ts#L4)
|
|
2863
2932
|
|
|
2864
2933
|
___
|
|
2865
2934
|
|
|
@@ -2881,7 +2950,7 @@ list 生成器,快速生成数据
|
|
|
2881
2950
|
|
|
2882
2951
|
#### Defined in
|
|
2883
2952
|
|
|
2884
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2953
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/listGenerator.ts#L5)
|
|
2885
2954
|
|
|
2886
2955
|
▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
|
|
2887
2956
|
|
|
@@ -2904,7 +2973,7 @@ list 生成器,快速生成数据
|
|
|
2904
2973
|
|
|
2905
2974
|
#### Defined in
|
|
2906
2975
|
|
|
2907
|
-
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/
|
|
2976
|
+
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/listGenerator.ts#L6)
|
|
2908
2977
|
|
|
2909
2978
|
___
|
|
2910
2979
|
|
|
@@ -2924,7 +2993,7 @@ ___
|
|
|
2924
2993
|
|
|
2925
2994
|
#### Defined in
|
|
2926
2995
|
|
|
2927
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2996
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/551cd93/src/makePhoneCall.ts#L1)
|
|
2928
2997
|
|
|
2929
2998
|
___
|
|
2930
2999
|
|
|
@@ -2949,7 +3018,7 @@ ___
|
|
|
2949
3018
|
|
|
2950
3019
|
#### Defined in
|
|
2951
3020
|
|
|
2952
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
3021
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/551cd93/src/mousewheel.ts#L22)
|
|
2953
3022
|
|
|
2954
3023
|
___
|
|
2955
3024
|
|
|
@@ -2965,7 +3034,7 @@ ___
|
|
|
2965
3034
|
|
|
2966
3035
|
#### Defined in
|
|
2967
3036
|
|
|
2968
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
3037
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/nf.ts#L4)
|
|
2969
3038
|
|
|
2970
3039
|
___
|
|
2971
3040
|
|
|
@@ -2989,7 +3058,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2989
3058
|
|
|
2990
3059
|
#### Defined in
|
|
2991
3060
|
|
|
2992
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
3061
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/normalizeDate.ts#L8)
|
|
2993
3062
|
|
|
2994
3063
|
___
|
|
2995
3064
|
|
|
@@ -3011,7 +3080,7 @@ ___
|
|
|
3011
3080
|
|
|
3012
3081
|
#### Defined in
|
|
3013
3082
|
|
|
3014
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
3083
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/normalizePath.ts#L4)
|
|
3015
3084
|
|
|
3016
3085
|
___
|
|
3017
3086
|
|
|
@@ -3033,7 +3102,7 @@ ___
|
|
|
3033
3102
|
|
|
3034
3103
|
#### Defined in
|
|
3035
3104
|
|
|
3036
|
-
[numberToLetter.ts:4](https://github.com/daysnap/utils/blob/
|
|
3105
|
+
[numberToLetter.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/numberToLetter.ts#L4)
|
|
3037
3106
|
|
|
3038
3107
|
___
|
|
3039
3108
|
|
|
@@ -3063,7 +3132,7 @@ ___
|
|
|
3063
3132
|
|
|
3064
3133
|
#### Defined in
|
|
3065
3134
|
|
|
3066
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
3135
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/omit.ts#L4)
|
|
3067
3136
|
|
|
3068
3137
|
___
|
|
3069
3138
|
|
|
@@ -3094,7 +3163,7 @@ omitBy(object, isNumber);
|
|
|
3094
3163
|
|
|
3095
3164
|
#### Defined in
|
|
3096
3165
|
|
|
3097
|
-
[omitBy.ts:6](https://github.com/daysnap/utils/blob/
|
|
3166
|
+
[omitBy.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/omitBy.ts#L6)
|
|
3098
3167
|
|
|
3099
3168
|
___
|
|
3100
3169
|
|
|
@@ -3118,7 +3187,7 @@ ___
|
|
|
3118
3187
|
|
|
3119
3188
|
#### Defined in
|
|
3120
3189
|
|
|
3121
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
3190
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/padding.ts#L7)
|
|
3122
3191
|
|
|
3123
3192
|
___
|
|
3124
3193
|
|
|
@@ -3144,7 +3213,7 @@ ___
|
|
|
3144
3213
|
|
|
3145
3214
|
#### Defined in
|
|
3146
3215
|
|
|
3147
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
3216
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/parseDate.ts#L5)
|
|
3148
3217
|
|
|
3149
3218
|
___
|
|
3150
3219
|
|
|
@@ -3170,7 +3239,7 @@ ___
|
|
|
3170
3239
|
|
|
3171
3240
|
#### Defined in
|
|
3172
3241
|
|
|
3173
|
-
[parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/
|
|
3242
|
+
[parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/parseDecimalString.ts#L5)
|
|
3174
3243
|
|
|
3175
3244
|
___
|
|
3176
3245
|
|
|
@@ -3193,7 +3262,7 @@ ___
|
|
|
3193
3262
|
|
|
3194
3263
|
#### Defined in
|
|
3195
3264
|
|
|
3196
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
3265
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/parseError.ts#L8)
|
|
3197
3266
|
|
|
3198
3267
|
___
|
|
3199
3268
|
|
|
@@ -3218,7 +3287,7 @@ x0123 => ''
|
|
|
3218
3287
|
|
|
3219
3288
|
#### Defined in
|
|
3220
3289
|
|
|
3221
|
-
[parseNumberString.ts:7](https://github.com/daysnap/utils/blob/
|
|
3290
|
+
[parseNumberString.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/parseNumberString.ts#L7)
|
|
3222
3291
|
|
|
3223
3292
|
___
|
|
3224
3293
|
|
|
@@ -3248,7 +3317,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
3248
3317
|
|
|
3249
3318
|
#### Defined in
|
|
3250
3319
|
|
|
3251
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
3320
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/parseObject.ts#L5)
|
|
3252
3321
|
|
|
3253
3322
|
___
|
|
3254
3323
|
|
|
@@ -3277,7 +3346,7 @@ ___
|
|
|
3277
3346
|
|
|
3278
3347
|
#### Defined in
|
|
3279
3348
|
|
|
3280
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
3349
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/parsePath.ts#L6)
|
|
3281
3350
|
|
|
3282
3351
|
___
|
|
3283
3352
|
|
|
@@ -3300,7 +3369,7 @@ ___
|
|
|
3300
3369
|
|
|
3301
3370
|
#### Defined in
|
|
3302
3371
|
|
|
3303
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
3372
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/parseQuery.ts#L8)
|
|
3304
3373
|
|
|
3305
3374
|
___
|
|
3306
3375
|
|
|
@@ -3330,7 +3399,7 @@ ___
|
|
|
3330
3399
|
|
|
3331
3400
|
#### Defined in
|
|
3332
3401
|
|
|
3333
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3402
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/parseQueryString.ts#L6)
|
|
3334
3403
|
|
|
3335
3404
|
___
|
|
3336
3405
|
|
|
@@ -3353,7 +3422,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
3353
3422
|
|
|
3354
3423
|
#### Defined in
|
|
3355
3424
|
|
|
3356
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
3425
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/pascalCase.ts#L8)
|
|
3357
3426
|
|
|
3358
3427
|
___
|
|
3359
3428
|
|
|
@@ -3383,7 +3452,7 @@ ___
|
|
|
3383
3452
|
|
|
3384
3453
|
#### Defined in
|
|
3385
3454
|
|
|
3386
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
3455
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/pick.ts#L4)
|
|
3387
3456
|
|
|
3388
3457
|
___
|
|
3389
3458
|
|
|
@@ -3414,7 +3483,7 @@ pickBy(object, isNumber);
|
|
|
3414
3483
|
|
|
3415
3484
|
#### Defined in
|
|
3416
3485
|
|
|
3417
|
-
[pickBy.ts:6](https://github.com/daysnap/utils/blob/
|
|
3486
|
+
[pickBy.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/pickBy.ts#L6)
|
|
3418
3487
|
|
|
3419
3488
|
___
|
|
3420
3489
|
|
|
@@ -3437,7 +3506,7 @@ ___
|
|
|
3437
3506
|
|
|
3438
3507
|
#### Defined in
|
|
3439
3508
|
|
|
3440
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
3509
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/replaceCrlf.ts#L4)
|
|
3441
3510
|
|
|
3442
3511
|
___
|
|
3443
3512
|
|
|
@@ -3461,7 +3530,7 @@ ___
|
|
|
3461
3530
|
|
|
3462
3531
|
#### Defined in
|
|
3463
3532
|
|
|
3464
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
3533
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/requestFullScreen.ts#L6)
|
|
3465
3534
|
|
|
3466
3535
|
___
|
|
3467
3536
|
|
|
@@ -3487,7 +3556,7 @@ reserve(0, '--') => 0
|
|
|
3487
3556
|
|
|
3488
3557
|
#### Defined in
|
|
3489
3558
|
|
|
3490
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
3559
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/551cd93/src/reserve.ts#L8)
|
|
3491
3560
|
|
|
3492
3561
|
___
|
|
3493
3562
|
|
|
@@ -3511,7 +3580,7 @@ ___
|
|
|
3511
3580
|
|
|
3512
3581
|
#### Defined in
|
|
3513
3582
|
|
|
3514
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3583
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/rgbToHex.ts#L4)
|
|
3515
3584
|
|
|
3516
3585
|
___
|
|
3517
3586
|
|
|
@@ -3534,7 +3603,7 @@ ___
|
|
|
3534
3603
|
|
|
3535
3604
|
#### Defined in
|
|
3536
3605
|
|
|
3537
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3606
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/round.ts#L6)
|
|
3538
3607
|
|
|
3539
3608
|
___
|
|
3540
3609
|
|
|
@@ -3559,7 +3628,7 @@ ___
|
|
|
3559
3628
|
|
|
3560
3629
|
#### Defined in
|
|
3561
3630
|
|
|
3562
|
-
[roundUpToNearestInteger.ts:7](https://github.com/daysnap/utils/blob/
|
|
3631
|
+
[roundUpToNearestInteger.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/roundUpToNearestInteger.ts#L7)
|
|
3563
3632
|
|
|
3564
3633
|
___
|
|
3565
3634
|
|
|
@@ -3575,7 +3644,7 @@ ___
|
|
|
3575
3644
|
|
|
3576
3645
|
#### Defined in
|
|
3577
3646
|
|
|
3578
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3647
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/scrollToTop.ts#L4)
|
|
3579
3648
|
|
|
3580
3649
|
___
|
|
3581
3650
|
|
|
@@ -3597,7 +3666,7 @@ ___
|
|
|
3597
3666
|
|
|
3598
3667
|
#### Defined in
|
|
3599
3668
|
|
|
3600
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3669
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/setScrollTop.ts#L4)
|
|
3601
3670
|
|
|
3602
3671
|
___
|
|
3603
3672
|
|
|
@@ -3621,7 +3690,7 @@ ___
|
|
|
3621
3690
|
|
|
3622
3691
|
#### Defined in
|
|
3623
3692
|
|
|
3624
|
-
[sleep.ts:7](https://github.com/daysnap/utils/blob/
|
|
3693
|
+
[sleep.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/sleep.ts#L7)
|
|
3625
3694
|
|
|
3626
3695
|
___
|
|
3627
3696
|
|
|
@@ -3650,7 +3719,7 @@ ___
|
|
|
3650
3719
|
|
|
3651
3720
|
#### Defined in
|
|
3652
3721
|
|
|
3653
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3722
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/splitArray.ts#L4)
|
|
3654
3723
|
|
|
3655
3724
|
___
|
|
3656
3725
|
|
|
@@ -3673,7 +3742,7 @@ ___
|
|
|
3673
3742
|
|
|
3674
3743
|
#### Defined in
|
|
3675
3744
|
|
|
3676
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3745
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/stringTrim.ts#L6)
|
|
3677
3746
|
|
|
3678
3747
|
___
|
|
3679
3748
|
|
|
@@ -3695,7 +3764,7 @@ ___
|
|
|
3695
3764
|
|
|
3696
3765
|
#### Defined in
|
|
3697
3766
|
|
|
3698
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3767
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/551cd93/src/stringifyQuery.ts#L7)
|
|
3699
3768
|
|
|
3700
3769
|
___
|
|
3701
3770
|
|
|
@@ -3719,7 +3788,7 @@ ___
|
|
|
3719
3788
|
|
|
3720
3789
|
#### Defined in
|
|
3721
3790
|
|
|
3722
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3791
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/stringifyQueryString.ts#L6)
|
|
3723
3792
|
|
|
3724
3793
|
___
|
|
3725
3794
|
|
|
@@ -3763,7 +3832,7 @@ ___
|
|
|
3763
3832
|
|
|
3764
3833
|
#### Defined in
|
|
3765
3834
|
|
|
3766
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3835
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/551cd93/src/throttle.ts#L48)
|
|
3767
3836
|
|
|
3768
3837
|
___
|
|
3769
3838
|
|
|
@@ -3806,7 +3875,7 @@ ___
|
|
|
3806
3875
|
|
|
3807
3876
|
#### Defined in
|
|
3808
3877
|
|
|
3809
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3878
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/551cd93/src/throttle.ts#L5)
|
|
3810
3879
|
|
|
3811
3880
|
___
|
|
3812
3881
|
|
|
@@ -3849,7 +3918,7 @@ ___
|
|
|
3849
3918
|
|
|
3850
3919
|
#### Defined in
|
|
3851
3920
|
|
|
3852
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3921
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/551cd93/src/throttle.ts#L25)
|
|
3853
3922
|
|
|
3854
3923
|
___
|
|
3855
3924
|
|
|
@@ -3871,7 +3940,7 @@ ___
|
|
|
3871
3940
|
|
|
3872
3941
|
#### Defined in
|
|
3873
3942
|
|
|
3874
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3943
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/toCDB.ts#L4)
|
|
3875
3944
|
|
|
3876
3945
|
___
|
|
3877
3946
|
|
|
@@ -3893,7 +3962,7 @@ ___
|
|
|
3893
3962
|
|
|
3894
3963
|
#### Defined in
|
|
3895
3964
|
|
|
3896
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3965
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/toDBC.ts#L4)
|
|
3897
3966
|
|
|
3898
3967
|
___
|
|
3899
3968
|
|
|
@@ -3915,7 +3984,7 @@ ___
|
|
|
3915
3984
|
|
|
3916
3985
|
#### Defined in
|
|
3917
3986
|
|
|
3918
|
-
[toFormData.ts:4](https://github.com/daysnap/utils/blob/
|
|
3987
|
+
[toFormData.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/toFormData.ts#L4)
|
|
3919
3988
|
|
|
3920
3989
|
___
|
|
3921
3990
|
|
|
@@ -3937,7 +4006,7 @@ ___
|
|
|
3937
4006
|
|
|
3938
4007
|
#### Defined in
|
|
3939
4008
|
|
|
3940
|
-
[toPosix.ts:4](https://github.com/daysnap/utils/blob/
|
|
4009
|
+
[toPosix.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/toPosix.ts#L4)
|
|
3941
4010
|
|
|
3942
4011
|
___
|
|
3943
4012
|
|
|
@@ -3961,7 +4030,7 @@ ___
|
|
|
3961
4030
|
|
|
3962
4031
|
#### Defined in
|
|
3963
4032
|
|
|
3964
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
4033
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/551cd93/src/typeOf.ts#L6)
|
|
3965
4034
|
|
|
3966
4035
|
___
|
|
3967
4036
|
|
|
@@ -3989,7 +4058,7 @@ ___
|
|
|
3989
4058
|
|
|
3990
4059
|
#### Defined in
|
|
3991
4060
|
|
|
3992
|
-
[withCache.ts:4](https://github.com/daysnap/utils/blob/
|
|
4061
|
+
[withCache.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/withCache.ts#L4)
|
|
3993
4062
|
|
|
3994
4063
|
___
|
|
3995
4064
|
|
|
@@ -4018,4 +4087,4 @@ ___
|
|
|
4018
4087
|
|
|
4019
4088
|
#### Defined in
|
|
4020
4089
|
|
|
4021
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
4090
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/551cd93/src/withPreventConsecutiveClicks.ts#L4)
|