<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Padding/equals",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instm/mapkit.Padding/equals"
  },
  "title" : "equals(anotherPadding)"
}
-->

# equals(anotherPadding)

Compares whether two padding values are equal.

```
equals(anotherPadding: Padding): boolean;
```

## Parameters

`anotherPadding`

The padding to use for comparison.

## Return Value

Returns `true` if a padding exactly matches `anotherPadding`. Returns `false` if the padding values are different.

---

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)