Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

view all local storage js

var i;

console.log("local storage");
for (i = 0; i < localStorage.length; i++)   {
    console.log(localStorage.key(i) + "=[" + localStorage.getItem(localStorage.key(i)) + "]");
}

console.log("session storage");
for (i = 0; i < sessionStorage.length; i++) {
    console.log(sessionStorage.key(i) + "=[" + sessionStorage.getItem(sessionStorage.key(i)) + "]");
}
Comment

get all local storage

const items = { ...localStorage };
Comment

PREVIOUS NEXT
Code Example
Javascript :: settimeout function 
Javascript :: obj[key].includes is not a function 
Javascript :: js json upload 
Javascript :: react input number 
Javascript :: node.js socket.io send data with handshake 
Javascript :: how to select second element in jquery 
Javascript :: cloudinary download url 
Javascript :: fakepath file show in html page in js 
Javascript :: React Native - navigation is undefined 
Javascript :: json user data file sample 
Javascript :: add favicon to next js static site 
Javascript :: convert string to datetime javascript 
Javascript :: js exit fullscreen 
Javascript :: stateprovider.js react 
Javascript :: string to kebab case 
Javascript :: check when keyup an input from a specific form jquery 
Javascript :: react-native link to play store 
Javascript :: prime numbers javascript 
Javascript :: reactjs add border to the table row 
Javascript :: node.js return json 
Javascript :: how to print two arrays side by side in javascript 
Javascript :: remove whitespace javascript 
Javascript :: chrome extension communication between popup and content script 
Javascript :: new date with date + 1 
Javascript :: jquery delete a cookie 
Javascript :: network response timed out expo 
Javascript :: js addeventlistener to width of window 
Javascript :: template literal syntax not working 
Javascript :: vim react snippets 
Javascript :: material ui datepicker remove error 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =