get min()

The `get` accessor obtains the minimum range

RangeError.prototype.min

The getarrow-up-right accessor obtains the minimum range of generic type variable Min that causes an error to be thrown(or not thrown), if set, otherwise returns undefinedarrow-up-right.

range-error.class.ts
public get min(): Min | undefined {
  return this.#min;
}

Return type

Returns

The return value is the minimum range of generic type variable Min or undefinedarrow-up-right.

Example usage

// Example usage.
import { RangeError } from '@angular-package/error';

// Returns "9".
new RangeError('problem', 'Fix accessor.', '(AE:427)', 9, 27).min;

Last updated