marcneuwirth / datastorage.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DataStorage.js

If you are using localStorage to store Objects, they need to be stringified first. Then when retrieving the object, the JSON needs to be parsed. This is slow.

Instead, we can take advantage or localStorage to keep data between visits while still keeping Objects in memory during the session for repeated use without repeatedly parsing the same JSON.

##License: The Unlicense

About


Languages

Language:JavaScript 100.0%