store list of objects in localstorage code example
Example 1: js get array object from local storage
users = JSON.parse(localStorage.getItem("users") || "[]");
Example 2: js get array object from local storage
localStorage.setItem("users", JSON.stringify(users));