session
Stentor API Reference / stentor-storage/src / session
Function: session()
session(
sessionStorage,key):string
Defined in: packages/stentor-storage/src/findStorageDependentMatch.ts:90
Returns the value at the provided key from the session 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​
sessionStorage​
SessionStore
key​
string
Returns​
string