SessionObjects Type

A collection of SessionObject objects.

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

Example of Use

var sessions = getSessions();

var firstSession = sessions[0];

var sessionArray = sessions.toArray();

sessionArray.forEach(

function(s)

{

console("---\n{0}", s);

}

);

In the above example:

  • session is a SessionObjects object.
  • firstSession is a SessionObject object.
  • sessionArray is an array of SessionObject objects, on which it is possible to invoke all the methods that operate on arrays in JavaScript.