3 ms·
Yes, but it works quite well for this task.
by snek 7y ago
Yes, but it works quite well for this task.
- anderskaseorg 7y agoIt has nothing to do with this task. function replaceAll(str: string, pattern: string, replacement: string): string { return str.replace(new RegExp(escapeForRegExp(pattern), "g"), replacement); }