getCookie
Takes in a cookie name and returns the value of the cookie.
Params
Section titled “Params”Signature: getCookie(cookieName)
cookieName
: The name of the cookie to get
Returns
Section titled “Returns”Returns the value of the cookie.
Examples
Section titled “Examples”import { getCookie } from '@adobe-commerce/elsie/lib';
const result = getCookie('foo');
console.log(result); // "bar"