February 2018
Intermediate to advanced
298 pages
8h 22m
English
The Reflect.construct() method is used to invoke a function as a constructor. It's similar to the new operator. The function that will be invoked is called as the target constructor.
One special reason why you may want to use the Reflect.construct() method instead of the new operator is that you can target the constructor's prototype to match the prototype of another constructor.
The Reflect.construct() method takes three arguments:
Read now
Unlock full access