---
title: "isEqual(to:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/host/isequal(to:)"
---

# isEqual(to:)

Indicates whether the receiver represents the same host as another NSHost object.

## Declaration

```swift
func isEqual(to aHost: Host) -> Bool
```

## Parameters

- `aHost`: Host to compare the receiver to.

## Return Value

Return Value true when the receiver and host share at least one network address; false otherwise.

## See Also

### Related Documentation

- [addresses](foundation/host/addresses.md)
