get [Symbol.toStringTag]()
Changes the default tag to 'TypeError' for an instance
[Symbol.toStringTag]()
[Symbol.toStringTag]()
The get
accessor, with the help of toStringTag
, changes the default tag to 'TypeError'
for an instance of TypeError
.
It can be read by the typeOf()
function of @angular-package/type
.
type-error.class.ts
Return type
Returns
The return value is the word 'TypeError'
of a string
.
Example usage
Last updated