Created
January 15, 2020 23:58
-
-
Save ccurtin/0932cc62ae39494b264c39f21f02a017 to your computer and use it in GitHub Desktop.
Converts Blob Objects to JSON objects, creating accessible Object keys from Blob properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BlobToJSONObject = (blob) => { | |
obj = {} | |
for (var prop in blob) { | |
obj[prop] = blob[prop] | |
} | |
return obj | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment