The blog post covers new features of strings in ECMAScript 6 (ES6).
It uses an interesting combination of technologies/techniques:
This blog post is outdated. Please read the following two chapters in “Exploring ES6”:
ECMAScript 6 (ES6) supports destructuring, a convenient way to extract values from data stored in (possibly nested) objects and arrays. This blog post describes how it works and gives examples of its usefulness. Additionally, parameter handling receives a significant upgrade in ES6: it becomes similar to and supports destructuring, which is why it is explained here, too.
Despite their name, template strings in ECMAScript 6 (ES6) are more like a different kind of function call than a mechanism for defining templates. This blog post explains how you can still use them for HTML templating. It is based on an idea by Claus Reinke.
A recent question by Dmitry Moskowski reminded me: ECMAScript 6 sets have no methods for computing the union (e.g.
addAll), intersection (e.g.
retainAll) or difference (e.g.
removeAll). This blog post explains how to work around that limitation.
Among others, the following four data structures are new in ECMAScript 6:
WeakSet. This blog post explains how they work.