(str: string)
| 322 | }; |
| 323 | |
| 324 | export const keyboardShortcutStr = (str: string) => { |
| 325 | const parts = str.split("+"); |
| 326 | return parts |
| 327 | .map((part) => { |
| 328 | const mod = part as ModifierKey; |
| 329 | if (MODIFIERS.includes(mod)) return modifierKeyText(mod); |
| 330 | return part; |
| 331 | }) |
| 332 | .join("+"); |
| 333 | }; |
| 334 | |
| 335 | export const isNullOrUndefined = (value: unknown) => { |
| 336 | return value === null || value === undefined; |
no test coverage detected