3 ms·
Iterables can have many forms (Strings, Arrays, Maps…), so having a forEach method is tricky. On the other hand, most iterables have their own methods to loop
by espadrine 12y ago
Iterables can have many forms (Strings, Arrays, Maps…), so having a forEach method is tricky.
On the other hand, most iterables have their own methods to loop around values. Arrays and Maps both have a .forEach() method.