getCookie = (field, cookieName) => {
    const cookie = getPluginCookie(cookieName);

    return field
        ? cookie[field]
        : cookie;
}
Retrieve data from existing cookie
@param {string} field
@param {string} [cookieName]
@returns {any}