TanStack
Hotkeys API Reference

isHotkeySequence

ts
function isHotkeySequence(hotkey): hotkey is HotkeySequence;

Defined in: parse.ts:23

Whether a hotkey is a sequence. Use this instead of Array.isArray, which does not narrow readonly arrays.

Parameters

hotkey

RegisterableHotkey

Returns

hotkey is HotkeySequence