---
title: "TextWhizzHelper | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/TextWhizzHelper/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# TextWhizzHelper

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the TextWhizzHelper module in @aurigma/design-atoms-text.

## Functions

### comparePositions()

```ts
function comparePositions(p0, p1): any;
```

Compares two positions.

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `p0` | `TextPosition` | first position. |
| `p1` | `TextPosition` | second position. |

#### Returns

`any`

true if the positions match, false otherwise.

***

### compareRanges()

```ts
function compareRanges(sel0, sel1): any;
```

Compares two ranges.

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `sel0` | `TextRange` | first range. |
| `sel1` | `TextRange` | second range. |

#### Returns

`any`

true if the ranges match, false otherwise.
