strings.equalFold() function
strings.equalFold()
reports whether two UTF-8 strings are equal under Unicode case-folding.
Function type signature
(t: string, v: string) => bool
Parameters
v
(Required) String value to compare.
t
(Required) String value to compare against.
Examples
Ignore case when comparing two strings
import "strings"
data
|> map(fn: (r) => ({r with same: strings.equalFold(v: r.string1, t: r.string2)}))
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.