localstorage read all key

Solutions on MaxInterview for localstorage read all key by the best coders in the world

showing results for - "localstorage read all key"
Fabian
28 May 2016
1for ( var i = 0, len = localStorage.length; i < len; ++i ) {
2  console.log( localStorage.getItem( localStorage.key( i ) ) );
3}
4
Abril
21 Jan 2019
1for (var key in localStorage){
2   console.log(key)
3}
4