VS
Size: a a a
VS
YO
VS
М
LK
[ {ilvl: "0", numId: "1", text: "Sdvs"}- необходимо получить структуру
{ilvl: "0", numId: "1", text: "verFFE"}
{ilvl: "1", numId: "1", text: "235rf"}
{ilvl: "0", numId: "2", text: "Hrg"}
{ilvl: "1", numId: "2", text: "Gtegwr"}
{ilvl: "1", numId: "2", text: "ser"}]
[
{
numId: "1",
levels: [
{
ilvl: "0",
children: [
{
text: "Sdvs",
},
{
text: "verFFE",
}
]
},
{
ilvl: "1",
children: [
{
text: "235rf",
}
]
}
]
},
{
numId: "2",
levels: [
{
ilvl: "0",
children: [
{
text: "Hrg",
}
]
},
{
ilvl: "1",
children: [
{
text: "Gtegwr",
},
{
text: "ser",
}
]
}
]
}
]
RA
LK
LK
RA
nums = {
[numId]: {
[ilvlId]: [texts]
}
}
RA
RA
nums = {
[numId]: {
ilvls: {
[ilvlId]: [texts]
}
}
}
LK
LK
LK
RA
LK
LK
LK
LK
А