JavaScript ternary operator call function or no-op
1 answer
In your case:
debugging && console.log('info');
This trick is based on the "short circuit" function and I believe this information might be helpful: http://en.wikipedia.org/wiki/Short-circuit_evaluation
+8
source to share