|
|
|
|
|
by phs2501
4022 days ago
|
|
Verbosity is not clarity. list.map(function(x) { return x * 2; });
verses list.map(x => x * 2);
The actual functionality of the first is swallowed in visual noise (function, return). Yes, it's something new to learn for Javascript programmers, but it's useful and makes the meaning of code clearer.That's not even touching on the this-binding element, which is also incredibly useful in common Javascript code. |
|