Yeah thats what i do... clean the garbage
$ npm install --save carini
const carini = require('carini');
const yourString1 = 'examle???string.@@!!';
const result = carini(yourString1, ['?','@','.','!']);
console.log(result);
//=> 'examlestring'
const yourString2 = '% % %t e s t$ $ $ ';
const result = carini(yourString2, ['%t',' ', '%', '$', 't']);
console.log(result);
//=> 'es'
Type: string
String which need to be processed.
Type: array
Elements need to be removed.
MIT © haotian Chang