MCPcopy Create free account
hub / github.com/TanStack/hotkeys / isRef

Function isRef

packages/react-hotkeys/src/utils.ts:6–10  ·  view source on GitHub ↗
(
  value: unknown,
)

Source from the content-addressed store, hash-verified

4 * Type guard to check if a value is a React ref-like object.
5 */
6export function isRef(
7 value: unknown,
8): value is React.RefObject<HTMLElement | null> {
9 return value !== null && typeof value === 'object' && 'current' in value
10}

Callers 4

useHotkeySequencesFunction · 0.90
useHotkeyFunction · 0.90
useHotkeysFunction · 0.90
useHotkeySequenceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…