nit: I would probably change the forEach loop on line 175 into a simple for loop in this case.
```
for (var i = from; i < to; i++) {
```

It's not required though, what do you think?