Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. (function(chars, index) {
  2. for (chars = index = 0; index < localStorage.length; index++ )
  3. chars += localStorage.getItem(localStorage.key(index)).length
  4. return `${(chars/1024/1024).toPrecision(5)} MB ≈${(chars/5/1024/1024*100).toPrecision(3)}%`
  5. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement