by stupidmoron · 4y ago · 0 comments
Generators are very useful in more complex scenarios, but when used in simpler environments they'll just add confusion - in fact the article is a good example of adding confusion with a Generator.
Personally, when dealing with arrays I favour using .map, .reduce, .filter and .forEach.