This article helped solidify some of the ES6 features I am starting to use. Thanks. I have some suggestions for improving the article.
Many of the examples would require less thinking on the part of the reader and therefore be clearer if you don’t reuse names. For example, instead of
const a = 'a';This would require less thinking on the part of the reader:
const a = 'bar';The above also goes for the “blep blop” examples when "blop" string is assigned to blop property, and in addition belp and blop sound similar enough that something like “foo bar” would be better.
The “Named Arguments” example mixes in default parameters which makes it harder to understand, and the default parameters are never even used in the example code. It would be clearer to introduce a) default parameters b) named arguments c) named arguments + default parameters.
In the currying example const gt4 = cutoff(4); should probably be const gt4 = highpass(4);
Looking forward to your next article.
