lib/cookies.js
function getValue (key, cookieString, converter = null) {
  let result = createJWPCookie(key, cookieString, converter);

  // if `key` is undefined we want the entire cookie
  return _.isUndefined(key) ? result : result.value;
}
function getValue (key, cookieString, converter = null) {
  let result = createJWPCookie(key, cookieString, converter);

  // if `key` is undefined we want the entire cookie
  return _.isUndefined(key) ? result : result.value;
}
function getValue ( key , cookieString , converter = null ) { let result = createJWPCookie ( key , cookieString , converter ) ; // if `key` is undefined we want the entire cookie return _ . isUndefined ( key ) ? result : result . value ; }
takes a JavaScript cookiestring and parses it for the value given the key
takes a JavaScript cookiestring and parses it for the value given the key