getItem(key)
Returns an item.
Arguments
key
(string): A string used to find and fetch item under.
Returns
(Item): Item, an object.
(undefined): If item is not found, returns undefined
.
Example
// `item` will be either an object or undefined - depending if item exists or not
const item = adapter.getItem('key');
Last updated