js replace array of strings code example
Example 1: javascript replace
var res = str.replace("find", "replace");
Example 2: pass array of strings to match in str.replace
const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)