---
title: equals(anotherSpan)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/coordinatespan/equals
---

# equals(anotherSpan)

Returns a Boolean value that indicates whether two spans are equal.

## Declaration

```data
equals(anotherSpan: CoordinateSpan): boolean;
```

## Parameters

- `anotherSpan`: The span to compare.

## Return Value

Return Value true if the span specified by anotherSpan equals this span; otherwise, false.

## See Also

### Copying and comparing spans

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