1function get(){
2 var getJson = localStorage.getItem('key')
3 if(getJson){
4 arrayName = JSON.parse(getJson)
5 }
6}
1// localStorage for objects, arrays or any data type
2var obj = {
3 firstName: "Bob",
4 lastName: "Jeff",
5 age: 13
6}
7localStorage.setItem("itemname", JSON.stringify(obj)); // Save the obj as string
8var item = JSON.parse(localStorage.getItem("itemname"));
9// ^^ Parse string then set `item` as the obj
1var pull=JSON.parse(localStorage.getItem('data'))
2for(var i=0; i<pull.length; i++){
3 new arrayName(pull[i].AnyName, pull[i].AnyName, pull[i].AnyName)