Tag Archives: Introduced

Features introduced in ES2021 ✨✨ – Developers Feed

Features introduced in ES2021 ✨✨ ES2021 is slowly coming out in browsers. Here’s aquick roundup of features provided by ES2021. string.replaceAll (MDN) Replaces all instances of a string. ‘xx’.replace(‘x’, ‘y’) //=> ‘yx’ ‘xx’.replace(/x/g, ‘y’) //=> ‘yy’ ‘xx’.replaceAll(‘x’, ‘y’) //=> ‘yy’ Enter fullscreen mode Exit fullscreen mode Numeric separators (MDN) Let’s you seperate your numbers const…

Read More