②ality – JavaScript and more
2,516 FOLLOWERS
2ality is a blog about JavaScript, web development and mobile computing.
②ality – JavaScript and more
1y ago
In this blog post, we examine the ECMAScript proposal “Set methods for JavaScript” by Michał Wadas, Sathya Gunasekara and Kevin Gibbons. It introduces new methods for Sets ..read more
②ality – JavaScript and more
1y ago
In this blog post, we look at the ECMAScript proposal “Iterator helpers” by Gus Caplan, Michael Ficarra, Adam Vandolder, Jason Orendorff, Kevin Gibbons, and Yulia Startsev. It provides utility methods for working with iterable data: .map(), .filter(), etc.
The style of the proposed API clashes with the style of the current iteration API. We’ll explore how we can fix that ..read more
②ality – JavaScript and more
1y ago
This blog post gives tips for typing import statements more quickly, including a helpful text snippet for Visual Studio Code ..read more
②ality – JavaScript and more
1y ago
When it comes to TypeScript code:
There are many options for testing its behavior at runtime.
There are far fewer options for testing its compile-type types.
In this blog post, we look at the latter ..read more
②ality – JavaScript and more
1y ago
This blog post is about the ECMAScript proposal “Array.fromAsync for JavaScript” by J. S. Choi. It introduces a static method for converting asynchronous iterables to Arrays ..read more
②ality – JavaScript and more
1y ago
In this blog post, we look at the ECMAScript proposal “JSON.parse source text access” by Richard Gibson and Mathias Bynens.
It gives access to source text to two kinds of callbacks:
Revivers, callbacks that are passed to JSON.parse() and post-process the data it parses.
Replacers, callbacks that are passed to JSON.stringify() and pre-process data before it is stringified.
We’ll examine how exactly that works and what you can do with this feature ..read more
②ality – JavaScript and more
1y ago
In this blog post, we look at the ECMAScript proposal “RegExp v flag with set notation + properties of strings” by Markus Scherer and Mathias Bynens ..read more
②ality – JavaScript and more
1y ago
Finding people on Mastodon is still difficult. If you have a GitHub account, you can help others find you by linking from it to your Mastodon account ..read more
②ality – JavaScript and more
1y ago
I use both Twitter and Mastodon and like both. Neither is better in every aspect.
In this blog post, I’d like to explain how to get started with Mastodon ..read more
②ality – JavaScript and more
1y ago
This blog post covers the ECMAScript proposal “Decorators by Daniel Ehrenberg and Chris Garrett in its 2022-03 version (stage 3).
A decorator is a function func that we can apply to classes and members of classes (such as methods) by putting @func before them. We will explore how decorators work and look at many examples ..read more