how to get array data in local storage 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));