ECMAScript proposal: Set methods
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
ECMAScript proposal: iterator helpers
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
Tips for typing import statements in JavaScript
②ality – JavaScript and more
by Dr. Axel Rauschmayer
1y ago
This blog post gives tips for typing import statements more quickly, including a helpful text snippet for Visual Studio Code ..read more
Visit website
Testing static types in TypeScript
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
ECMAScript proposal: Array.fromAsync()
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
ECMAScript proposal: source text access for JSON.parse() and JSON.stringify()
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
ECMAScript proposal: RegExp flag /v makes character classes and character class escapes more powerful
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
Linking from GitHub to Mastodon
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
Getting started with Mastodon
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website
JavaScript metaprogramming with the 2022-03 decorators API
②ality – JavaScript and more
by Dr. Axel Rauschmayer
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
Visit website

Follow ②ality – JavaScript and more on FeedSpot

Continue with Google
Continue with Apple
OR