Gets an item from local, session, or memory storage.
If an item does not exist, getItem()
resolves to null.
function getItem(key: string): string;
The key of the item to get.
import { local } from "wix-storage-frontend";
// ...
let value = local.getItem("key"); // "value"
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.