code: function(name) {
            if (document.cookie !== lastCookieString) {
              lastCookieString = document.cookie;
              cookies = cookie.parse(lastCookieString, defaultOptions);
            }
  
            return cookies[name];
          }
docs: @ngdoc method
  @name service:cookies#get
  @description
  Get a cookie value by name.
  
  @param {string} name Name of cookie.
  
  @returns {string} Value of cookie or `undefined`.