<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/media-query-list-parser](./media-query-list-parser.md) &gt; [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) &gt; [indexOf](./media-query-list-parser.generalenclosed.indexof.md)

## GeneralEnclosed.indexOf() method

**Signature:**

```typescript
indexOf(item: ComponentValue): number | string;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

item


</td><td>

ComponentValue


</td><td>


</td></tr>
</tbody></table>

**Returns:**

number \| string

