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

43 lines
764 B
Markdown

---
title: strings.isLower() function
description: The strings.isLower() function tests if a single-character string is lowercase.
aliases:
- /v2.0/reference/flux/functions/strings/islower/
menu:
v2_0_ref:
name: strings.isLower
parent: Strings
weight: 301
related:
- /v2.0/reference/flux/stdlib/strings/isupper
---
The `strings.isLower()` function tests if a single-character string is lowercase.
_**Output data type:** Boolean_
```js
import "strings"
strings.isLower(v: "a")
// returns true
```
## Parameters
### v
The single-character string value to test.
_**Data type:** String_
## Examples
###### Filter by columns with single-letter lowercase values
```js
import "strings"
data
|> filter(fn: (r) => strings.isLower(v: r.host))
```