count

count ( object object ) : int

Returns the size of an object

Example


list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
console(count(list)) // -> 10

text = "Hello world"
console(count(text)) // -> 11

Parameters

object

can be a list, an array, a string, etc...