@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 732 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [normalizeString](./x-components.normalizestring.md)
Trims the string, transforms it to lower case, and removes [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) from it.
**Signature:**
```typescript
export declare function normalizeString(string: string | undefined): string;
```
| Parameter | Type | Description |
| --- | --- | --- |
| string | string \| undefined | The string to normalize. |
**Returns:**
string
The normalized version of the string.