Untitled

Anonymous
plain_text
06/03/2024 12:43 PM
272 B
22
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