A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/airbnb/javascript/issues/52 below:

callback && callback(); · Issue #52 · airbnb/javascript · GitHub

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