Skip to content

Instantly share code, notes, and snippets.

@tofumatt
Forked from jviereck/gist:8984668
Created February 13, 2014 22:00
Show Gist options
  • Save tofumatt/8984763 to your computer and use it in GitHub Desktop.
Save tofumatt/8984763 to your computer and use it in GitHub Desktop.
arr = new Uint8Array(8)
dump(arr instanceof Uint8Array) // emits TRUE
localforage.setItem('Uint8Array', arr).then (writeValue) ->
..
// in localstorage.js file
function setItem(key, value, callback) {
__utils__.echo(arr instanceof Uint8Array); // emits FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment