Section » lists

lists(name) → array

Retrieve lists with the specified name from this current section.

enoroute:
- vienna
- paris
- rome

route:
- moscow
- riga
javascriptconst document = eno.parse(input);

const routes = document.lists('route');

for(let route of routes) {
  console.log( route.items() );
}

// prints ...
// [ 'vienna', 'paris', 'rome']
// [ 'moscow', 'riga' ]

Parameters

name

A string specifying the name of the lists to retrieve.

Return value

An array of Lists.