Atur peta ke javascript penyimpanan lokal

localStorage.myMap = JSON.stringify(Array.from(map.entries()));
Daniel Jantulík