strings.title() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.36 is the most recent stable version of Flux.

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

Output data type: String

import "strings"

strings.title(v: "a flux of foxes")

// returns "A Flux Of Foxes"

Paramters

v

The string value to convert.

Data type: String

Examples

Convert all values of a column to title case
import "strings"

data
  |> map(fn:(r) => strings.title(v: r.pageTitle))