--- title: IsCookieFunction --- # IsCookieFunction [MODES: framework, data] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v8/types/react-router.IsCookieFunction.html) A function that determines whether a value is a React Router [`Cookie`](https://api.reactrouter.com/v8/interfaces/react-router.Cookie.html) object. ## Signature ```tsx type IsCookieFunction = (object: any) => object is Cookie; ``` ## Params ### object The value to check. ## Returns `true` if the value is a React Router [`Cookie`](https://api.reactrouter.com/v8/interfaces/react-router.Cookie.html) object; otherwise, `false`.