Skip to content

Instantly share code, notes, and snippets.

View moinulmoin's full-sized avatar
👀
Available for collaboration

Moinul Moin moinulmoin

👀
Available for collaboration
View GitHub Profile
const root = {
a: {
m: { c: { x: 'apple', y: {} } },
n: { 1: {}, 2: {} },
o: {},
},
};
const findPath = (tree, destination) => {
for (let key in tree) {