@trashpanda001/helpers
    Preparing search index...

    Function hasCookie

    • Check if a cookie exists.

      Parameters

      • name: string

        the cookie name

      Returns boolean

      true if the cookie exists, false otherwise

      Error if called during SSR

      import { hasCookie } from "@trashpanda001/helpers/cookie"

      hasCookie("foo") // true