Class: StorageIterator

StorageIterator

Implementation of the iterator protocol and the iterable protocol for DOM storage keys.


new StorageIterator(storage)

Initializes the DOM storage iterator.

Parameters:
Name Type Description
storage Storage

The DOM storage to iterate through.

See:

Members


_currentKeyIndex :number

The current index of the DOM storage key this iterator will return next.

Type:
  • number

_storage :Storage

The DOM storage being iterated.

Type:

Methods


next()

Iterates to the next item. This method implements the iterator protocol.

Returns:

The next value in the sequence and whether the iterator is done iterating through the values.

Type
Object