Documentation

length() function

Flux 0.7.0+

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

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.