for(let key,i=0;i<localStorage.length;i++) key=localStorage.key(i),console.log(key,':', localStorage.getItem(key));
const L=localStorage;for(let k,v,i=0;i<L.length;i++) {k=L.key(i);try{v=JSON.parse(L.getItem(k)).name}catch(e){};console.log(k,' => ',v)}
let userIds = [4387, 9282, 7352];
for (let i = 0; i < userIds.length; ++i) {
let id = userIds[i];
console.log(localStorage[id].name);
}