VectorIterator

collections/vectorDocs


near-sdk-js v2.0.0 / collections/vector / VectorIterator

Class: VectorIterator<DataType>

An iterator for the Vector collection.

Type Parameters

DataType

Constructors

new VectorIterator()

new VectorIterator<DataType>(vector, options?): VectorIterator<DataType>

Parameters

vector: Vector<DataType>

The vector collection to create an iterator for.

options?: GetOptions<DataType>

Options for retrieving and storing data.

Returns

VectorIterator<DataType>

Defined in

packages/near-sdk-js/src/collections/vector.ts:251

Methods

next()

next(): object

Returns

object

done

done: boolean

value

value: DataType

Defined in

packages/near-sdk-js/src/collections/vector.ts:256

Last updated