javascript - How to check if window.localStorage contains any values - Get link Facebook X Pinterest Email Other Apps how check if window.localstorage contains any values? something : if(window.localstorage.hasitems()){ // } you can use length property of storage interface if(localstorage.length){ } storage storage.length Comments
Comments
Post a Comment