Function getConstructor

  • Returns the constructor of the given object.

    Type Parameters

    • T

      The type of the object.

    Parameters

    • o: T

      The object whose constructor is to be returned.

    Returns TConstructorOf<T>

    The constructor of the object.

    Example

    class MyClass {}
    getConstructor(new MyClass()) === MyClass;;
    //=> true

Generated using TypeDoc