You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
298 B
16 lines
298 B
1 year ago
|
import _ from 'lodash'
|
||
|
|
||
|
|
||
|
export const storeItem = (key: string, value: string) => {
|
||
|
localStorage.setItem(key, value)
|
||
|
}
|
||
|
|
||
|
export const getItem = (key: string) => {
|
||
|
const val = localStorage.getItem(key)
|
||
|
return val
|
||
|
}
|
||
|
|
||
|
export const removeItem = (key: string) => {
|
||
|
localStorage.removeItem(key)
|
||
|
}
|