strings.title() function
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) }))
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.