instance method Enumerable#each
Enumerable#each(iterator[, context]) → Enumerable
-
iterator(Function) – AFunctionthat 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 keywordthismeans insideiterator.
Calls iterator for each item in the collection.