new expression typescript

Solutions on MaxInterview for new expression typescript by the best coders in the world

showing results for - "new expression typescript"
Oscar
06 Jan 2020
1const TestConstructorFunction = function (this: any, a: any, b: any) {
2    this.a = a;
3    this.b = b;
4};
5
6let test1 = new (TestConstructorFunction as any)(1, 2);