Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Range

An immutable min / max range

Hierarchy

  • Range

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Range(min: number, max: number): Range
  • Parameters

    • min: number
    • max: number

    Returns Range

Properties

Readonly maximum

maximum: number

Readonly minimum

minimum: number

Methods

isValid

  • isValid(): boolean
  • Returns true if the range is valid, i.e. if minimum <= maximum

    Returns boolean

Generated using TypeDoc