Damian Wasielewski
dmwasielewski

dmwasielewski

New in ECMAScript 2022

New in ECMAScript 2022

Damian Wasielewski's photo
Damian Wasielewski
·Jun 30, 2022·

1 min read

The new ECMAScript features for this year are:

  • Top-level await
  • Private instance fields, methods, and accessors
  • Static class fields and methods
  • Static class initialization blocks
  • Error: .cause
  • Array, String, and TypedArray: .at() Method
  • Object: .hasOwn()
  • RegExp: match .indices ('d' flag)
 
Share this