Section » sections

sections(name) → array

Retrieve subsections with the specified name from this current section.

eno# Article
> ...

# Article
> ...
javascriptconst document = eno.parse(input);

const sections = document.sections('Article');

for(let section of sections) {
  // do something with each Article
}

Parameters

name

A string specifying the name of the sections to retrieve.

Return value

An array of Sections.