I guess you want it as:
```javascript
this.totalDurationNode.textContent =
    currentDuration.indexOf(':') !== -1 ? currentDuration : '';
```javascript