2
I need a function that converts:
"/home/username/Documentos/app.txt"
for an object:
{
"home": {
"username":{
"Documentos":
"app.txt":{}
}
}
}
`
I was thinking of breaking the string by the "/", but I couldn’t find a way to put the contents inside each other.
This was really my logic, I just wasn’t able to understand my own logic. I really liked the ES6 version very much thank you!
– Salomão Neto