strings.title() function

The strings.title() function converts a string to title case.

*Output data type: String*

  1. import "strings"
  2. strings.title(v: "a flux of foxes")
  3. // returns "A Flux Of Foxes"

Parameters

v

The string value to convert.

*Data type: String*

Examples

Convert all values of a column to title case
  1. import "strings"
  2. data
  3. |> map(fn: (r) => ({ r with pageTitle: strings.title(v: r.pageTitle) }))

Related articles