How to replace all occurrences of a string in Javascript

Issue #420

1
2
3
4
5
const normalized = string
.replace(/\//g, '')
.replace(/\"/g, '')
.replace(/\(/g, '')
.replace(/\)/g, '')

Comments