# text.endsWith · Rell standard library · Chromia Docs (concept)

> pure function endsWith(suffix: text ): boolean Deprecated (for removal): Use 'ends_with' instead Checks if this text ends with the specified suffix. Note t

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/ends-with/

FUNCTION

# text.endsWith

```signature
pure function endsWith(suffix: text): boolean
```

**Deprecated** (for removal): Use 'ends\_with' instead

Checks if this text ends with the specified suffix.

Note that for all texts `t`, `t.ends_with('')` is true, and for all texts `u` and `v` such
that `u == v`, `u.ends_with(v)` is true.

**Parameters**

* **suffix** — the suffix to check

**Returns**

true if this text ends with the specified suffix, false otherwise

Since 0.9.0

**Alias of** [text.ends\_with](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/ends_with/)

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/text/ends-with.html)Generated API reference, mirrored from the live docs
