I have nested object it contains random data types like string, number , array , etc.
for example,
const exampleObj = {
name : "william",
age : 23,
habbits : ["studying","running"],
authInfo : {
email : "william@gmail.com",
password : "foo@123"
}
}
how to get all the keys from above example like this,
["name","age","habbits","authInfo.email","authInfo.pasword"]
The object structure should be change to any nested type.
Thanks adavance !!!