Pablo

each(fn, [context])

alias: forEach(fn, [context])

Iterates over each element in the collection passing it to a callback function.

The callback is passed two arguments: the element and its index in the collection.

The context of the callback function is that of the collection unless specified otherwise as the context argument.

var shapes = Pablo();

shapes.push(Pablo.rect());
shapes.push(Pablo.circle());
shapes.push(Pablo.ellipse());

shapes.each(function (elem, i) {
  alert(i + ' ' + elem.tagName);
});
Painting is just another way of keeping a diary.
Pablo Picasso