Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Capitalizes the first character of a string.

capitalize(x:string) -> string

The capitalize function returns the input string with the first character converted to uppercase and the rest to lowercase.

from {x: "hello world".capitalize()}
{x: "Hello world"}

Last updated: