@empathyco/x-components
Version:
Empathy X Components
57 lines (27 loc) • 867 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [normalizeString](./x-components.normalizestring.md)
## normalizeString() function
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;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
string
</td><td>
string \| undefined
</td><td>
The string to normalize.
</td></tr>
</tbody></table>
**Returns:**
string
The normalized version of the string.