In typescript how do you retrieve Class name from within the Class itself?
For example, given the following code:
export class SomeRandomName extends AbstractSomething<SomeType> implements OnDestroy {
className = 'SomeRandomName';
is there a way to automatically assign to className variable the name of the class SomeRandomName?
Thanks in advance.
instanceOfSomeRandomName.constructor.name. Can I assign it from within the Class itself?