Vue.js is number one for the third consecutive week.
Let’s have a look at the main features of this specification:
- Object “rest” properties and spread operator (dot dot dot
- Asynchronous iterators: you can use
for awaitto loop through iterators that return Promises
- Promise.finally(), useful to run statements whenever a Promise either resolves or rejects
- Features related to regular expressions (
RegExp), including the “named capture group”.
For more details, check What’s new in ECMAScript 2018.
Asynchronous iterators are supported in node.js 10, they can be used to consume a stream of data as mentioned in this article by Dr. Axel Rauschmayer.
If you want to dive right into the code and see asynchronous iterators in action, you can run this simple GitHub Gist that I’ve wrote especially for my dear readers. Feel free to comment!