What do two ampersands separating function calls do? Note: this is OUTSIDE any if statement or case statement
Like so:
functionCallOne() && functionCallTwo();
it is equivalent to
if ( functionCallOne() ) { functionCallTwo(); }
it just uses the short circuiting to make this 3 liner only take up one line
1.4m articles
1.4m replys
5 comments
57.0k users