length() function

The length() function returns the number of items in an array.

*Function type: Miscellaneous*

  1. length(arr: [])

Parameters

arr

The array to evaluate.

Examples

  1. people = ["John", "Jane", "Abed"]
  2. length(arr: people)
  3. // Returns 3