Guys, there was a question about navigating through an array (it would seem!). The search failed, because hesitate and do not understand how to ask a question.
In general the task.
I make the component of the drag and drop tree on vue by the example of the react component
data structure - an array of objects with nested child arrays, etc.
// примерная структура const items = [ { _path: [0], title: "[0]", children:[ { _path: [0,0], title: "[0,0]", children: [] }, { _path: [0,1], title: "[0,1]", children: [ { _path: [0,1,0], title: "[0,1,0]", children: [/* ... */] } ] }, ] }, /* ... */ ] Nesting may be different. The element has the _path parameter - an array with its "address" in the strut. How to most beautifully refer to an element by its _path ?
For example, from any source we get _path=[0,2] , as you understand, in the code to write items[_path[0]].children[_path[1]] is not at all an option. And if the depth is 5 or 10? I would be grateful for any advice))

