List » length

length() → number

Returns the count of items in the list.

enocolors:
- pink
- peach
javascriptconst list = eno.parse(input).element('colors');

list.length();  // returns 2

Return value

The number of items in the list as a number.