|
|
|
|
|
by marcuswestin
3393 days ago
|
|
Almost! Except if you want to store objects/arrays/numbers (localStorage only supports strings), or want your site to work in Safari Private mode (where localStorage breaks), or if you have to support legacy environments with old browsers (like many government services), etc etc etc :) |
|
> Except if you want to store objects/arrays/numbers (localStorage only supports strings)
My normal usage of localStorage usually looks like this:
And then you won't have issues with any type.