[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/dd96d79f1dbe9a49fa12ce8e0aa7d3d0177795ca/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);
```