Created
November 29, 2018 03:13
-
-
Save Veveue/5f899bb2f2c470f41aa305c3a939a245 to your computer and use it in GitHub Desktop.
blob2File
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
| function blob2File(blob, name, type) { | |
| return new File([blob], name, type ? { type: type } : undefined); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment