Skip to main content

IsSessionFunction

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

IsSessionFunction

Framework Data

Summary

Reference Documentation ↗

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

Signature

type IsSessionFunction = (object: any) => object is Session;

Params

object

The value to check.

Returns

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