Alters a string by replacing multiple range fragments in one fast pass. Works in node and browsers.
var alter = ;; // => "0first34second9"
The fragments does not need to be sorted but must not overlap. More examples in
Install using npm
npm install alter
var alter = ;
Clone the repo and include it in a script tag
git clone https://github.com/olov/alter.git