Removes the item stored in storage
under the provided key
.
It enables for the delete
operator's use on custom Storage
implementations when passed in a Proxy
.
Returns the item stored in storage
under the provided key
.
It enables for the property accessors on custom Storage
implementations
when passed in a Proxy
.
Returns a synthetic property descriptor for the value stored in storage
under the provided key
. It enables for property descriptor accessors on
custom Storage
implementations when passed in a Proxy
.
when passed in a Proxy
.
Tells whether there's a value stored in storage
under the provided key
.
It enables for presence checks on custom Storage
implementations when
passed in a Proxy
, for example: "myKey" in myStorage ? "yay" : "nay"
Returns the keys present in storage
.
It enables for PropertyKey
retrievals on custom Storage
implementations
when passed in a Proxy
, for example: for (key in myStorage) ...
Sets the provided value
in storage
under the provided key
.
It enables for the property setters on custom Storage
implementations
when passed in a Proxy
.
Generated using TypeDoc
Summary
Utility object used to implement the Indexable Behavior of
Storage
implementations.Description
It's primarily intended for internal Library use, however it's implemented in a way to allow for use by Library users. If possible, at least submit a ticket when you create custom
Storage
implementations so that maintainers can learn more about developer use cases, and make the library better by extending the Library's feature set.Usage
1.0.0
1.0.0
MDN Proxy Object
MDN Storage Interface