StaticlocalLazy getter for the localStorage wrapper instance.
The WebStore instance for localStorage
StaticsessionLazy getter for the sessionStorage wrapper instance.
The WebStore instance for sessionStorage
Delete specific keys from storage.
The keys to remove
The WebStore instance for chaining
Get an array of [key, value] entries currently in storage.
Optional keys to filter the entries by
An array of key-value tuples
Get an array of keys currently in storage. If specific keys are provided, filters by those.
Optional keys to filter by
An array of string/symbol keys
Store or merge a value into storage for a given key.
Optionalkey: PropertyKeyThe property key to set. If nullish, clears the store.
Optionalobj: unknownThe value to store
Options (merge behavior)
The WebStore instance for chaining
Get an array of values currently in storage.
Optional keys to retrieve values for
An array of parsed values
Wrapper around local / session Browser Storage. Refactored for lazy-initialization to ensure side-effect free imports.
Example