MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / #parseCookies

Method #parseCookies

tools/common/_hyperscript.iife.js:1898–1904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1896 // src/core/runtime/cookies.js
1897 var CookieJar = class {
1898 #parseCookies() {
1899 if (!document.cookie) return [];
1900 return document.cookie.split("; ").map((entry) => {
1901 var eq = entry.indexOf("=");
1902 return { name: entry.slice(0, eq), value: decodeURIComponent(entry.slice(eq + 1)) };
1903 });
1904 }
1905 get(target, prop) {
1906 if (prop === "then") {
1907 return null;

Callers 1

getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected