Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

set array of objects in localstorage

//set item in local storage
localStorage.setItem("savedData", JSON.stringify(objects));

//retrieve item from local storage
objects = JSON.parse(localStorage.getItem("savedData")));
 
PREVIOUS NEXT
Tagged: #set #array #objects #localstorage
ADD COMMENT
Topic
Name
3+2 =