Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The filter()
method of Iterator
instances returns a new iterator helper that yields only those elements of the iterator for which the provided callback function returns true
.