check ijf localstorage user is admin code example
Example: how to check is the key of a localstorage is emopty
if (localStorage.getItem("username") === null) {
//...
}
if (localStorage.getItem("username") === null) {
//...
}