UNPKG
@u4/adbkit
Version:
latest (5.1.7)
5.1.7
5.1.6
5.1.5
5.1.4
5.1.3
5.1.2
5.1.1
5.1.0
5.0.0
4.1.20
4.1.19
4.1.18
4.1.17
4.1.16
4.1.15
4.1.14
4.1.13
4.1.12
4.1.11
4.1.10
4.1.9
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.1.19
3.1.18
3.1.17
3.1.16
3.1.15
3.1.14
3.1.13
3.1.12
3.1.11
3.1.10
3.1.9
3.1.8
3.1.7
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
A Typescript client for the Android Debug Bridge.
github.com/UrielCh/adbkit
UrielCh/adbkit
@u4/adbkit
/
dist
/
adb
/
tcpusb
/
rollingcounter.js
14 lines
•
324 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export default
class
RollingCounter
{
constructor
(max, min =
1
) {
this
.max = max;
this
.min = min;
this
.now =
this
.min; } next() {
if
(!(
this
.now <
this
.max)) {
this
.now =
this
.min; }
return
++
this
.now; } }
//# sourceMappingURL=rollingcounter.js.map