strings.isUpper() function

The strings.isUpper() function tests if a single character string is uppercase.

*Output data type: Boolean*

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

Parameters

v

The single-character string value to test.

*Data type: String*

Examples

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

Related articles