I have a tree structure and I need to search into data field for each nested object and return full path to it, data field is unique.
const tree = [ {