This is my variable tree
:
I want to find the element by it path. (in the case `Documents it is 0)
Like this myFolder
gives me the correct output:
var myFolder = tree.childs[0]
But I do not have the key, I have only the path. I tried:
var myFolder = tree.map(Folder => Folder.path).indexOf('Documents/');
But I get an error message (implicity has an 'any' type)