How would one iterate trough a deeply nested object while retrieving the path of each key that contains a value.
Demo input Object
{
nested: {
nested2: {
nested3: '123'
},
nested4: '456'
}
}
wanted output
nested.nested2.nested3
nested.nested4