Skip to content

Class: SourcedSet<T>

utilities/object.SourcedSet

Type parameters

Name
T

Constructors

constructor

new SourcedSet<T>(use_set?): SourcedSet<T>

Type parameters

Name
T

Parameters

NameTypeDefault value
use_setbooleanfalse

Returns

SourcedSet<T>

Defined in

src/utilities/object.ts:859

Methods

_rebuild

_rebuild(): void

Returns

void

Defined in

src/utilities/object.ts:864


delete

delete(key): void

Parameters

NameType
keystring

Returns

void

Defined in

src/utilities/object.ts:892


extend

extend(key, ...items): void

Parameters

NameType
keystring
...itemsT[]

Returns

void

Defined in

src/utilities/object.ts:899


get

get(key): undefined | T[]

Parameters

NameType
keystring

Returns

undefined | T[]

Defined in

src/utilities/object.ts:878


has

has(key): boolean

Parameters

NameType
keystring

Returns

boolean

Defined in

src/utilities/object.ts:879


includes

includes(value): boolean

Parameters

NameType
valueT

Returns

boolean

Defined in

src/utilities/object.ts:886


push

push(key, item): void

Parameters

NameType
keystring
itemT

Returns

void

Defined in

src/utilities/object.ts:947


remove

remove(key, item): void

Parameters

NameType
keystring
itemT

Returns

void

Defined in

src/utilities/object.ts:965


set

set(key, items): void

Parameters

NameType
keystring
itemsT | T[]

Returns

void

Defined in

src/utilities/object.ts:923


sourceIncludes

sourceIncludes(key, value): undefined | boolean

Parameters

NameType
keystring
valueT

Returns

undefined | boolean

Defined in

src/utilities/object.ts:881