replace, replaceAll, string, RE/g, includes (version: 5)
2 cases
1. Single match of pattern
2. Many matches of pattern
Comparing performance of:1. Single occurrences: string.replace vs string.replaceAll vs string.includes+string.replace vs string.includes+string.replaceAll vs 2. Many occurrences: RE1/g.replace vs RE2/g.replace vs RE1/g.replaceAll vs string.replaceAll (many) vs string.includes+string.replace (many) vs string.includes+string.replaceAll (many)