length

.length()

Returns the number of elements in this array.

arr = []
len = arr.length() // set to 0

ns = [ 1, 2, 3, 4, 5 ]
len = ns.length() // set to 5

ns.shift()
len = ns.length() // set to 4

This method is the same as the 'size' method.

See also

size