src code

instance method Enumerable#each

Enumerable#each(iterator[, context]) → Enumerable
  • iterator (Function) – A Function 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 call iterator. Affects what the keyword this means inside iterator.

Calls iterator for each item in the collection.