Answers for "Check if local storage is used or empty"

0

Check if local storage is used or empty

if (localStorage.length > 0){
    //Items are stored in local storage
}else{
    //Local storage is empty
}
Posted by: Guest on August-17-2021

Code answers related to "Check if local storage is used or empty"

Code answers related to "Javascript"

Browse Popular Code Answers by Language