I have two classes:
class Bar extends Foo { // Foo isn\'t relevant constructor(value) { if (!(value instanceof Foo)) throw \"InvalidArgumentException:
I coined the function for checking relationships between DOM Classes and elements
const getCreator = instance => Object.getPrototypeOf(instance).constructor.name; // usage getCreator(document.documentElement) === "HTMLHtmlElement;