marcuswestin / store.js

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

get( ) method, !== or != #250

Open alpastar opened 6 years ago

alpastar commented 6 years ago

storeAPI. get: function(key, alt) { // if s is undefined return alt ?? var s = _.get(this._area, this.in(key)); return s !== null ? .parse(s) : alt || s;// support alt for easy default mgmt },

why !== AFAIK != would be more reasonable ..

return s != null ? _.parse(s) : alt || s;// support alt for easy default mgmt