get [Symbol.toStringTag]()

Changes the default tag to 'Maximum' for an instance

[Symbol.toStringTag]

The get accessor, with the help of toStringTag, changes the default tag to 'Maximum' for an instance of Maximum.

maximum.class.ts
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