Ir al contenido

Set

Defined in: collections/Set.ts:11

GoJS-compatible: an unordered collection of unique values, mirroring go.Set. Named Set to match GoJS’s exact API — import it aliased (e.g. import { Set as GoSet } from 'graphojs') to avoid shadowing the native Set in the same scope.

T

new Set<T>(coll?): Set<T>

Defined in: collections/Set.ts:14

Iterable<T, any, any>

Set<T>

get count(): number

Defined in: collections/Set.ts:127

number


get iterator(): Iterator<T>

Defined in: collections/Set.ts:135

Iterator<T>


get size(): number

Defined in: collections/Set.ts:131

number

[iterator](): Iterator<T>

Defined in: collections/Set.ts:151

Iterator<T>


add(val): this

Defined in: collections/Set.ts:26

T

this


addAll(coll): this

Defined in: collections/Set.ts:31

Iterable<T>

this


all(pred): boolean

Defined in: collections/Set.ts:70

(a) => boolean

boolean


any(pred): boolean

Defined in: collections/Set.ts:63

(a) => boolean

boolean


clear(): void

Defined in: collections/Set.ts:111

void


contains(val): boolean

Defined in: collections/Set.ts:40

T

boolean


containsAll(coll): boolean

Defined in: collections/Set.ts:44

Iterable<T>

boolean


containsAny(coll): boolean

Defined in: collections/Set.ts:51

Iterable<T>

boolean


copy(): Set<T>

Defined in: collections/Set.ts:115

Set<T>


delete(val): boolean

Defined in: collections/Set.ts:90

T

boolean


each(func): this

Defined in: collections/Set.ts:77

(a) => void

this


entries(): IterableIterator<[T, T]>

Defined in: collections/Set.ts:139

IterableIterator<[T, T]>


filter(pred): Set<T>

Defined in: collections/Set.ts:86

(a) => boolean

Set<T>


first(): T | null

Defined in: collections/Set.ts:58

T | null


forEach(callbackFunc): void

Defined in: collections/Set.ts:147

(value1, value2, set) => void

void


has(val): boolean

Defined in: collections/Set.ts:36

T

boolean


keys(): IterableIterator<T>

Defined in: collections/Set.ts:143

IterableIterator<T>


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

Defined in: collections/Set.ts:82

S

(a) => S

Set<S>


remove(val): boolean

Defined in: collections/Set.ts:94

T

boolean


removeAll(coll): this

Defined in: collections/Set.ts:98

Iterable<T>

this


retainAll(coll): this

Defined in: collections/Set.ts:103

Iterable<T>

this


toArray(): T[]

Defined in: collections/Set.ts:119

T[]


toList(): List<T>

Defined in: collections/Set.ts:123

List<T>


toString(): string

Defined in: collections/Set.ts:22

string


values(): IterableIterator<T>

Defined in: collections/Set.ts:18

IterableIterator<T>