# isEnvironment

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.3.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Checks if the environment matches the specified name

## Definition

```typescript
interface IHostEnvironment {
  // ... omitted for brevity
  isEnvironment(environmentName: string): boolean
}
```

## Parameters

- `environmentName` (`string`)

## Returns

`boolean`

## Applies to

- [IHostEnvironment](/reference/api/typescript/aspire.hosting/ihostenvironment.md)
