Source Code:
(back to article)
Submit
Result:
Report an issue
const data = new Blob(["Example text"], { type: "text/plain" }); const blobUrl = URL.createObjectURL(data); // After using the blobUrl // ... URL.revokeObjectURL(blobUrl); // Cleans up the memory used by the Blob URL