@daysnap/utils 0.0.34 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/modules.md +78 -55
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/isBoolean.d.ts +5 -0
- package/es/isBoolean.js +7 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +11 -0
- package/lib/isBoolean.d.ts +5 -0
- package/lib/isBoolean.js +13 -0
- package/package.json +1 -1
package/docs/modules.md
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
- [getVideoInfo](modules.md#getvideoinfo)
|
|
30
30
|
- [inBrowser](modules.md#inbrowser)
|
|
31
31
|
- [isAndroid](modules.md#isandroid)
|
|
32
|
+
- [isBoolean](modules.md#isboolean)
|
|
32
33
|
- [isEmail](modules.md#isemail)
|
|
33
34
|
- [isEmpty](modules.md#isempty)
|
|
34
35
|
- [isEmptyObject](modules.md#isemptyobject)
|
|
@@ -82,7 +83,7 @@ base64 转 blob
|
|
|
82
83
|
|
|
83
84
|
#### Defined in
|
|
84
85
|
|
|
85
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
86
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/b7c7b79/src/base64ToBlob.ts#L6)
|
|
86
87
|
|
|
87
88
|
___
|
|
88
89
|
|
|
@@ -104,7 +105,7 @@ blob 转 base64
|
|
|
104
105
|
|
|
105
106
|
#### Defined in
|
|
106
107
|
|
|
107
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
108
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/blobToBase64.ts#L4)
|
|
108
109
|
|
|
109
110
|
___
|
|
110
111
|
|
|
@@ -132,7 +133,7 @@ ___
|
|
|
132
133
|
|
|
133
134
|
#### Defined in
|
|
134
135
|
|
|
135
|
-
[clone.ts:7](https://github.com/daysnap/utils/blob/
|
|
136
|
+
[clone.ts:7](https://github.com/daysnap/utils/blob/b7c7b79/src/clone.ts#L7)
|
|
136
137
|
|
|
137
138
|
___
|
|
138
139
|
|
|
@@ -154,7 +155,7 @@ ___
|
|
|
154
155
|
|
|
155
156
|
#### Defined in
|
|
156
157
|
|
|
157
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
158
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/createHexColorByHash.ts#L4)
|
|
158
159
|
|
|
159
160
|
___
|
|
160
161
|
|
|
@@ -180,7 +181,7 @@ ___
|
|
|
180
181
|
|
|
181
182
|
#### Defined in
|
|
182
183
|
|
|
183
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
184
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/b7c7b79/src/compareVersion.ts#L9)
|
|
184
185
|
|
|
185
186
|
___
|
|
186
187
|
|
|
@@ -202,7 +203,7 @@ ___
|
|
|
202
203
|
|
|
203
204
|
#### Defined in
|
|
204
205
|
|
|
205
|
-
[compressImage.ts:6](https://github.com/daysnap/utils/blob/
|
|
206
|
+
[compressImage.ts:6](https://github.com/daysnap/utils/blob/b7c7b79/src/compressImage.ts#L6)
|
|
206
207
|
|
|
207
208
|
___
|
|
208
209
|
|
|
@@ -226,7 +227,7 @@ ___
|
|
|
226
227
|
|
|
227
228
|
#### Defined in
|
|
228
229
|
|
|
229
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
230
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/downloadFile.ts#L4)
|
|
230
231
|
|
|
231
232
|
___
|
|
232
233
|
|
|
@@ -255,7 +256,7 @@ ___
|
|
|
255
256
|
|
|
256
257
|
#### Defined in
|
|
257
258
|
|
|
258
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
259
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/each.ts#L4)
|
|
259
260
|
|
|
260
261
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
261
262
|
|
|
@@ -278,7 +279,7 @@ ___
|
|
|
278
279
|
|
|
279
280
|
#### Defined in
|
|
280
281
|
|
|
281
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
282
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/b7c7b79/src/each.ts#L8)
|
|
282
283
|
|
|
283
284
|
___
|
|
284
285
|
|
|
@@ -300,7 +301,7 @@ ___
|
|
|
300
301
|
|
|
301
302
|
#### Defined in
|
|
302
303
|
|
|
303
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
304
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/filterBankCardNo.ts#L4)
|
|
304
305
|
|
|
305
306
|
___
|
|
306
307
|
|
|
@@ -322,7 +323,7 @@ ___
|
|
|
322
323
|
|
|
323
324
|
#### Defined in
|
|
324
325
|
|
|
325
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
326
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/filterEmoji.ts#L4)
|
|
326
327
|
|
|
327
328
|
___
|
|
328
329
|
|
|
@@ -344,7 +345,7 @@ ___
|
|
|
344
345
|
|
|
345
346
|
#### Defined in
|
|
346
347
|
|
|
347
|
-
[filterIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
348
|
+
[filterIdCard.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/filterIdCard.ts#L4)
|
|
348
349
|
|
|
349
350
|
___
|
|
350
351
|
|
|
@@ -366,7 +367,7 @@ ___
|
|
|
366
367
|
|
|
367
368
|
#### Defined in
|
|
368
369
|
|
|
369
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
370
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/filterName.ts#L4)
|
|
370
371
|
|
|
371
372
|
___
|
|
372
373
|
|
|
@@ -391,7 +392,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
391
392
|
|
|
392
393
|
#### Defined in
|
|
393
394
|
|
|
394
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
395
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/b7c7b79/src/filterPhone.ts#L6)
|
|
395
396
|
|
|
396
397
|
___
|
|
397
398
|
|
|
@@ -414,7 +415,7 @@ ___
|
|
|
414
415
|
|
|
415
416
|
#### Defined in
|
|
416
417
|
|
|
417
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
418
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/formatAmount.ts#L4)
|
|
418
419
|
|
|
419
420
|
___
|
|
420
421
|
|
|
@@ -437,7 +438,7 @@ ___
|
|
|
437
438
|
|
|
438
439
|
#### Defined in
|
|
439
440
|
|
|
440
|
-
[formatDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
441
|
+
[formatDate.ts:6](https://github.com/daysnap/utils/blob/b7c7b79/src/formatDate.ts#L6)
|
|
441
442
|
|
|
442
443
|
___
|
|
443
444
|
|
|
@@ -459,7 +460,7 @@ ___
|
|
|
459
460
|
|
|
460
461
|
#### Defined in
|
|
461
462
|
|
|
462
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
463
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/getBlobByUrl.ts#L4)
|
|
463
464
|
|
|
464
465
|
___
|
|
465
466
|
|
|
@@ -482,7 +483,7 @@ ___
|
|
|
482
483
|
|
|
483
484
|
#### Defined in
|
|
484
485
|
|
|
485
|
-
[storage/index.ts:7](https://github.com/daysnap/utils/blob/
|
|
486
|
+
[storage/index.ts:7](https://github.com/daysnap/utils/blob/b7c7b79/src/storage/index.ts#L7)
|
|
486
487
|
|
|
487
488
|
___
|
|
488
489
|
|
|
@@ -504,7 +505,7 @@ ___
|
|
|
504
505
|
|
|
505
506
|
#### Defined in
|
|
506
507
|
|
|
507
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
508
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/getDayMillisecond.ts#L4)
|
|
508
509
|
|
|
509
510
|
___
|
|
510
511
|
|
|
@@ -526,7 +527,7 @@ ___
|
|
|
526
527
|
|
|
527
528
|
#### Defined in
|
|
528
529
|
|
|
529
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
530
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/getImageInfo.ts#L4)
|
|
530
531
|
|
|
531
532
|
___
|
|
532
533
|
|
|
@@ -549,7 +550,7 @@ ___
|
|
|
549
550
|
|
|
550
551
|
#### Defined in
|
|
551
552
|
|
|
552
|
-
[storage/index.ts:7](https://github.com/daysnap/utils/blob/
|
|
553
|
+
[storage/index.ts:7](https://github.com/daysnap/utils/blob/b7c7b79/src/storage/index.ts#L7)
|
|
553
554
|
|
|
554
555
|
___
|
|
555
556
|
|
|
@@ -571,7 +572,7 @@ ___
|
|
|
571
572
|
|
|
572
573
|
#### Defined in
|
|
573
574
|
|
|
574
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
575
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/getVideoInfo.ts#L4)
|
|
575
576
|
|
|
576
577
|
___
|
|
577
578
|
|
|
@@ -587,7 +588,7 @@ ___
|
|
|
587
588
|
|
|
588
589
|
#### Defined in
|
|
589
590
|
|
|
590
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
591
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/inBrowser.ts#L4)
|
|
591
592
|
|
|
592
593
|
___
|
|
593
594
|
|
|
@@ -603,7 +604,29 @@ ___
|
|
|
603
604
|
|
|
604
605
|
#### Defined in
|
|
605
606
|
|
|
606
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
607
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isAndroid.ts#L4)
|
|
608
|
+
|
|
609
|
+
___
|
|
610
|
+
|
|
611
|
+
### isBoolean
|
|
612
|
+
|
|
613
|
+
▸ **isBoolean**(`val`): val is boolean
|
|
614
|
+
|
|
615
|
+
判断是否是布尔值
|
|
616
|
+
|
|
617
|
+
#### Parameters
|
|
618
|
+
|
|
619
|
+
| Name | Type | Description |
|
|
620
|
+
| :------ | :------ | :------ |
|
|
621
|
+
| `val` | `unknown` | 需要判断的值 |
|
|
622
|
+
|
|
623
|
+
#### Returns
|
|
624
|
+
|
|
625
|
+
val is boolean
|
|
626
|
+
|
|
627
|
+
#### Defined in
|
|
628
|
+
|
|
629
|
+
isBoolean.ts:5
|
|
607
630
|
|
|
608
631
|
___
|
|
609
632
|
|
|
@@ -625,7 +648,7 @@ ___
|
|
|
625
648
|
|
|
626
649
|
#### Defined in
|
|
627
650
|
|
|
628
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
651
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isEmail.ts#L4)
|
|
629
652
|
|
|
630
653
|
___
|
|
631
654
|
|
|
@@ -647,7 +670,7 @@ ___
|
|
|
647
670
|
|
|
648
671
|
#### Defined in
|
|
649
672
|
|
|
650
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
673
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/b7c7b79/src/isEmpty.ts#L6)
|
|
651
674
|
|
|
652
675
|
___
|
|
653
676
|
|
|
@@ -669,7 +692,7 @@ ___
|
|
|
669
692
|
|
|
670
693
|
#### Defined in
|
|
671
694
|
|
|
672
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
695
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/b7c7b79/src/isEmptyObject.ts#L5)
|
|
673
696
|
|
|
674
697
|
___
|
|
675
698
|
|
|
@@ -691,7 +714,7 @@ val is Error
|
|
|
691
714
|
|
|
692
715
|
#### Defined in
|
|
693
716
|
|
|
694
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
717
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isError.ts#L4)
|
|
695
718
|
|
|
696
719
|
___
|
|
697
720
|
|
|
@@ -713,7 +736,7 @@ val is Function
|
|
|
713
736
|
|
|
714
737
|
#### Defined in
|
|
715
738
|
|
|
716
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
739
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isFunction.ts#L4)
|
|
717
740
|
|
|
718
741
|
___
|
|
719
742
|
|
|
@@ -729,7 +752,7 @@ ___
|
|
|
729
752
|
|
|
730
753
|
#### Defined in
|
|
731
754
|
|
|
732
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
755
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isIOS.ts#L4)
|
|
733
756
|
|
|
734
757
|
___
|
|
735
758
|
|
|
@@ -751,7 +774,7 @@ ___
|
|
|
751
774
|
|
|
752
775
|
#### Defined in
|
|
753
776
|
|
|
754
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
777
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isIdCard.ts#L4)
|
|
755
778
|
|
|
756
779
|
___
|
|
757
780
|
|
|
@@ -773,7 +796,7 @@ ___
|
|
|
773
796
|
|
|
774
797
|
#### Defined in
|
|
775
798
|
|
|
776
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
799
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/b7c7b79/src/isJSONString.ts#L7)
|
|
777
800
|
|
|
778
801
|
___
|
|
779
802
|
|
|
@@ -795,7 +818,7 @@ ___
|
|
|
795
818
|
|
|
796
819
|
#### Defined in
|
|
797
820
|
|
|
798
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
821
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/b7c7b79/src/isLan.ts#L5)
|
|
799
822
|
|
|
800
823
|
___
|
|
801
824
|
|
|
@@ -817,7 +840,7 @@ ___
|
|
|
817
840
|
|
|
818
841
|
#### Defined in
|
|
819
842
|
|
|
820
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
843
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/b7c7b79/src/isLicenseCode.ts#L5)
|
|
821
844
|
|
|
822
845
|
___
|
|
823
846
|
|
|
@@ -833,7 +856,7 @@ ___
|
|
|
833
856
|
|
|
834
857
|
#### Defined in
|
|
835
858
|
|
|
836
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
859
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isMobile.ts#L4)
|
|
837
860
|
|
|
838
861
|
___
|
|
839
862
|
|
|
@@ -855,7 +878,7 @@ val is null
|
|
|
855
878
|
|
|
856
879
|
#### Defined in
|
|
857
880
|
|
|
858
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
881
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isNull.ts#L4)
|
|
859
882
|
|
|
860
883
|
___
|
|
861
884
|
|
|
@@ -877,7 +900,7 @@ val is number
|
|
|
877
900
|
|
|
878
901
|
#### Defined in
|
|
879
902
|
|
|
880
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
903
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/b7c7b79/src/isNumber.ts#L5)
|
|
881
904
|
|
|
882
905
|
___
|
|
883
906
|
|
|
@@ -899,7 +922,7 @@ val is Record<string, any\>
|
|
|
899
922
|
|
|
900
923
|
#### Defined in
|
|
901
924
|
|
|
902
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
925
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isObject.ts#L4)
|
|
903
926
|
|
|
904
927
|
___
|
|
905
928
|
|
|
@@ -921,7 +944,7 @@ ___
|
|
|
921
944
|
|
|
922
945
|
#### Defined in
|
|
923
946
|
|
|
924
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
947
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isPhone.ts#L4)
|
|
925
948
|
|
|
926
949
|
___
|
|
927
950
|
|
|
@@ -949,7 +972,7 @@ val is Promise<T\>
|
|
|
949
972
|
|
|
950
973
|
#### Defined in
|
|
951
974
|
|
|
952
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
975
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isPromise.ts#L4)
|
|
953
976
|
|
|
954
977
|
___
|
|
955
978
|
|
|
@@ -971,7 +994,7 @@ val is RegExp
|
|
|
971
994
|
|
|
972
995
|
#### Defined in
|
|
973
996
|
|
|
974
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
997
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isRegExp.ts#L4)
|
|
975
998
|
|
|
976
999
|
___
|
|
977
1000
|
|
|
@@ -993,7 +1016,7 @@ val is string
|
|
|
993
1016
|
|
|
994
1017
|
#### Defined in
|
|
995
1018
|
|
|
996
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
1019
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isString.ts#L4)
|
|
997
1020
|
|
|
998
1021
|
___
|
|
999
1022
|
|
|
@@ -1015,7 +1038,7 @@ val is undefined
|
|
|
1015
1038
|
|
|
1016
1039
|
#### Defined in
|
|
1017
1040
|
|
|
1018
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
1041
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/isUndefined.ts#L4)
|
|
1019
1042
|
|
|
1020
1043
|
___
|
|
1021
1044
|
|
|
@@ -1037,7 +1060,7 @@ val is Window
|
|
|
1037
1060
|
|
|
1038
1061
|
#### Defined in
|
|
1039
1062
|
|
|
1040
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
1063
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/b7c7b79/src/isWindow.ts#L5)
|
|
1041
1064
|
|
|
1042
1065
|
___
|
|
1043
1066
|
|
|
@@ -1067,7 +1090,7 @@ ___
|
|
|
1067
1090
|
|
|
1068
1091
|
#### Defined in
|
|
1069
1092
|
|
|
1070
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
1093
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/omit.ts#L4)
|
|
1071
1094
|
|
|
1072
1095
|
___
|
|
1073
1096
|
|
|
@@ -1089,7 +1112,7 @@ ___
|
|
|
1089
1112
|
|
|
1090
1113
|
#### Defined in
|
|
1091
1114
|
|
|
1092
|
-
[parseDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
1115
|
+
[parseDate.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/parseDate.ts#L4)
|
|
1093
1116
|
|
|
1094
1117
|
___
|
|
1095
1118
|
|
|
@@ -1112,7 +1135,7 @@ ___
|
|
|
1112
1135
|
|
|
1113
1136
|
#### Defined in
|
|
1114
1137
|
|
|
1115
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
1138
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/b7c7b79/src/parseError.ts#L8)
|
|
1116
1139
|
|
|
1117
1140
|
___
|
|
1118
1141
|
|
|
@@ -1141,7 +1164,7 @@ ___
|
|
|
1141
1164
|
|
|
1142
1165
|
#### Defined in
|
|
1143
1166
|
|
|
1144
|
-
[parsePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
1167
|
+
[parsePath.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/parsePath.ts#L4)
|
|
1145
1168
|
|
|
1146
1169
|
___
|
|
1147
1170
|
|
|
@@ -1164,7 +1187,7 @@ ___
|
|
|
1164
1187
|
|
|
1165
1188
|
#### Defined in
|
|
1166
1189
|
|
|
1167
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
1190
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/b7c7b79/src/parseQuery.ts#L8)
|
|
1168
1191
|
|
|
1169
1192
|
___
|
|
1170
1193
|
|
|
@@ -1194,7 +1217,7 @@ ___
|
|
|
1194
1217
|
|
|
1195
1218
|
#### Defined in
|
|
1196
1219
|
|
|
1197
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
1220
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/pick.ts#L4)
|
|
1198
1221
|
|
|
1199
1222
|
___
|
|
1200
1223
|
|
|
@@ -1217,7 +1240,7 @@ ___
|
|
|
1217
1240
|
|
|
1218
1241
|
#### Defined in
|
|
1219
1242
|
|
|
1220
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
1243
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/replaceCrlf.ts#L4)
|
|
1221
1244
|
|
|
1222
1245
|
___
|
|
1223
1246
|
|
|
@@ -1243,7 +1266,7 @@ reserve(0, '--') => 0
|
|
|
1243
1266
|
|
|
1244
1267
|
#### Defined in
|
|
1245
1268
|
|
|
1246
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
1269
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/b7c7b79/src/reserve.ts#L8)
|
|
1247
1270
|
|
|
1248
1271
|
___
|
|
1249
1272
|
|
|
@@ -1266,7 +1289,7 @@ ___
|
|
|
1266
1289
|
|
|
1267
1290
|
#### Defined in
|
|
1268
1291
|
|
|
1269
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
1292
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/b7c7b79/src/round.ts#L6)
|
|
1270
1293
|
|
|
1271
1294
|
___
|
|
1272
1295
|
|
|
@@ -1289,7 +1312,7 @@ ___
|
|
|
1289
1312
|
|
|
1290
1313
|
#### Defined in
|
|
1291
1314
|
|
|
1292
|
-
[sleep.ts:4](https://github.com/daysnap/utils/blob/
|
|
1315
|
+
[sleep.ts:4](https://github.com/daysnap/utils/blob/b7c7b79/src/sleep.ts#L4)
|
|
1293
1316
|
|
|
1294
1317
|
___
|
|
1295
1318
|
|
|
@@ -1311,4 +1334,4 @@ ___
|
|
|
1311
1334
|
|
|
1312
1335
|
#### Defined in
|
|
1313
1336
|
|
|
1314
|
-
[stringifyQuery.ts:6](https://github.com/daysnap/utils/blob/
|
|
1337
|
+
[stringifyQuery.ts:6](https://github.com/daysnap/utils/blob/b7c7b79/src/stringifyQuery.ts#L6)
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/es/isBoolean.js
ADDED
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -234,6 +234,17 @@ Object.keys(_isAndroid).forEach(function (key) {
|
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
|
+
var _isBoolean = require("./isBoolean");
|
|
238
|
+
Object.keys(_isBoolean).forEach(function (key) {
|
|
239
|
+
if (key === "default" || key === "__esModule") return;
|
|
240
|
+
if (key in exports && exports[key] === _isBoolean[key]) return;
|
|
241
|
+
Object.defineProperty(exports, key, {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function get() {
|
|
244
|
+
return _isBoolean[key];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
});
|
|
237
248
|
var _isEmail = require("./isEmail");
|
|
238
249
|
Object.keys(_isEmail).forEach(function (key) {
|
|
239
250
|
if (key === "default" || key === "__esModule") return;
|
package/lib/isBoolean.js
ADDED