---
title: equals(anotherSize)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/mapsize/equals
---

# equals(anotherSize)

Compares the sizes of two maps and indicates whether they’re of equal value.

## Declaration

```data
equals(anotherSize: MapSize): boolean;
```

## Parameters

- `anotherSize`: The map size to use for comparison.

## Return Value

Return Value Returns true if the width and height values of a map size exactly match the corresponding values of anotherSize. Returns false if the values aren’t an exact match.

## See Also

### Copying and comparing map sizes

- [copy()](mapkitjs/mapsize/copy.md)
