Skip to main content

IsCookieFunction

还没翻译译自英文(reactrouter.com)本页 13 段都还没译

IsCookieFunction

Framework Data

Summary

Reference Documentation ↗

A function that determines whether a value is a React Router Cookie object.

Signature

type IsCookieFunction = (object: any) => object is Cookie;

Params

object

The value to check.

Returns

true if the value is a React Router Cookie object; otherwise, false.