Skip to main content

storage

Stentor API Reference


Stentor API Reference / stentor-storage/src / storage

Function: storage()

storage(storage, key): string

Defined in: packages/stentor-storage/src/findStorageDependentMatch.ts:114

Returns the value for the provided key from the storage, converted to a string.

If the value doesn't exist, an empty string is returned.

Note: This is primarily used by StorageDependentCheck within conditionals.

Parameters​

storage​

Storage

key​

string

Returns​

string