Skip to content

Instantly share code, notes, and snippets.

View joyvuu-dave's full-sized avatar

Dave Riddle joyvuu-dave

View GitHub Profile

Keybase proof

I hereby claim:

  • I am joyvuu-dave on github.
  • I am riddle (https://keybase.io/riddle) on keybase.
  • I have a public key ASBbPBjshrAgdnehpHOe6TPTPdC7upXgoqbT0ubU97krhAo

To claim this, I am signing this object:

@joyvuu-dave
joyvuu-dave / WebStorage.js
Last active December 29, 2015 10:33 — forked from heyimalex/WebStorage.js
localStorage sync with redux
export default class WebStorage {
constructor(key, storageArea = window.localStorage) {
this.key = key;
this.storageArea = storageArea;
}
load(defaultValue) {
const serialized = this.storageArea.getItem(this.key);
return serialized === null ? defaultValue : this.deserialize(serialized);
}
language: ruby
bundler_args: --without production
cache: bundler
rvm: