docs-v2/content/v2.0/reference/flux/stdlib/strings/tolower.md

850 B

title description aliases menu weight related
strings.toLower() function The strings.toLower() function converts a string to lowercase.
/v2.0/reference/flux/functions/strings/tolower/
v2_0_ref
name parent
strings.toLower Strings
301
/v2.0/reference/flux/stdlib/strings/totitle
/v2.0/reference/flux/stdlib/strings/toupper
/v2.0/reference/flux/stdlib/strings/title

The strings.toLower() function converts a string to lowercase.

Output data type: String

import "strings"

strings.toLower(v: "KOALA")

// returns "koala"

Parameters

v

The string value to convert.

Data type: String

Examples

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

data
  |> map(fn: (r) => ({
      r with exclamation: strings.toLower(v: r.exclamation)
    })
  )