function localstorage() {
    try {
        return window.localStorage;
    } catch (e) {
    }
}
/**
 * Localstorage attempts to return the localstorage.
 *
 * This is necessary because safari throws
 * when a user disables cookies/localstorage
 * and you attempt to access it.
 *
 * @return {LocalStorage}
 * @api private
 */
Localstorage attempts to return the localstorage.
This is necessary because safari throws
when a user disables cookies/localstorage
and you attempt to access it.

@return {LocalStorage}
@api private
Localstorage attempts to return the localstorage . This is necessary because safari throws when a user disables cookies / localstorage and you attempt to access it . @return { LocalStorage } @api private
function localstorage() {
    try {
        return window.localStorage;
    } catch (e) {
    }
}
function localstorage ( ) { try { return window . localStorage ; } catch ( e ) { } }
Localstorage attempts to return the localstorage.
Localstorage attempts to return the localstorage .