sanderleik,
<script>
const remove = (words, letters, pattern) => {
const escapeRegExp = string => string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
letters = letters.map(escapeRegExp).join('');
let reg = new RegExp(`[${letters}]`, 'g');
const clean = word => word.replace(reg, pattern);
return words.map(clean)
}
let words = ['!сухо!', `мо\\кро`, '[как-то]'];
let letters = ['\\','!','[',']'];
let pattern = '';
let temp = remove(words, letters, pattern)
document.write([words, '<br>', temp]);
</script>