An unordered set that stores data in NEAR storage.

Type Parameters

  • DataType

Constructors

Properties

_elements: Vector<DataType>
elementIndexPrefix: string
prefix: string

The byte prefix to use when storing elements inside this collection.

Accessors

Methods

  • If the set did not have this value present, true is returned. If the set did have this value present, false is returned.

    Parameters

    • element: DataType

      The value to store in the collection.

    • Optional options: Pick<GetOptions<DataType>, "serializer">

      Options for storing the data.

    Returns boolean

Generated using TypeDoc