marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.01k stars 1.33k forks source link

Why does the `each` method of store.js not have the value decompressed and parsed? #249

Open fosonmeng opened 7 years ago

fosonmeng commented 7 years ago

Why does the each method of store.js not have the value decompressed and parsed?

    var LZString = require('lz-string');
    store.set('user', { name:'Marcus' })
    store.each(function(value, key) {
        console.log(key, '==', /*value*/ JSON.parse(LZString.decompress(value)))
    })

This happen when I used the store.everything.min.js.