Was reading through the style guide, but couldn't find anything about this. Instead of
var callback;
if (callback) {
callback();
}
I've started using
var callback;
callback && callback();
Which I haven't found any issues with. Would this style guide frown upon this?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4