@arolariu/website / sites/arolariu.ro/src/lib/utils.client / isBrowserStorageAvailable
Function: isBrowserStorageAvailable()
isBrowserStorageAvailable(
type):boolean
Defined in: lib/utils.client.ts:41
This function checks if the browser storage is available. This function is extracted from the MDN Web Docs regarding the Web Storage API.
Parameters
type
"localStorage" | "sessionStorage"
Returns
boolean
True if the storage is available, false otherwise.