coolaj86 / json-storage-js

A wrapper for storage engines which use the W3C Storage API
12 stars 0 forks source link

default get value #2

Closed coolaj86 closed 10 years ago

coolaj86 commented 11 years ago

For all those times when you do this:

var things = store.get('things') || [];

It would be prettier to do this:

var things = store.get('things', [])
  ;

but perhaps less intuitive...

coolaj86 commented 10 years ago

unintuitive fail