UNPKG

@empathyco/x-components

Version:
31 lines (17 loc) 644 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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&lt;StrType&gt; Returns the string capitalized. ## Example Transforms `query` into `Query`