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
valuesExtends the current collection with the passed in array of key-value pairs.
The key-value pairs to extend the collection with.
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.
An unordered map that stores data in NEAR storage.