Finds shortcut by unique identifier.
The shortcut ID to find.
The shortcut if found; undefined otherwise.
export function getShortcutById(id: string): Shortcut | undefined { return SHORTCUTS.find((shortcut) => shortcut.id === id);} Copy
export function getShortcutById(id: string): Shortcut | undefined { return SHORTCUTS.find((shortcut) => shortcut.id === id);}
Finds shortcut by unique identifier.