Public function

Signature
function compactMenuItems<T>(arr: T[]): Exclude<T, false | null | undefined>[]
Parameters
NameDescription

arr

T[]
Returns
Exclude<T, false | null | undefined>[]
Source

packages/tldraw/src/lib/ui/hooks/menuHelpers.ts

ButtoncontainBoxSize