<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/OSArray/isEqualTo-93qxy",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@OSArray@F@isEqualTo#*1$@S@OSMetaClassBase#1"
  },
  "title" : "isEqualTo"
}
-->

# isEqualTo

Compares the array with an OSObject

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

## Parameters

`anObject`

The object to compare with.

## Return Value

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)