length() function
The length()
function returns the number of items in an array.
length(arr: [])
Parameters
arr
Array to evaluate.
Examples
people = ["John", "Jane", "Abed"]
length(arr: people)
// Returns 3
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, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.