Skip to content

Instantly share code, notes, and snippets.

@carbide-public
Created March 19, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carbide-public/4b5aa063a051fa0da98cb0d7e9fb7d29 to your computer and use it in GitHub Desktop.
Save carbide-public/4b5aa063a051fa0da98cb0d7e9fb7d29 to your computer and use it in GitHub Desktop.
untitled
const b = new Blob(['test'])
const c = new Blob([b])
const bReader = new FileReader();
const cReader = new FileReader();
bReader.addEventListener("loadend", function() {
console.log(bReader.result)
});
cReader.addEventListener("loadend", function() {
console.log(cReader.result)
});
bReader.readAsText(b)
cReader.readAsText(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment