strings.isLetter() function

The strings.isLetter() function tests if a single character string is a letter (a-z, A-Z).

*Output data type: Boolean*

  1. import "strings"
  2. strings.isLetter(v: "A")
  3. // returns true

Parameters

v

The single character string to test.

*Data type: String*

Examples

Filter by columns with single-letter values
  1. import "strings"
  2. data
  3. |> filter(fn: (r) => strings.isLetter(v: r.serverRef))

Related articles