Ir al contenido

Iterator

Defined in: collections/Iterator.ts:6

GoJS-compatible: an iterator over a List/Set/Map. Call next() before reading value/key, per GoJS’s iteration protocol (distinct from the native ECMAScript iterator protocol).

T

readonly iterator: Iterator<T>

Defined in: collections/Iterator.ts:7


readonly key: unknown

Defined in: collections/Iterator.ts:18


readonly value: T

Defined in: collections/Iterator.ts:17

[iterator](): Iterator<T>

Defined in: collections/Iterator.ts:19

Iterator<T>


all(pred): boolean

Defined in: collections/Iterator.ts:13

(x) => boolean

boolean


any(pred): boolean

Defined in: collections/Iterator.ts:12

(x) => boolean

boolean


each(func): void

Defined in: collections/Iterator.ts:14

(x) => void

void


filter(pred): Iterator<T>

Defined in: collections/Iterator.ts:16

(x) => boolean

Iterator<T>


first(): T | null

Defined in: collections/Iterator.ts:10

T | null


hasNext(): boolean

Defined in: collections/Iterator.ts:9

boolean


map<S>(func): Iterator<S>

Defined in: collections/Iterator.ts:15

S

(x) => S

Iterator<S>


next(): boolean

Defined in: collections/Iterator.ts:8

boolean


reset(): void

Defined in: collections/Iterator.ts:11

void