Intermediate JavaScript
Q87 / 100

What is the iterator helpers proposal (Stage 3) in JavaScript?

Correct! Well done.

Incorrect.

The correct answer is B) Built-in map, filter, take, drop, and other lazy methods directly on iterators via Iterator.prototype

B

Correct Answer

Built-in map, filter, take, drop, and other lazy methods directly on iterators via Iterator.prototype

Explanation

function* gen() { yield* [1,2,3,4,5]; } gen().filter(x => x > 2).take(2).toArray() — lazy iterator operations without materializing to array first.

Progress
87/100