instance method Enumerable#each
Enumerable#each(iterator[, context]) → Enumerable
-
iterator
(Function
) – AFunction
that expects an item in the collection as the first argument and a numerical index as the second. -
context
(Object
) – The scope in which to calliterator
. Affects what the keywordthis
means insideiterator
.
Calls iterator
for each item in the collection.