Changes the default tag to 'RangeError' for an instance
Last updated 1 year ago
Was this helpful?
[Symbol.toStringTag]()
The accessor, with the help of , changes the default tag to 'Error' for an instance of . It can be read by the function of .
'Error'
public get [Symbol.toStringTag](): string { return 'Error'; }
The return value is the word Error of a .
Error
// Example usage. import { Error } from '@angular-package/error'; import { typeOf } from '@angular-package/type'; // Returns "error". typeOf(new Error('problem', 'fix solution'));
get
toStringTag
typeOf()
@angular-package/type
string