code: function clear() {
    var cookies = isBrowser && document.cookie.split(';');
  
    if (!cookies.length) {
      return;
    }
  
    for (var i = 0, l = cookies.length; i < l; i++) {
      var item = cookies[i];
      var key = item.split('=')[0];
  
      cookie.remove(key);
    }
  }
docs: Remove all cookies