I am looking to access each individual element of the "to" value within the children property of my array.
const items = [{
name: 'Administrator',
children: [
{
name: 'Catalog',
to: 'catalog'
},
and here is the function I am using:
function openRoute() {
items.forEach(item => {
const route = item.children.values(?? unsure) })
}
Any assistance with this would be greatly appreciated. Thank you!