sessionStoragePart Function
Creates an instance of SessionStoragePart, allowing interaction with a specific key-value pair stored in the browser’s session storage
@template T = string | undefined
The type of the value stored in session storage. Defaults to string | undefined
@param key: string
The key used to access the value in session storage
@returns SessionStoragePart<T>
API
function sessionStoragePart<T = string | undefined>(key: string): SessionStoragePart<T>;
Example
import {sessionStoragePart} from '@bitfiber/rx';
const ssPart = sessionStoragePart('key');