Access document cookies with TypeScript 🍪

Posted on  by Leonardo Lemos

The following is a utility function to set a cookie value on the client side:

setCookie() Function in TypeScript

The following is a utility function to read a cookie value by its name on the client side:

getCookie() Function in TypeScript

Like this post? Share it with your friends! 😃
Want to read it later? I recommend Instapaper!