5 New JavaScript Features To Check Out (ECMAScript 2021)
Feb 28, 2021 · 3 min read · 1. replaceAll() A very quick way to replace strings without the need of regular expressions. const p = 'Bob likes to take a walk every morning. Bob has a healthy habbit' console.log(p.replaceAll('Bob', 'Alice')) // Output: Alice likes to take a walk...
Ccasiimir commented