Skip to main content

Class: Range

Implements

  • Iterable<number>

Constructors

new Range()

new Range(start, stop): Range

Parameters

start: number

stop: number

Returns

Range

Defined in

src/range.ts:22

Properties

length

readonly length: number

Defined in

src/range.ts:18


start

readonly start: number

Defined in

src/range.ts:19


stop

readonly stop: number

Defined in

src/range.ts:20

Methods

[iterator]()

[iterator](): Iterator<number, any, undefined>

Returns

Iterator<number, any, undefined>

Implementation of

Iterable.[iterator]

Defined in

src/range.ts:28


equals()

equals(other): boolean

Parameters

other: unknown

Returns

boolean

Defined in

src/range.ts:33


toString()

toString(): string

Returns a string representation of an object.

Returns

string

Defined in

src/range.ts:41