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

Function isRef

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

Source from the content-addressed store, hash-verified

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

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…