map

iterates through all items of the component

void map(function handler);

Parameters

handlerfunctiona function that will be called for each item of a component

Example

//getting ids of all items of the component
component.data.map(function(item){
    return item;
});

Back to top