16 lines
213 B
JavaScript
16 lines
213 B
JavaScript
|
let storage = {
|
||
|
|
||
|
set(key, value) {
|
||
|
return localStorage.setItem(key, value);
|
||
|
},
|
||
|
get(key) {
|
||
|
return localStorage.getItem(key);
|
||
|
},
|
||
|
remove(key) {
|
||
|
localStorage.removeItem(key);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default storage;
|