956 B
956 B
title | description | aliases | menu | weight | related | introduced | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
strings.title() function | The strings.title() function converts a string to title case. |
|
|
301 |
|
0.18.0 |
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"
Parameters
v
The string value to convert.
Examples
Convert all values of a column to title case
import "strings"
data
|> map(fn: (r) => ({ r with pageTitle: strings.title(v: r.pageTitle) }))