How could I use
window.localStorage.getItem();
to specify items in localstarage that start with the string \'QQ\'. In my case the key
\'QQ\'
for ( var info in window.localStorage ){ if ( info.substring( 0 , 2 ) === "QQ"){ var data = window.localStorage.getItem( info ) ); console.log(info); }
code not tested