The byte prefix to use when storing elements inside this collection.
Readonly
_keysReadonly
prefixThe byte prefix to use when storing elements inside this collection.
Readonly
valuesThe number of elements stored in the collection.
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.
Get the data stored at the provided key.
The key at which to look for the data.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
Removes and retrieves the element with the provided key.
The key at which to remove data.
Optional
options: Omit<GetOptions<DataType>, "serializer">Options for retrieving the data.
Serialize the collection.
Optional
options: Pick<GetOptions<DataType>, "serializer">Options for storing the data.
Store a new value at the provided key.
The key at which to store in the collection.
The value to store in the collection.
Optional
options: GetOptions<DataType>Options for retrieving and storing the data.
Optional
options: Omit<GetOptions<DataType>, "serializer">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 map that stores data in NEAR storage.