[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Type](https://evolu.dev/docs/api-reference/common/Type) › capitalize

```ts
function capitalize<S>(value: S): Capitalize<S>;
```

Defined in: [packages/common/src/Type.ts:6184](https://github.com/evoluhq/evolu/blob/ecbac001e0c18bbc45b44715f49ecc3a768c5ec9/packages/common/src/Type.ts#L6184)

Uppercases the first Unicode code point and returns a
[CapitalizedString](https://evolu.dev/docs/api-reference/common/Type/variables/CapitalizedString).

Preserves the remainder of the string and leaves an empty string unchanged.
Uses JavaScript's default Unicode casing without locale-specific rules.
Changing case can change the length, so input brands are not retained.

### Example

```ts

const text = capitalize("hello world");
assertEqual(text, "Hello world");
assertType<typeof text, "Hello world">();
assertEqual(capitalize(text), text);
```