@daysnap/utils 0.1.18 → 0.1.20
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 +151 -0
- package/docs/classes/Storage.md +13 -13
- package/docs/interfaces/EventBusCallback.md +1 -1
- package/docs/interfaces/PollerOptions.md +19 -0
- package/docs/interfaces/StorageManager.md +4 -4
- package/docs/interfaces/Trap.md +5 -5
- package/docs/modules.md +364 -144
- package/es/blobToBase64.d.ts +1 -1
- package/es/blobToBase64.js +1 -1
- package/es/chunk-AAKGIVZB.js +21 -0
- package/es/chunk-BZ6JSRMY.js +8 -0
- package/es/chunk-EH6HUV2G.js +9 -0
- package/es/chunk-GLJALZRT.js +43 -0
- package/es/chunk-KH7MPMQF.js +15 -0
- package/es/chunk-MOZPLBC3.js +8 -0
- package/es/chunk-OOWZEABP.js +8 -0
- package/es/chunk-PXMH56CM.js +8 -0
- package/es/chunk-UDRRKKBB.js +12 -0
- package/es/crToBr.d.ts +6 -0
- package/es/crToBr.js +6 -0
- package/es/crlfToBr.d.ts +11 -0
- package/es/crlfToBr.js +8 -0
- package/es/filterEmptyValue.js +3 -3
- package/es/formatGapDate.d.ts +6 -0
- package/es/formatGapDate.js +6 -0
- package/es/getDateBoundsByMonths.d.ts +1 -1
- package/es/getDaysOfMonth.d.ts +6 -0
- package/es/getDaysOfMonth.js +6 -0
- package/es/getMonthBounds.d.ts +1 -1
- package/es/getWeekBounds.d.ts +7 -0
- package/es/getWeekBounds.js +9 -0
- package/es/index.d.ts +8 -1
- package/es/index.js +125 -95
- package/es/isLeapYear.d.ts +7 -0
- package/es/isLeapYear.js +6 -0
- package/es/lfToBr.d.ts +6 -0
- package/es/lfToBr.js +6 -0
- package/es/poller.d.ts +20 -0
- package/es/poller.js +7 -0
- package/es/stringifyQuery.js +2 -2
- package/lib/blobToBase64.cjs +2 -2
- package/lib/blobToBase64.d.cts +1 -1
- package/lib/chunk-4WWOJSX3.cjs +21 -0
- package/lib/chunk-EUH2FDMT.cjs +8 -0
- package/lib/chunk-TDUDOSU4.cjs +43 -0
- package/lib/chunk-TMCJ3HTA.cjs +12 -0
- package/lib/chunk-UTUKZLEN.cjs +8 -0
- package/lib/chunk-XSCXPGEI.cjs +8 -0
- package/lib/{chunk-CDHFRZQM.cjs → chunk-YIW4PW4Q.cjs} +2 -8
- package/lib/chunk-Z42N5FUV.cjs +9 -0
- package/lib/chunk-ZSDKKWIQ.cjs +8 -0
- package/lib/crToBr.cjs +6 -0
- package/lib/crToBr.d.cts +6 -0
- package/lib/crlfToBr.cjs +8 -0
- package/lib/crlfToBr.d.cts +11 -0
- package/lib/filterEmptyValue.cjs +4 -4
- package/lib/formatGapDate.cjs +6 -0
- package/lib/formatGapDate.d.cts +6 -0
- package/lib/getDateBoundsByMonths.d.cts +1 -1
- package/lib/getDaysOfMonth.cjs +6 -0
- package/lib/getDaysOfMonth.d.cts +6 -0
- package/lib/getMonthBounds.d.cts +1 -1
- package/lib/getWeekBounds.cjs +9 -0
- package/lib/getWeekBounds.d.cts +7 -0
- package/lib/index.cjs +99 -69
- package/lib/index.d.cts +8 -1
- package/lib/isLeapYear.cjs +6 -0
- package/lib/isLeapYear.d.cts +7 -0
- package/lib/lfToBr.cjs +6 -0
- package/lib/lfToBr.d.cts +6 -0
- package/lib/poller.cjs +7 -0
- package/lib/poller.d.cts +20 -0
- package/lib/stringifyQuery.cjs +3 -3
- package/package.json +1 -1
- package/es/chunk-HRKQWKOJ.js +0 -21
- package/es/chunk-S2FOFDX4.js +0 -8
- package/es/filterCRLF.d.ts +0 -6
- package/es/filterCRLF.js +0 -6
- package/lib/chunk-CXDOHSIF.cjs +0 -8
- package/lib/filterCRLF.cjs +0 -6
- package/lib/filterCRLF.d.cts +0 -6
- package/es/{chunk-NXEL6RMI.js → chunk-SMNIKKYG.js} +6 -6
- package/es/{chunk-VDXSQKQF.js → chunk-WXXFRKUS.js} +3 -3
- package/lib/{chunk-PYFTXKFI.cjs → chunk-4P4EJVBW.cjs} +4 -4
- package/lib/{chunk-73AXP7FD.cjs → chunk-4USHGA4P.cjs} +2 -2
package/docs/modules.md
CHANGED
|
@@ -6,14 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
### Classes
|
|
8
8
|
|
|
9
|
+
- [Poller](classes/Poller.md)
|
|
9
10
|
- [Storage](classes/Storage.md)
|
|
10
11
|
|
|
11
12
|
### Interfaces
|
|
12
13
|
|
|
13
14
|
- [EventBusCallback](interfaces/EventBusCallback.md)
|
|
15
|
+
- [PollerOptions](interfaces/PollerOptions.md)
|
|
14
16
|
- [StorageManager](interfaces/StorageManager.md)
|
|
15
17
|
- [Trap](interfaces/Trap.md)
|
|
16
18
|
|
|
19
|
+
### Type Aliases
|
|
20
|
+
|
|
21
|
+
- [PollerTask](modules.md#pollertask)
|
|
22
|
+
|
|
17
23
|
### Variables
|
|
18
24
|
|
|
19
25
|
- [eventBus](modules.md#eventbus)
|
|
@@ -37,10 +43,12 @@
|
|
|
37
43
|
- [colorGenByHash](modules.md#colorgenbyhash)
|
|
38
44
|
- [compareVersion](modules.md#compareversion)
|
|
39
45
|
- [compressImage](modules.md#compressimage)
|
|
46
|
+
- [crToBr](modules.md#crtobr)
|
|
40
47
|
- [createFactory](modules.md#createfactory)
|
|
41
48
|
- [createLinearFunction](modules.md#createlinearfunction)
|
|
42
49
|
- [createTrapInstance](modules.md#createtrapinstance)
|
|
43
50
|
- [createWithLoading](modules.md#createwithloading)
|
|
51
|
+
- [crlfToBr](modules.md#crlftobr)
|
|
44
52
|
- [debounce](modules.md#debounce)
|
|
45
53
|
- [downloadFile](modules.md#downloadfile)
|
|
46
54
|
- [each](modules.md#each)
|
|
@@ -59,12 +67,14 @@
|
|
|
59
67
|
- [formatDateStr](modules.md#formatdatestr)
|
|
60
68
|
- [formatDateToZN](modules.md#formatdatetozn)
|
|
61
69
|
- [formatFileSize](modules.md#formatfilesize)
|
|
70
|
+
- [formatGapDate](modules.md#formatgapdate)
|
|
62
71
|
- [formatMessage](modules.md#formatmessage)
|
|
63
72
|
- [formatPathParams](modules.md#formatpathparams)
|
|
64
73
|
- [getBlobByUrl](modules.md#getblobbyurl)
|
|
65
74
|
- [getCache](modules.md#getcache)
|
|
66
75
|
- [getDateBoundsByMonths](modules.md#getdateboundsbymonths)
|
|
67
76
|
- [getDayMillisecond](modules.md#getdaymillisecond)
|
|
77
|
+
- [getDaysOfMonth](modules.md#getdaysofmonth)
|
|
68
78
|
- [getImageInfo](modules.md#getimageinfo)
|
|
69
79
|
- [getLocal](modules.md#getlocal)
|
|
70
80
|
- [getMonthBounds](modules.md#getmonthbounds)
|
|
@@ -74,6 +84,7 @@
|
|
|
74
84
|
- [getRangeDate](modules.md#getrangedate)
|
|
75
85
|
- [getScrollTop](modules.md#getscrolltop)
|
|
76
86
|
- [getVideoInfo](modules.md#getvideoinfo)
|
|
87
|
+
- [getWeekBounds](modules.md#getweekbounds)
|
|
77
88
|
- [getWeekday](modules.md#getweekday)
|
|
78
89
|
- [inBrowser](modules.md#inbrowser)
|
|
79
90
|
- [insertLink](modules.md#insertlink)
|
|
@@ -96,6 +107,7 @@
|
|
|
96
107
|
- [isIdCard](modules.md#isidcard)
|
|
97
108
|
- [isJSONString](modules.md#isjsonstring)
|
|
98
109
|
- [isLan](modules.md#islan)
|
|
110
|
+
- [isLeapYear](modules.md#isleapyear)
|
|
99
111
|
- [isLicenseCode](modules.md#islicensecode)
|
|
100
112
|
- [isMobile](modules.md#ismobile)
|
|
101
113
|
- [isNativeFunction](modules.md#isnativefunction)
|
|
@@ -115,6 +127,7 @@
|
|
|
115
127
|
- [isWeixin](modules.md#isweixin)
|
|
116
128
|
- [isWindow](modules.md#iswindow)
|
|
117
129
|
- [kebabCase](modules.md#kebabcase)
|
|
130
|
+
- [lfToBr](modules.md#lftobr)
|
|
118
131
|
- [listGenerator](modules.md#listgenerator)
|
|
119
132
|
- [makePhoneCall](modules.md#makephonecall)
|
|
120
133
|
- [mousewheel](modules.md#mousewheel)
|
|
@@ -152,6 +165,30 @@
|
|
|
152
165
|
- [withCache](modules.md#withcache)
|
|
153
166
|
- [withPreventConsecutiveClicks](modules.md#withpreventconsecutiveclicks)
|
|
154
167
|
|
|
168
|
+
## Type Aliases
|
|
169
|
+
|
|
170
|
+
### PollerTask
|
|
171
|
+
|
|
172
|
+
Ƭ **PollerTask**: (`poller`: [`Poller`](classes/Poller.md)) => `void` \| `Promise`<`void`\>
|
|
173
|
+
|
|
174
|
+
#### Type declaration
|
|
175
|
+
|
|
176
|
+
▸ (`poller`): `void` \| `Promise`<`void`\>
|
|
177
|
+
|
|
178
|
+
##### Parameters
|
|
179
|
+
|
|
180
|
+
| Name | Type |
|
|
181
|
+
| :------ | :------ |
|
|
182
|
+
| `poller` | [`Poller`](classes/Poller.md) |
|
|
183
|
+
|
|
184
|
+
##### Returns
|
|
185
|
+
|
|
186
|
+
`void` \| `Promise`<`void`\>
|
|
187
|
+
|
|
188
|
+
#### Defined in
|
|
189
|
+
|
|
190
|
+
[poller.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/poller.ts#L7)
|
|
191
|
+
|
|
155
192
|
## Variables
|
|
156
193
|
|
|
157
194
|
### eventBus
|
|
@@ -169,7 +206,7 @@
|
|
|
169
206
|
|
|
170
207
|
#### Defined in
|
|
171
208
|
|
|
172
|
-
[eventBus.ts:38](https://github.com/daysnap/utils/blob/
|
|
209
|
+
[eventBus.ts:38](https://github.com/daysnap/utils/blob/0563f66/src/eventBus.ts#L38)
|
|
173
210
|
|
|
174
211
|
___
|
|
175
212
|
|
|
@@ -179,7 +216,7 @@ ___
|
|
|
179
216
|
|
|
180
217
|
#### Defined in
|
|
181
218
|
|
|
182
|
-
[trap.ts:15](https://github.com/daysnap/utils/blob/
|
|
219
|
+
[trap.ts:15](https://github.com/daysnap/utils/blob/0563f66/src/trap.ts#L15)
|
|
183
220
|
|
|
184
221
|
## Functions
|
|
185
222
|
|
|
@@ -217,7 +254,7 @@ res = { '1': '男', '2': '女' }
|
|
|
217
254
|
|
|
218
255
|
#### Defined in
|
|
219
256
|
|
|
220
|
-
[ato.ts:12](https://github.com/daysnap/utils/blob/
|
|
257
|
+
[ato.ts:12](https://github.com/daysnap/utils/blob/0563f66/src/ato.ts#L12)
|
|
221
258
|
|
|
222
259
|
▸ **ato**<`T`, `K`\>(`options`, `labelKey`, `valueKey`): `Record`<`T`[`K`], `any`\>
|
|
223
260
|
|
|
@@ -242,7 +279,7 @@ res = { '1': '男', '2': '女' }
|
|
|
242
279
|
|
|
243
280
|
#### Defined in
|
|
244
281
|
|
|
245
|
-
[ato.ts:16](https://github.com/daysnap/utils/blob/
|
|
282
|
+
[ato.ts:16](https://github.com/daysnap/utils/blob/0563f66/src/ato.ts#L16)
|
|
246
283
|
|
|
247
284
|
___
|
|
248
285
|
|
|
@@ -262,7 +299,7 @@ ___
|
|
|
262
299
|
|
|
263
300
|
#### Defined in
|
|
264
301
|
|
|
265
|
-
[decode.ts:41](https://github.com/daysnap/utils/blob/
|
|
302
|
+
[decode.ts:41](https://github.com/daysnap/utils/blob/0563f66/src/decode.ts#L41)
|
|
266
303
|
|
|
267
304
|
___
|
|
268
305
|
|
|
@@ -285,13 +322,13 @@ base64 转 blob
|
|
|
285
322
|
|
|
286
323
|
#### Defined in
|
|
287
324
|
|
|
288
|
-
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/
|
|
325
|
+
[base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/base64ToBlob.ts#L6)
|
|
289
326
|
|
|
290
327
|
___
|
|
291
328
|
|
|
292
329
|
### blobToBase64
|
|
293
330
|
|
|
294
|
-
▸ **blobToBase64**(`blob
|
|
331
|
+
▸ **blobToBase64**(`blob`): `Promise`<`string` \| `ArrayBuffer`\>
|
|
295
332
|
|
|
296
333
|
blob 转 base64
|
|
297
334
|
|
|
@@ -300,7 +337,6 @@ blob 转 base64
|
|
|
300
337
|
| Name | Type |
|
|
301
338
|
| :------ | :------ |
|
|
302
339
|
| `blob` | `Blob` |
|
|
303
|
-
| `contentType?` | `string` |
|
|
304
340
|
|
|
305
341
|
#### Returns
|
|
306
342
|
|
|
@@ -308,7 +344,7 @@ blob 转 base64
|
|
|
308
344
|
|
|
309
345
|
#### Defined in
|
|
310
346
|
|
|
311
|
-
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/
|
|
347
|
+
[blobToBase64.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/blobToBase64.ts#L4)
|
|
312
348
|
|
|
313
349
|
___
|
|
314
350
|
|
|
@@ -328,7 +364,7 @@ ___
|
|
|
328
364
|
|
|
329
365
|
#### Defined in
|
|
330
366
|
|
|
331
|
-
[decode.ts:8](https://github.com/daysnap/utils/blob/
|
|
367
|
+
[decode.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/decode.ts#L8)
|
|
332
368
|
|
|
333
369
|
___
|
|
334
370
|
|
|
@@ -369,7 +405,7 @@ ___
|
|
|
369
405
|
|
|
370
406
|
#### Defined in
|
|
371
407
|
|
|
372
|
-
[cached.ts:5](https://github.com/daysnap/utils/blob/
|
|
408
|
+
[cached.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/cached.ts#L5)
|
|
373
409
|
|
|
374
410
|
___
|
|
375
411
|
|
|
@@ -392,7 +428,7 @@ camelCase('hello-world') => helloWorld
|
|
|
392
428
|
|
|
393
429
|
#### Defined in
|
|
394
430
|
|
|
395
|
-
[camelCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
431
|
+
[camelCase.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/camelCase.ts#L5)
|
|
396
432
|
|
|
397
433
|
___
|
|
398
434
|
|
|
@@ -416,7 +452,7 @@ canvas 转 blob 文件
|
|
|
416
452
|
|
|
417
453
|
#### Defined in
|
|
418
454
|
|
|
419
|
-
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/
|
|
455
|
+
[canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/canvasToBlob.ts#L4)
|
|
420
456
|
|
|
421
457
|
___
|
|
422
458
|
|
|
@@ -439,7 +475,7 @@ capitalize('hello world') => Hello world
|
|
|
439
475
|
|
|
440
476
|
#### Defined in
|
|
441
477
|
|
|
442
|
-
[capitalize.ts:5](https://github.com/daysnap/utils/blob/
|
|
478
|
+
[capitalize.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/capitalize.ts#L5)
|
|
443
479
|
|
|
444
480
|
___
|
|
445
481
|
|
|
@@ -464,7 +500,7 @@ ___
|
|
|
464
500
|
|
|
465
501
|
#### Defined in
|
|
466
502
|
|
|
467
|
-
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/
|
|
503
|
+
[chooseMedia.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/chooseMedia.ts#L5)
|
|
468
504
|
|
|
469
505
|
___
|
|
470
506
|
|
|
@@ -488,7 +524,7 @@ ___
|
|
|
488
524
|
|
|
489
525
|
#### Defined in
|
|
490
526
|
|
|
491
|
-
[clamp.ts:7](https://github.com/daysnap/utils/blob/
|
|
527
|
+
[clamp.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/clamp.ts#L7)
|
|
492
528
|
|
|
493
529
|
___
|
|
494
530
|
|
|
@@ -516,7 +552,7 @@ ___
|
|
|
516
552
|
|
|
517
553
|
#### Defined in
|
|
518
554
|
|
|
519
|
-
[clone.ts:8](https://github.com/daysnap/utils/blob/
|
|
555
|
+
[clone.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/clone.ts#L8)
|
|
520
556
|
|
|
521
557
|
___
|
|
522
558
|
|
|
@@ -544,7 +580,7 @@ ___
|
|
|
544
580
|
|
|
545
581
|
#### Defined in
|
|
546
582
|
|
|
547
|
-
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/
|
|
583
|
+
[cloneSimple.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/cloneSimple.ts#L7)
|
|
548
584
|
|
|
549
585
|
___
|
|
550
586
|
|
|
@@ -566,7 +602,7 @@ ___
|
|
|
566
602
|
|
|
567
603
|
#### Defined in
|
|
568
604
|
|
|
569
|
-
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/
|
|
605
|
+
[createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/createHexColorByHash.ts#L4)
|
|
570
606
|
|
|
571
607
|
___
|
|
572
608
|
|
|
@@ -592,7 +628,7 @@ ___
|
|
|
592
628
|
|
|
593
629
|
#### Defined in
|
|
594
630
|
|
|
595
|
-
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/
|
|
631
|
+
[compareVersion.ts:9](https://github.com/daysnap/utils/blob/0563f66/src/compareVersion.ts#L9)
|
|
596
632
|
|
|
597
633
|
___
|
|
598
634
|
|
|
@@ -615,7 +651,29 @@ ___
|
|
|
615
651
|
|
|
616
652
|
#### Defined in
|
|
617
653
|
|
|
618
|
-
[compressImage.ts:4](https://github.com/daysnap/utils/blob/
|
|
654
|
+
[compressImage.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/compressImage.ts#L4)
|
|
655
|
+
|
|
656
|
+
___
|
|
657
|
+
|
|
658
|
+
### crToBr
|
|
659
|
+
|
|
660
|
+
▸ **crToBr**(`v`): `string`
|
|
661
|
+
|
|
662
|
+
\r to <br/>
|
|
663
|
+
|
|
664
|
+
#### Parameters
|
|
665
|
+
|
|
666
|
+
| Name | Type |
|
|
667
|
+
| :------ | :------ |
|
|
668
|
+
| `v` | `string` |
|
|
669
|
+
|
|
670
|
+
#### Returns
|
|
671
|
+
|
|
672
|
+
`string`
|
|
673
|
+
|
|
674
|
+
#### Defined in
|
|
675
|
+
|
|
676
|
+
[crToBr.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/crToBr.ts#L4)
|
|
619
677
|
|
|
620
678
|
___
|
|
621
679
|
|
|
@@ -643,7 +701,7 @@ readonly [(`value`: `T`) => `T`, () => `T`]
|
|
|
643
701
|
|
|
644
702
|
#### Defined in
|
|
645
703
|
|
|
646
|
-
[createFactory.ts:4](https://github.com/daysnap/utils/blob/
|
|
704
|
+
[createFactory.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/createFactory.ts#L4)
|
|
647
705
|
|
|
648
706
|
___
|
|
649
707
|
|
|
@@ -681,7 +739,7 @@ ___
|
|
|
681
739
|
|
|
682
740
|
#### Defined in
|
|
683
741
|
|
|
684
|
-
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/
|
|
742
|
+
[createLinearFunction.ts:9](https://github.com/daysnap/utils/blob/0563f66/src/createLinearFunction.ts#L9)
|
|
685
743
|
|
|
686
744
|
___
|
|
687
745
|
|
|
@@ -713,7 +771,7 @@ ___
|
|
|
713
771
|
|
|
714
772
|
#### Defined in
|
|
715
773
|
|
|
716
|
-
[trap.ts:49](https://github.com/daysnap/utils/blob/
|
|
774
|
+
[trap.ts:49](https://github.com/daysnap/utils/blob/0563f66/src/trap.ts#L49)
|
|
717
775
|
|
|
718
776
|
___
|
|
719
777
|
|
|
@@ -776,7 +834,29 @@ fn() 执行的时候就会执行showLoading
|
|
|
776
834
|
|
|
777
835
|
#### Defined in
|
|
778
836
|
|
|
779
|
-
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/
|
|
837
|
+
[createWithLoading.ts:11](https://github.com/daysnap/utils/blob/0563f66/src/createWithLoading.ts#L11)
|
|
838
|
+
|
|
839
|
+
___
|
|
840
|
+
|
|
841
|
+
### crlfToBr
|
|
842
|
+
|
|
843
|
+
▸ **crlfToBr**(`v`): `string`
|
|
844
|
+
|
|
845
|
+
\r \n to <br/>
|
|
846
|
+
|
|
847
|
+
#### Parameters
|
|
848
|
+
|
|
849
|
+
| Name | Type |
|
|
850
|
+
| :------ | :------ |
|
|
851
|
+
| `v` | `string` |
|
|
852
|
+
|
|
853
|
+
#### Returns
|
|
854
|
+
|
|
855
|
+
`string`
|
|
856
|
+
|
|
857
|
+
#### Defined in
|
|
858
|
+
|
|
859
|
+
[crlfToBr.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/crlfToBr.ts#L4)
|
|
780
860
|
|
|
781
861
|
___
|
|
782
862
|
|
|
@@ -819,7 +899,7 @@ ___
|
|
|
819
899
|
|
|
820
900
|
#### Defined in
|
|
821
901
|
|
|
822
|
-
[debounce.ts:5](https://github.com/daysnap/utils/blob/
|
|
902
|
+
[debounce.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/debounce.ts#L5)
|
|
823
903
|
|
|
824
904
|
___
|
|
825
905
|
|
|
@@ -843,7 +923,7 @@ ___
|
|
|
843
923
|
|
|
844
924
|
#### Defined in
|
|
845
925
|
|
|
846
|
-
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/
|
|
926
|
+
[downloadFile.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/downloadFile.ts#L4)
|
|
847
927
|
|
|
848
928
|
___
|
|
849
929
|
|
|
@@ -872,7 +952,7 @@ ___
|
|
|
872
952
|
|
|
873
953
|
#### Defined in
|
|
874
954
|
|
|
875
|
-
[each.ts:4](https://github.com/daysnap/utils/blob/
|
|
955
|
+
[each.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/each.ts#L4)
|
|
876
956
|
|
|
877
957
|
▸ **each**<`T`\>(`data`, `callback`): `void`
|
|
878
958
|
|
|
@@ -895,7 +975,7 @@ ___
|
|
|
895
975
|
|
|
896
976
|
#### Defined in
|
|
897
977
|
|
|
898
|
-
[each.ts:8](https://github.com/daysnap/utils/blob/
|
|
978
|
+
[each.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/each.ts#L8)
|
|
899
979
|
|
|
900
980
|
___
|
|
901
981
|
|
|
@@ -913,7 +993,7 @@ ___
|
|
|
913
993
|
|
|
914
994
|
#### Defined in
|
|
915
995
|
|
|
916
|
-
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
996
|
+
[exitFullscreen.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/exitFullscreen.ts#L6)
|
|
917
997
|
|
|
918
998
|
___
|
|
919
999
|
|
|
@@ -942,7 +1022,7 @@ ___
|
|
|
942
1022
|
|
|
943
1023
|
#### Defined in
|
|
944
1024
|
|
|
945
|
-
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/
|
|
1025
|
+
[storage/factory.ts:11](https://github.com/daysnap/utils/blob/0563f66/src/storage/factory.ts#L11)
|
|
946
1026
|
|
|
947
1027
|
___
|
|
948
1028
|
|
|
@@ -964,7 +1044,7 @@ ___
|
|
|
964
1044
|
|
|
965
1045
|
#### Defined in
|
|
966
1046
|
|
|
967
|
-
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1047
|
+
[filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/filterBankCardNo.ts#L4)
|
|
968
1048
|
|
|
969
1049
|
___
|
|
970
1050
|
|
|
@@ -974,6 +1054,14 @@ ___
|
|
|
974
1054
|
|
|
975
1055
|
替换字符串里面的回车换行符
|
|
976
1056
|
|
|
1057
|
+
**`Deprecated`**
|
|
1058
|
+
|
|
1059
|
+
请使用
|
|
1060
|
+
|
|
1061
|
+
**`See`**
|
|
1062
|
+
|
|
1063
|
+
[crlfToBr](modules.md#crlftobr).
|
|
1064
|
+
|
|
977
1065
|
#### Parameters
|
|
978
1066
|
|
|
979
1067
|
| Name | Type |
|
|
@@ -986,7 +1074,7 @@ ___
|
|
|
986
1074
|
|
|
987
1075
|
#### Defined in
|
|
988
1076
|
|
|
989
|
-
[
|
|
1077
|
+
[crlfToBr.ts:12](https://github.com/daysnap/utils/blob/0563f66/src/crlfToBr.ts#L12)
|
|
990
1078
|
|
|
991
1079
|
___
|
|
992
1080
|
|
|
@@ -1008,7 +1096,7 @@ ___
|
|
|
1008
1096
|
|
|
1009
1097
|
#### Defined in
|
|
1010
1098
|
|
|
1011
|
-
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/
|
|
1099
|
+
[filterEmoji.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/filterEmoji.ts#L4)
|
|
1012
1100
|
|
|
1013
1101
|
___
|
|
1014
1102
|
|
|
@@ -1031,7 +1119,7 @@ ___
|
|
|
1031
1119
|
|
|
1032
1120
|
#### Defined in
|
|
1033
1121
|
|
|
1034
|
-
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/
|
|
1122
|
+
[filterEmptyValue.ts:12](https://github.com/daysnap/utils/blob/0563f66/src/filterEmptyValue.ts#L12)
|
|
1035
1123
|
|
|
1036
1124
|
___
|
|
1037
1125
|
|
|
@@ -1054,7 +1142,7 @@ ___
|
|
|
1054
1142
|
|
|
1055
1143
|
#### Defined in
|
|
1056
1144
|
|
|
1057
|
-
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/
|
|
1145
|
+
[filterIdCard.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/filterIdCard.ts#L5)
|
|
1058
1146
|
|
|
1059
1147
|
___
|
|
1060
1148
|
|
|
@@ -1076,7 +1164,7 @@ ___
|
|
|
1076
1164
|
|
|
1077
1165
|
#### Defined in
|
|
1078
1166
|
|
|
1079
|
-
[filterName.ts:4](https://github.com/daysnap/utils/blob/
|
|
1167
|
+
[filterName.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/filterName.ts#L4)
|
|
1080
1168
|
|
|
1081
1169
|
___
|
|
1082
1170
|
|
|
@@ -1101,7 +1189,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
|
|
|
1101
1189
|
|
|
1102
1190
|
#### Defined in
|
|
1103
1191
|
|
|
1104
|
-
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/
|
|
1192
|
+
[filterPhone.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/filterPhone.ts#L6)
|
|
1105
1193
|
|
|
1106
1194
|
___
|
|
1107
1195
|
|
|
@@ -1128,7 +1216,7 @@ str = '131****8888'
|
|
|
1128
1216
|
|
|
1129
1217
|
#### Defined in
|
|
1130
1218
|
|
|
1131
|
-
[filterString.ts:6](https://github.com/daysnap/utils/blob/
|
|
1219
|
+
[filterString.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/filterString.ts#L6)
|
|
1132
1220
|
|
|
1133
1221
|
___
|
|
1134
1222
|
|
|
@@ -1151,7 +1239,7 @@ ___
|
|
|
1151
1239
|
|
|
1152
1240
|
#### Defined in
|
|
1153
1241
|
|
|
1154
|
-
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/
|
|
1242
|
+
[formatAmount.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/formatAmount.ts#L4)
|
|
1155
1243
|
|
|
1156
1244
|
___
|
|
1157
1245
|
|
|
@@ -1175,7 +1263,7 @@ ___
|
|
|
1175
1263
|
|
|
1176
1264
|
#### Defined in
|
|
1177
1265
|
|
|
1178
|
-
[formatDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1266
|
+
[formatDate.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/formatDate.ts#L7)
|
|
1179
1267
|
|
|
1180
1268
|
___
|
|
1181
1269
|
|
|
@@ -1206,7 +1294,7 @@ fix iOS 日期时间格式如果是 - 就会报错的问题
|
|
|
1206
1294
|
|
|
1207
1295
|
#### Defined in
|
|
1208
1296
|
|
|
1209
|
-
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/
|
|
1297
|
+
[formatDateStr.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/formatDateStr.ts#L6)
|
|
1210
1298
|
|
|
1211
1299
|
___
|
|
1212
1300
|
|
|
@@ -1226,7 +1314,7 @@ ___
|
|
|
1226
1314
|
|
|
1227
1315
|
#### Defined in
|
|
1228
1316
|
|
|
1229
|
-
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/
|
|
1317
|
+
[formartDateToZN.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/formartDateToZN.ts#L4)
|
|
1230
1318
|
|
|
1231
1319
|
___
|
|
1232
1320
|
|
|
@@ -1249,7 +1337,30 @@ ___
|
|
|
1249
1337
|
|
|
1250
1338
|
#### Defined in
|
|
1251
1339
|
|
|
1252
|
-
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/
|
|
1340
|
+
[formatFileSize.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/formatFileSize.ts#L4)
|
|
1341
|
+
|
|
1342
|
+
___
|
|
1343
|
+
|
|
1344
|
+
### formatGapDate
|
|
1345
|
+
|
|
1346
|
+
▸ **formatGapDate**(`val`, `gap?`): `string`
|
|
1347
|
+
|
|
1348
|
+
yyyyMMdd -> yyyy-MM-dd
|
|
1349
|
+
|
|
1350
|
+
#### Parameters
|
|
1351
|
+
|
|
1352
|
+
| Name | Type | Default value |
|
|
1353
|
+
| :------ | :------ | :------ |
|
|
1354
|
+
| `val` | `string` \| `number` | `undefined` |
|
|
1355
|
+
| `gap` | `string` | `'-'` |
|
|
1356
|
+
|
|
1357
|
+
#### Returns
|
|
1358
|
+
|
|
1359
|
+
`string`
|
|
1360
|
+
|
|
1361
|
+
#### Defined in
|
|
1362
|
+
|
|
1363
|
+
[formatGapDate.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/formatGapDate.ts#L4)
|
|
1253
1364
|
|
|
1254
1365
|
___
|
|
1255
1366
|
|
|
@@ -1274,7 +1385,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
|
|
|
1274
1385
|
|
|
1275
1386
|
#### Defined in
|
|
1276
1387
|
|
|
1277
|
-
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/
|
|
1388
|
+
[formatMessage.ts:11](https://github.com/daysnap/utils/blob/0563f66/src/formatMessage.ts#L11)
|
|
1278
1389
|
|
|
1279
1390
|
___
|
|
1280
1391
|
|
|
@@ -1306,7 +1417,7 @@ rest = { xxx: 1 }
|
|
|
1306
1417
|
|
|
1307
1418
|
#### Defined in
|
|
1308
1419
|
|
|
1309
|
-
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/
|
|
1420
|
+
[formatPathParams.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/formatPathParams.ts#L8)
|
|
1310
1421
|
|
|
1311
1422
|
___
|
|
1312
1423
|
|
|
@@ -1328,7 +1439,7 @@ ___
|
|
|
1328
1439
|
|
|
1329
1440
|
#### Defined in
|
|
1330
1441
|
|
|
1331
|
-
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/
|
|
1442
|
+
[getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/getBlobByUrl.ts#L4)
|
|
1332
1443
|
|
|
1333
1444
|
___
|
|
1334
1445
|
|
|
@@ -1351,7 +1462,7 @@ ___
|
|
|
1351
1462
|
|
|
1352
1463
|
#### Defined in
|
|
1353
1464
|
|
|
1354
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1465
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/0563f66/src/storage/index.ts#L10)
|
|
1355
1466
|
|
|
1356
1467
|
___
|
|
1357
1468
|
|
|
@@ -1359,7 +1470,7 @@ ___
|
|
|
1359
1470
|
|
|
1360
1471
|
▸ **getDateBoundsByMonths**(`monthsCount`, `date`): [`Date`, `Date`]
|
|
1361
1472
|
|
|
1362
|
-
|
|
1473
|
+
获取月份开始时间、结束时间
|
|
1363
1474
|
|
|
1364
1475
|
#### Parameters
|
|
1365
1476
|
|
|
@@ -1374,7 +1485,7 @@ ___
|
|
|
1374
1485
|
|
|
1375
1486
|
#### Defined in
|
|
1376
1487
|
|
|
1377
|
-
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/
|
|
1488
|
+
[getDateBoundsByMonths.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/getDateBoundsByMonths.ts#L8)
|
|
1378
1489
|
|
|
1379
1490
|
▸ **getDateBoundsByMonths**(`monthsCount`, `date`, `fmt`): [`string`, `string`]
|
|
1380
1491
|
|
|
@@ -1392,7 +1503,7 @@ ___
|
|
|
1392
1503
|
|
|
1393
1504
|
#### Defined in
|
|
1394
1505
|
|
|
1395
|
-
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/
|
|
1506
|
+
[getDateBoundsByMonths.ts:12](https://github.com/daysnap/utils/blob/0563f66/src/getDateBoundsByMonths.ts#L12)
|
|
1396
1507
|
|
|
1397
1508
|
___
|
|
1398
1509
|
|
|
@@ -1414,7 +1525,30 @@ ___
|
|
|
1414
1525
|
|
|
1415
1526
|
#### Defined in
|
|
1416
1527
|
|
|
1417
|
-
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/
|
|
1528
|
+
[getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/getDayMillisecond.ts#L4)
|
|
1529
|
+
|
|
1530
|
+
___
|
|
1531
|
+
|
|
1532
|
+
### getDaysOfMonth
|
|
1533
|
+
|
|
1534
|
+
▸ **getDaysOfMonth**(`year`, `month`): `number`
|
|
1535
|
+
|
|
1536
|
+
获取一个月当中的天数
|
|
1537
|
+
|
|
1538
|
+
#### Parameters
|
|
1539
|
+
|
|
1540
|
+
| Name | Type |
|
|
1541
|
+
| :------ | :------ |
|
|
1542
|
+
| `year` | `number` |
|
|
1543
|
+
| `month` | `number` |
|
|
1544
|
+
|
|
1545
|
+
#### Returns
|
|
1546
|
+
|
|
1547
|
+
`number`
|
|
1548
|
+
|
|
1549
|
+
#### Defined in
|
|
1550
|
+
|
|
1551
|
+
[getDaysOfMonth.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/getDaysOfMonth.ts#L4)
|
|
1418
1552
|
|
|
1419
1553
|
___
|
|
1420
1554
|
|
|
@@ -1437,7 +1571,7 @@ ___
|
|
|
1437
1571
|
|
|
1438
1572
|
#### Defined in
|
|
1439
1573
|
|
|
1440
|
-
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1574
|
+
[getImageInfo.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/getImageInfo.ts#L4)
|
|
1441
1575
|
|
|
1442
1576
|
___
|
|
1443
1577
|
|
|
@@ -1460,7 +1594,7 @@ ___
|
|
|
1460
1594
|
|
|
1461
1595
|
#### Defined in
|
|
1462
1596
|
|
|
1463
|
-
[storage/index.ts:10](https://github.com/daysnap/utils/blob/
|
|
1597
|
+
[storage/index.ts:10](https://github.com/daysnap/utils/blob/0563f66/src/storage/index.ts#L10)
|
|
1464
1598
|
|
|
1465
1599
|
___
|
|
1466
1600
|
|
|
@@ -1468,7 +1602,7 @@ ___
|
|
|
1468
1602
|
|
|
1469
1603
|
▸ **getMonthBounds**(`value`): [`Date`, `Date`]
|
|
1470
1604
|
|
|
1471
|
-
|
|
1605
|
+
获取月份的开始时间和结束时间
|
|
1472
1606
|
|
|
1473
1607
|
#### Parameters
|
|
1474
1608
|
|
|
@@ -1482,7 +1616,7 @@ ___
|
|
|
1482
1616
|
|
|
1483
1617
|
#### Defined in
|
|
1484
1618
|
|
|
1485
|
-
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/
|
|
1619
|
+
[getMonthBounds.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/getMonthBounds.ts#L7)
|
|
1486
1620
|
|
|
1487
1621
|
▸ **getMonthBounds**(`value`, `fmt`): [`string`, `string`]
|
|
1488
1622
|
|
|
@@ -1499,7 +1633,7 @@ ___
|
|
|
1499
1633
|
|
|
1500
1634
|
#### Defined in
|
|
1501
1635
|
|
|
1502
|
-
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/
|
|
1636
|
+
[getMonthBounds.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/getMonthBounds.ts#L8)
|
|
1503
1637
|
|
|
1504
1638
|
___
|
|
1505
1639
|
|
|
@@ -1522,7 +1656,7 @@ ___
|
|
|
1522
1656
|
|
|
1523
1657
|
#### Defined in
|
|
1524
1658
|
|
|
1525
|
-
[getRandom.ts:7](https://github.com/daysnap/utils/blob/
|
|
1659
|
+
[getRandom.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/getRandom.ts#L7)
|
|
1526
1660
|
|
|
1527
1661
|
___
|
|
1528
1662
|
|
|
@@ -1538,7 +1672,7 @@ ___
|
|
|
1538
1672
|
|
|
1539
1673
|
#### Defined in
|
|
1540
1674
|
|
|
1541
|
-
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/
|
|
1675
|
+
[getRandomColor.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/getRandomColor.ts#L4)
|
|
1542
1676
|
|
|
1543
1677
|
___
|
|
1544
1678
|
|
|
@@ -1560,7 +1694,7 @@ ___
|
|
|
1560
1694
|
|
|
1561
1695
|
#### Defined in
|
|
1562
1696
|
|
|
1563
|
-
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/
|
|
1697
|
+
[getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/getRandomNumber.ts#L7)
|
|
1564
1698
|
|
|
1565
1699
|
___
|
|
1566
1700
|
|
|
@@ -1583,7 +1717,7 @@ ___
|
|
|
1583
1717
|
|
|
1584
1718
|
#### Defined in
|
|
1585
1719
|
|
|
1586
|
-
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/
|
|
1720
|
+
[getRangeDate.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/getRangeDate.ts#L7)
|
|
1587
1721
|
|
|
1588
1722
|
▸ **getRangeDate**(`sv`, `ev`, `fmt`): `string`[]
|
|
1589
1723
|
|
|
@@ -1601,7 +1735,7 @@ ___
|
|
|
1601
1735
|
|
|
1602
1736
|
#### Defined in
|
|
1603
1737
|
|
|
1604
|
-
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/
|
|
1738
|
+
[getRangeDate.ts:11](https://github.com/daysnap/utils/blob/0563f66/src/getRangeDate.ts#L11)
|
|
1605
1739
|
|
|
1606
1740
|
___
|
|
1607
1741
|
|
|
@@ -1617,7 +1751,7 @@ ___
|
|
|
1617
1751
|
|
|
1618
1752
|
#### Defined in
|
|
1619
1753
|
|
|
1620
|
-
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
1754
|
+
[getScrollTop.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/getScrollTop.ts#L4)
|
|
1621
1755
|
|
|
1622
1756
|
___
|
|
1623
1757
|
|
|
@@ -1639,7 +1773,48 @@ ___
|
|
|
1639
1773
|
|
|
1640
1774
|
#### Defined in
|
|
1641
1775
|
|
|
1642
|
-
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/
|
|
1776
|
+
[getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/getVideoInfo.ts#L4)
|
|
1777
|
+
|
|
1778
|
+
___
|
|
1779
|
+
|
|
1780
|
+
### getWeekBounds
|
|
1781
|
+
|
|
1782
|
+
▸ **getWeekBounds**(`value`, `sundayIsFirstDay`): [`Date`, `Date`]
|
|
1783
|
+
|
|
1784
|
+
获取一周的开始时间和结束时间
|
|
1785
|
+
|
|
1786
|
+
#### Parameters
|
|
1787
|
+
|
|
1788
|
+
| Name | Type |
|
|
1789
|
+
| :------ | :------ |
|
|
1790
|
+
| `value` | `string` \| `number` \| `Date` |
|
|
1791
|
+
| `sundayIsFirstDay` | `boolean` |
|
|
1792
|
+
|
|
1793
|
+
#### Returns
|
|
1794
|
+
|
|
1795
|
+
[`Date`, `Date`]
|
|
1796
|
+
|
|
1797
|
+
#### Defined in
|
|
1798
|
+
|
|
1799
|
+
[getWeekBounds.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/getWeekBounds.ts#L7)
|
|
1800
|
+
|
|
1801
|
+
▸ **getWeekBounds**(`value`, `sundayIsFirstDay`, `fmt`): [`string`, `string`]
|
|
1802
|
+
|
|
1803
|
+
#### Parameters
|
|
1804
|
+
|
|
1805
|
+
| Name | Type |
|
|
1806
|
+
| :------ | :------ |
|
|
1807
|
+
| `value` | `string` \| `number` \| `Date` |
|
|
1808
|
+
| `sundayIsFirstDay` | `boolean` |
|
|
1809
|
+
| `fmt` | `string` |
|
|
1810
|
+
|
|
1811
|
+
#### Returns
|
|
1812
|
+
|
|
1813
|
+
[`string`, `string`]
|
|
1814
|
+
|
|
1815
|
+
#### Defined in
|
|
1816
|
+
|
|
1817
|
+
[getWeekBounds.ts:11](https://github.com/daysnap/utils/blob/0563f66/src/getWeekBounds.ts#L11)
|
|
1643
1818
|
|
|
1644
1819
|
___
|
|
1645
1820
|
|
|
@@ -1662,7 +1837,7 @@ ___
|
|
|
1662
1837
|
|
|
1663
1838
|
#### Defined in
|
|
1664
1839
|
|
|
1665
|
-
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/
|
|
1840
|
+
[getWeekday.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/getWeekday.ts#L6)
|
|
1666
1841
|
|
|
1667
1842
|
___
|
|
1668
1843
|
|
|
@@ -1678,7 +1853,7 @@ ___
|
|
|
1678
1853
|
|
|
1679
1854
|
#### Defined in
|
|
1680
1855
|
|
|
1681
|
-
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/
|
|
1856
|
+
[inBrowser.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/inBrowser.ts#L4)
|
|
1682
1857
|
|
|
1683
1858
|
___
|
|
1684
1859
|
|
|
@@ -1700,7 +1875,7 @@ ___
|
|
|
1700
1875
|
|
|
1701
1876
|
#### Defined in
|
|
1702
1877
|
|
|
1703
|
-
[insertLink.ts:4](https://github.com/daysnap/utils/blob/
|
|
1878
|
+
[insertLink.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/insertLink.ts#L4)
|
|
1704
1879
|
|
|
1705
1880
|
▸ **insertLink**(`href`, `callback`): `void`
|
|
1706
1881
|
|
|
@@ -1717,7 +1892,7 @@ ___
|
|
|
1717
1892
|
|
|
1718
1893
|
#### Defined in
|
|
1719
1894
|
|
|
1720
|
-
[insertLink.ts:5](https://github.com/daysnap/utils/blob/
|
|
1895
|
+
[insertLink.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/insertLink.ts#L5)
|
|
1721
1896
|
|
|
1722
1897
|
___
|
|
1723
1898
|
|
|
@@ -1739,7 +1914,7 @@ ___
|
|
|
1739
1914
|
|
|
1740
1915
|
#### Defined in
|
|
1741
1916
|
|
|
1742
|
-
[insertScript.ts:4](https://github.com/daysnap/utils/blob/
|
|
1917
|
+
[insertScript.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/insertScript.ts#L4)
|
|
1743
1918
|
|
|
1744
1919
|
▸ **insertScript**(`src`, `callback`): `void`
|
|
1745
1920
|
|
|
@@ -1756,7 +1931,7 @@ ___
|
|
|
1756
1931
|
|
|
1757
1932
|
#### Defined in
|
|
1758
1933
|
|
|
1759
|
-
[insertScript.ts:5](https://github.com/daysnap/utils/blob/
|
|
1934
|
+
[insertScript.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/insertScript.ts#L5)
|
|
1760
1935
|
|
|
1761
1936
|
___
|
|
1762
1937
|
|
|
@@ -1778,7 +1953,7 @@ ___
|
|
|
1778
1953
|
|
|
1779
1954
|
#### Defined in
|
|
1780
1955
|
|
|
1781
|
-
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/
|
|
1956
|
+
[insertStyle.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/insertStyle.ts#L4)
|
|
1782
1957
|
|
|
1783
1958
|
___
|
|
1784
1959
|
|
|
@@ -1807,7 +1982,7 @@ isAmount('1.123') => false
|
|
|
1807
1982
|
|
|
1808
1983
|
#### Defined in
|
|
1809
1984
|
|
|
1810
|
-
[isAmount.ts:11](https://github.com/daysnap/utils/blob/
|
|
1985
|
+
[isAmount.ts:11](https://github.com/daysnap/utils/blob/0563f66/src/isAmount.ts#L11)
|
|
1811
1986
|
|
|
1812
1987
|
___
|
|
1813
1988
|
|
|
@@ -1823,7 +1998,7 @@ ___
|
|
|
1823
1998
|
|
|
1824
1999
|
#### Defined in
|
|
1825
2000
|
|
|
1826
|
-
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/
|
|
2001
|
+
[isAndroid.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isAndroid.ts#L4)
|
|
1827
2002
|
|
|
1828
2003
|
___
|
|
1829
2004
|
|
|
@@ -1847,7 +2022,7 @@ val is any[]
|
|
|
1847
2022
|
|
|
1848
2023
|
#### Defined in
|
|
1849
2024
|
|
|
1850
|
-
[isArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2025
|
+
[isArray.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/isArray.ts#L6)
|
|
1851
2026
|
|
|
1852
2027
|
___
|
|
1853
2028
|
|
|
@@ -1869,7 +2044,7 @@ val is boolean
|
|
|
1869
2044
|
|
|
1870
2045
|
#### Defined in
|
|
1871
2046
|
|
|
1872
|
-
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/
|
|
2047
|
+
[isBoolean.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isBoolean.ts#L5)
|
|
1873
2048
|
|
|
1874
2049
|
___
|
|
1875
2050
|
|
|
@@ -1891,7 +2066,7 @@ ___
|
|
|
1891
2066
|
|
|
1892
2067
|
#### Defined in
|
|
1893
2068
|
|
|
1894
|
-
[isChinese.ts:4](https://github.com/daysnap/utils/blob/
|
|
2069
|
+
[isChinese.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isChinese.ts#L4)
|
|
1895
2070
|
|
|
1896
2071
|
___
|
|
1897
2072
|
|
|
@@ -1913,7 +2088,7 @@ val is Date
|
|
|
1913
2088
|
|
|
1914
2089
|
#### Defined in
|
|
1915
2090
|
|
|
1916
|
-
[isDate.ts:4](https://github.com/daysnap/utils/blob/
|
|
2091
|
+
[isDate.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isDate.ts#L4)
|
|
1917
2092
|
|
|
1918
2093
|
___
|
|
1919
2094
|
|
|
@@ -1935,7 +2110,7 @@ ___
|
|
|
1935
2110
|
|
|
1936
2111
|
#### Defined in
|
|
1937
2112
|
|
|
1938
|
-
[isEmail.ts:4](https://github.com/daysnap/utils/blob/
|
|
2113
|
+
[isEmail.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isEmail.ts#L4)
|
|
1939
2114
|
|
|
1940
2115
|
___
|
|
1941
2116
|
|
|
@@ -1957,7 +2132,7 @@ ___
|
|
|
1957
2132
|
|
|
1958
2133
|
#### Defined in
|
|
1959
2134
|
|
|
1960
|
-
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/
|
|
2135
|
+
[isEmpty.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/isEmpty.ts#L6)
|
|
1961
2136
|
|
|
1962
2137
|
___
|
|
1963
2138
|
|
|
@@ -1979,7 +2154,7 @@ ___
|
|
|
1979
2154
|
|
|
1980
2155
|
#### Defined in
|
|
1981
2156
|
|
|
1982
|
-
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/
|
|
2157
|
+
[isEmptyArray.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/isEmptyArray.ts#L6)
|
|
1983
2158
|
|
|
1984
2159
|
___
|
|
1985
2160
|
|
|
@@ -2001,7 +2176,7 @@ ___
|
|
|
2001
2176
|
|
|
2002
2177
|
#### Defined in
|
|
2003
2178
|
|
|
2004
|
-
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
2179
|
+
[isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isEmptyObject.ts#L5)
|
|
2005
2180
|
|
|
2006
2181
|
___
|
|
2007
2182
|
|
|
@@ -2023,7 +2198,7 @@ val is Error
|
|
|
2023
2198
|
|
|
2024
2199
|
#### Defined in
|
|
2025
2200
|
|
|
2026
|
-
[isError.ts:4](https://github.com/daysnap/utils/blob/
|
|
2201
|
+
[isError.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isError.ts#L4)
|
|
2027
2202
|
|
|
2028
2203
|
___
|
|
2029
2204
|
|
|
@@ -2045,7 +2220,7 @@ val is Function
|
|
|
2045
2220
|
|
|
2046
2221
|
#### Defined in
|
|
2047
2222
|
|
|
2048
|
-
[isFunction.ts:4](https://github.com/daysnap/utils/blob/
|
|
2223
|
+
[isFunction.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isFunction.ts#L4)
|
|
2049
2224
|
|
|
2050
2225
|
___
|
|
2051
2226
|
|
|
@@ -2063,7 +2238,7 @@ ___
|
|
|
2063
2238
|
|
|
2064
2239
|
#### Defined in
|
|
2065
2240
|
|
|
2066
|
-
[isIE.ts:6](https://github.com/daysnap/utils/blob/
|
|
2241
|
+
[isIE.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/isIE.ts#L6)
|
|
2067
2242
|
|
|
2068
2243
|
___
|
|
2069
2244
|
|
|
@@ -2079,7 +2254,7 @@ ___
|
|
|
2079
2254
|
|
|
2080
2255
|
#### Defined in
|
|
2081
2256
|
|
|
2082
|
-
[isIOS.ts:4](https://github.com/daysnap/utils/blob/
|
|
2257
|
+
[isIOS.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isIOS.ts#L4)
|
|
2083
2258
|
|
|
2084
2259
|
___
|
|
2085
2260
|
|
|
@@ -2101,7 +2276,7 @@ ___
|
|
|
2101
2276
|
|
|
2102
2277
|
#### Defined in
|
|
2103
2278
|
|
|
2104
|
-
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/
|
|
2279
|
+
[isIdCard.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isIdCard.ts#L4)
|
|
2105
2280
|
|
|
2106
2281
|
___
|
|
2107
2282
|
|
|
@@ -2123,7 +2298,7 @@ ___
|
|
|
2123
2298
|
|
|
2124
2299
|
#### Defined in
|
|
2125
2300
|
|
|
2126
|
-
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/
|
|
2301
|
+
[isJSONString.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/isJSONString.ts#L7)
|
|
2127
2302
|
|
|
2128
2303
|
___
|
|
2129
2304
|
|
|
@@ -2145,7 +2320,30 @@ ___
|
|
|
2145
2320
|
|
|
2146
2321
|
#### Defined in
|
|
2147
2322
|
|
|
2148
|
-
[isLan.ts:5](https://github.com/daysnap/utils/blob/
|
|
2323
|
+
[isLan.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isLan.ts#L5)
|
|
2324
|
+
|
|
2325
|
+
___
|
|
2326
|
+
|
|
2327
|
+
### isLeapYear
|
|
2328
|
+
|
|
2329
|
+
▸ **isLeapYear**(`year`): `boolean`
|
|
2330
|
+
|
|
2331
|
+
判断是否是闰年
|
|
2332
|
+
规则:四年一闰,百年不闰,四百年再闰
|
|
2333
|
+
|
|
2334
|
+
#### Parameters
|
|
2335
|
+
|
|
2336
|
+
| Name | Type |
|
|
2337
|
+
| :------ | :------ |
|
|
2338
|
+
| `year` | `number` |
|
|
2339
|
+
|
|
2340
|
+
#### Returns
|
|
2341
|
+
|
|
2342
|
+
`boolean`
|
|
2343
|
+
|
|
2344
|
+
#### Defined in
|
|
2345
|
+
|
|
2346
|
+
[isLeapYear.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isLeapYear.ts#L5)
|
|
2149
2347
|
|
|
2150
2348
|
___
|
|
2151
2349
|
|
|
@@ -2167,7 +2365,7 @@ ___
|
|
|
2167
2365
|
|
|
2168
2366
|
#### Defined in
|
|
2169
2367
|
|
|
2170
|
-
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/
|
|
2368
|
+
[isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isLicenseCode.ts#L5)
|
|
2171
2369
|
|
|
2172
2370
|
___
|
|
2173
2371
|
|
|
@@ -2183,7 +2381,7 @@ ___
|
|
|
2183
2381
|
|
|
2184
2382
|
#### Defined in
|
|
2185
2383
|
|
|
2186
|
-
[isMobile.ts:4](https://github.com/daysnap/utils/blob/
|
|
2384
|
+
[isMobile.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isMobile.ts#L4)
|
|
2187
2385
|
|
|
2188
2386
|
___
|
|
2189
2387
|
|
|
@@ -2206,7 +2404,7 @@ ___
|
|
|
2206
2404
|
|
|
2207
2405
|
#### Defined in
|
|
2208
2406
|
|
|
2209
|
-
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/
|
|
2407
|
+
[isNativeFunction.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/isNativeFunction.ts#L7)
|
|
2210
2408
|
|
|
2211
2409
|
___
|
|
2212
2410
|
|
|
@@ -2228,7 +2426,7 @@ val is null
|
|
|
2228
2426
|
|
|
2229
2427
|
#### Defined in
|
|
2230
2428
|
|
|
2231
|
-
[isNull.ts:4](https://github.com/daysnap/utils/blob/
|
|
2429
|
+
[isNull.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isNull.ts#L4)
|
|
2232
2430
|
|
|
2233
2431
|
___
|
|
2234
2432
|
|
|
@@ -2250,7 +2448,7 @@ val is number
|
|
|
2250
2448
|
|
|
2251
2449
|
#### Defined in
|
|
2252
2450
|
|
|
2253
|
-
[isNumber.ts:5](https://github.com/daysnap/utils/blob/
|
|
2451
|
+
[isNumber.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isNumber.ts#L5)
|
|
2254
2452
|
|
|
2255
2453
|
___
|
|
2256
2454
|
|
|
@@ -2272,7 +2470,7 @@ val is Record<string, any\>
|
|
|
2272
2470
|
|
|
2273
2471
|
#### Defined in
|
|
2274
2472
|
|
|
2275
|
-
[isObject.ts:4](https://github.com/daysnap/utils/blob/
|
|
2473
|
+
[isObject.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isObject.ts#L4)
|
|
2276
2474
|
|
|
2277
2475
|
___
|
|
2278
2476
|
|
|
@@ -2294,7 +2492,7 @@ ___
|
|
|
2294
2492
|
|
|
2295
2493
|
#### Defined in
|
|
2296
2494
|
|
|
2297
|
-
[isPhone.ts:4](https://github.com/daysnap/utils/blob/
|
|
2495
|
+
[isPhone.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isPhone.ts#L4)
|
|
2298
2496
|
|
|
2299
2497
|
___
|
|
2300
2498
|
|
|
@@ -2322,7 +2520,7 @@ val is Promise<T\>
|
|
|
2322
2520
|
|
|
2323
2521
|
#### Defined in
|
|
2324
2522
|
|
|
2325
|
-
[isPromise.ts:4](https://github.com/daysnap/utils/blob/
|
|
2523
|
+
[isPromise.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isPromise.ts#L4)
|
|
2326
2524
|
|
|
2327
2525
|
___
|
|
2328
2526
|
|
|
@@ -2344,7 +2542,7 @@ val is RegExp
|
|
|
2344
2542
|
|
|
2345
2543
|
#### Defined in
|
|
2346
2544
|
|
|
2347
|
-
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/
|
|
2545
|
+
[isRegExp.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isRegExp.ts#L4)
|
|
2348
2546
|
|
|
2349
2547
|
___
|
|
2350
2548
|
|
|
@@ -2366,7 +2564,7 @@ val is string
|
|
|
2366
2564
|
|
|
2367
2565
|
#### Defined in
|
|
2368
2566
|
|
|
2369
|
-
[isString.ts:4](https://github.com/daysnap/utils/blob/
|
|
2567
|
+
[isString.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isString.ts#L4)
|
|
2370
2568
|
|
|
2371
2569
|
___
|
|
2372
2570
|
|
|
@@ -2395,7 +2593,7 @@ val is T
|
|
|
2395
2593
|
|
|
2396
2594
|
#### Defined in
|
|
2397
2595
|
|
|
2398
|
-
[isType.ts:4](https://github.com/daysnap/utils/blob/
|
|
2596
|
+
[isType.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isType.ts#L4)
|
|
2399
2597
|
|
|
2400
2598
|
___
|
|
2401
2599
|
|
|
@@ -2417,7 +2615,7 @@ val is undefined
|
|
|
2417
2615
|
|
|
2418
2616
|
#### Defined in
|
|
2419
2617
|
|
|
2420
|
-
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/
|
|
2618
|
+
[isUndefined.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isUndefined.ts#L4)
|
|
2421
2619
|
|
|
2422
2620
|
___
|
|
2423
2621
|
|
|
@@ -2439,7 +2637,7 @@ ___
|
|
|
2439
2637
|
|
|
2440
2638
|
#### Defined in
|
|
2441
2639
|
|
|
2442
|
-
[isURL.ts:4](https://github.com/daysnap/utils/blob/
|
|
2640
|
+
[isURL.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isURL.ts#L4)
|
|
2443
2641
|
|
|
2444
2642
|
___
|
|
2445
2643
|
|
|
@@ -2461,7 +2659,7 @@ ___
|
|
|
2461
2659
|
|
|
2462
2660
|
#### Defined in
|
|
2463
2661
|
|
|
2464
|
-
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/
|
|
2662
|
+
[isValidDate.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/isValidDate.ts#L6)
|
|
2465
2663
|
|
|
2466
2664
|
___
|
|
2467
2665
|
|
|
@@ -2477,7 +2675,7 @@ ___
|
|
|
2477
2675
|
|
|
2478
2676
|
#### Defined in
|
|
2479
2677
|
|
|
2480
|
-
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/
|
|
2678
|
+
[isWeChat.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/isWeChat.ts#L4)
|
|
2481
2679
|
|
|
2482
2680
|
___
|
|
2483
2681
|
|
|
@@ -2494,7 +2692,7 @@ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
|
|
|
2494
2692
|
|
|
2495
2693
|
#### Defined in
|
|
2496
2694
|
|
|
2497
|
-
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/
|
|
2695
|
+
[isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isWeChatMiniProgram.ts#L5)
|
|
2498
2696
|
|
|
2499
2697
|
___
|
|
2500
2698
|
|
|
@@ -2518,7 +2716,7 @@ ___
|
|
|
2518
2716
|
|
|
2519
2717
|
#### Defined in
|
|
2520
2718
|
|
|
2521
|
-
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/
|
|
2719
|
+
[isWeChat.ts:12](https://github.com/daysnap/utils/blob/0563f66/src/isWeChat.ts#L12)
|
|
2522
2720
|
|
|
2523
2721
|
___
|
|
2524
2722
|
|
|
@@ -2540,7 +2738,7 @@ val is Window
|
|
|
2540
2738
|
|
|
2541
2739
|
#### Defined in
|
|
2542
2740
|
|
|
2543
|
-
[isWindow.ts:5](https://github.com/daysnap/utils/blob/
|
|
2741
|
+
[isWindow.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/isWindow.ts#L5)
|
|
2544
2742
|
|
|
2545
2743
|
___
|
|
2546
2744
|
|
|
@@ -2563,7 +2761,29 @@ kebabCase('helloWorld') => hello-world
|
|
|
2563
2761
|
|
|
2564
2762
|
#### Defined in
|
|
2565
2763
|
|
|
2566
|
-
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/
|
|
2764
|
+
[kebabCase.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/kebabCase.ts#L5)
|
|
2765
|
+
|
|
2766
|
+
___
|
|
2767
|
+
|
|
2768
|
+
### lfToBr
|
|
2769
|
+
|
|
2770
|
+
▸ **lfToBr**(`v`): `string`
|
|
2771
|
+
|
|
2772
|
+
\n to <br/>
|
|
2773
|
+
|
|
2774
|
+
#### Parameters
|
|
2775
|
+
|
|
2776
|
+
| Name | Type |
|
|
2777
|
+
| :------ | :------ |
|
|
2778
|
+
| `v` | `string` |
|
|
2779
|
+
|
|
2780
|
+
#### Returns
|
|
2781
|
+
|
|
2782
|
+
`string`
|
|
2783
|
+
|
|
2784
|
+
#### Defined in
|
|
2785
|
+
|
|
2786
|
+
[lfToBr.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/lfToBr.ts#L4)
|
|
2567
2787
|
|
|
2568
2788
|
___
|
|
2569
2789
|
|
|
@@ -2585,7 +2805,7 @@ list 生成器,快速生成数据
|
|
|
2585
2805
|
|
|
2586
2806
|
#### Defined in
|
|
2587
2807
|
|
|
2588
|
-
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/
|
|
2808
|
+
[listGenerator.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/listGenerator.ts#L5)
|
|
2589
2809
|
|
|
2590
2810
|
▸ **listGenerator**<`T`\>(`length`, `fn`): `T`[]
|
|
2591
2811
|
|
|
@@ -2608,7 +2828,7 @@ list 生成器,快速生成数据
|
|
|
2608
2828
|
|
|
2609
2829
|
#### Defined in
|
|
2610
2830
|
|
|
2611
|
-
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/
|
|
2831
|
+
[listGenerator.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/listGenerator.ts#L6)
|
|
2612
2832
|
|
|
2613
2833
|
___
|
|
2614
2834
|
|
|
@@ -2628,7 +2848,7 @@ ___
|
|
|
2628
2848
|
|
|
2629
2849
|
#### Defined in
|
|
2630
2850
|
|
|
2631
|
-
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/
|
|
2851
|
+
[makePhoneCall.ts:1](https://github.com/daysnap/utils/blob/0563f66/src/makePhoneCall.ts#L1)
|
|
2632
2852
|
|
|
2633
2853
|
___
|
|
2634
2854
|
|
|
@@ -2653,7 +2873,7 @@ ___
|
|
|
2653
2873
|
|
|
2654
2874
|
#### Defined in
|
|
2655
2875
|
|
|
2656
|
-
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/
|
|
2876
|
+
[mousewheel.ts:22](https://github.com/daysnap/utils/blob/0563f66/src/mousewheel.ts#L22)
|
|
2657
2877
|
|
|
2658
2878
|
___
|
|
2659
2879
|
|
|
@@ -2669,7 +2889,7 @@ ___
|
|
|
2669
2889
|
|
|
2670
2890
|
#### Defined in
|
|
2671
2891
|
|
|
2672
|
-
[nf.ts:4](https://github.com/daysnap/utils/blob/
|
|
2892
|
+
[nf.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/nf.ts#L4)
|
|
2673
2893
|
|
|
2674
2894
|
___
|
|
2675
2895
|
|
|
@@ -2693,7 +2913,7 @@ fix iOS 日期时间格式如果类似是 2020-12-12 12:12:12 就会报错的问
|
|
|
2693
2913
|
|
|
2694
2914
|
#### Defined in
|
|
2695
2915
|
|
|
2696
|
-
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/
|
|
2916
|
+
[normalizeDate.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/normalizeDate.ts#L8)
|
|
2697
2917
|
|
|
2698
2918
|
___
|
|
2699
2919
|
|
|
@@ -2715,7 +2935,7 @@ ___
|
|
|
2715
2935
|
|
|
2716
2936
|
#### Defined in
|
|
2717
2937
|
|
|
2718
|
-
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/
|
|
2938
|
+
[normalizePath.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/normalizePath.ts#L4)
|
|
2719
2939
|
|
|
2720
2940
|
___
|
|
2721
2941
|
|
|
@@ -2745,7 +2965,7 @@ ___
|
|
|
2745
2965
|
|
|
2746
2966
|
#### Defined in
|
|
2747
2967
|
|
|
2748
|
-
[omit.ts:4](https://github.com/daysnap/utils/blob/
|
|
2968
|
+
[omit.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/omit.ts#L4)
|
|
2749
2969
|
|
|
2750
2970
|
___
|
|
2751
2971
|
|
|
@@ -2769,7 +2989,7 @@ ___
|
|
|
2769
2989
|
|
|
2770
2990
|
#### Defined in
|
|
2771
2991
|
|
|
2772
|
-
[padding.ts:7](https://github.com/daysnap/utils/blob/
|
|
2992
|
+
[padding.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/padding.ts#L7)
|
|
2773
2993
|
|
|
2774
2994
|
___
|
|
2775
2995
|
|
|
@@ -2795,7 +3015,7 @@ ___
|
|
|
2795
3015
|
|
|
2796
3016
|
#### Defined in
|
|
2797
3017
|
|
|
2798
|
-
[parseDate.ts:5](https://github.com/daysnap/utils/blob/
|
|
3018
|
+
[parseDate.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/parseDate.ts#L5)
|
|
2799
3019
|
|
|
2800
3020
|
___
|
|
2801
3021
|
|
|
@@ -2818,7 +3038,7 @@ ___
|
|
|
2818
3038
|
|
|
2819
3039
|
#### Defined in
|
|
2820
3040
|
|
|
2821
|
-
[parseError.ts:8](https://github.com/daysnap/utils/blob/
|
|
3041
|
+
[parseError.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/parseError.ts#L8)
|
|
2822
3042
|
|
|
2823
3043
|
___
|
|
2824
3044
|
|
|
@@ -2848,7 +3068,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
|
|
|
2848
3068
|
|
|
2849
3069
|
#### Defined in
|
|
2850
3070
|
|
|
2851
|
-
[parseObject.ts:5](https://github.com/daysnap/utils/blob/
|
|
3071
|
+
[parseObject.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/parseObject.ts#L5)
|
|
2852
3072
|
|
|
2853
3073
|
___
|
|
2854
3074
|
|
|
@@ -2877,7 +3097,7 @@ ___
|
|
|
2877
3097
|
|
|
2878
3098
|
#### Defined in
|
|
2879
3099
|
|
|
2880
|
-
[parsePath.ts:6](https://github.com/daysnap/utils/blob/
|
|
3100
|
+
[parsePath.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/parsePath.ts#L6)
|
|
2881
3101
|
|
|
2882
3102
|
___
|
|
2883
3103
|
|
|
@@ -2900,7 +3120,7 @@ ___
|
|
|
2900
3120
|
|
|
2901
3121
|
#### Defined in
|
|
2902
3122
|
|
|
2903
|
-
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/
|
|
3123
|
+
[parseQuery.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/parseQuery.ts#L8)
|
|
2904
3124
|
|
|
2905
3125
|
___
|
|
2906
3126
|
|
|
@@ -2930,7 +3150,7 @@ ___
|
|
|
2930
3150
|
|
|
2931
3151
|
#### Defined in
|
|
2932
3152
|
|
|
2933
|
-
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3153
|
+
[parseQueryString.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/parseQueryString.ts#L6)
|
|
2934
3154
|
|
|
2935
3155
|
___
|
|
2936
3156
|
|
|
@@ -2953,7 +3173,7 @@ pascalCase('hello-world') => HelloWorld
|
|
|
2953
3173
|
|
|
2954
3174
|
#### Defined in
|
|
2955
3175
|
|
|
2956
|
-
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/
|
|
3176
|
+
[pascalCase.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/pascalCase.ts#L8)
|
|
2957
3177
|
|
|
2958
3178
|
___
|
|
2959
3179
|
|
|
@@ -2983,7 +3203,7 @@ ___
|
|
|
2983
3203
|
|
|
2984
3204
|
#### Defined in
|
|
2985
3205
|
|
|
2986
|
-
[pick.ts:4](https://github.com/daysnap/utils/blob/
|
|
3206
|
+
[pick.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/pick.ts#L4)
|
|
2987
3207
|
|
|
2988
3208
|
___
|
|
2989
3209
|
|
|
@@ -3006,7 +3226,7 @@ ___
|
|
|
3006
3226
|
|
|
3007
3227
|
#### Defined in
|
|
3008
3228
|
|
|
3009
|
-
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/
|
|
3229
|
+
[replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/replaceCrlf.ts#L4)
|
|
3010
3230
|
|
|
3011
3231
|
___
|
|
3012
3232
|
|
|
@@ -3030,7 +3250,7 @@ ___
|
|
|
3030
3250
|
|
|
3031
3251
|
#### Defined in
|
|
3032
3252
|
|
|
3033
|
-
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/
|
|
3253
|
+
[requestFullScreen.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/requestFullScreen.ts#L6)
|
|
3034
3254
|
|
|
3035
3255
|
___
|
|
3036
3256
|
|
|
@@ -3056,7 +3276,7 @@ reserve(0, '--') => 0
|
|
|
3056
3276
|
|
|
3057
3277
|
#### Defined in
|
|
3058
3278
|
|
|
3059
|
-
[reserve.ts:8](https://github.com/daysnap/utils/blob/
|
|
3279
|
+
[reserve.ts:8](https://github.com/daysnap/utils/blob/0563f66/src/reserve.ts#L8)
|
|
3060
3280
|
|
|
3061
3281
|
___
|
|
3062
3282
|
|
|
@@ -3080,7 +3300,7 @@ ___
|
|
|
3080
3300
|
|
|
3081
3301
|
#### Defined in
|
|
3082
3302
|
|
|
3083
|
-
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/
|
|
3303
|
+
[rgbToHex.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/rgbToHex.ts#L4)
|
|
3084
3304
|
|
|
3085
3305
|
___
|
|
3086
3306
|
|
|
@@ -3103,7 +3323,7 @@ ___
|
|
|
3103
3323
|
|
|
3104
3324
|
#### Defined in
|
|
3105
3325
|
|
|
3106
|
-
[round.ts:6](https://github.com/daysnap/utils/blob/
|
|
3326
|
+
[round.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/round.ts#L6)
|
|
3107
3327
|
|
|
3108
3328
|
___
|
|
3109
3329
|
|
|
@@ -3119,7 +3339,7 @@ ___
|
|
|
3119
3339
|
|
|
3120
3340
|
#### Defined in
|
|
3121
3341
|
|
|
3122
|
-
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3342
|
+
[scrollToTop.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/scrollToTop.ts#L4)
|
|
3123
3343
|
|
|
3124
3344
|
___
|
|
3125
3345
|
|
|
@@ -3141,7 +3361,7 @@ ___
|
|
|
3141
3361
|
|
|
3142
3362
|
#### Defined in
|
|
3143
3363
|
|
|
3144
|
-
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/
|
|
3364
|
+
[setScrollTop.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/setScrollTop.ts#L4)
|
|
3145
3365
|
|
|
3146
3366
|
___
|
|
3147
3367
|
|
|
@@ -3164,7 +3384,7 @@ ___
|
|
|
3164
3384
|
|
|
3165
3385
|
#### Defined in
|
|
3166
3386
|
|
|
3167
|
-
[sleep.ts:6](https://github.com/daysnap/utils/blob/
|
|
3387
|
+
[sleep.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/sleep.ts#L6)
|
|
3168
3388
|
|
|
3169
3389
|
___
|
|
3170
3390
|
|
|
@@ -3193,7 +3413,7 @@ ___
|
|
|
3193
3413
|
|
|
3194
3414
|
#### Defined in
|
|
3195
3415
|
|
|
3196
|
-
[splitArray.ts:4](https://github.com/daysnap/utils/blob/
|
|
3416
|
+
[splitArray.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/splitArray.ts#L4)
|
|
3197
3417
|
|
|
3198
3418
|
___
|
|
3199
3419
|
|
|
@@ -3216,7 +3436,7 @@ ___
|
|
|
3216
3436
|
|
|
3217
3437
|
#### Defined in
|
|
3218
3438
|
|
|
3219
|
-
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/
|
|
3439
|
+
[stringTrim.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/stringTrim.ts#L6)
|
|
3220
3440
|
|
|
3221
3441
|
___
|
|
3222
3442
|
|
|
@@ -3238,7 +3458,7 @@ ___
|
|
|
3238
3458
|
|
|
3239
3459
|
#### Defined in
|
|
3240
3460
|
|
|
3241
|
-
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/
|
|
3461
|
+
[stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/0563f66/src/stringifyQuery.ts#L7)
|
|
3242
3462
|
|
|
3243
3463
|
___
|
|
3244
3464
|
|
|
@@ -3262,7 +3482,7 @@ ___
|
|
|
3262
3482
|
|
|
3263
3483
|
#### Defined in
|
|
3264
3484
|
|
|
3265
|
-
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/
|
|
3485
|
+
[stringifyQueryString.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/stringifyQueryString.ts#L6)
|
|
3266
3486
|
|
|
3267
3487
|
___
|
|
3268
3488
|
|
|
@@ -3306,7 +3526,7 @@ ___
|
|
|
3306
3526
|
|
|
3307
3527
|
#### Defined in
|
|
3308
3528
|
|
|
3309
|
-
[throttle.ts:48](https://github.com/daysnap/utils/blob/
|
|
3529
|
+
[throttle.ts:48](https://github.com/daysnap/utils/blob/0563f66/src/throttle.ts#L48)
|
|
3310
3530
|
|
|
3311
3531
|
___
|
|
3312
3532
|
|
|
@@ -3349,7 +3569,7 @@ ___
|
|
|
3349
3569
|
|
|
3350
3570
|
#### Defined in
|
|
3351
3571
|
|
|
3352
|
-
[throttle.ts:5](https://github.com/daysnap/utils/blob/
|
|
3572
|
+
[throttle.ts:5](https://github.com/daysnap/utils/blob/0563f66/src/throttle.ts#L5)
|
|
3353
3573
|
|
|
3354
3574
|
___
|
|
3355
3575
|
|
|
@@ -3392,7 +3612,7 @@ ___
|
|
|
3392
3612
|
|
|
3393
3613
|
#### Defined in
|
|
3394
3614
|
|
|
3395
|
-
[throttle.ts:25](https://github.com/daysnap/utils/blob/
|
|
3615
|
+
[throttle.ts:25](https://github.com/daysnap/utils/blob/0563f66/src/throttle.ts#L25)
|
|
3396
3616
|
|
|
3397
3617
|
___
|
|
3398
3618
|
|
|
@@ -3414,7 +3634,7 @@ ___
|
|
|
3414
3634
|
|
|
3415
3635
|
#### Defined in
|
|
3416
3636
|
|
|
3417
|
-
[toCDB.ts:4](https://github.com/daysnap/utils/blob/
|
|
3637
|
+
[toCDB.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/toCDB.ts#L4)
|
|
3418
3638
|
|
|
3419
3639
|
___
|
|
3420
3640
|
|
|
@@ -3436,7 +3656,7 @@ ___
|
|
|
3436
3656
|
|
|
3437
3657
|
#### Defined in
|
|
3438
3658
|
|
|
3439
|
-
[toDBC.ts:4](https://github.com/daysnap/utils/blob/
|
|
3659
|
+
[toDBC.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/toDBC.ts#L4)
|
|
3440
3660
|
|
|
3441
3661
|
___
|
|
3442
3662
|
|
|
@@ -3460,7 +3680,7 @@ ___
|
|
|
3460
3680
|
|
|
3461
3681
|
#### Defined in
|
|
3462
3682
|
|
|
3463
|
-
[typeOf.ts:6](https://github.com/daysnap/utils/blob/
|
|
3683
|
+
[typeOf.ts:6](https://github.com/daysnap/utils/blob/0563f66/src/typeOf.ts#L6)
|
|
3464
3684
|
|
|
3465
3685
|
___
|
|
3466
3686
|
|
|
@@ -3488,7 +3708,7 @@ ___
|
|
|
3488
3708
|
|
|
3489
3709
|
#### Defined in
|
|
3490
3710
|
|
|
3491
|
-
[withCache.ts:4](https://github.com/daysnap/utils/blob/
|
|
3711
|
+
[withCache.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/withCache.ts#L4)
|
|
3492
3712
|
|
|
3493
3713
|
___
|
|
3494
3714
|
|
|
@@ -3517,4 +3737,4 @@ ___
|
|
|
3517
3737
|
|
|
3518
3738
|
#### Defined in
|
|
3519
3739
|
|
|
3520
|
-
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/
|
|
3740
|
+
[withPreventConsecutiveClicks.ts:4](https://github.com/daysnap/utils/blob/0563f66/src/withPreventConsecutiveClicks.ts#L4)
|