parseCookie = (value, skipDecode) => {
    /**
     * @type {import('../../types').CookieValue}
     */
    let parsedValue;

    parsedValue = safeRun(() => JSON.parse(skipDecode
        ? value
        : decodeURIComponent(value)
    ), true) || {};

    return parsedValue;
}
Parse cookie value using JSON.parse
@param {string} value