---
title: isEqualTo
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osarray/isequalto-93qxy
---

# isEqualTo

Compares the array with an OSObject

## Declaration

```occ
virtual bool isEqualTo(const OSMetaClassBase *anObject) const;
```

## Parameters

- `anObject`: The object to compare with.

## Return Value

Return Value True iff the object is of class OSArray and isEqualTo(const OSArray * anArray) returns true.

## Discussion

Discussion If the object is of class OSArray, the result of isEqualTo(const OSArray * anArray) is returned. Otherwise false is returned.

## See Also

### Comparing Arrays

- [isEqualTo](driverkit/osarray/isequalto-5w7om.md)
