strings.joinStr() function
strings.joinStr()
concatenates elements of a string array into a single string using a specified separator.
Function type signature
(arr: [string], v: string) => string
Parameters
arr
(Required) Array of strings to concatenate.
v
(Required) Separator to use in the concatenated value.
Examples
Join a list of strings into a single string
import "strings"
strings.joinStr(arr: ["foo", "bar", "baz", "quz"], v: ", ")// Returns "foo, bar, baz, quz"
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.