map :: Enumerable
map(iterator) -> Array
Returns the results of applying the iterator to each element. Convenience alias for collect.
See also
Enumerable: collect
Prototype API 1.5.0 - prototypejs.org