value()?

The `value` accessor indicates the range current value of the number type of a specified `Range` object

Range.prototype.value

The value accessor indicates the range current value of the number type of a specified Range object.

get

The get accessor retrieves the #value property that indicates the range current value of the number type of a specified Range object. It can be set by the setValue() method.

range.class.ts
public get value(): number | undefined {
  return this.#value;
}

set

The set accessor sets the range current value of the number type between the minimum and maximum of a specified Range object.

range.class.ts
public set value(value: number | undefined) {
  typeof value === 'number'
    ? this.has(value) && (this.#value = value)
    : undefined;
}

Type

Example usage

Last updated

Was this helpful?