Vote count:
0
Is there any difference between:
localStorage.setItem('foo', 1);
and:
localStorage.setItem('foo', true);
From the point of view of storage requirements? Is there any kind of value optimization carried out by the browser before actually storing data (i.e. compression)?
Please note that I'm assuming that Local Storage can handle any type of data nad not just strings. I'm not sure about this.
asked 9 secs ago
Aucun commentaire:
Enregistrer un commentaire