Is there a way to get class name that extends the class?
class Foo {
constructor(){
console.log(extendedBy.name);//extendedBy.name to be replaced with "Bar"
}
}
class Bar extends Foo {
constructor(){
super();
}
}
I tried using Google and Stack but only found how to get the parent (I.E. Foo) name.
Thanks in advance.