> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/traversal/.has.md).

# .has()

`.has()` checks whether a list contains a specific DOM node.

***

#### Syntax

```js
elementList.has(node);
```

***

#### Parameters

* `node` → DOM element to check for

***

#### Output

```js
boolean
```

***

#### Example

```js
const tabs = $('.tab*');
const activeTab = $('.tab.active');

if (tabs.has(activeTab)) {
  console.log('The active tab is inside the tab list');
}
```

***

#### Key Takeaway

> `.has()` answers: “is this element inside this list?”
