UNPKG

@empathyco/x-components

Version:
57 lines (27 loc) 867 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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.