DisciplineFilters Type

A collection of DisciplineFilter objects.

It is possible to retrieve a specific element by specifying its index in square brackets and obtain the number of elements in the collection with the method length.

It is also possible to get the corresponding array with the method toArray.

Examples of Use

var filter = new Filter();

var disciplineFilters = filter.discipline;

var count = disciplineFilters.length;

var firstDisciplineFilter = disciplineFilters[0];

var disciplineFiltersArray = disciplineFilters.toArray();

In this example:

  • disciplineFilters is a DisciplineFilters object
  • firstDisciplineFilter is a DisciplineFilter object
  • disciplineFiltersArray is an array of DisciplineFilter objects, on which it is possible to invoke all the methods that operate on arrays in JavaScript.