input string
array of words to be removed
boolean indicating whether to perform a case-insensitive operation (default: false)
output string
var str = 'beep boop Foo bar';
var out = removeWords( str, [ 'boop', 'foo' ] );
// returns 'beep Foo bar'
var str = 'beep boop Foo bar';
var out = removeWords( str, [ 'boop', 'foo' ], true );
// returns 'beep bar'
Removes a list of words from a string.