The byte prefix to use when storing elements inside this collection.
Readonly
_elementsReadonly
elementReadonly
prefixThe byte prefix to use when storing elements inside this collection.
The number of elements stored in the collection.
Remove all of the elements stored within the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Checks whether the collection contains the value.
The value for which to check the presence.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing data.
Private
createCreate a iterator on top of the default collection iterator using custom options.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
Optional
limit?: numberOptional
options?: GetOptions<DataType>Optional
start?: numberReturns true if the element was present in the set.
The entry to remove.
Optional
options: GetOptions<DataType>Options for retrieving and storing data.
Serialize the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
If the set did not have this value present, true
is returned.
If the set did have this value present, false
is returned.
The value to store in the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
Return a JavaScript array of the data stored within the collection.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
Static
reconstructConverts the deserialized data from storage to a JavaScript instance of the collection.
The deserialized data to create an instance from.
Generated using TypeDoc
An unordered set that stores data in NEAR storage.