$k. Interval

new Interval(start, stop)

Constructs an interval from start to stop

Parameters:
NameTypeDescription
start

The lower endpoint

stop

The upper endpoint

An interval representing all values between two endpoints. One endpoint may be undefined.

Methods

equals(value) → {boolean}

Returns true if the values are equal

Parameters:
NameTypeDescription
value

Another attribute value

Returns:
Type: 
boolean

setStart(start)

Sets the lower endpoint. Pass undefined to denote an interval without lower endpoint

Parameters:
NameTypeDescription
start

setStop(stop)

Sets the upper endpoint. Pass undefined to denote an interval without upper endpoint

Parameters:
NameTypeDescription
stop

start()

Returns the lower endpoint, or undefined if the interval has no lower endpoint.

stop()

Returns the upper endpoint , or undefined if the interval has no upper endpoint.