The keys of this storage.
The number of entries in this storage.
Releases any resources associated with this object.
Returns a new iterator that allows iterating the entries of this storage.
An iterator for the entries of this storage.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsRemoves all entries from this storage.
Removes the value associated with the specified key.
The storage key.
The value associated with the key before it was removed.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Cancels the subscription to the global storage events.
Gets the deserialized value associated with the specified key.
The storage key.
The storage value, or null if the key does not exist or the value cannot be deserialized.
Gets a value indicating whether this storage contains the specified key.
The storage key.
true if this storage contains the specified key, otherwise false.
Registers a function that will be invoked whenever the change event is triggered.
The event handler to register.
This instance.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsSerializes and associates a given value with the specified key.
The storage key.
The storage value.
This instance.
StaticlocalCreates a new local storage service.
An object providing values to initialize the service.
The newly created service.
StaticsessionCreates a new session storage service.
An object providing values to initialize the service.
The newly created service.
Provides access to the Web Storage.