repl.txt (706B)
1 2 {{alias}}( str, words[, ignoreCase] ) 3 Removes all occurrences of the given words from a `string`. 4 5 Parameters 6 ---------- 7 str: string 8 Input string. 9 10 words: Array<string> 11 Array of words to be removed. 12 13 ignoreCase: boolean (optional) 14 Boolean indicating whether to perform a case-insensitive operation. 15 Default: `false`. 16 17 Returns 18 ------- 19 out: string 20 String with words removed. 21 22 Examples 23 -------- 24 > var out = {{alias}}( 'beep boop Foo bar', [ 'boop', 'foo' ] ) 25 'beep Foo bar' 26 27 // Case-insensitive: 28 > out = {{alias}}( 'beep boop Foo bar', [ 'boop', 'foo' ], true ) 29 'beep bar' 30 31 See Also 32 -------- 33