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

[Home](./index.md) &gt; [@csstools/css-parser-algorithms](./css-parser-algorithms.md) &gt; [isCommentNode](./css-parser-algorithms.iscommentnode.md)

## isCommentNode() function

Check if the current object is a `CommentNode`<!-- -->. This is a type guard.

**Signature:**

```typescript
export declare function isCommentNode(x: unknown): x is CommentNode;
```

## Parameters

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

Parameter


</th><th>

Type


</th><th>

Description


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

x


</td><td>

unknown


</td><td>


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

**Returns:**

x is [CommentNode](./css-parser-algorithms.commentnode.md)

