★ Constructor
The `RangeError` object constructor
RangeError()
constructor(
problem: string,
fix: string,
id?: Id,
min?: Min,
max?: Max,
template = RangeError.template
) {
super(problem, fix, id, template, { min, max });
this.#max = max;
this.#min = min;
}Parameters
problem:string
fix:string
id?:Id
min?:Min
max?:Max
template:string=RangError.template
Example usage
Last updated