Untitled
unknown
plain_text
a year ago
203 B
6
Indexable
function getCookie(name: string) {
const value = `; ${document.cookie};`
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
return undefined
}Editor is loading...
Leave a Comment