@daysnap/utils 0.1.29 → 0.1.31
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 +68 -18
- 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 +204 -163
- package/es/{chunk-2ZSZ4GDI.js → chunk-65FBSULU.js} +1 -2
- package/es/{chunk-WXD7J2FR.js → chunk-DW5GIB4A.js} +1 -2
- package/es/{chunk-56QUZDMU.js → chunk-SBMDM4VS.js} +36 -8
- package/es/chunk-YYH4INGK.js +12 -0
- package/es/formartDateToZN.js +1 -1
- package/es/formatFileSize.js +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +22 -18
- package/es/isArray.d.ts +1 -1
- package/es/isFunction.d.ts +1 -1
- package/es/isNotEmpty.d.ts +6 -0
- package/es/isNotEmpty.js +9 -0
- package/es/isObject.d.ts +1 -1
- package/es/storage/index.js +3 -3
- package/es/storage/storage.d.ts +17 -5
- package/es/storage/storage.js +1 -1
- package/lib/{chunk-GQFHHWIV.cjs → chunk-247HC54W.cjs} +36 -8
- package/lib/{chunk-KT3FWGJG.cjs → chunk-DIJ3MI2T.cjs} +1 -2
- package/lib/{chunk-EDVQTNLJ.cjs → chunk-LJD6E7O5.cjs} +1 -2
- package/lib/chunk-LV2K7SSF.cjs +12 -0
- package/lib/formartDateToZN.cjs +2 -2
- package/lib/formatFileSize.cjs +2 -2
- package/lib/index.cjs +18 -14
- package/lib/index.d.cts +2 -1
- package/lib/isArray.d.cts +1 -1
- package/lib/isFunction.d.cts +1 -1
- package/lib/isNotEmpty.cjs +9 -0
- package/lib/isNotEmpty.d.cts +6 -0
- package/lib/isObject.d.cts +1 -1
- package/lib/storage/index.cjs +3 -3
- package/lib/storage/storage.cjs +2 -2
- package/lib/storage/storage.d.cts +17 -5
- package/package.json +1 -1
package/docs/modules.md
CHANGED
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
- [isLicenseCode](modules.md#islicensecode)
|
|
113
113
|
- [isMobile](modules.md#ismobile)
|
|
114
114
|
- [isNativeFunction](modules.md#isnativefunction)
|
|
115
|
+
- [isNotEmpty](modules.md#isnotempty)
|
|
115
116
|
- [isNull](modules.md#isnull)
|
|
116
117
|
- [isNumber](modules.md#isnumber)
|
|
117
118
|
- [isObject](modules.md#isobject)
|
|
@@ -196,7 +197,7 @@
|
|
|
196
197
|
|
|
197
198
|
#### Defined in
|
|
198
199
|
|
|
199
|
-
[poller.ts:7](https://github.com/daysnap/utils/blob/
|
|
200
|
+
[poller.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/poller.ts#L7)
|
|
200
201
|
|
|
201
202
|
## Variables
|
|
202
203
|
|
|
@@ -215,7 +216,7 @@
|
|
|
215
216
|
|
|
216
217
|
#### Defined in
|
|
217
218
|
|
|
218
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
219
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/2af7b5c/src/eventBus.ts#L38)
|
|
219
220
|
|
|
220
221
|
___
|
|
221
222
|
|
|
@@ -240,7 +241,7 @@ ___
|
|
|
240
241
|
|
|
241
242
|
#### Defined in
|
|
242
243
|
|
|
243
|
-
[sounds.ts:13](https://github.com/daysnap/utils/blob/
|
|
244
|
+
[sounds.ts:13](https://github.com/daysnap/utils/blob/2af7b5c/src/sounds.ts#L13)
|
|
244
245
|
|
|
245
246
|
___
|
|
246
247
|
|
|
@@ -250,7 +251,7 @@ ___
|
|
|
250
251
|
|
|
251
252
|
#### Defined in
|
|
252
253
|
|
|
253
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
254
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/2af7b5c/src/trap.ts#L15)
|
|
254
255
|
|
|
255
256
|
## Functions
|
|
256
257
|
|
|
@@ -288,7 +289,7 @@ res = { '1': '男', '2': '女' }
|
|
|
288
289
|
|
|
289
290
|
#### Defined in
|
|
290
291
|
|
|
291
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
292
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/2af7b5c/src/ato.ts#L12)
|
|
292
293
|
|
|
293
294
|
▸ **ato**<`T`, `K`, `V`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `T`[`V`]\>
|
|
294
295
|
|
|
@@ -314,7 +315,7 @@ res = { '1': '男', '2': '女' }
|
|
|
314
315
|
|
|
315
316
|
#### Defined in
|
|
316
317
|
|
|
317
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
318
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/2af7b5c/src/ato.ts#L16)
|
|
318
319
|
|
|
319
320
|
___
|
|
320
321
|
|
|
@@ -334,7 +335,7 @@ ___
|
|
|
334
335
|
|
|
335
336
|
#### Defined in
|
|
336
337
|
|
|
337
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
338
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/2af7b5c/src/decode.ts#L41)
|
|
338
339
|
|
|
339
340
|
___
|
|
340
341
|
|
|
@@ -357,7 +358,7 @@ base64 转 blob
|
|
|
357
358
|
|
|
358
359
|
#### Defined in
|
|
359
360
|
|
|
360
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
361
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/base64ToBlob.ts#L6)
|
|
361
362
|
|
|
362
363
|
___
|
|
363
364
|
|
|
@@ -379,7 +380,7 @@ blob 转 base64
|
|
|
379
380
|
|
|
380
381
|
#### Defined in
|
|
381
382
|
|
|
382
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
383
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/blobToBase64.ts#L4)
|
|
383
384
|
|
|
384
385
|
___
|
|
385
386
|
|
|
@@ -399,7 +400,7 @@ ___
|
|
|
399
400
|
|
|
400
401
|
#### Defined in
|
|
401
402
|
|
|
402
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
403
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/decode.ts#L8)
|
|
403
404
|
|
|
404
405
|
___
|
|
405
406
|
|
|
@@ -440,7 +441,7 @@ ___
|
|
|
440
441
|
|
|
441
442
|
#### Defined in
|
|
442
443
|
|
|
443
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
444
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/cached.ts#L5)
|
|
444
445
|
|
|
445
446
|
___
|
|
446
447
|
|
|
@@ -463,7 +464,7 @@ camelCase('hello-world') => helloWorld
|
|
|
463
464
|
|
|
464
465
|
#### Defined in
|
|
465
466
|
|
|
466
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
467
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/camelCase.ts#L5)
|
|
467
468
|
|
|
468
469
|
___
|
|
469
470
|
|
|
@@ -487,7 +488,7 @@ canvas 转 blob 文件
|
|
|
487
488
|
|
|
488
489
|
#### Defined in
|
|
489
490
|
|
|
490
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
491
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/canvasToBlob.ts#L4)
|
|
491
492
|
|
|
492
493
|
___
|
|
493
494
|
|
|
@@ -510,7 +511,7 @@ capitalize('hello world') => Hello world
|
|
|
510
511
|
|
|
511
512
|
#### Defined in
|
|
512
513
|
|
|
513
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
514
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/capitalize.ts#L5)
|
|
514
515
|
|
|
515
516
|
___
|
|
516
517
|
|
|
@@ -535,7 +536,7 @@ ___
|
|
|
535
536
|
|
|
536
537
|
#### Defined in
|
|
537
538
|
|
|
538
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
539
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/chooseMedia.ts#L5)
|
|
539
540
|
|
|
540
541
|
___
|
|
541
542
|
|
|
@@ -559,7 +560,7 @@ ___
|
|
|
559
560
|
|
|
560
561
|
#### Defined in
|
|
561
562
|
|
|
562
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
563
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/clamp.ts#L7)
|
|
563
564
|
|
|
564
565
|
___
|
|
565
566
|
|
|
@@ -587,7 +588,7 @@ ___
|
|
|
587
588
|
|
|
588
589
|
#### Defined in
|
|
589
590
|
|
|
590
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
591
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/clone.ts#L8)
|
|
591
592
|
|
|
592
593
|
___
|
|
593
594
|
|
|
@@ -615,7 +616,7 @@ ___
|
|
|
615
616
|
|
|
616
617
|
#### Defined in
|
|
617
618
|
|
|
618
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
619
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/cloneSimple.ts#L7)
|
|
619
620
|
|
|
620
621
|
___
|
|
621
622
|
|
|
@@ -637,7 +638,7 @@ ___
|
|
|
637
638
|
|
|
638
639
|
#### Defined in
|
|
639
640
|
|
|
640
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
641
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/createHexColorByHash.ts#L4)
|
|
641
642
|
|
|
642
643
|
___
|
|
643
644
|
|
|
@@ -663,7 +664,7 @@ ___
|
|
|
663
664
|
|
|
664
665
|
#### Defined in
|
|
665
666
|
|
|
666
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
667
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/2af7b5c/src/compareVersion.ts#L9)
|
|
667
668
|
|
|
668
669
|
___
|
|
669
670
|
|
|
@@ -686,7 +687,7 @@ ___
|
|
|
686
687
|
|
|
687
688
|
#### Defined in
|
|
688
689
|
|
|
689
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
690
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/compressImage.ts#L4)
|
|
690
691
|
|
|
691
692
|
___
|
|
692
693
|
|
|
@@ -708,7 +709,7 @@ ___
|
|
|
708
709
|
|
|
709
710
|
#### Defined in
|
|
710
711
|
|
|
711
|
-
[crToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
712
|
+
[crToBr.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/crToBr.ts#L4)
|
|
712
713
|
|
|
713
714
|
___
|
|
714
715
|
|
|
@@ -736,7 +737,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
736
737
|
|
|
737
738
|
#### Defined in
|
|
738
739
|
|
|
739
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
740
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/createFactory.ts#L4)
|
|
740
741
|
|
|
741
742
|
___
|
|
742
743
|
|
|
@@ -774,7 +775,7 @@ ___
|
|
|
774
775
|
|
|
775
776
|
#### Defined in
|
|
776
777
|
|
|
777
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
778
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/2af7b5c/src/createLinearFunction.ts#L9)
|
|
778
779
|
|
|
779
780
|
___
|
|
780
781
|
|
|
@@ -806,7 +807,7 @@ ___
|
|
|
806
807
|
|
|
807
808
|
#### Defined in
|
|
808
809
|
|
|
809
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
810
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/2af7b5c/src/trap.ts#L49)
|
|
810
811
|
|
|
811
812
|
___
|
|
812
813
|
|
|
@@ -869,7 +870,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
869
870
|
|
|
870
871
|
#### Defined in
|
|
871
872
|
|
|
872
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
873
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/2af7b5c/src/createWithLoading.ts#L11)
|
|
873
874
|
|
|
874
875
|
___
|
|
875
876
|
|
|
@@ -891,7 +892,7 @@ ___
|
|
|
891
892
|
|
|
892
893
|
#### Defined in
|
|
893
894
|
|
|
894
|
-
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
895
|
+
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/crlfToBr.ts#L4)
|
|
895
896
|
|
|
896
897
|
___
|
|
897
898
|
|
|
@@ -934,7 +935,7 @@ ___
|
|
|
934
935
|
|
|
935
936
|
#### Defined in
|
|
936
937
|
|
|
937
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
938
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/debounce.ts#L5)
|
|
938
939
|
|
|
939
940
|
___
|
|
940
941
|
|
|
@@ -958,7 +959,7 @@ ___
|
|
|
958
959
|
|
|
959
960
|
#### Defined in
|
|
960
961
|
|
|
961
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
962
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/downloadFile.ts#L4)
|
|
962
963
|
|
|
963
964
|
___
|
|
964
965
|
|
|
@@ -987,7 +988,7 @@ ___
|
|
|
987
988
|
|
|
988
989
|
#### Defined in
|
|
989
990
|
|
|
990
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
991
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/each.ts#L4)
|
|
991
992
|
|
|
992
993
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
993
994
|
|
|
@@ -1010,7 +1011,7 @@ ___
|
|
|
1010
1011
|
|
|
1011
1012
|
#### Defined in
|
|
1012
1013
|
|
|
1013
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
1014
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/each.ts#L8)
|
|
1014
1015
|
|
|
1015
1016
|
___
|
|
1016
1017
|
|
|
@@ -1028,7 +1029,7 @@ ___
|
|
|
1028
1029
|
|
|
1029
1030
|
#### Defined in
|
|
1030
1031
|
|
|
1031
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
1032
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/exitFullscreen.ts#L6)
|
|
1032
1033
|
|
|
1033
1034
|
___
|
|
1034
1035
|
|
|
@@ -1057,7 +1058,7 @@ ___
|
|
|
1057
1058
|
|
|
1058
1059
|
#### Defined in
|
|
1059
1060
|
|
|
1060
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
1061
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/2af7b5c/src/storage/factory.ts#L11)
|
|
1061
1062
|
|
|
1062
1063
|
___
|
|
1063
1064
|
|
|
@@ -1079,7 +1080,7 @@ ___
|
|
|
1079
1080
|
|
|
1080
1081
|
#### Defined in
|
|
1081
1082
|
|
|
1082
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1083
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/filterBankCardNo.ts#L4)
|
|
1083
1084
|
|
|
1084
1085
|
___
|
|
1085
1086
|
|
|
@@ -1109,7 +1110,7 @@ ___
|
|
|
1109
1110
|
|
|
1110
1111
|
#### Defined in
|
|
1111
1112
|
|
|
1112
|
-
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/
|
|
1113
|
+
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/2af7b5c/src/crlfToBr.ts#L12)
|
|
1113
1114
|
|
|
1114
1115
|
___
|
|
1115
1116
|
|
|
@@ -1131,7 +1132,7 @@ ___
|
|
|
1131
1132
|
|
|
1132
1133
|
#### Defined in
|
|
1133
1134
|
|
|
1134
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1135
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/filterEmoji.ts#L4)
|
|
1135
1136
|
|
|
1136
1137
|
___
|
|
1137
1138
|
|
|
@@ -1154,7 +1155,7 @@ ___
|
|
|
1154
1155
|
|
|
1155
1156
|
#### Defined in
|
|
1156
1157
|
|
|
1157
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1158
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/2af7b5c/src/filterEmptyValue.ts#L12)
|
|
1158
1159
|
|
|
1159
1160
|
___
|
|
1160
1161
|
|
|
@@ -1177,7 +1178,7 @@ ___
|
|
|
1177
1178
|
|
|
1178
1179
|
#### Defined in
|
|
1179
1180
|
|
|
1180
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1181
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/filterIdCard.ts#L5)
|
|
1181
1182
|
|
|
1182
1183
|
___
|
|
1183
1184
|
|
|
@@ -1199,7 +1200,7 @@ ___
|
|
|
1199
1200
|
|
|
1200
1201
|
#### Defined in
|
|
1201
1202
|
|
|
1202
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1203
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/filterName.ts#L4)
|
|
1203
1204
|
|
|
1204
1205
|
___
|
|
1205
1206
|
|
|
@@ -1224,7 +1225,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1224
1225
|
|
|
1225
1226
|
#### Defined in
|
|
1226
1227
|
|
|
1227
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1228
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/filterPhone.ts#L6)
|
|
1228
1229
|
|
|
1229
1230
|
___
|
|
1230
1231
|
|
|
@@ -1251,7 +1252,7 @@ str = '131****8888'
|
|
|
1251
1252
|
|
|
1252
1253
|
#### Defined in
|
|
1253
1254
|
|
|
1254
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1255
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/filterString.ts#L6)
|
|
1255
1256
|
|
|
1256
1257
|
___
|
|
1257
1258
|
|
|
@@ -1274,7 +1275,7 @@ ___
|
|
|
1274
1275
|
|
|
1275
1276
|
#### Defined in
|
|
1276
1277
|
|
|
1277
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1278
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/formatAmount.ts#L4)
|
|
1278
1279
|
|
|
1279
1280
|
___
|
|
1280
1281
|
|
|
@@ -1298,7 +1299,7 @@ ___
|
|
|
1298
1299
|
|
|
1299
1300
|
#### Defined in
|
|
1300
1301
|
|
|
1301
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1302
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/formatDate.ts#L7)
|
|
1302
1303
|
|
|
1303
1304
|
___
|
|
1304
1305
|
|
|
@@ -1329,7 +1330,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1329
1330
|
|
|
1330
1331
|
#### Defined in
|
|
1331
1332
|
|
|
1332
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1333
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/formatDateStr.ts#L6)
|
|
1333
1334
|
|
|
1334
1335
|
___
|
|
1335
1336
|
|
|
@@ -1349,7 +1350,7 @@ ___
|
|
|
1349
1350
|
|
|
1350
1351
|
#### Defined in
|
|
1351
1352
|
|
|
1352
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1353
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/formartDateToZN.ts#L4)
|
|
1353
1354
|
|
|
1354
1355
|
___
|
|
1355
1356
|
|
|
@@ -1372,7 +1373,7 @@ ___
|
|
|
1372
1373
|
|
|
1373
1374
|
#### Defined in
|
|
1374
1375
|
|
|
1375
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1376
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/formatFileSize.ts#L4)
|
|
1376
1377
|
|
|
1377
1378
|
___
|
|
1378
1379
|
|
|
@@ -1395,7 +1396,7 @@ yyyyMMdd -> yyyy-MM-dd
|
|
|
1395
1396
|
|
|
1396
1397
|
#### Defined in
|
|
1397
1398
|
|
|
1398
|
-
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1399
|
+
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/formatGapDate.ts#L4)
|
|
1399
1400
|
|
|
1400
1401
|
___
|
|
1401
1402
|
|
|
@@ -1420,7 +1421,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1420
1421
|
|
|
1421
1422
|
#### Defined in
|
|
1422
1423
|
|
|
1423
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1424
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/2af7b5c/src/formatMessage.ts#L11)
|
|
1424
1425
|
|
|
1425
1426
|
___
|
|
1426
1427
|
|
|
@@ -1452,7 +1453,7 @@ rest = { xxx: 1 }
|
|
|
1452
1453
|
|
|
1453
1454
|
#### Defined in
|
|
1454
1455
|
|
|
1455
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1456
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/formatPathParams.ts#L8)
|
|
1456
1457
|
|
|
1457
1458
|
___
|
|
1458
1459
|
|
|
@@ -1474,7 +1475,7 @@ ___
|
|
|
1474
1475
|
|
|
1475
1476
|
#### Defined in
|
|
1476
1477
|
|
|
1477
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1478
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/getBlobByUrl.ts#L4)
|
|
1478
1479
|
|
|
1479
1480
|
___
|
|
1480
1481
|
|
|
@@ -1497,7 +1498,7 @@ ___
|
|
|
1497
1498
|
|
|
1498
1499
|
#### Defined in
|
|
1499
1500
|
|
|
1500
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1501
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/2af7b5c/src/storage/index.ts#L10)
|
|
1501
1502
|
|
|
1502
1503
|
___
|
|
1503
1504
|
|
|
@@ -1520,7 +1521,7 @@ ___
|
|
|
1520
1521
|
|
|
1521
1522
|
#### Defined in
|
|
1522
1523
|
|
|
1523
|
-
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/
|
|
1524
|
+
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/getDateBoundsByMonths.ts#L8)
|
|
1524
1525
|
|
|
1525
1526
|
▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
|
|
1526
1527
|
|
|
@@ -1538,7 +1539,7 @@ ___
|
|
|
1538
1539
|
|
|
1539
1540
|
#### Defined in
|
|
1540
1541
|
|
|
1541
|
-
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/
|
|
1542
|
+
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/2af7b5c/src/getDateBoundsByMonths.ts#L12)
|
|
1542
1543
|
|
|
1543
1544
|
___
|
|
1544
1545
|
|
|
@@ -1560,7 +1561,7 @@ ___
|
|
|
1560
1561
|
|
|
1561
1562
|
#### Defined in
|
|
1562
1563
|
|
|
1563
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1564
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/getDayMillisecond.ts#L4)
|
|
1564
1565
|
|
|
1565
1566
|
___
|
|
1566
1567
|
|
|
@@ -1583,7 +1584,7 @@ ___
|
|
|
1583
1584
|
|
|
1584
1585
|
#### Defined in
|
|
1585
1586
|
|
|
1586
|
-
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/
|
|
1587
|
+
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/getDaysOfMonth.ts#L4)
|
|
1587
1588
|
|
|
1588
1589
|
___
|
|
1589
1590
|
|
|
@@ -1606,7 +1607,7 @@ ___
|
|
|
1606
1607
|
|
|
1607
1608
|
#### Defined in
|
|
1608
1609
|
|
|
1609
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1610
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/getImageInfo.ts#L4)
|
|
1610
1611
|
|
|
1611
1612
|
___
|
|
1612
1613
|
|
|
@@ -1629,7 +1630,7 @@ ___
|
|
|
1629
1630
|
|
|
1630
1631
|
#### Defined in
|
|
1631
1632
|
|
|
1632
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1633
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/2af7b5c/src/storage/index.ts#L10)
|
|
1633
1634
|
|
|
1634
1635
|
___
|
|
1635
1636
|
|
|
@@ -1651,7 +1652,7 @@ ___
|
|
|
1651
1652
|
|
|
1652
1653
|
#### Defined in
|
|
1653
1654
|
|
|
1654
|
-
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1655
|
+
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/getMonthBounds.ts#L7)
|
|
1655
1656
|
|
|
1656
1657
|
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1657
1658
|
|
|
@@ -1668,7 +1669,7 @@ ___
|
|
|
1668
1669
|
|
|
1669
1670
|
#### Defined in
|
|
1670
1671
|
|
|
1671
|
-
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/
|
|
1672
|
+
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/getMonthBounds.ts#L8)
|
|
1672
1673
|
|
|
1673
1674
|
___
|
|
1674
1675
|
|
|
@@ -1691,7 +1692,7 @@ ___
|
|
|
1691
1692
|
|
|
1692
1693
|
#### Defined in
|
|
1693
1694
|
|
|
1694
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1695
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/getRandom.ts#L7)
|
|
1695
1696
|
|
|
1696
1697
|
___
|
|
1697
1698
|
|
|
@@ -1707,7 +1708,7 @@ ___
|
|
|
1707
1708
|
|
|
1708
1709
|
#### Defined in
|
|
1709
1710
|
|
|
1710
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1711
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/getRandomColor.ts#L4)
|
|
1711
1712
|
|
|
1712
1713
|
___
|
|
1713
1714
|
|
|
@@ -1729,7 +1730,7 @@ ___
|
|
|
1729
1730
|
|
|
1730
1731
|
#### Defined in
|
|
1731
1732
|
|
|
1732
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1733
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/getRandomNumber.ts#L7)
|
|
1733
1734
|
|
|
1734
1735
|
___
|
|
1735
1736
|
|
|
@@ -1752,7 +1753,7 @@ ___
|
|
|
1752
1753
|
|
|
1753
1754
|
#### Defined in
|
|
1754
1755
|
|
|
1755
|
-
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1756
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/getRangeDate.ts#L7)
|
|
1756
1757
|
|
|
1757
1758
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1758
1759
|
|
|
@@ -1770,7 +1771,7 @@ ___
|
|
|
1770
1771
|
|
|
1771
1772
|
#### Defined in
|
|
1772
1773
|
|
|
1773
|
-
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/
|
|
1774
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/2af7b5c/src/getRangeDate.ts#L11)
|
|
1774
1775
|
|
|
1775
1776
|
___
|
|
1776
1777
|
|
|
@@ -1786,7 +1787,7 @@ ___
|
|
|
1786
1787
|
|
|
1787
1788
|
#### Defined in
|
|
1788
1789
|
|
|
1789
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1790
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/getScrollTop.ts#L4)
|
|
1790
1791
|
|
|
1791
1792
|
___
|
|
1792
1793
|
|
|
@@ -1808,7 +1809,7 @@ ___
|
|
|
1808
1809
|
|
|
1809
1810
|
#### Defined in
|
|
1810
1811
|
|
|
1811
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1812
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/getVideoInfo.ts#L4)
|
|
1812
1813
|
|
|
1813
1814
|
___
|
|
1814
1815
|
|
|
@@ -1831,7 +1832,7 @@ ___
|
|
|
1831
1832
|
|
|
1832
1833
|
#### Defined in
|
|
1833
1834
|
|
|
1834
|
-
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1835
|
+
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/getWeekBounds.ts#L7)
|
|
1835
1836
|
|
|
1836
1837
|
▸ **getWeekBounds**(`value`, `sundayIsFirstDay`, `fmt`): [`string`, `string`]
|
|
1837
1838
|
|
|
@@ -1849,7 +1850,7 @@ ___
|
|
|
1849
1850
|
|
|
1850
1851
|
#### Defined in
|
|
1851
1852
|
|
|
1852
|
-
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/
|
|
1853
|
+
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/2af7b5c/src/getWeekBounds.ts#L11)
|
|
1853
1854
|
|
|
1854
1855
|
___
|
|
1855
1856
|
|
|
@@ -1872,7 +1873,7 @@ ___
|
|
|
1872
1873
|
|
|
1873
1874
|
#### Defined in
|
|
1874
1875
|
|
|
1875
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1876
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/getWeekday.ts#L6)
|
|
1876
1877
|
|
|
1877
1878
|
___
|
|
1878
1879
|
|
|
@@ -1888,7 +1889,7 @@ ___
|
|
|
1888
1889
|
|
|
1889
1890
|
#### Defined in
|
|
1890
1891
|
|
|
1891
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1892
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/inBrowser.ts#L4)
|
|
1892
1893
|
|
|
1893
1894
|
___
|
|
1894
1895
|
|
|
@@ -1910,7 +1911,7 @@ ___
|
|
|
1910
1911
|
|
|
1911
1912
|
#### Defined in
|
|
1912
1913
|
|
|
1913
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1914
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/insertLink.ts#L4)
|
|
1914
1915
|
|
|
1915
1916
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1916
1917
|
|
|
@@ -1927,7 +1928,7 @@ ___
|
|
|
1927
1928
|
|
|
1928
1929
|
#### Defined in
|
|
1929
1930
|
|
|
1930
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1931
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/insertLink.ts#L5)
|
|
1931
1932
|
|
|
1932
1933
|
___
|
|
1933
1934
|
|
|
@@ -1949,7 +1950,7 @@ ___
|
|
|
1949
1950
|
|
|
1950
1951
|
#### Defined in
|
|
1951
1952
|
|
|
1952
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1953
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/insertScript.ts#L4)
|
|
1953
1954
|
|
|
1954
1955
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1955
1956
|
|
|
@@ -1966,7 +1967,7 @@ ___
|
|
|
1966
1967
|
|
|
1967
1968
|
#### Defined in
|
|
1968
1969
|
|
|
1969
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1970
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/insertScript.ts#L5)
|
|
1970
1971
|
|
|
1971
1972
|
___
|
|
1972
1973
|
|
|
@@ -1988,7 +1989,7 @@ ___
|
|
|
1988
1989
|
|
|
1989
1990
|
#### Defined in
|
|
1990
1991
|
|
|
1991
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1992
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/insertStyle.ts#L4)
|
|
1992
1993
|
|
|
1993
1994
|
___
|
|
1994
1995
|
|
|
@@ -2017,7 +2018,7 @@ isAmount('1.123') => false
|
|
|
2017
2018
|
|
|
2018
2019
|
#### Defined in
|
|
2019
2020
|
|
|
2020
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
2021
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/2af7b5c/src/isAmount.ts#L11)
|
|
2021
2022
|
|
|
2022
2023
|
___
|
|
2023
2024
|
|
|
@@ -2033,16 +2034,22 @@ ___
|
|
|
2033
2034
|
|
|
2034
2035
|
#### Defined in
|
|
2035
2036
|
|
|
2036
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
2037
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isAndroid.ts#L4)
|
|
2037
2038
|
|
|
2038
2039
|
___
|
|
2039
2040
|
|
|
2040
2041
|
### isArray
|
|
2041
2042
|
|
|
2042
|
-
▸ **isArray
|
|
2043
|
+
▸ **isArray**<`T`\>(`val`): val is T[]
|
|
2043
2044
|
|
|
2044
2045
|
判断是否是数组
|
|
2045
2046
|
|
|
2047
|
+
#### Type parameters
|
|
2048
|
+
|
|
2049
|
+
| Name | Type |
|
|
2050
|
+
| :------ | :------ |
|
|
2051
|
+
| `T` | `any` |
|
|
2052
|
+
|
|
2046
2053
|
#### Parameters
|
|
2047
2054
|
|
|
2048
2055
|
| Name | Type | Description |
|
|
@@ -2051,13 +2058,13 @@ ___
|
|
|
2051
2058
|
|
|
2052
2059
|
#### Returns
|
|
2053
2060
|
|
|
2054
|
-
val is
|
|
2061
|
+
val is T[]
|
|
2055
2062
|
|
|
2056
2063
|
是否
|
|
2057
2064
|
|
|
2058
2065
|
#### Defined in
|
|
2059
2066
|
|
|
2060
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2067
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/isArray.ts#L6)
|
|
2061
2068
|
|
|
2062
2069
|
___
|
|
2063
2070
|
|
|
@@ -2079,7 +2086,7 @@ val is boolean
|
|
|
2079
2086
|
|
|
2080
2087
|
#### Defined in
|
|
2081
2088
|
|
|
2082
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
2089
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isBoolean.ts#L5)
|
|
2083
2090
|
|
|
2084
2091
|
___
|
|
2085
2092
|
|
|
@@ -2101,7 +2108,7 @@ ___
|
|
|
2101
2108
|
|
|
2102
2109
|
#### Defined in
|
|
2103
2110
|
|
|
2104
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
2111
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isChinese.ts#L4)
|
|
2105
2112
|
|
|
2106
2113
|
___
|
|
2107
2114
|
|
|
@@ -2123,7 +2130,7 @@ val is Date
|
|
|
2123
2130
|
|
|
2124
2131
|
#### Defined in
|
|
2125
2132
|
|
|
2126
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
2133
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isDate.ts#L4)
|
|
2127
2134
|
|
|
2128
2135
|
___
|
|
2129
2136
|
|
|
@@ -2145,7 +2152,7 @@ ___
|
|
|
2145
2152
|
|
|
2146
2153
|
#### Defined in
|
|
2147
2154
|
|
|
2148
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
2155
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isEmail.ts#L4)
|
|
2149
2156
|
|
|
2150
2157
|
___
|
|
2151
2158
|
|
|
@@ -2167,7 +2174,7 @@ ___
|
|
|
2167
2174
|
|
|
2168
2175
|
#### Defined in
|
|
2169
2176
|
|
|
2170
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
2177
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/isEmpty.ts#L6)
|
|
2171
2178
|
|
|
2172
2179
|
___
|
|
2173
2180
|
|
|
@@ -2189,7 +2196,7 @@ ___
|
|
|
2189
2196
|
|
|
2190
2197
|
#### Defined in
|
|
2191
2198
|
|
|
2192
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2199
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/isEmptyArray.ts#L6)
|
|
2193
2200
|
|
|
2194
2201
|
___
|
|
2195
2202
|
|
|
@@ -2211,7 +2218,7 @@ ___
|
|
|
2211
2218
|
|
|
2212
2219
|
#### Defined in
|
|
2213
2220
|
|
|
2214
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2221
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isEmptyObject.ts#L5)
|
|
2215
2222
|
|
|
2216
2223
|
___
|
|
2217
2224
|
|
|
@@ -2233,16 +2240,22 @@ val is Error
|
|
|
2233
2240
|
|
|
2234
2241
|
#### Defined in
|
|
2235
2242
|
|
|
2236
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
2243
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isError.ts#L4)
|
|
2237
2244
|
|
|
2238
2245
|
___
|
|
2239
2246
|
|
|
2240
2247
|
### isFunction
|
|
2241
2248
|
|
|
2242
|
-
▸ **isFunction
|
|
2249
|
+
▸ **isFunction**<`T`\>(`val`): val is T
|
|
2243
2250
|
|
|
2244
2251
|
校验是否是函数
|
|
2245
2252
|
|
|
2253
|
+
#### Type parameters
|
|
2254
|
+
|
|
2255
|
+
| Name | Type |
|
|
2256
|
+
| :------ | :------ |
|
|
2257
|
+
| `T` | extends (...`args`: `any`[]) => `any` = (...`args`: `any`[]) => `any` |
|
|
2258
|
+
|
|
2246
2259
|
#### Parameters
|
|
2247
2260
|
|
|
2248
2261
|
| Name | Type |
|
|
@@ -2251,11 +2264,11 @@ ___
|
|
|
2251
2264
|
|
|
2252
2265
|
#### Returns
|
|
2253
2266
|
|
|
2254
|
-
val is
|
|
2267
|
+
val is T
|
|
2255
2268
|
|
|
2256
2269
|
#### Defined in
|
|
2257
2270
|
|
|
2258
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2271
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isFunction.ts#L4)
|
|
2259
2272
|
|
|
2260
2273
|
___
|
|
2261
2274
|
|
|
@@ -2273,7 +2286,7 @@ ___
|
|
|
2273
2286
|
|
|
2274
2287
|
#### Defined in
|
|
2275
2288
|
|
|
2276
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2289
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/isIE.ts#L6)
|
|
2277
2290
|
|
|
2278
2291
|
___
|
|
2279
2292
|
|
|
@@ -2289,7 +2302,7 @@ ___
|
|
|
2289
2302
|
|
|
2290
2303
|
#### Defined in
|
|
2291
2304
|
|
|
2292
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2305
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isIOS.ts#L4)
|
|
2293
2306
|
|
|
2294
2307
|
___
|
|
2295
2308
|
|
|
@@ -2311,7 +2324,7 @@ ___
|
|
|
2311
2324
|
|
|
2312
2325
|
#### Defined in
|
|
2313
2326
|
|
|
2314
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2327
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isIdCard.ts#L4)
|
|
2315
2328
|
|
|
2316
2329
|
___
|
|
2317
2330
|
|
|
@@ -2333,7 +2346,7 @@ ___
|
|
|
2333
2346
|
|
|
2334
2347
|
#### Defined in
|
|
2335
2348
|
|
|
2336
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2349
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/isJSONString.ts#L7)
|
|
2337
2350
|
|
|
2338
2351
|
___
|
|
2339
2352
|
|
|
@@ -2355,7 +2368,7 @@ ___
|
|
|
2355
2368
|
|
|
2356
2369
|
#### Defined in
|
|
2357
2370
|
|
|
2358
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2371
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isLan.ts#L5)
|
|
2359
2372
|
|
|
2360
2373
|
___
|
|
2361
2374
|
|
|
@@ -2378,7 +2391,7 @@ ___
|
|
|
2378
2391
|
|
|
2379
2392
|
#### Defined in
|
|
2380
2393
|
|
|
2381
|
-
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/
|
|
2394
|
+
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isLeapYear.ts#L5)
|
|
2382
2395
|
|
|
2383
2396
|
___
|
|
2384
2397
|
|
|
@@ -2400,7 +2413,7 @@ ___
|
|
|
2400
2413
|
|
|
2401
2414
|
#### Defined in
|
|
2402
2415
|
|
|
2403
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2416
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isLicenseCode.ts#L5)
|
|
2404
2417
|
|
|
2405
2418
|
___
|
|
2406
2419
|
|
|
@@ -2416,7 +2429,7 @@ ___
|
|
|
2416
2429
|
|
|
2417
2430
|
#### Defined in
|
|
2418
2431
|
|
|
2419
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2432
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isMobile.ts#L4)
|
|
2420
2433
|
|
|
2421
2434
|
___
|
|
2422
2435
|
|
|
@@ -2439,7 +2452,29 @@ ___
|
|
|
2439
2452
|
|
|
2440
2453
|
#### Defined in
|
|
2441
2454
|
|
|
2442
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2455
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/isNativeFunction.ts#L7)
|
|
2456
|
+
|
|
2457
|
+
___
|
|
2458
|
+
|
|
2459
|
+
### isNotEmpty
|
|
2460
|
+
|
|
2461
|
+
▸ **isNotEmpty**(`val`): `boolean`
|
|
2462
|
+
|
|
2463
|
+
校验非 ''、undefined、null
|
|
2464
|
+
|
|
2465
|
+
#### Parameters
|
|
2466
|
+
|
|
2467
|
+
| Name | Type |
|
|
2468
|
+
| :------ | :------ |
|
|
2469
|
+
| `val` | `unknown` |
|
|
2470
|
+
|
|
2471
|
+
#### Returns
|
|
2472
|
+
|
|
2473
|
+
`boolean`
|
|
2474
|
+
|
|
2475
|
+
#### Defined in
|
|
2476
|
+
|
|
2477
|
+
[isNotEmpty.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isNotEmpty.ts#L5)
|
|
2443
2478
|
|
|
2444
2479
|
___
|
|
2445
2480
|
|
|
@@ -2461,7 +2496,7 @@ val is null
|
|
|
2461
2496
|
|
|
2462
2497
|
#### Defined in
|
|
2463
2498
|
|
|
2464
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2499
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isNull.ts#L4)
|
|
2465
2500
|
|
|
2466
2501
|
___
|
|
2467
2502
|
|
|
@@ -2483,16 +2518,22 @@ val is number
|
|
|
2483
2518
|
|
|
2484
2519
|
#### Defined in
|
|
2485
2520
|
|
|
2486
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2521
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isNumber.ts#L5)
|
|
2487
2522
|
|
|
2488
2523
|
___
|
|
2489
2524
|
|
|
2490
2525
|
### isObject
|
|
2491
2526
|
|
|
2492
|
-
▸ **isObject
|
|
2527
|
+
▸ **isObject**<`T`\>(`val`): val is T
|
|
2493
2528
|
|
|
2494
2529
|
校验是否是对象
|
|
2495
2530
|
|
|
2531
|
+
#### Type parameters
|
|
2532
|
+
|
|
2533
|
+
| Name | Type |
|
|
2534
|
+
| :------ | :------ |
|
|
2535
|
+
| `T` | extends `Record`<`string`, `any`\> = `Record`<`string`, `any`\> |
|
|
2536
|
+
|
|
2496
2537
|
#### Parameters
|
|
2497
2538
|
|
|
2498
2539
|
| Name | Type |
|
|
@@ -2501,11 +2542,11 @@ ___
|
|
|
2501
2542
|
|
|
2502
2543
|
#### Returns
|
|
2503
2544
|
|
|
2504
|
-
val is
|
|
2545
|
+
val is T
|
|
2505
2546
|
|
|
2506
2547
|
#### Defined in
|
|
2507
2548
|
|
|
2508
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2549
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isObject.ts#L4)
|
|
2509
2550
|
|
|
2510
2551
|
___
|
|
2511
2552
|
|
|
@@ -2527,7 +2568,7 @@ ___
|
|
|
2527
2568
|
|
|
2528
2569
|
#### Defined in
|
|
2529
2570
|
|
|
2530
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2571
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isPhone.ts#L4)
|
|
2531
2572
|
|
|
2532
2573
|
___
|
|
2533
2574
|
|
|
@@ -2555,7 +2596,7 @@ val is Promise<T\>
|
|
|
2555
2596
|
|
|
2556
2597
|
#### Defined in
|
|
2557
2598
|
|
|
2558
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2599
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isPromise.ts#L4)
|
|
2559
2600
|
|
|
2560
2601
|
___
|
|
2561
2602
|
|
|
@@ -2577,7 +2618,7 @@ val is RegExp
|
|
|
2577
2618
|
|
|
2578
2619
|
#### Defined in
|
|
2579
2620
|
|
|
2580
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2621
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isRegExp.ts#L4)
|
|
2581
2622
|
|
|
2582
2623
|
___
|
|
2583
2624
|
|
|
@@ -2599,7 +2640,7 @@ val is string
|
|
|
2599
2640
|
|
|
2600
2641
|
#### Defined in
|
|
2601
2642
|
|
|
2602
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2643
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isString.ts#L4)
|
|
2603
2644
|
|
|
2604
2645
|
___
|
|
2605
2646
|
|
|
@@ -2628,7 +2669,7 @@ val is T
|
|
|
2628
2669
|
|
|
2629
2670
|
#### Defined in
|
|
2630
2671
|
|
|
2631
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2672
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isType.ts#L4)
|
|
2632
2673
|
|
|
2633
2674
|
___
|
|
2634
2675
|
|
|
@@ -2650,7 +2691,7 @@ val is undefined
|
|
|
2650
2691
|
|
|
2651
2692
|
#### Defined in
|
|
2652
2693
|
|
|
2653
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2694
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isUndefined.ts#L4)
|
|
2654
2695
|
|
|
2655
2696
|
___
|
|
2656
2697
|
|
|
@@ -2694,7 +2735,7 @@ ___
|
|
|
2694
2735
|
|
|
2695
2736
|
#### Defined in
|
|
2696
2737
|
|
|
2697
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2738
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/isValidDate.ts#L6)
|
|
2698
2739
|
|
|
2699
2740
|
___
|
|
2700
2741
|
|
|
@@ -2710,7 +2751,7 @@ ___
|
|
|
2710
2751
|
|
|
2711
2752
|
#### Defined in
|
|
2712
2753
|
|
|
2713
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2754
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/isWeChat.ts#L4)
|
|
2714
2755
|
|
|
2715
2756
|
___
|
|
2716
2757
|
|
|
@@ -2727,7 +2768,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2727
2768
|
|
|
2728
2769
|
#### Defined in
|
|
2729
2770
|
|
|
2730
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2771
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isWeChatMiniProgram.ts#L5)
|
|
2731
2772
|
|
|
2732
2773
|
___
|
|
2733
2774
|
|
|
@@ -2751,7 +2792,7 @@ ___
|
|
|
2751
2792
|
|
|
2752
2793
|
#### Defined in
|
|
2753
2794
|
|
|
2754
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2795
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/2af7b5c/src/isWeChat.ts#L12)
|
|
2755
2796
|
|
|
2756
2797
|
___
|
|
2757
2798
|
|
|
@@ -2773,7 +2814,7 @@ val is Window
|
|
|
2773
2814
|
|
|
2774
2815
|
#### Defined in
|
|
2775
2816
|
|
|
2776
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2817
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/isWindow.ts#L5)
|
|
2777
2818
|
|
|
2778
2819
|
___
|
|
2779
2820
|
|
|
@@ -2796,7 +2837,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2796
2837
|
|
|
2797
2838
|
#### Defined in
|
|
2798
2839
|
|
|
2799
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2840
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/kebabCase.ts#L5)
|
|
2800
2841
|
|
|
2801
2842
|
___
|
|
2802
2843
|
|
|
@@ -2818,7 +2859,7 @@ ___
|
|
|
2818
2859
|
|
|
2819
2860
|
#### Defined in
|
|
2820
2861
|
|
|
2821
|
-
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
2862
|
+
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/lfToBr.ts#L4)
|
|
2822
2863
|
|
|
2823
2864
|
___
|
|
2824
2865
|
|
|
@@ -2840,7 +2881,7 @@ list 生成器,快速生成数据
|
|
|
2840
2881
|
|
|
2841
2882
|
#### Defined in
|
|
2842
2883
|
|
|
2843
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2884
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/listGenerator.ts#L5)
|
|
2844
2885
|
|
|
2845
2886
|
▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
|
|
2846
2887
|
|
|
@@ -2863,7 +2904,7 @@ list 生成器,快速生成数据
|
|
|
2863
2904
|
|
|
2864
2905
|
#### Defined in
|
|
2865
2906
|
|
|
2866
|
-
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/
|
|
2907
|
+
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/listGenerator.ts#L6)
|
|
2867
2908
|
|
|
2868
2909
|
___
|
|
2869
2910
|
|
|
@@ -2883,7 +2924,7 @@ ___
|
|
|
2883
2924
|
|
|
2884
2925
|
#### Defined in
|
|
2885
2926
|
|
|
2886
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2927
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/2af7b5c/src/makePhoneCall.ts#L1)
|
|
2887
2928
|
|
|
2888
2929
|
___
|
|
2889
2930
|
|
|
@@ -2908,7 +2949,7 @@ ___
|
|
|
2908
2949
|
|
|
2909
2950
|
#### Defined in
|
|
2910
2951
|
|
|
2911
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2952
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/2af7b5c/src/mousewheel.ts#L22)
|
|
2912
2953
|
|
|
2913
2954
|
___
|
|
2914
2955
|
|
|
@@ -2924,7 +2965,7 @@ ___
|
|
|
2924
2965
|
|
|
2925
2966
|
#### Defined in
|
|
2926
2967
|
|
|
2927
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2968
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/nf.ts#L4)
|
|
2928
2969
|
|
|
2929
2970
|
___
|
|
2930
2971
|
|
|
@@ -2948,7 +2989,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2948
2989
|
|
|
2949
2990
|
#### Defined in
|
|
2950
2991
|
|
|
2951
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
2992
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/normalizeDate.ts#L8)
|
|
2952
2993
|
|
|
2953
2994
|
___
|
|
2954
2995
|
|
|
@@ -2970,7 +3011,7 @@ ___
|
|
|
2970
3011
|
|
|
2971
3012
|
#### Defined in
|
|
2972
3013
|
|
|
2973
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
3014
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/normalizePath.ts#L4)
|
|
2974
3015
|
|
|
2975
3016
|
___
|
|
2976
3017
|
|
|
@@ -2992,7 +3033,7 @@ ___
|
|
|
2992
3033
|
|
|
2993
3034
|
#### Defined in
|
|
2994
3035
|
|
|
2995
|
-
[numberToLetter.ts:4](https://github.com/daysnap/utils/blob/
|
|
3036
|
+
[numberToLetter.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/numberToLetter.ts#L4)
|
|
2996
3037
|
|
|
2997
3038
|
___
|
|
2998
3039
|
|
|
@@ -3022,7 +3063,7 @@ ___
|
|
|
3022
3063
|
|
|
3023
3064
|
#### Defined in
|
|
3024
3065
|
|
|
3025
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
3066
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/omit.ts#L4)
|
|
3026
3067
|
|
|
3027
3068
|
___
|
|
3028
3069
|
|
|
@@ -3053,7 +3094,7 @@ omitBy(object, isNumber);
|
|
|
3053
3094
|
|
|
3054
3095
|
#### Defined in
|
|
3055
3096
|
|
|
3056
|
-
[omitBy.ts:6](https://github.com/daysnap/utils/blob/
|
|
3097
|
+
[omitBy.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/omitBy.ts#L6)
|
|
3057
3098
|
|
|
3058
3099
|
___
|
|
3059
3100
|
|
|
@@ -3077,7 +3118,7 @@ ___
|
|
|
3077
3118
|
|
|
3078
3119
|
#### Defined in
|
|
3079
3120
|
|
|
3080
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
3121
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/padding.ts#L7)
|
|
3081
3122
|
|
|
3082
3123
|
___
|
|
3083
3124
|
|
|
@@ -3103,7 +3144,7 @@ ___
|
|
|
3103
3144
|
|
|
3104
3145
|
#### Defined in
|
|
3105
3146
|
|
|
3106
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
3147
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/parseDate.ts#L5)
|
|
3107
3148
|
|
|
3108
3149
|
___
|
|
3109
3150
|
|
|
@@ -3129,7 +3170,7 @@ ___
|
|
|
3129
3170
|
|
|
3130
3171
|
#### Defined in
|
|
3131
3172
|
|
|
3132
|
-
[parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/
|
|
3173
|
+
[parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/parseDecimalString.ts#L5)
|
|
3133
3174
|
|
|
3134
3175
|
___
|
|
3135
3176
|
|
|
@@ -3152,7 +3193,7 @@ ___
|
|
|
3152
3193
|
|
|
3153
3194
|
#### Defined in
|
|
3154
3195
|
|
|
3155
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
3196
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/parseError.ts#L8)
|
|
3156
3197
|
|
|
3157
3198
|
___
|
|
3158
3199
|
|
|
@@ -3177,7 +3218,7 @@ x0123 => ''
|
|
|
3177
3218
|
|
|
3178
3219
|
#### Defined in
|
|
3179
3220
|
|
|
3180
|
-
[parseNumberString.ts:7](https://github.com/daysnap/utils/blob/
|
|
3221
|
+
[parseNumberString.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/parseNumberString.ts#L7)
|
|
3181
3222
|
|
|
3182
3223
|
___
|
|
3183
3224
|
|
|
@@ -3207,7 +3248,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
3207
3248
|
|
|
3208
3249
|
#### Defined in
|
|
3209
3250
|
|
|
3210
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
3251
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/parseObject.ts#L5)
|
|
3211
3252
|
|
|
3212
3253
|
___
|
|
3213
3254
|
|
|
@@ -3236,7 +3277,7 @@ ___
|
|
|
3236
3277
|
|
|
3237
3278
|
#### Defined in
|
|
3238
3279
|
|
|
3239
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
3280
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/parsePath.ts#L6)
|
|
3240
3281
|
|
|
3241
3282
|
___
|
|
3242
3283
|
|
|
@@ -3259,7 +3300,7 @@ ___
|
|
|
3259
3300
|
|
|
3260
3301
|
#### Defined in
|
|
3261
3302
|
|
|
3262
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
3303
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/parseQuery.ts#L8)
|
|
3263
3304
|
|
|
3264
3305
|
___
|
|
3265
3306
|
|
|
@@ -3289,7 +3330,7 @@ ___
|
|
|
3289
3330
|
|
|
3290
3331
|
#### Defined in
|
|
3291
3332
|
|
|
3292
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3333
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/parseQueryString.ts#L6)
|
|
3293
3334
|
|
|
3294
3335
|
___
|
|
3295
3336
|
|
|
@@ -3312,7 +3353,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
3312
3353
|
|
|
3313
3354
|
#### Defined in
|
|
3314
3355
|
|
|
3315
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
3356
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/pascalCase.ts#L8)
|
|
3316
3357
|
|
|
3317
3358
|
___
|
|
3318
3359
|
|
|
@@ -3342,7 +3383,7 @@ ___
|
|
|
3342
3383
|
|
|
3343
3384
|
#### Defined in
|
|
3344
3385
|
|
|
3345
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
3386
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/pick.ts#L4)
|
|
3346
3387
|
|
|
3347
3388
|
___
|
|
3348
3389
|
|
|
@@ -3373,7 +3414,7 @@ pickBy(object, isNumber);
|
|
|
3373
3414
|
|
|
3374
3415
|
#### Defined in
|
|
3375
3416
|
|
|
3376
|
-
[pickBy.ts:6](https://github.com/daysnap/utils/blob/
|
|
3417
|
+
[pickBy.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/pickBy.ts#L6)
|
|
3377
3418
|
|
|
3378
3419
|
___
|
|
3379
3420
|
|
|
@@ -3396,7 +3437,7 @@ ___
|
|
|
3396
3437
|
|
|
3397
3438
|
#### Defined in
|
|
3398
3439
|
|
|
3399
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
3440
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/replaceCrlf.ts#L4)
|
|
3400
3441
|
|
|
3401
3442
|
___
|
|
3402
3443
|
|
|
@@ -3420,7 +3461,7 @@ ___
|
|
|
3420
3461
|
|
|
3421
3462
|
#### Defined in
|
|
3422
3463
|
|
|
3423
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
3464
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/requestFullScreen.ts#L6)
|
|
3424
3465
|
|
|
3425
3466
|
___
|
|
3426
3467
|
|
|
@@ -3446,7 +3487,7 @@ reserve(0, '--') => 0
|
|
|
3446
3487
|
|
|
3447
3488
|
#### Defined in
|
|
3448
3489
|
|
|
3449
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
3490
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/2af7b5c/src/reserve.ts#L8)
|
|
3450
3491
|
|
|
3451
3492
|
___
|
|
3452
3493
|
|
|
@@ -3470,7 +3511,7 @@ ___
|
|
|
3470
3511
|
|
|
3471
3512
|
#### Defined in
|
|
3472
3513
|
|
|
3473
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3514
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/rgbToHex.ts#L4)
|
|
3474
3515
|
|
|
3475
3516
|
___
|
|
3476
3517
|
|
|
@@ -3493,7 +3534,7 @@ ___
|
|
|
3493
3534
|
|
|
3494
3535
|
#### Defined in
|
|
3495
3536
|
|
|
3496
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3537
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/round.ts#L6)
|
|
3497
3538
|
|
|
3498
3539
|
___
|
|
3499
3540
|
|
|
@@ -3518,7 +3559,7 @@ ___
|
|
|
3518
3559
|
|
|
3519
3560
|
#### Defined in
|
|
3520
3561
|
|
|
3521
|
-
[roundUpToNearestInteger.ts:7](https://github.com/daysnap/utils/blob/
|
|
3562
|
+
[roundUpToNearestInteger.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/roundUpToNearestInteger.ts#L7)
|
|
3522
3563
|
|
|
3523
3564
|
___
|
|
3524
3565
|
|
|
@@ -3534,7 +3575,7 @@ ___
|
|
|
3534
3575
|
|
|
3535
3576
|
#### Defined in
|
|
3536
3577
|
|
|
3537
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3578
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/scrollToTop.ts#L4)
|
|
3538
3579
|
|
|
3539
3580
|
___
|
|
3540
3581
|
|
|
@@ -3556,7 +3597,7 @@ ___
|
|
|
3556
3597
|
|
|
3557
3598
|
#### Defined in
|
|
3558
3599
|
|
|
3559
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3600
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/setScrollTop.ts#L4)
|
|
3560
3601
|
|
|
3561
3602
|
___
|
|
3562
3603
|
|
|
@@ -3580,7 +3621,7 @@ ___
|
|
|
3580
3621
|
|
|
3581
3622
|
#### Defined in
|
|
3582
3623
|
|
|
3583
|
-
[sleep.ts:7](https://github.com/daysnap/utils/blob/
|
|
3624
|
+
[sleep.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/sleep.ts#L7)
|
|
3584
3625
|
|
|
3585
3626
|
___
|
|
3586
3627
|
|
|
@@ -3609,7 +3650,7 @@ ___
|
|
|
3609
3650
|
|
|
3610
3651
|
#### Defined in
|
|
3611
3652
|
|
|
3612
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3653
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/splitArray.ts#L4)
|
|
3613
3654
|
|
|
3614
3655
|
___
|
|
3615
3656
|
|
|
@@ -3632,7 +3673,7 @@ ___
|
|
|
3632
3673
|
|
|
3633
3674
|
#### Defined in
|
|
3634
3675
|
|
|
3635
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3676
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/stringTrim.ts#L6)
|
|
3636
3677
|
|
|
3637
3678
|
___
|
|
3638
3679
|
|
|
@@ -3654,7 +3695,7 @@ ___
|
|
|
3654
3695
|
|
|
3655
3696
|
#### Defined in
|
|
3656
3697
|
|
|
3657
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3698
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/2af7b5c/src/stringifyQuery.ts#L7)
|
|
3658
3699
|
|
|
3659
3700
|
___
|
|
3660
3701
|
|
|
@@ -3678,7 +3719,7 @@ ___
|
|
|
3678
3719
|
|
|
3679
3720
|
#### Defined in
|
|
3680
3721
|
|
|
3681
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3722
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/stringifyQueryString.ts#L6)
|
|
3682
3723
|
|
|
3683
3724
|
___
|
|
3684
3725
|
|
|
@@ -3722,7 +3763,7 @@ ___
|
|
|
3722
3763
|
|
|
3723
3764
|
#### Defined in
|
|
3724
3765
|
|
|
3725
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3766
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/2af7b5c/src/throttle.ts#L48)
|
|
3726
3767
|
|
|
3727
3768
|
___
|
|
3728
3769
|
|
|
@@ -3765,7 +3806,7 @@ ___
|
|
|
3765
3806
|
|
|
3766
3807
|
#### Defined in
|
|
3767
3808
|
|
|
3768
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3809
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/2af7b5c/src/throttle.ts#L5)
|
|
3769
3810
|
|
|
3770
3811
|
___
|
|
3771
3812
|
|
|
@@ -3808,7 +3849,7 @@ ___
|
|
|
3808
3849
|
|
|
3809
3850
|
#### Defined in
|
|
3810
3851
|
|
|
3811
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3852
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/2af7b5c/src/throttle.ts#L25)
|
|
3812
3853
|
|
|
3813
3854
|
___
|
|
3814
3855
|
|
|
@@ -3830,7 +3871,7 @@ ___
|
|
|
3830
3871
|
|
|
3831
3872
|
#### Defined in
|
|
3832
3873
|
|
|
3833
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3874
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/toCDB.ts#L4)
|
|
3834
3875
|
|
|
3835
3876
|
___
|
|
3836
3877
|
|
|
@@ -3852,7 +3893,7 @@ ___
|
|
|
3852
3893
|
|
|
3853
3894
|
#### Defined in
|
|
3854
3895
|
|
|
3855
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3896
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/toDBC.ts#L4)
|
|
3856
3897
|
|
|
3857
3898
|
___
|
|
3858
3899
|
|
|
@@ -3874,7 +3915,7 @@ ___
|
|
|
3874
3915
|
|
|
3875
3916
|
#### Defined in
|
|
3876
3917
|
|
|
3877
|
-
[toFormData.ts:4](https://github.com/daysnap/utils/blob/
|
|
3918
|
+
[toFormData.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/toFormData.ts#L4)
|
|
3878
3919
|
|
|
3879
3920
|
___
|
|
3880
3921
|
|
|
@@ -3896,7 +3937,7 @@ ___
|
|
|
3896
3937
|
|
|
3897
3938
|
#### Defined in
|
|
3898
3939
|
|
|
3899
|
-
toPosix.ts:4
|
|
3940
|
+
[toPosix.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/toPosix.ts#L4)
|
|
3900
3941
|
|
|
3901
3942
|
___
|
|
3902
3943
|
|
|
@@ -3920,7 +3961,7 @@ ___
|
|
|
3920
3961
|
|
|
3921
3962
|
#### Defined in
|
|
3922
3963
|
|
|
3923
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3964
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/2af7b5c/src/typeOf.ts#L6)
|
|
3924
3965
|
|
|
3925
3966
|
___
|
|
3926
3967
|
|
|
@@ -3948,7 +3989,7 @@ ___
|
|
|
3948
3989
|
|
|
3949
3990
|
#### Defined in
|
|
3950
3991
|
|
|
3951
|
-
[withCache.ts:4](https://github.com/daysnap/utils/blob/
|
|
3992
|
+
[withCache.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/withCache.ts#L4)
|
|
3952
3993
|
|
|
3953
3994
|
___
|
|
3954
3995
|
|
|
@@ -3977,4 +4018,4 @@ ___
|
|
|
3977
4018
|
|
|
3978
4019
|
#### Defined in
|
|
3979
4020
|
|
|
3980
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
4021
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/2af7b5c/src/withPreventConsecutiveClicks.ts#L4)
|