Function getClassName

  • Returns the class name either of the class definition or of the class of an instance.

    Note when code is minimized/uglified this output will change. You should disable in your compile the className modification.

    Example

    class User {}

    expect(getClassName(User)).toBe('User');
    expect(getClassName(new User())).toBe('User');

    Type Parameters

    • T

    Parameters

    Returns string

Generated using TypeDoc