Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export const makeTestTitle = test => {
let next = test;
const title = [];
for (;;) {
if (!next.parent) {
break;
}
title.push(next.title);
next = next.parent;
}
return title.reverse().join(' ');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment