@daysnap/utils 0.1.30 → 0.1.32
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/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 +233 -163
- package/es/{chunk-2ZSZ4GDI.js → chunk-65FBSULU.js} +1 -2
- package/es/{chunk-WXD7J2FR.js → chunk-DW5GIB4A.js} +1 -2
- package/es/chunk-P5GEZD4D.js +6 -0
- package/es/chunk-YYH4INGK.js +12 -0
- package/es/formartDateToZN.js +1 -1
- package/es/formatFileSize.js +1 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +41 -33
- 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/isPromiseLike.d.ts +6 -0
- package/es/isPromiseLike.js +6 -0
- package/es/storage/index.js +3 -3
- 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/chunk-N455COPH.cjs +6 -0
- package/lib/formartDateToZN.cjs +2 -2
- package/lib/formatFileSize.cjs +2 -2
- package/lib/index.cjs +32 -24
- package/lib/index.d.cts +3 -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/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
|
@@ -112,11 +112,13 @@
|
|
|
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)
|
|
118
119
|
- [isPhone](modules.md#isphone)
|
|
119
120
|
- [isPromise](modules.md#ispromise)
|
|
121
|
+
- [isPromiseLike](modules.md#ispromiselike)
|
|
120
122
|
- [isRegExp](modules.md#isregexp)
|
|
121
123
|
- [isString](modules.md#isstring)
|
|
122
124
|
- [isType](modules.md#istype)
|
|
@@ -196,7 +198,7 @@
|
|
|
196
198
|
|
|
197
199
|
#### Defined in
|
|
198
200
|
|
|
199
|
-
[poller.ts:7](https://github.com/daysnap/utils/blob/
|
|
201
|
+
[poller.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/poller.ts#L7)
|
|
200
202
|
|
|
201
203
|
## Variables
|
|
202
204
|
|
|
@@ -215,7 +217,7 @@
|
|
|
215
217
|
|
|
216
218
|
#### Defined in
|
|
217
219
|
|
|
218
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
220
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/b171b07/src/eventBus.ts#L38)
|
|
219
221
|
|
|
220
222
|
___
|
|
221
223
|
|
|
@@ -240,7 +242,7 @@ ___
|
|
|
240
242
|
|
|
241
243
|
#### Defined in
|
|
242
244
|
|
|
243
|
-
[sounds.ts:13](https://github.com/daysnap/utils/blob/
|
|
245
|
+
[sounds.ts:13](https://github.com/daysnap/utils/blob/b171b07/src/sounds.ts#L13)
|
|
244
246
|
|
|
245
247
|
___
|
|
246
248
|
|
|
@@ -250,7 +252,7 @@ ___
|
|
|
250
252
|
|
|
251
253
|
#### Defined in
|
|
252
254
|
|
|
253
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
255
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/b171b07/src/trap.ts#L15)
|
|
254
256
|
|
|
255
257
|
## Functions
|
|
256
258
|
|
|
@@ -288,7 +290,7 @@ res = { '1': '男', '2': '女' }
|
|
|
288
290
|
|
|
289
291
|
#### Defined in
|
|
290
292
|
|
|
291
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
293
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/b171b07/src/ato.ts#L12)
|
|
292
294
|
|
|
293
295
|
▸ **ato**<`T`, `K`, `V`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `T`[`V`]\>
|
|
294
296
|
|
|
@@ -314,7 +316,7 @@ res = { '1': '男', '2': '女' }
|
|
|
314
316
|
|
|
315
317
|
#### Defined in
|
|
316
318
|
|
|
317
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
319
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/b171b07/src/ato.ts#L16)
|
|
318
320
|
|
|
319
321
|
___
|
|
320
322
|
|
|
@@ -334,7 +336,7 @@ ___
|
|
|
334
336
|
|
|
335
337
|
#### Defined in
|
|
336
338
|
|
|
337
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
339
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/b171b07/src/decode.ts#L41)
|
|
338
340
|
|
|
339
341
|
___
|
|
340
342
|
|
|
@@ -357,7 +359,7 @@ base64 转 blob
|
|
|
357
359
|
|
|
358
360
|
#### Defined in
|
|
359
361
|
|
|
360
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
362
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/base64ToBlob.ts#L6)
|
|
361
363
|
|
|
362
364
|
___
|
|
363
365
|
|
|
@@ -379,7 +381,7 @@ blob 转 base64
|
|
|
379
381
|
|
|
380
382
|
#### Defined in
|
|
381
383
|
|
|
382
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
384
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/blobToBase64.ts#L4)
|
|
383
385
|
|
|
384
386
|
___
|
|
385
387
|
|
|
@@ -399,7 +401,7 @@ ___
|
|
|
399
401
|
|
|
400
402
|
#### Defined in
|
|
401
403
|
|
|
402
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
404
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/decode.ts#L8)
|
|
403
405
|
|
|
404
406
|
___
|
|
405
407
|
|
|
@@ -440,7 +442,7 @@ ___
|
|
|
440
442
|
|
|
441
443
|
#### Defined in
|
|
442
444
|
|
|
443
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
445
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/cached.ts#L5)
|
|
444
446
|
|
|
445
447
|
___
|
|
446
448
|
|
|
@@ -463,7 +465,7 @@ camelCase('hello-world') => helloWorld
|
|
|
463
465
|
|
|
464
466
|
#### Defined in
|
|
465
467
|
|
|
466
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
468
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/camelCase.ts#L5)
|
|
467
469
|
|
|
468
470
|
___
|
|
469
471
|
|
|
@@ -487,7 +489,7 @@ canvas 转 blob 文件
|
|
|
487
489
|
|
|
488
490
|
#### Defined in
|
|
489
491
|
|
|
490
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
492
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/canvasToBlob.ts#L4)
|
|
491
493
|
|
|
492
494
|
___
|
|
493
495
|
|
|
@@ -510,7 +512,7 @@ capitalize('hello world') => Hello world
|
|
|
510
512
|
|
|
511
513
|
#### Defined in
|
|
512
514
|
|
|
513
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
515
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/capitalize.ts#L5)
|
|
514
516
|
|
|
515
517
|
___
|
|
516
518
|
|
|
@@ -535,7 +537,7 @@ ___
|
|
|
535
537
|
|
|
536
538
|
#### Defined in
|
|
537
539
|
|
|
538
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
540
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/chooseMedia.ts#L5)
|
|
539
541
|
|
|
540
542
|
___
|
|
541
543
|
|
|
@@ -559,7 +561,7 @@ ___
|
|
|
559
561
|
|
|
560
562
|
#### Defined in
|
|
561
563
|
|
|
562
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
564
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/clamp.ts#L7)
|
|
563
565
|
|
|
564
566
|
___
|
|
565
567
|
|
|
@@ -587,7 +589,7 @@ ___
|
|
|
587
589
|
|
|
588
590
|
#### Defined in
|
|
589
591
|
|
|
590
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
592
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/clone.ts#L8)
|
|
591
593
|
|
|
592
594
|
___
|
|
593
595
|
|
|
@@ -615,7 +617,7 @@ ___
|
|
|
615
617
|
|
|
616
618
|
#### Defined in
|
|
617
619
|
|
|
618
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
620
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/cloneSimple.ts#L7)
|
|
619
621
|
|
|
620
622
|
___
|
|
621
623
|
|
|
@@ -637,7 +639,7 @@ ___
|
|
|
637
639
|
|
|
638
640
|
#### Defined in
|
|
639
641
|
|
|
640
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
642
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/createHexColorByHash.ts#L4)
|
|
641
643
|
|
|
642
644
|
___
|
|
643
645
|
|
|
@@ -663,7 +665,7 @@ ___
|
|
|
663
665
|
|
|
664
666
|
#### Defined in
|
|
665
667
|
|
|
666
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
668
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/b171b07/src/compareVersion.ts#L9)
|
|
667
669
|
|
|
668
670
|
___
|
|
669
671
|
|
|
@@ -686,7 +688,7 @@ ___
|
|
|
686
688
|
|
|
687
689
|
#### Defined in
|
|
688
690
|
|
|
689
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
691
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/compressImage.ts#L4)
|
|
690
692
|
|
|
691
693
|
___
|
|
692
694
|
|
|
@@ -708,7 +710,7 @@ ___
|
|
|
708
710
|
|
|
709
711
|
#### Defined in
|
|
710
712
|
|
|
711
|
-
[crToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
713
|
+
[crToBr.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/crToBr.ts#L4)
|
|
712
714
|
|
|
713
715
|
___
|
|
714
716
|
|
|
@@ -736,7 +738,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
736
738
|
|
|
737
739
|
#### Defined in
|
|
738
740
|
|
|
739
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
741
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/createFactory.ts#L4)
|
|
740
742
|
|
|
741
743
|
___
|
|
742
744
|
|
|
@@ -774,7 +776,7 @@ ___
|
|
|
774
776
|
|
|
775
777
|
#### Defined in
|
|
776
778
|
|
|
777
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
779
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/b171b07/src/createLinearFunction.ts#L9)
|
|
778
780
|
|
|
779
781
|
___
|
|
780
782
|
|
|
@@ -806,7 +808,7 @@ ___
|
|
|
806
808
|
|
|
807
809
|
#### Defined in
|
|
808
810
|
|
|
809
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
811
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/b171b07/src/trap.ts#L49)
|
|
810
812
|
|
|
811
813
|
___
|
|
812
814
|
|
|
@@ -869,7 +871,7 @@ fn() 执行的时候就会执行showLoading
|
|
|
869
871
|
|
|
870
872
|
#### Defined in
|
|
871
873
|
|
|
872
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
874
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/b171b07/src/createWithLoading.ts#L11)
|
|
873
875
|
|
|
874
876
|
___
|
|
875
877
|
|
|
@@ -891,7 +893,7 @@ ___
|
|
|
891
893
|
|
|
892
894
|
#### Defined in
|
|
893
895
|
|
|
894
|
-
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
896
|
+
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/crlfToBr.ts#L4)
|
|
895
897
|
|
|
896
898
|
___
|
|
897
899
|
|
|
@@ -934,7 +936,7 @@ ___
|
|
|
934
936
|
|
|
935
937
|
#### Defined in
|
|
936
938
|
|
|
937
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
939
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/debounce.ts#L5)
|
|
938
940
|
|
|
939
941
|
___
|
|
940
942
|
|
|
@@ -958,7 +960,7 @@ ___
|
|
|
958
960
|
|
|
959
961
|
#### Defined in
|
|
960
962
|
|
|
961
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
963
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/downloadFile.ts#L4)
|
|
962
964
|
|
|
963
965
|
___
|
|
964
966
|
|
|
@@ -987,7 +989,7 @@ ___
|
|
|
987
989
|
|
|
988
990
|
#### Defined in
|
|
989
991
|
|
|
990
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
992
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/each.ts#L4)
|
|
991
993
|
|
|
992
994
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
993
995
|
|
|
@@ -1010,7 +1012,7 @@ ___
|
|
|
1010
1012
|
|
|
1011
1013
|
#### Defined in
|
|
1012
1014
|
|
|
1013
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
1015
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/each.ts#L8)
|
|
1014
1016
|
|
|
1015
1017
|
___
|
|
1016
1018
|
|
|
@@ -1028,7 +1030,7 @@ ___
|
|
|
1028
1030
|
|
|
1029
1031
|
#### Defined in
|
|
1030
1032
|
|
|
1031
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
1033
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/exitFullscreen.ts#L6)
|
|
1032
1034
|
|
|
1033
1035
|
___
|
|
1034
1036
|
|
|
@@ -1057,7 +1059,7 @@ ___
|
|
|
1057
1059
|
|
|
1058
1060
|
#### Defined in
|
|
1059
1061
|
|
|
1060
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
1062
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/b171b07/src/storage/factory.ts#L11)
|
|
1061
1063
|
|
|
1062
1064
|
___
|
|
1063
1065
|
|
|
@@ -1079,7 +1081,7 @@ ___
|
|
|
1079
1081
|
|
|
1080
1082
|
#### Defined in
|
|
1081
1083
|
|
|
1082
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1084
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/filterBankCardNo.ts#L4)
|
|
1083
1085
|
|
|
1084
1086
|
___
|
|
1085
1087
|
|
|
@@ -1109,7 +1111,7 @@ ___
|
|
|
1109
1111
|
|
|
1110
1112
|
#### Defined in
|
|
1111
1113
|
|
|
1112
|
-
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/
|
|
1114
|
+
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/b171b07/src/crlfToBr.ts#L12)
|
|
1113
1115
|
|
|
1114
1116
|
___
|
|
1115
1117
|
|
|
@@ -1131,7 +1133,7 @@ ___
|
|
|
1131
1133
|
|
|
1132
1134
|
#### Defined in
|
|
1133
1135
|
|
|
1134
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1136
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/filterEmoji.ts#L4)
|
|
1135
1137
|
|
|
1136
1138
|
___
|
|
1137
1139
|
|
|
@@ -1154,7 +1156,7 @@ ___
|
|
|
1154
1156
|
|
|
1155
1157
|
#### Defined in
|
|
1156
1158
|
|
|
1157
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1159
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/b171b07/src/filterEmptyValue.ts#L12)
|
|
1158
1160
|
|
|
1159
1161
|
___
|
|
1160
1162
|
|
|
@@ -1177,7 +1179,7 @@ ___
|
|
|
1177
1179
|
|
|
1178
1180
|
#### Defined in
|
|
1179
1181
|
|
|
1180
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1182
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/filterIdCard.ts#L5)
|
|
1181
1183
|
|
|
1182
1184
|
___
|
|
1183
1185
|
|
|
@@ -1199,7 +1201,7 @@ ___
|
|
|
1199
1201
|
|
|
1200
1202
|
#### Defined in
|
|
1201
1203
|
|
|
1202
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1204
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/filterName.ts#L4)
|
|
1203
1205
|
|
|
1204
1206
|
___
|
|
1205
1207
|
|
|
@@ -1224,7 +1226,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1224
1226
|
|
|
1225
1227
|
#### Defined in
|
|
1226
1228
|
|
|
1227
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1229
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/filterPhone.ts#L6)
|
|
1228
1230
|
|
|
1229
1231
|
___
|
|
1230
1232
|
|
|
@@ -1251,7 +1253,7 @@ str = '131****8888'
|
|
|
1251
1253
|
|
|
1252
1254
|
#### Defined in
|
|
1253
1255
|
|
|
1254
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1256
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/filterString.ts#L6)
|
|
1255
1257
|
|
|
1256
1258
|
___
|
|
1257
1259
|
|
|
@@ -1274,7 +1276,7 @@ ___
|
|
|
1274
1276
|
|
|
1275
1277
|
#### Defined in
|
|
1276
1278
|
|
|
1277
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1279
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/formatAmount.ts#L4)
|
|
1278
1280
|
|
|
1279
1281
|
___
|
|
1280
1282
|
|
|
@@ -1298,7 +1300,7 @@ ___
|
|
|
1298
1300
|
|
|
1299
1301
|
#### Defined in
|
|
1300
1302
|
|
|
1301
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1303
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/formatDate.ts#L7)
|
|
1302
1304
|
|
|
1303
1305
|
___
|
|
1304
1306
|
|
|
@@ -1329,7 +1331,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1329
1331
|
|
|
1330
1332
|
#### Defined in
|
|
1331
1333
|
|
|
1332
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1334
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/formatDateStr.ts#L6)
|
|
1333
1335
|
|
|
1334
1336
|
___
|
|
1335
1337
|
|
|
@@ -1349,7 +1351,7 @@ ___
|
|
|
1349
1351
|
|
|
1350
1352
|
#### Defined in
|
|
1351
1353
|
|
|
1352
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1354
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/formartDateToZN.ts#L4)
|
|
1353
1355
|
|
|
1354
1356
|
___
|
|
1355
1357
|
|
|
@@ -1372,7 +1374,7 @@ ___
|
|
|
1372
1374
|
|
|
1373
1375
|
#### Defined in
|
|
1374
1376
|
|
|
1375
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1377
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/formatFileSize.ts#L4)
|
|
1376
1378
|
|
|
1377
1379
|
___
|
|
1378
1380
|
|
|
@@ -1395,7 +1397,7 @@ yyyyMMdd -> yyyy-MM-dd
|
|
|
1395
1397
|
|
|
1396
1398
|
#### Defined in
|
|
1397
1399
|
|
|
1398
|
-
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1400
|
+
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/formatGapDate.ts#L4)
|
|
1399
1401
|
|
|
1400
1402
|
___
|
|
1401
1403
|
|
|
@@ -1420,7 +1422,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1420
1422
|
|
|
1421
1423
|
#### Defined in
|
|
1422
1424
|
|
|
1423
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1425
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/b171b07/src/formatMessage.ts#L11)
|
|
1424
1426
|
|
|
1425
1427
|
___
|
|
1426
1428
|
|
|
@@ -1452,7 +1454,7 @@ rest = { xxx: 1 }
|
|
|
1452
1454
|
|
|
1453
1455
|
#### Defined in
|
|
1454
1456
|
|
|
1455
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1457
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/formatPathParams.ts#L8)
|
|
1456
1458
|
|
|
1457
1459
|
___
|
|
1458
1460
|
|
|
@@ -1474,7 +1476,7 @@ ___
|
|
|
1474
1476
|
|
|
1475
1477
|
#### Defined in
|
|
1476
1478
|
|
|
1477
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1479
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/getBlobByUrl.ts#L4)
|
|
1478
1480
|
|
|
1479
1481
|
___
|
|
1480
1482
|
|
|
@@ -1497,7 +1499,7 @@ ___
|
|
|
1497
1499
|
|
|
1498
1500
|
#### Defined in
|
|
1499
1501
|
|
|
1500
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1502
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/b171b07/src/storage/index.ts#L10)
|
|
1501
1503
|
|
|
1502
1504
|
___
|
|
1503
1505
|
|
|
@@ -1520,7 +1522,7 @@ ___
|
|
|
1520
1522
|
|
|
1521
1523
|
#### Defined in
|
|
1522
1524
|
|
|
1523
|
-
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/
|
|
1525
|
+
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/getDateBoundsByMonths.ts#L8)
|
|
1524
1526
|
|
|
1525
1527
|
▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
|
|
1526
1528
|
|
|
@@ -1538,7 +1540,7 @@ ___
|
|
|
1538
1540
|
|
|
1539
1541
|
#### Defined in
|
|
1540
1542
|
|
|
1541
|
-
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/
|
|
1543
|
+
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/b171b07/src/getDateBoundsByMonths.ts#L12)
|
|
1542
1544
|
|
|
1543
1545
|
___
|
|
1544
1546
|
|
|
@@ -1560,7 +1562,7 @@ ___
|
|
|
1560
1562
|
|
|
1561
1563
|
#### Defined in
|
|
1562
1564
|
|
|
1563
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1565
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/getDayMillisecond.ts#L4)
|
|
1564
1566
|
|
|
1565
1567
|
___
|
|
1566
1568
|
|
|
@@ -1583,7 +1585,7 @@ ___
|
|
|
1583
1585
|
|
|
1584
1586
|
#### Defined in
|
|
1585
1587
|
|
|
1586
|
-
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/
|
|
1588
|
+
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/getDaysOfMonth.ts#L4)
|
|
1587
1589
|
|
|
1588
1590
|
___
|
|
1589
1591
|
|
|
@@ -1606,7 +1608,7 @@ ___
|
|
|
1606
1608
|
|
|
1607
1609
|
#### Defined in
|
|
1608
1610
|
|
|
1609
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1611
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/getImageInfo.ts#L4)
|
|
1610
1612
|
|
|
1611
1613
|
___
|
|
1612
1614
|
|
|
@@ -1629,7 +1631,7 @@ ___
|
|
|
1629
1631
|
|
|
1630
1632
|
#### Defined in
|
|
1631
1633
|
|
|
1632
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1634
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/b171b07/src/storage/index.ts#L10)
|
|
1633
1635
|
|
|
1634
1636
|
___
|
|
1635
1637
|
|
|
@@ -1651,7 +1653,7 @@ ___
|
|
|
1651
1653
|
|
|
1652
1654
|
#### Defined in
|
|
1653
1655
|
|
|
1654
|
-
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1656
|
+
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/getMonthBounds.ts#L7)
|
|
1655
1657
|
|
|
1656
1658
|
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1657
1659
|
|
|
@@ -1668,7 +1670,7 @@ ___
|
|
|
1668
1670
|
|
|
1669
1671
|
#### Defined in
|
|
1670
1672
|
|
|
1671
|
-
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/
|
|
1673
|
+
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/getMonthBounds.ts#L8)
|
|
1672
1674
|
|
|
1673
1675
|
___
|
|
1674
1676
|
|
|
@@ -1691,7 +1693,7 @@ ___
|
|
|
1691
1693
|
|
|
1692
1694
|
#### Defined in
|
|
1693
1695
|
|
|
1694
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1696
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/getRandom.ts#L7)
|
|
1695
1697
|
|
|
1696
1698
|
___
|
|
1697
1699
|
|
|
@@ -1707,7 +1709,7 @@ ___
|
|
|
1707
1709
|
|
|
1708
1710
|
#### Defined in
|
|
1709
1711
|
|
|
1710
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1712
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/getRandomColor.ts#L4)
|
|
1711
1713
|
|
|
1712
1714
|
___
|
|
1713
1715
|
|
|
@@ -1729,7 +1731,7 @@ ___
|
|
|
1729
1731
|
|
|
1730
1732
|
#### Defined in
|
|
1731
1733
|
|
|
1732
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1734
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/getRandomNumber.ts#L7)
|
|
1733
1735
|
|
|
1734
1736
|
___
|
|
1735
1737
|
|
|
@@ -1752,7 +1754,7 @@ ___
|
|
|
1752
1754
|
|
|
1753
1755
|
#### Defined in
|
|
1754
1756
|
|
|
1755
|
-
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1757
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/getRangeDate.ts#L7)
|
|
1756
1758
|
|
|
1757
1759
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1758
1760
|
|
|
@@ -1770,7 +1772,7 @@ ___
|
|
|
1770
1772
|
|
|
1771
1773
|
#### Defined in
|
|
1772
1774
|
|
|
1773
|
-
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/
|
|
1775
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/b171b07/src/getRangeDate.ts#L11)
|
|
1774
1776
|
|
|
1775
1777
|
___
|
|
1776
1778
|
|
|
@@ -1786,7 +1788,7 @@ ___
|
|
|
1786
1788
|
|
|
1787
1789
|
#### Defined in
|
|
1788
1790
|
|
|
1789
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1791
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/getScrollTop.ts#L4)
|
|
1790
1792
|
|
|
1791
1793
|
___
|
|
1792
1794
|
|
|
@@ -1808,7 +1810,7 @@ ___
|
|
|
1808
1810
|
|
|
1809
1811
|
#### Defined in
|
|
1810
1812
|
|
|
1811
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1813
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/getVideoInfo.ts#L4)
|
|
1812
1814
|
|
|
1813
1815
|
___
|
|
1814
1816
|
|
|
@@ -1831,7 +1833,7 @@ ___
|
|
|
1831
1833
|
|
|
1832
1834
|
#### Defined in
|
|
1833
1835
|
|
|
1834
|
-
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1836
|
+
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/getWeekBounds.ts#L7)
|
|
1835
1837
|
|
|
1836
1838
|
▸ **getWeekBounds**(`value`, `sundayIsFirstDay`, `fmt`): [`string`, `string`]
|
|
1837
1839
|
|
|
@@ -1849,7 +1851,7 @@ ___
|
|
|
1849
1851
|
|
|
1850
1852
|
#### Defined in
|
|
1851
1853
|
|
|
1852
|
-
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/
|
|
1854
|
+
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/b171b07/src/getWeekBounds.ts#L11)
|
|
1853
1855
|
|
|
1854
1856
|
___
|
|
1855
1857
|
|
|
@@ -1872,7 +1874,7 @@ ___
|
|
|
1872
1874
|
|
|
1873
1875
|
#### Defined in
|
|
1874
1876
|
|
|
1875
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1877
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/getWeekday.ts#L6)
|
|
1876
1878
|
|
|
1877
1879
|
___
|
|
1878
1880
|
|
|
@@ -1888,7 +1890,7 @@ ___
|
|
|
1888
1890
|
|
|
1889
1891
|
#### Defined in
|
|
1890
1892
|
|
|
1891
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1893
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/inBrowser.ts#L4)
|
|
1892
1894
|
|
|
1893
1895
|
___
|
|
1894
1896
|
|
|
@@ -1910,7 +1912,7 @@ ___
|
|
|
1910
1912
|
|
|
1911
1913
|
#### Defined in
|
|
1912
1914
|
|
|
1913
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1915
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/insertLink.ts#L4)
|
|
1914
1916
|
|
|
1915
1917
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1916
1918
|
|
|
@@ -1927,7 +1929,7 @@ ___
|
|
|
1927
1929
|
|
|
1928
1930
|
#### Defined in
|
|
1929
1931
|
|
|
1930
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1932
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/insertLink.ts#L5)
|
|
1931
1933
|
|
|
1932
1934
|
___
|
|
1933
1935
|
|
|
@@ -1949,7 +1951,7 @@ ___
|
|
|
1949
1951
|
|
|
1950
1952
|
#### Defined in
|
|
1951
1953
|
|
|
1952
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1954
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/insertScript.ts#L4)
|
|
1953
1955
|
|
|
1954
1956
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1955
1957
|
|
|
@@ -1966,7 +1968,7 @@ ___
|
|
|
1966
1968
|
|
|
1967
1969
|
#### Defined in
|
|
1968
1970
|
|
|
1969
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1971
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/insertScript.ts#L5)
|
|
1970
1972
|
|
|
1971
1973
|
___
|
|
1972
1974
|
|
|
@@ -1988,7 +1990,7 @@ ___
|
|
|
1988
1990
|
|
|
1989
1991
|
#### Defined in
|
|
1990
1992
|
|
|
1991
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1993
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/insertStyle.ts#L4)
|
|
1992
1994
|
|
|
1993
1995
|
___
|
|
1994
1996
|
|
|
@@ -2017,7 +2019,7 @@ isAmount('1.123') => false
|
|
|
2017
2019
|
|
|
2018
2020
|
#### Defined in
|
|
2019
2021
|
|
|
2020
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
2022
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/b171b07/src/isAmount.ts#L11)
|
|
2021
2023
|
|
|
2022
2024
|
___
|
|
2023
2025
|
|
|
@@ -2033,16 +2035,22 @@ ___
|
|
|
2033
2035
|
|
|
2034
2036
|
#### Defined in
|
|
2035
2037
|
|
|
2036
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
2038
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isAndroid.ts#L4)
|
|
2037
2039
|
|
|
2038
2040
|
___
|
|
2039
2041
|
|
|
2040
2042
|
### isArray
|
|
2041
2043
|
|
|
2042
|
-
▸ **isArray
|
|
2044
|
+
▸ **isArray**<`T`\>(`val`): val is T[]
|
|
2043
2045
|
|
|
2044
2046
|
判断是否是数组
|
|
2045
2047
|
|
|
2048
|
+
#### Type parameters
|
|
2049
|
+
|
|
2050
|
+
| Name | Type |
|
|
2051
|
+
| :------ | :------ |
|
|
2052
|
+
| `T` | `any` |
|
|
2053
|
+
|
|
2046
2054
|
#### Parameters
|
|
2047
2055
|
|
|
2048
2056
|
| Name | Type | Description |
|
|
@@ -2051,13 +2059,13 @@ ___
|
|
|
2051
2059
|
|
|
2052
2060
|
#### Returns
|
|
2053
2061
|
|
|
2054
|
-
val is
|
|
2062
|
+
val is T[]
|
|
2055
2063
|
|
|
2056
2064
|
是否
|
|
2057
2065
|
|
|
2058
2066
|
#### Defined in
|
|
2059
2067
|
|
|
2060
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2068
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/isArray.ts#L6)
|
|
2061
2069
|
|
|
2062
2070
|
___
|
|
2063
2071
|
|
|
@@ -2079,7 +2087,7 @@ val is boolean
|
|
|
2079
2087
|
|
|
2080
2088
|
#### Defined in
|
|
2081
2089
|
|
|
2082
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
2090
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isBoolean.ts#L5)
|
|
2083
2091
|
|
|
2084
2092
|
___
|
|
2085
2093
|
|
|
@@ -2101,7 +2109,7 @@ ___
|
|
|
2101
2109
|
|
|
2102
2110
|
#### Defined in
|
|
2103
2111
|
|
|
2104
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
2112
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isChinese.ts#L4)
|
|
2105
2113
|
|
|
2106
2114
|
___
|
|
2107
2115
|
|
|
@@ -2123,7 +2131,7 @@ val is Date
|
|
|
2123
2131
|
|
|
2124
2132
|
#### Defined in
|
|
2125
2133
|
|
|
2126
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
2134
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isDate.ts#L4)
|
|
2127
2135
|
|
|
2128
2136
|
___
|
|
2129
2137
|
|
|
@@ -2145,7 +2153,7 @@ ___
|
|
|
2145
2153
|
|
|
2146
2154
|
#### Defined in
|
|
2147
2155
|
|
|
2148
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
2156
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isEmail.ts#L4)
|
|
2149
2157
|
|
|
2150
2158
|
___
|
|
2151
2159
|
|
|
@@ -2167,7 +2175,7 @@ ___
|
|
|
2167
2175
|
|
|
2168
2176
|
#### Defined in
|
|
2169
2177
|
|
|
2170
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
2178
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/isEmpty.ts#L6)
|
|
2171
2179
|
|
|
2172
2180
|
___
|
|
2173
2181
|
|
|
@@ -2189,7 +2197,7 @@ ___
|
|
|
2189
2197
|
|
|
2190
2198
|
#### Defined in
|
|
2191
2199
|
|
|
2192
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2200
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/isEmptyArray.ts#L6)
|
|
2193
2201
|
|
|
2194
2202
|
___
|
|
2195
2203
|
|
|
@@ -2211,7 +2219,7 @@ ___
|
|
|
2211
2219
|
|
|
2212
2220
|
#### Defined in
|
|
2213
2221
|
|
|
2214
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2222
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isEmptyObject.ts#L5)
|
|
2215
2223
|
|
|
2216
2224
|
___
|
|
2217
2225
|
|
|
@@ -2233,16 +2241,22 @@ val is Error
|
|
|
2233
2241
|
|
|
2234
2242
|
#### Defined in
|
|
2235
2243
|
|
|
2236
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
2244
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isError.ts#L4)
|
|
2237
2245
|
|
|
2238
2246
|
___
|
|
2239
2247
|
|
|
2240
2248
|
### isFunction
|
|
2241
2249
|
|
|
2242
|
-
▸ **isFunction
|
|
2250
|
+
▸ **isFunction**<`T`\>(`val`): val is T
|
|
2243
2251
|
|
|
2244
2252
|
校验是否是函数
|
|
2245
2253
|
|
|
2254
|
+
#### Type parameters
|
|
2255
|
+
|
|
2256
|
+
| Name | Type |
|
|
2257
|
+
| :------ | :------ |
|
|
2258
|
+
| `T` | extends (...`args`: `any`[]) => `any` = (...`args`: `any`[]) => `any` |
|
|
2259
|
+
|
|
2246
2260
|
#### Parameters
|
|
2247
2261
|
|
|
2248
2262
|
| Name | Type |
|
|
@@ -2251,11 +2265,11 @@ ___
|
|
|
2251
2265
|
|
|
2252
2266
|
#### Returns
|
|
2253
2267
|
|
|
2254
|
-
val is
|
|
2268
|
+
val is T
|
|
2255
2269
|
|
|
2256
2270
|
#### Defined in
|
|
2257
2271
|
|
|
2258
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2272
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isFunction.ts#L4)
|
|
2259
2273
|
|
|
2260
2274
|
___
|
|
2261
2275
|
|
|
@@ -2273,7 +2287,7 @@ ___
|
|
|
2273
2287
|
|
|
2274
2288
|
#### Defined in
|
|
2275
2289
|
|
|
2276
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2290
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/isIE.ts#L6)
|
|
2277
2291
|
|
|
2278
2292
|
___
|
|
2279
2293
|
|
|
@@ -2289,7 +2303,7 @@ ___
|
|
|
2289
2303
|
|
|
2290
2304
|
#### Defined in
|
|
2291
2305
|
|
|
2292
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2306
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isIOS.ts#L4)
|
|
2293
2307
|
|
|
2294
2308
|
___
|
|
2295
2309
|
|
|
@@ -2311,7 +2325,7 @@ ___
|
|
|
2311
2325
|
|
|
2312
2326
|
#### Defined in
|
|
2313
2327
|
|
|
2314
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2328
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isIdCard.ts#L4)
|
|
2315
2329
|
|
|
2316
2330
|
___
|
|
2317
2331
|
|
|
@@ -2333,7 +2347,7 @@ ___
|
|
|
2333
2347
|
|
|
2334
2348
|
#### Defined in
|
|
2335
2349
|
|
|
2336
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2350
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/isJSONString.ts#L7)
|
|
2337
2351
|
|
|
2338
2352
|
___
|
|
2339
2353
|
|
|
@@ -2355,7 +2369,7 @@ ___
|
|
|
2355
2369
|
|
|
2356
2370
|
#### Defined in
|
|
2357
2371
|
|
|
2358
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2372
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isLan.ts#L5)
|
|
2359
2373
|
|
|
2360
2374
|
___
|
|
2361
2375
|
|
|
@@ -2378,7 +2392,7 @@ ___
|
|
|
2378
2392
|
|
|
2379
2393
|
#### Defined in
|
|
2380
2394
|
|
|
2381
|
-
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/
|
|
2395
|
+
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isLeapYear.ts#L5)
|
|
2382
2396
|
|
|
2383
2397
|
___
|
|
2384
2398
|
|
|
@@ -2400,7 +2414,7 @@ ___
|
|
|
2400
2414
|
|
|
2401
2415
|
#### Defined in
|
|
2402
2416
|
|
|
2403
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2417
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isLicenseCode.ts#L5)
|
|
2404
2418
|
|
|
2405
2419
|
___
|
|
2406
2420
|
|
|
@@ -2416,7 +2430,7 @@ ___
|
|
|
2416
2430
|
|
|
2417
2431
|
#### Defined in
|
|
2418
2432
|
|
|
2419
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2433
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isMobile.ts#L4)
|
|
2420
2434
|
|
|
2421
2435
|
___
|
|
2422
2436
|
|
|
@@ -2439,7 +2453,29 @@ ___
|
|
|
2439
2453
|
|
|
2440
2454
|
#### Defined in
|
|
2441
2455
|
|
|
2442
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2456
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/isNativeFunction.ts#L7)
|
|
2457
|
+
|
|
2458
|
+
___
|
|
2459
|
+
|
|
2460
|
+
### isNotEmpty
|
|
2461
|
+
|
|
2462
|
+
▸ **isNotEmpty**(`val`): `boolean`
|
|
2463
|
+
|
|
2464
|
+
校验非 ''、undefined、null
|
|
2465
|
+
|
|
2466
|
+
#### Parameters
|
|
2467
|
+
|
|
2468
|
+
| Name | Type |
|
|
2469
|
+
| :------ | :------ |
|
|
2470
|
+
| `val` | `unknown` |
|
|
2471
|
+
|
|
2472
|
+
#### Returns
|
|
2473
|
+
|
|
2474
|
+
`boolean`
|
|
2475
|
+
|
|
2476
|
+
#### Defined in
|
|
2477
|
+
|
|
2478
|
+
[isNotEmpty.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isNotEmpty.ts#L5)
|
|
2443
2479
|
|
|
2444
2480
|
___
|
|
2445
2481
|
|
|
@@ -2461,7 +2497,7 @@ val is null
|
|
|
2461
2497
|
|
|
2462
2498
|
#### Defined in
|
|
2463
2499
|
|
|
2464
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2500
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isNull.ts#L4)
|
|
2465
2501
|
|
|
2466
2502
|
___
|
|
2467
2503
|
|
|
@@ -2483,16 +2519,22 @@ val is number
|
|
|
2483
2519
|
|
|
2484
2520
|
#### Defined in
|
|
2485
2521
|
|
|
2486
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2522
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isNumber.ts#L5)
|
|
2487
2523
|
|
|
2488
2524
|
___
|
|
2489
2525
|
|
|
2490
2526
|
### isObject
|
|
2491
2527
|
|
|
2492
|
-
▸ **isObject
|
|
2528
|
+
▸ **isObject**<`T`\>(`val`): val is T
|
|
2493
2529
|
|
|
2494
2530
|
校验是否是对象
|
|
2495
2531
|
|
|
2532
|
+
#### Type parameters
|
|
2533
|
+
|
|
2534
|
+
| Name | Type |
|
|
2535
|
+
| :------ | :------ |
|
|
2536
|
+
| `T` | extends `Record`<`string`, `any`\> = `Record`<`string`, `any`\> |
|
|
2537
|
+
|
|
2496
2538
|
#### Parameters
|
|
2497
2539
|
|
|
2498
2540
|
| Name | Type |
|
|
@@ -2501,11 +2543,11 @@ ___
|
|
|
2501
2543
|
|
|
2502
2544
|
#### Returns
|
|
2503
2545
|
|
|
2504
|
-
val is
|
|
2546
|
+
val is T
|
|
2505
2547
|
|
|
2506
2548
|
#### Defined in
|
|
2507
2549
|
|
|
2508
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2550
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isObject.ts#L4)
|
|
2509
2551
|
|
|
2510
2552
|
___
|
|
2511
2553
|
|
|
@@ -2527,7 +2569,7 @@ ___
|
|
|
2527
2569
|
|
|
2528
2570
|
#### Defined in
|
|
2529
2571
|
|
|
2530
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2572
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isPhone.ts#L4)
|
|
2531
2573
|
|
|
2532
2574
|
___
|
|
2533
2575
|
|
|
@@ -2555,7 +2597,35 @@ val is Promise<T\>
|
|
|
2555
2597
|
|
|
2556
2598
|
#### Defined in
|
|
2557
2599
|
|
|
2558
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2600
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isPromise.ts#L4)
|
|
2601
|
+
|
|
2602
|
+
___
|
|
2603
|
+
|
|
2604
|
+
### isPromiseLike
|
|
2605
|
+
|
|
2606
|
+
▸ **isPromiseLike**<`T`\>(`value`): value is PromiseLike<T\>
|
|
2607
|
+
|
|
2608
|
+
说明
|
|
2609
|
+
|
|
2610
|
+
#### Type parameters
|
|
2611
|
+
|
|
2612
|
+
| Name |
|
|
2613
|
+
| :------ |
|
|
2614
|
+
| `T` |
|
|
2615
|
+
|
|
2616
|
+
#### Parameters
|
|
2617
|
+
|
|
2618
|
+
| Name | Type |
|
|
2619
|
+
| :------ | :------ |
|
|
2620
|
+
| `value` | `unknown` |
|
|
2621
|
+
|
|
2622
|
+
#### Returns
|
|
2623
|
+
|
|
2624
|
+
value is PromiseLike<T\>
|
|
2625
|
+
|
|
2626
|
+
#### Defined in
|
|
2627
|
+
|
|
2628
|
+
isPromiseLike.ts:4
|
|
2559
2629
|
|
|
2560
2630
|
___
|
|
2561
2631
|
|
|
@@ -2577,7 +2647,7 @@ val is RegExp
|
|
|
2577
2647
|
|
|
2578
2648
|
#### Defined in
|
|
2579
2649
|
|
|
2580
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2650
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isRegExp.ts#L4)
|
|
2581
2651
|
|
|
2582
2652
|
___
|
|
2583
2653
|
|
|
@@ -2599,7 +2669,7 @@ val is string
|
|
|
2599
2669
|
|
|
2600
2670
|
#### Defined in
|
|
2601
2671
|
|
|
2602
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2672
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isString.ts#L4)
|
|
2603
2673
|
|
|
2604
2674
|
___
|
|
2605
2675
|
|
|
@@ -2628,7 +2698,7 @@ val is T
|
|
|
2628
2698
|
|
|
2629
2699
|
#### Defined in
|
|
2630
2700
|
|
|
2631
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2701
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isType.ts#L4)
|
|
2632
2702
|
|
|
2633
2703
|
___
|
|
2634
2704
|
|
|
@@ -2650,7 +2720,7 @@ val is undefined
|
|
|
2650
2720
|
|
|
2651
2721
|
#### Defined in
|
|
2652
2722
|
|
|
2653
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2723
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isUndefined.ts#L4)
|
|
2654
2724
|
|
|
2655
2725
|
___
|
|
2656
2726
|
|
|
@@ -2694,7 +2764,7 @@ ___
|
|
|
2694
2764
|
|
|
2695
2765
|
#### Defined in
|
|
2696
2766
|
|
|
2697
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2767
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/isValidDate.ts#L6)
|
|
2698
2768
|
|
|
2699
2769
|
___
|
|
2700
2770
|
|
|
@@ -2710,7 +2780,7 @@ ___
|
|
|
2710
2780
|
|
|
2711
2781
|
#### Defined in
|
|
2712
2782
|
|
|
2713
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2783
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/isWeChat.ts#L4)
|
|
2714
2784
|
|
|
2715
2785
|
___
|
|
2716
2786
|
|
|
@@ -2727,7 +2797,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2727
2797
|
|
|
2728
2798
|
#### Defined in
|
|
2729
2799
|
|
|
2730
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2800
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isWeChatMiniProgram.ts#L5)
|
|
2731
2801
|
|
|
2732
2802
|
___
|
|
2733
2803
|
|
|
@@ -2751,7 +2821,7 @@ ___
|
|
|
2751
2821
|
|
|
2752
2822
|
#### Defined in
|
|
2753
2823
|
|
|
2754
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2824
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/b171b07/src/isWeChat.ts#L12)
|
|
2755
2825
|
|
|
2756
2826
|
___
|
|
2757
2827
|
|
|
@@ -2773,7 +2843,7 @@ val is Window
|
|
|
2773
2843
|
|
|
2774
2844
|
#### Defined in
|
|
2775
2845
|
|
|
2776
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2846
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/isWindow.ts#L5)
|
|
2777
2847
|
|
|
2778
2848
|
___
|
|
2779
2849
|
|
|
@@ -2796,7 +2866,7 @@ kebabCase('helloWorld') => hello-world
|
|
|
2796
2866
|
|
|
2797
2867
|
#### Defined in
|
|
2798
2868
|
|
|
2799
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2869
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/kebabCase.ts#L5)
|
|
2800
2870
|
|
|
2801
2871
|
___
|
|
2802
2872
|
|
|
@@ -2818,7 +2888,7 @@ ___
|
|
|
2818
2888
|
|
|
2819
2889
|
#### Defined in
|
|
2820
2890
|
|
|
2821
|
-
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/
|
|
2891
|
+
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/lfToBr.ts#L4)
|
|
2822
2892
|
|
|
2823
2893
|
___
|
|
2824
2894
|
|
|
@@ -2840,7 +2910,7 @@ list 生成器,快速生成数据
|
|
|
2840
2910
|
|
|
2841
2911
|
#### Defined in
|
|
2842
2912
|
|
|
2843
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2913
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/listGenerator.ts#L5)
|
|
2844
2914
|
|
|
2845
2915
|
▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
|
|
2846
2916
|
|
|
@@ -2863,7 +2933,7 @@ list 生成器,快速生成数据
|
|
|
2863
2933
|
|
|
2864
2934
|
#### Defined in
|
|
2865
2935
|
|
|
2866
|
-
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/
|
|
2936
|
+
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/listGenerator.ts#L6)
|
|
2867
2937
|
|
|
2868
2938
|
___
|
|
2869
2939
|
|
|
@@ -2883,7 +2953,7 @@ ___
|
|
|
2883
2953
|
|
|
2884
2954
|
#### Defined in
|
|
2885
2955
|
|
|
2886
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2956
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/b171b07/src/makePhoneCall.ts#L1)
|
|
2887
2957
|
|
|
2888
2958
|
___
|
|
2889
2959
|
|
|
@@ -2908,7 +2978,7 @@ ___
|
|
|
2908
2978
|
|
|
2909
2979
|
#### Defined in
|
|
2910
2980
|
|
|
2911
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2981
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/b171b07/src/mousewheel.ts#L22)
|
|
2912
2982
|
|
|
2913
2983
|
___
|
|
2914
2984
|
|
|
@@ -2924,7 +2994,7 @@ ___
|
|
|
2924
2994
|
|
|
2925
2995
|
#### Defined in
|
|
2926
2996
|
|
|
2927
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2997
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/nf.ts#L4)
|
|
2928
2998
|
|
|
2929
2999
|
___
|
|
2930
3000
|
|
|
@@ -2948,7 +3018,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2948
3018
|
|
|
2949
3019
|
#### Defined in
|
|
2950
3020
|
|
|
2951
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
3021
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/normalizeDate.ts#L8)
|
|
2952
3022
|
|
|
2953
3023
|
___
|
|
2954
3024
|
|
|
@@ -2970,7 +3040,7 @@ ___
|
|
|
2970
3040
|
|
|
2971
3041
|
#### Defined in
|
|
2972
3042
|
|
|
2973
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
3043
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/normalizePath.ts#L4)
|
|
2974
3044
|
|
|
2975
3045
|
___
|
|
2976
3046
|
|
|
@@ -2992,7 +3062,7 @@ ___
|
|
|
2992
3062
|
|
|
2993
3063
|
#### Defined in
|
|
2994
3064
|
|
|
2995
|
-
[numberToLetter.ts:4](https://github.com/daysnap/utils/blob/
|
|
3065
|
+
[numberToLetter.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/numberToLetter.ts#L4)
|
|
2996
3066
|
|
|
2997
3067
|
___
|
|
2998
3068
|
|
|
@@ -3022,7 +3092,7 @@ ___
|
|
|
3022
3092
|
|
|
3023
3093
|
#### Defined in
|
|
3024
3094
|
|
|
3025
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
3095
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/omit.ts#L4)
|
|
3026
3096
|
|
|
3027
3097
|
___
|
|
3028
3098
|
|
|
@@ -3053,7 +3123,7 @@ omitBy(object, isNumber);
|
|
|
3053
3123
|
|
|
3054
3124
|
#### Defined in
|
|
3055
3125
|
|
|
3056
|
-
[omitBy.ts:6](https://github.com/daysnap/utils/blob/
|
|
3126
|
+
[omitBy.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/omitBy.ts#L6)
|
|
3057
3127
|
|
|
3058
3128
|
___
|
|
3059
3129
|
|
|
@@ -3077,7 +3147,7 @@ ___
|
|
|
3077
3147
|
|
|
3078
3148
|
#### Defined in
|
|
3079
3149
|
|
|
3080
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
3150
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/padding.ts#L7)
|
|
3081
3151
|
|
|
3082
3152
|
___
|
|
3083
3153
|
|
|
@@ -3103,7 +3173,7 @@ ___
|
|
|
3103
3173
|
|
|
3104
3174
|
#### Defined in
|
|
3105
3175
|
|
|
3106
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
3176
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/parseDate.ts#L5)
|
|
3107
3177
|
|
|
3108
3178
|
___
|
|
3109
3179
|
|
|
@@ -3129,7 +3199,7 @@ ___
|
|
|
3129
3199
|
|
|
3130
3200
|
#### Defined in
|
|
3131
3201
|
|
|
3132
|
-
[parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/
|
|
3202
|
+
[parseDecimalString.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/parseDecimalString.ts#L5)
|
|
3133
3203
|
|
|
3134
3204
|
___
|
|
3135
3205
|
|
|
@@ -3152,7 +3222,7 @@ ___
|
|
|
3152
3222
|
|
|
3153
3223
|
#### Defined in
|
|
3154
3224
|
|
|
3155
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
3225
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/parseError.ts#L8)
|
|
3156
3226
|
|
|
3157
3227
|
___
|
|
3158
3228
|
|
|
@@ -3177,7 +3247,7 @@ x0123 => ''
|
|
|
3177
3247
|
|
|
3178
3248
|
#### Defined in
|
|
3179
3249
|
|
|
3180
|
-
[parseNumberString.ts:7](https://github.com/daysnap/utils/blob/
|
|
3250
|
+
[parseNumberString.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/parseNumberString.ts#L7)
|
|
3181
3251
|
|
|
3182
3252
|
___
|
|
3183
3253
|
|
|
@@ -3207,7 +3277,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
3207
3277
|
|
|
3208
3278
|
#### Defined in
|
|
3209
3279
|
|
|
3210
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
3280
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/parseObject.ts#L5)
|
|
3211
3281
|
|
|
3212
3282
|
___
|
|
3213
3283
|
|
|
@@ -3236,7 +3306,7 @@ ___
|
|
|
3236
3306
|
|
|
3237
3307
|
#### Defined in
|
|
3238
3308
|
|
|
3239
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
3309
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/parsePath.ts#L6)
|
|
3240
3310
|
|
|
3241
3311
|
___
|
|
3242
3312
|
|
|
@@ -3259,7 +3329,7 @@ ___
|
|
|
3259
3329
|
|
|
3260
3330
|
#### Defined in
|
|
3261
3331
|
|
|
3262
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
3332
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/parseQuery.ts#L8)
|
|
3263
3333
|
|
|
3264
3334
|
___
|
|
3265
3335
|
|
|
@@ -3289,7 +3359,7 @@ ___
|
|
|
3289
3359
|
|
|
3290
3360
|
#### Defined in
|
|
3291
3361
|
|
|
3292
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3362
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/parseQueryString.ts#L6)
|
|
3293
3363
|
|
|
3294
3364
|
___
|
|
3295
3365
|
|
|
@@ -3312,7 +3382,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
3312
3382
|
|
|
3313
3383
|
#### Defined in
|
|
3314
3384
|
|
|
3315
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
3385
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/pascalCase.ts#L8)
|
|
3316
3386
|
|
|
3317
3387
|
___
|
|
3318
3388
|
|
|
@@ -3342,7 +3412,7 @@ ___
|
|
|
3342
3412
|
|
|
3343
3413
|
#### Defined in
|
|
3344
3414
|
|
|
3345
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
3415
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/pick.ts#L4)
|
|
3346
3416
|
|
|
3347
3417
|
___
|
|
3348
3418
|
|
|
@@ -3373,7 +3443,7 @@ pickBy(object, isNumber);
|
|
|
3373
3443
|
|
|
3374
3444
|
#### Defined in
|
|
3375
3445
|
|
|
3376
|
-
[pickBy.ts:6](https://github.com/daysnap/utils/blob/
|
|
3446
|
+
[pickBy.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/pickBy.ts#L6)
|
|
3377
3447
|
|
|
3378
3448
|
___
|
|
3379
3449
|
|
|
@@ -3396,7 +3466,7 @@ ___
|
|
|
3396
3466
|
|
|
3397
3467
|
#### Defined in
|
|
3398
3468
|
|
|
3399
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
3469
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/replaceCrlf.ts#L4)
|
|
3400
3470
|
|
|
3401
3471
|
___
|
|
3402
3472
|
|
|
@@ -3420,7 +3490,7 @@ ___
|
|
|
3420
3490
|
|
|
3421
3491
|
#### Defined in
|
|
3422
3492
|
|
|
3423
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
3493
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/requestFullScreen.ts#L6)
|
|
3424
3494
|
|
|
3425
3495
|
___
|
|
3426
3496
|
|
|
@@ -3446,7 +3516,7 @@ reserve(0, '--') => 0
|
|
|
3446
3516
|
|
|
3447
3517
|
#### Defined in
|
|
3448
3518
|
|
|
3449
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
3519
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/b171b07/src/reserve.ts#L8)
|
|
3450
3520
|
|
|
3451
3521
|
___
|
|
3452
3522
|
|
|
@@ -3470,7 +3540,7 @@ ___
|
|
|
3470
3540
|
|
|
3471
3541
|
#### Defined in
|
|
3472
3542
|
|
|
3473
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3543
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/rgbToHex.ts#L4)
|
|
3474
3544
|
|
|
3475
3545
|
___
|
|
3476
3546
|
|
|
@@ -3493,7 +3563,7 @@ ___
|
|
|
3493
3563
|
|
|
3494
3564
|
#### Defined in
|
|
3495
3565
|
|
|
3496
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3566
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/round.ts#L6)
|
|
3497
3567
|
|
|
3498
3568
|
___
|
|
3499
3569
|
|
|
@@ -3518,7 +3588,7 @@ ___
|
|
|
3518
3588
|
|
|
3519
3589
|
#### Defined in
|
|
3520
3590
|
|
|
3521
|
-
[roundUpToNearestInteger.ts:7](https://github.com/daysnap/utils/blob/
|
|
3591
|
+
[roundUpToNearestInteger.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/roundUpToNearestInteger.ts#L7)
|
|
3522
3592
|
|
|
3523
3593
|
___
|
|
3524
3594
|
|
|
@@ -3534,7 +3604,7 @@ ___
|
|
|
3534
3604
|
|
|
3535
3605
|
#### Defined in
|
|
3536
3606
|
|
|
3537
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3607
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/scrollToTop.ts#L4)
|
|
3538
3608
|
|
|
3539
3609
|
___
|
|
3540
3610
|
|
|
@@ -3556,7 +3626,7 @@ ___
|
|
|
3556
3626
|
|
|
3557
3627
|
#### Defined in
|
|
3558
3628
|
|
|
3559
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3629
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/setScrollTop.ts#L4)
|
|
3560
3630
|
|
|
3561
3631
|
___
|
|
3562
3632
|
|
|
@@ -3580,7 +3650,7 @@ ___
|
|
|
3580
3650
|
|
|
3581
3651
|
#### Defined in
|
|
3582
3652
|
|
|
3583
|
-
[sleep.ts:7](https://github.com/daysnap/utils/blob/
|
|
3653
|
+
[sleep.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/sleep.ts#L7)
|
|
3584
3654
|
|
|
3585
3655
|
___
|
|
3586
3656
|
|
|
@@ -3609,7 +3679,7 @@ ___
|
|
|
3609
3679
|
|
|
3610
3680
|
#### Defined in
|
|
3611
3681
|
|
|
3612
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3682
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/splitArray.ts#L4)
|
|
3613
3683
|
|
|
3614
3684
|
___
|
|
3615
3685
|
|
|
@@ -3632,7 +3702,7 @@ ___
|
|
|
3632
3702
|
|
|
3633
3703
|
#### Defined in
|
|
3634
3704
|
|
|
3635
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3705
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/stringTrim.ts#L6)
|
|
3636
3706
|
|
|
3637
3707
|
___
|
|
3638
3708
|
|
|
@@ -3654,7 +3724,7 @@ ___
|
|
|
3654
3724
|
|
|
3655
3725
|
#### Defined in
|
|
3656
3726
|
|
|
3657
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3727
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/b171b07/src/stringifyQuery.ts#L7)
|
|
3658
3728
|
|
|
3659
3729
|
___
|
|
3660
3730
|
|
|
@@ -3678,7 +3748,7 @@ ___
|
|
|
3678
3748
|
|
|
3679
3749
|
#### Defined in
|
|
3680
3750
|
|
|
3681
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3751
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/stringifyQueryString.ts#L6)
|
|
3682
3752
|
|
|
3683
3753
|
___
|
|
3684
3754
|
|
|
@@ -3722,7 +3792,7 @@ ___
|
|
|
3722
3792
|
|
|
3723
3793
|
#### Defined in
|
|
3724
3794
|
|
|
3725
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3795
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/b171b07/src/throttle.ts#L48)
|
|
3726
3796
|
|
|
3727
3797
|
___
|
|
3728
3798
|
|
|
@@ -3765,7 +3835,7 @@ ___
|
|
|
3765
3835
|
|
|
3766
3836
|
#### Defined in
|
|
3767
3837
|
|
|
3768
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3838
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/b171b07/src/throttle.ts#L5)
|
|
3769
3839
|
|
|
3770
3840
|
___
|
|
3771
3841
|
|
|
@@ -3808,7 +3878,7 @@ ___
|
|
|
3808
3878
|
|
|
3809
3879
|
#### Defined in
|
|
3810
3880
|
|
|
3811
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3881
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/b171b07/src/throttle.ts#L25)
|
|
3812
3882
|
|
|
3813
3883
|
___
|
|
3814
3884
|
|
|
@@ -3830,7 +3900,7 @@ ___
|
|
|
3830
3900
|
|
|
3831
3901
|
#### Defined in
|
|
3832
3902
|
|
|
3833
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3903
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/toCDB.ts#L4)
|
|
3834
3904
|
|
|
3835
3905
|
___
|
|
3836
3906
|
|
|
@@ -3852,7 +3922,7 @@ ___
|
|
|
3852
3922
|
|
|
3853
3923
|
#### Defined in
|
|
3854
3924
|
|
|
3855
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3925
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/toDBC.ts#L4)
|
|
3856
3926
|
|
|
3857
3927
|
___
|
|
3858
3928
|
|
|
@@ -3874,7 +3944,7 @@ ___
|
|
|
3874
3944
|
|
|
3875
3945
|
#### Defined in
|
|
3876
3946
|
|
|
3877
|
-
[toFormData.ts:4](https://github.com/daysnap/utils/blob/
|
|
3947
|
+
[toFormData.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/toFormData.ts#L4)
|
|
3878
3948
|
|
|
3879
3949
|
___
|
|
3880
3950
|
|
|
@@ -3896,7 +3966,7 @@ ___
|
|
|
3896
3966
|
|
|
3897
3967
|
#### Defined in
|
|
3898
3968
|
|
|
3899
|
-
[toPosix.ts:4](https://github.com/daysnap/utils/blob/
|
|
3969
|
+
[toPosix.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/toPosix.ts#L4)
|
|
3900
3970
|
|
|
3901
3971
|
___
|
|
3902
3972
|
|
|
@@ -3920,7 +3990,7 @@ ___
|
|
|
3920
3990
|
|
|
3921
3991
|
#### Defined in
|
|
3922
3992
|
|
|
3923
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3993
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/b171b07/src/typeOf.ts#L6)
|
|
3924
3994
|
|
|
3925
3995
|
___
|
|
3926
3996
|
|
|
@@ -3948,7 +4018,7 @@ ___
|
|
|
3948
4018
|
|
|
3949
4019
|
#### Defined in
|
|
3950
4020
|
|
|
3951
|
-
[withCache.ts:4](https://github.com/daysnap/utils/blob/
|
|
4021
|
+
[withCache.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/withCache.ts#L4)
|
|
3952
4022
|
|
|
3953
4023
|
___
|
|
3954
4024
|
|
|
@@ -3977,4 +4047,4 @@ ___
|
|
|
3977
4047
|
|
|
3978
4048
|
#### Defined in
|
|
3979
4049
|
|
|
3980
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
4050
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/b171b07/src/withPreventConsecutiveClicks.ts#L4)
|