Untitled
unknown
plain_text
10 months ago
203 B
4
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