The byte prefix to use when storing elements inside this collection.
Readonly_elementsReadonlyelementReadonlyprefixThe byte prefix to use when storing elements inside this collection.
Remove all of the elements stored within the collection.
Optionaloptions: Pick<GetOptions<DataType>, "serializer">Checks whether the collection contains the value.
The value for which to check the presence.
Optionaloptions: Pick<GetOptions<DataType>, "serializer">Options for storing data.
Optionallimit?: numberOptionaloptions?: GetOptions<DataType>Optionalstart?: 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.
Optionaloptions: GetOptions<DataType>Options for retrieving and storing data.
Serialize the collection.
Optionaloptions: 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.
Optionaloptions: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
Return a JavaScript array of the data stored within the collection.
Optionaloptions: GetOptions<DataType>Options for retrieving and storing the data.
StaticreconstructConverts 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.