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