Ravens PHP Scripts

Iterators and generators
Date: Sunday, December 06, 2015 @ 10:11:47 PST
Topic: Documentation

Processing each of the items in a collection is a very common operation. JavaScript provides a number of ways of iterating over a collection, from simple for loops to map() and filter(). Iterators and Generators bring the concept of iteration directly into the core language and provide a mechanism for customizing the behavior of for...of loops.

more: Mozilla Developer Network

This article comes from Ravens PHP Scripts

The URL for this story is: