# `GSInstance isEqualToInstance:`

*Instance Method*

Checks if the instance is equal to another instance.

## Declaration

```swift
func isEqual(to object: GSInstance) -> Bool
```

```objc
- (BOOL) isEqualToInstance:(GSInstance *) object;
```

```python
isEqualToInstance_(object: GSInstance) -> bool
```

## Parameters

- `object` — The other instance to compare against.

## Return Value

YES if the instances are equal, NO otherwise.

