get name()
The `get` accessor obtains error name
TypeError.prototype.name
TypeError.prototype.name
The get
accessor obtains error name of a string
type, set to 'TypeError'
that is being thrown.
type-error.class.ts
Return type
Returns
The return value is the error instance name of string
type.
Example usage
Last updated