---
id: fast-foundation.istreeitemelement
title: isTreeItemElement() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [isTreeItemElement](./fast-foundation.istreeitemelement.md)

## isTreeItemElement() function

check if the item is a tree item

<b>Signature:</b>

```typescript
export declare function isTreeItemElement(el: Element): el is HTMLElement;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  el | Element |  |

<b>Returns:</b>

el is HTMLElement

## Remarks

determines if element is an HTMLElement and if it has the role treeitem
