My objective is to obtain the complete index of a complex object within a multidimensional array. For example, consider the following array:
var arr = [
{
name: "zero", children: null
},
{
name: "one", children: [
{
name: "one_zero", children: [{ name: "one_zero_zero", children: null }]
}
]
}
];
I am specifically looking to extract the object with the name "one_zero_zero" and determine its indexes, which should be 1_0_0.
I appreciate any help or guidance in solving this issue.
Thank you,