Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The flatMap()
method of Iterator
instances returns a new iterator helper that takes each element in the original iterator, runs it through a mapping function, and yields elements returned by the mapping function (which are contained in another iterator or iterable).