ConstRead a value from sessionStorage, parsing JSON when possible.
Usage:
import { setSessionJSON, getSessionJSON } from "mazey";
setSessionJSON("preferences", { theme: "dark" });
const preferences = getSessionJSON("preferences");
console.log(JSON.stringify(preferences));
Output:
{"theme":"dark"}
Storage key.
The parsed value, raw stored value, or null when no value exists.
Deprecated alias of getSessionJSON.