How to replace all occurrences of a string in Javascript

Issue #420

const normalized = string
   .replace(/\//g, '')
   .replace(/\"/g, '')
   .replace(/\(/g, '')
   .replace(/\)/g, '')
Written by

I’m open source contributor, writer, speaker and product maker.

Start the conversation