Skip to content

Instantly share code, notes, and snippets.

@jviereck
Created February 13, 2014 21:54
Show Gist options
  • Save jviereck/8984668 to your computer and use it in GitHub Desktop.
Save jviereck/8984668 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