Not much significant change that we need to be worried about but lot of new proposals moved to stage 1. We have some reviewing work to do, as there is so much new stuff.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var regex = /t(e)(st(\d?))/g; | |
var string = 'test1test2'; | |
string.match(regex); // gives ['test1', 'test2'] - how do i get the capturing groups? | |
var matches = []; | |
var lastIndexes = {}; | |
var match; | |
lastIndexes[regex.lastIndex] = true; | |
while (match = regex.exec(string)) { |
Living Document. J. S. Choi, 2018-12.
The [WHATWG Fetch Standard][] contains several examples of using the DOM fetch
function, resolving its promises into values,
then processing the values in
various ways. These examples may become more easily readable with smart pipelines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
Iterator.prototype = { | |
*map(mapper) { | |
for (let value of this) { | |
yield mapper(value); | |
} | |
}, | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function lex(string) { | |
return string | |
.match(/a|b|c|d/g) | |
.map(token => token.toUpperCase()); | |
} | |
// This language has no structure, so we are jumping straight to bytecode rather than first building | |
// an AST | |
function parse(tokens) { | |
const bytecode = []; |
You have an idea for a new JavaScript proposal, but don't know exactly what shape it should take? This document is for you!
If you are new to research, it might be overwhelming at first. For this, there is a great intro video series to help get your feet on the ground.
OlderNewer