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

48 lines
850 B
Markdown

---
title: strings.toLower() function
description: The strings.toLower() function converts a string to lowercase.
aliases:
- /v2.0/reference/flux/functions/strings/tolower/
menu:
v2_0_ref:
name: strings.toLower
parent: Strings
weight: 301
related:
- /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_
```js
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
```js
import "strings"
data
|> map(fn: (r) => ({
r with exclamation: strings.toLower(v: r.exclamation)
})
)
```