2 ms·
The biggest complexity comes with interactions between features. For example, "move semantics" in C++ -- while useful -- trigger tons of questions about intera
by paulddraper 7y ago
The biggest complexity comes with interactions between features.
For example, "move semantics" in C++ -- while useful -- trigger tons of questions about interactions with other features.
Duplicate features (for-of/forEach) are a problem, but a lesser one.
---
FWIW,
* Array.prototype.forEach iterates over an array
* for-of iterates over an iterable, including arrays
* for-in iterates over object keys (strings)
To your point, for-of is the more general form of forEach, so IMO there isn't much reason to use it now.