Checks whether a passed value is possibly constructable.
It does so by just probing the passed value's [[construct]]
slot; it does never invoke the passed value itself.
The construct proxy handler is allowed to overwrite the
[[construct]] slot of a proxied value, but it cannot turn
something non constructable into a constructable type.
"The handler.construct method is a trap for the [[Construct]]
object internal method, which is used by operations such as the
new operator. In order for the new operation to be valid on
the resulting Proxy object, the target used to initialize
the proxy must itself be a valid constructor."
Parameters
value: any
Returns boolean
A boolean value which indicates whether the tested
type could possibly serve as constructor function.
Checks whether a passed
valueis possibly constructable.It does so by just probing the passed value's
[[construct]]slot; it does never invoke the passed value itself.The
constructproxy handler is allowed to overwrite the[[construct]]slot of a proxied value, but it cannot turn something non constructable into a constructable type.