strings.isDigit() function
strings.isDigit()
tests if a single-character string is a digit (0-9).
Function type signature
(v: string) => bool
Parameters
v
(Required) Single-character string to test.
Examples
Filter by columns with digits as values
import "strings"
data
|> filter(fn: (r) => strings.isDigit(v: r._value))
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.