@empathyco/x-components
Version:
Empathy X Components
31 lines (17 loc) • 644 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [capitalize](./x-components.capitalize.md)
## capitalize() function
Util to capitalize a string .
**Signature:**
```typescript
export declare function capitalize<StrType extends string>(str: StrType): Capitalize<StrType>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| str | StrType | String value. |
**Returns:**
Capitalize<StrType>
Returns the string capitalized.
## Example
Transforms `query` into `Query`