DEV Community

Discussion on: If Statement Golf: what's the longest one you've seen?

Collapse
 
rheckers profile image
R Heckers • Edited

Mine is not that horrible and terrifying I guess:

if ((this.videoPlayer.currentTime >= action.start) && (this.videoPlayer.currentTime <= action.end) && !action['readmore']) {

I always try to minimize the code, otherwise it's hard to follow, and even easier to miss some value and break your head about :p