---
title: equals(anotherPadding)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/padding/equals
---

# equals(anotherPadding)

Compares whether two padding values are equal.

## Declaration

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

## Parameters

- `anotherPadding`: The padding to use for comparison.

## Return Value

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