Break consecutive repetition of a string in Node.js and browsers.
var comboBreaker =redundantbroken;redundant = 'I really really really really love pizza.';broken = ;console; // "I really love pizza."broken = ;console; // "I really really love pizza."
comboBreaker(str, combo[, options])
str for consecutive repetitions of
combo and returns a copy of
str with the repetitions replaced by a single
integer) to keep more than one (or no)
Install with npm:
npm install combo-breaker