UNPKG
@qiwi/cyclone
Version:
latest (3.0.3)
3.0.3
3.0.2
3.0.1
3.0.0
2.5.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.1
2.0.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
"State machine" for basic purposes
github.com/qiwi/cyclone
qiwi/cyclone
@qiwi/cyclone
/
target
/
esnext
/
registry.js
16 lines
(15 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export
class
Registry
{ store;
constructor
(
) {
this
.
store
= {}; }
get
(
key
) {
return
this
.
store
[key]; }
add
(
key, value
) {
this
.
store
[key] = value; }
remove
(
key
) {
delete
this
.
store
[key]; } }