Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opine/src/utils/cookies.ts>hasCookieNameProperty

Minimalist web framework for Deno ported from ExpressJS.
Go to Latest
function hasCookieNameProperty
import { hasCookieNameProperty } from "https://deno.land/x/opine@2.3.3/src/utils/cookies.ts";

Returns true if the input has type { name: string }.

Parameters

value: any

Returns

value is Pick<Cookie, "name">