O3 Framework / canAccessStorage
canAccessStorage(
storage):boolean
Defined in: packages/framework/esm-utils/src/storage.ts:11
Simple utility function to determine if an object implementing the WebStorage API
is actually available. Useful for testing the availability of localStorage or
sessionStorage.
Storage = window.localStorage
The WebStorage API object to check. Defaults to localStorage.
boolean
True if the WebStorage API object is able to be accessed, false otherwise