# core/predicates/syntax.predicate.ts

> 4 lines of code and 1 definition.

Tree: Code Parse
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/code-parse#file-code-parse-core-predicates-syntax-predicate-ts
Source text: https://banes-lab.com/source/code-parse/core/predicates/syntax.predicate.ts.txt

Listed in [core/predicates](https://banes-lab.com/api/source/code-parse/core/predicates.md), after [core/predicates/record.predicate.ts](https://banes-lab.com/source/code-parse/core/predicates/record.predicate.ts.md).

## Definitions

- `isCommentType` (lexical_declaration, line 3, exported)

## Contained in

- [core/predicates](https://banes-lab.com/anatomy/code-parse/folder-code-parse-core-predicates.md)

## Used by

- [core/selectors/syntax.selector.ts](https://banes-lab.com/source/code-parse/core/selectors/syntax.selector.ts.md)

## Linked from

- [core/selectors](https://banes-lab.com/anatomy/code-parse/folder-code-parse-core-selectors.md)

## Source

```typescript
import { COMMENT_NODE_TYPES } from "#configuration/constants/syntax.constants";

export const isCommentType = function isCommentType(type: string): boolean {
    return COMMENT_NODE_TYPES.has(type);
};
```
