What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-02 22:56:13
how push objects into a local stotage array
// Get the existing data var existing = localStorage.getItem('myFavoriteSandwich'); // If no existing data, create an array // Otherwise, convert the localStorage string to an array existing = existing ? existing.split(',') : []; // Add new data to loca... Add solution -
Javascript 2021-09-24 02:26:02
javascript dataurl to blob
function dataURItoBlob(dataURI) { // convert base64 to raw binary data held in a string // doesn't handle URLEncoded DataURIs - see SO answer #6850276 for code that does this var byteString = atob(dataURI.split(',')[1]); // separate out the mime ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5