# core/predicates/source.predicate.ts

> 4 lines of code and 1 definition.

Tree: GovLab Docs
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/docs#file-docs-core-predicates-source-predicate-ts
Source text: https://banes-lab.com/source/docs/core/predicates/source.predicate.ts.txt

Listed in [core/predicates](https://banes-lab.com/api/source/docs/core/predicates.md), after [core/predicates/reference.predicate.ts](https://banes-lab.com/source/docs/core/predicates/reference.predicate.ts.md) and before [core/predicates/taxonomy.domain.predicate.ts](https://banes-lab.com/source/docs/core/predicates/taxonomy.domain.predicate.ts.md).

## Definitions

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

## Contained in

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

## Used by

- [core/analyzers/drift.analyzer.ts](https://banes-lab.com/source/docs/core/analyzers/drift.analyzer.ts.md)

## Linked from

- [core/analyzers](https://banes-lab.com/anatomy/docs/folder-docs-core-analyzers.md)

## Source

```typescript
import { CODE_EXTENSIONS } from "#configuration/constants/program.constants";

export const isCodeFile = function isCodeFile(filePath: string): boolean {
    return CODE_EXTENSIONS.some((extension) => filePath.endsWith(extension));
};
```
