Table of Contents


Last modified 11:38, 15 Sep 2014
Table of Contents


This object represents a collection of other Gigya objects. It has member functions that perform operations on the entire collection or return individual items from it.

Member Methods

Method Name
Return Value Description
asArray() Array Returns the collection as an array of the contained objects.
each(function(item, index)) None

This function accepts a function reference as a parameter and calls that function on each item in the collection. The called function receives one item from the collection and the index of the item (zero based) as parameters.
For example, the following code will print each item in the collection col:

function print(item, index) {
    document.write("index="+index+" item="+item);
getById(itemID) object Returns an item from the collection by its ID.
getSize() number Returns the number of items in the collection.
Page statistics
499 view(s) and 1 edit(s)
Social share
Share this page?


This page has no custom tags.
This page has no classifications.


You must to post a comment.