Major new features:
New regular expression features:
s
(dotAll
) flag for regular expressions (Mathias Bynens)Other new features:
Promise.prototype.finally()
(Jordan Harband)Major new features:
Array.prototype.{flat,flatMap}
(Michael Ficarra, Brian Terlson, Mathias Bynens)Object.fromEntries
(Darien Maillet Valentine)Minor new features:
String.prototype.{trimStart,trimEnd}
(Sebastian Markbåge)Symbol.prototype.description
(Michael Ficarra)Array.prototype.sort()
is guaranteed to be stable (Mathias Bynens).Changes that are mostly internal:
JSON.stringify
(Richard Gibson)Function.prototype.toString
revision (Michael Ficarra)