Hard

Implementing a JavaScript Tree Iterator with Multiple Traversal Strategies using Generators

Implement a tree traversal iterator that supports different traversal strategies. What's the correct implementation?

Choose an option below