Module

frontend/src/utils/sessionStorage/sessionStorageUtils

Methods

# inner initSessionStorage(itemToCheckFor, valueToInitTo)

Checks if the passed item already exists in the session storage and initializes it with given value if not existing.
Parameters:
Name Type Description
itemToCheckFor String Selected item in the session storage that will be checked
valueToInitTo String Value to initialize to if the item is not existing in session storage yet.

View Source frontend/src/utils/sessionStorage/sessionStorageUtils.js, line 11