susunan array di LocalStorage

const dataProduct = JSON.parse(localStorage.getItem("dataProduct")) || [];
    dataProduct.push(dataProductObj);
    localStorage.setItem("dataProduct", JSON.stringify(dataProduct));
Stern