ECMAScript 2021
JS
R
JavaScriptNew features for the 12th edition of EcmaScript (also in Typescript 4.4.3)
1// logical assignment operators (??=, &&=, ||=);
2// Example:
3if (!user.id) user.id = 1
4user.id ||= 1
5user.location.postalCode ||= "90210"
6
7
8WeakRef,
9FinalizationRegistry
101_000
11Array.prototype.sort
12at()Created on 10/15/2021