AtomSet
See source codeTable of contents
A drop-in replacement for Set that stores values in atoms and can be used in reactive contexts.
class AtomSet<T> {}Constructor
Constructs a new instance of the AtomSet class
Parameters
| Name | Description |
|---|---|
| |
| |
Properties
[Symbol.toStringTag]
[Symbol.toStringTag]: stringsize
readonly
get size(): numberMethods
[Symbol.iterator](): Generator<T, undefined, unknown>add( )
add(value: T): thisParameters
| Name | Description |
|---|---|
| |
Returns
thisclear( )
clear(): voiddelete( )
delete(value: T): booleanParameters
| Name | Description |
|---|---|
| |
Returns
booleanentries( )
entries(): Generator<[T, T], undefined, unknown>forEach( )
forEach(
callbackfn: (value: T, value2: T, set: AtomSet<T>) => void,
thisArg?: any
): voidParameters
| Name | Description |
|---|---|
| |
| |
Returns
voidhas( )
has(value: T): booleanParameters
| Name | Description |
|---|---|
| |
Returns
booleankeys( )
keys(): Generator<T, undefined, unknown>values( )
values(): Generator<T, undefined, unknown>Prev
AtomMapNext
RecordType