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.
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.
Optional
limit?: numberOptional
options?: GetOptions<DataType>Optional
start?: numberExtends the current collection with the passed in array of elements.
The elements to extend the collection with.
Returns 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.
An unordered set that stores data in NEAR storage.