initializeStore = () => {
  if (localStorageAvailable === null) {
    if (typeof Storage !== 'undefined') {
      // Code for localStorage/sessionStorage.
      localStorageAvailable = true;
    } else {
      // Sorry! No Web Storage support..
      alert(
        "Sorry, it seems you don't have support for local storage. Which means we can't save user-preferences to your browser."
      );
      localStorageAvailable = false;
    }
  }
  return localStorageAvailable;
}
Check if the given browser is compatiable with localStorage.
@return {boolean} if the localStorage is supported.