Advanced generators

After introducing basic concepts of generators, we are now looking into more advanced features of generators.

The code in this chapter uses following debug function to log values to the console.

function debug(values) {
  for (let value of values) {
    console.log(value);
  }
}

results matching ""

    No results matching ""