5 New JavaScript Features To Check Out (ECMAScript 2021)
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...
kostaschikis.hashnode.dev3 min read
casiimir
front end 'n' outer space