---
title: isEqualTo
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/osarray/isequalto-5w7om
---

# isEqualTo

Compares all members of two arrays with isEqualTo().

## Declaration

```occ
bool isEqualTo(const OSArray *anArray) const;
```

## Parameters

- `anArray`: The other array to compare with.

## Return Value

Return Value True if both arrays have equal counts and all members compare successfully with isEqualTo.

## Discussion

Discussion If the arrays have equal counts, each member is compared with the other at the same index with isEqualTo(). Otherwise false is returned.

## See Also

### Comparing Arrays

- [isEqualTo](driverkit/osarray/isequalto-93qxy.md)
