docs: function check(name) {
          try {
              var storage = window[name];
              var key = 'foo';
              var value = 'bar';
  
              storage.setItem(key, value);
              var support = value === storage.getItem(key);
              storage.removeItem(key);
  
              return support;
          }
          catch (e) {
              return false;
          }
      }