get min()

The `get` accessor obtains the minimum range

RangeError.prototype.min

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

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 undefined.

Example usage

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

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

Last updated