```javascript 
end = this.config.end || params.duration;
```