get [Symbol.toStringTag]()
Changes the default tag to 'Maximum' for an instance
[Symbol.toStringTag]
[Symbol.toStringTag]
The get
accessor, with the help of toStringTag
, changes the default tag to 'Maximum'
for an instance of Maximum
.
public get [Symbol.toStringTag](): string {
return 'Maximum';
}
Return type
Example usage
// Example usage.
import { Maximum } from '@angular-package/range';
import { typeOf } from '@angular-package/type';
// Returns "maximum".
typeOf(new Maximum(5));
Last updated