Section » fields

fields(name) → array

Retrieve fields with the specified name from this current section.

enocolor: blue
color: red
color: orange
javascriptconst document = eno.parse(input);

const colors = document.fields('color');

for(let color of colors) {
  console.log( color.value() );



A string specifying the name of the fields to retrieve.

Return value

An array of Fields.