ES9

Rest parameters and extension operators

Introduced in ES6, but only for arrays, ES9 provides array-like REST parameters and extension operators for objects

  • Rest

  • Extended operator

Regular extension – Named capture groups

Name the result matched by the group

You can retrieve the matched information through an array

The named matching information is obtained from the form of the object

Regular extension – Reverse assertion

Check whether the current matching result is correct

Regular extended-Dotall pattern

S means let. Match everything, including newlines

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

This is a personal learning record. Please point out any mistakes
Welcome friends to come to exchange, if reproduced, please indicate the source, thank you
Everyone who works hard deserves to be recognized, but the biggest affirmation comes from yourself!!
Come on every day!!