API reference@evolu/commonType › uncapitalize

function uncapitalize<S>(value: S): Uncapitalize<S>;

Defined in: packages/common/src/Type.ts:6295

Lowercases the first Unicode code point and returns a UncapitalizedString.

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

import { assertEqual, assertType, uncapitalize } from "@evolu/common";

const text = uncapitalize("Hello WORLD");
assertEqual(text, "hello WORLD");
assertType<typeof text, "hello WORLD">();
assertEqual(uncapitalize(text), text);