UNPKG
catan-client
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Settlers of Catan Client Implementation
github.com/ozthekoder/catan-client
ozthekoder/catan-client
catan-client
/
app
/
js
/
util
/
LocalStorage.js
17 lines
(13 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict"
;
class
LocalStorage
{
static
get
(
key
) {
return
JSON
.
parse
(
localStorage
.
getItem
(key)); }
static
set
(
key, value
) {
localStorage
.
setItem
(key,
JSON
.
stringify
(value)); }
static
clear
(
) {
localStorage
.
clear
(); } }
module
.
exports
=
LocalStorage
;