Passing Parameters to Iterables
using yield* expression to delegate to another iterable object
The next
method of iterators can be used to pass a value that becomes the value of the previous yield statement.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.