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 'RangeError' for an instance of .
'RangeError'
It can be read by the function of .
public get [Symbol.toStringTag](): string { return 'RangeError'; }
The return value is the word 'RangeError' of a .
// Example usage. import { RangeError } from '@angular-package/error'; import { typeOf } from '@angular-package/type'; // Returns "rangeerror". typeOf(new RangeError('problem', 'Fix accessor.'));
get
toStringTag
RangeError
typeOf()
@angular-package/type
string