now the code is
const list = {
{ "": [
{name: "", to: "/basic"},
{name: "", to: "/reset"}
]},
{"": [
{name: "", to: "/consume-log"},
{name: "", to: "/recharge-log"},
{name: "", to: "/recharge"}
]}
}
how can I implement this code if I want to change it into the following code?
const list = [
{ "": [
{name: "", to: "/basic"},
{name: "", to: "/reset"}
]},
{"": [
{name: "", to: "/consume-log"},
{name: "", to: "/recharge-log"},
{name: "", to: "/recharge"}
]}
]