callback && callback(); · Issue #52 · airbnb/javascript (original) (raw)
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?