---
title: compactMenuItems
status: published
category: ui
group: Function
author: api
date: 06/23/2023
order: 2
---<Small>Public Function</Small>




##### Parameters


<ParametersTable>

<ParametersTableRow>
<ParametersTableName>

`arr`

</ParametersTableName>
<ParametersTableDescription>

```ts
T[]
```



</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>

##### Returns


```ts
Exclude<T, false | null | undefined>[]
```

