get [Symbol.toStringTag]()

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

[Symbol.toStringTag]

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

range.class.ts
public get [Symbol.toStringTag](): string {
  return 'Range';
}

Return type

Example usage

// Example usage.
import { Range } from '@angular-package/range';
import { typeOf } from '@angular-package/type';

// Returns "range".
typeOf(new Range(4, 27));

Last updated