The [@@iterator]()
method of Iterator
instances implements the iterable protocol and allows built-in iterators to be consumed by most syntaxes expecting iterables, such as the spread syntax and for...of
loops. It returns the value of this
, which is the iterator object itself.