StackOverflow - javascript, eslint, airbnb-js-styleguide

how do you style (big) short-circuit assignment in javascripts?

Using variables with descriptive name are more readable than long and complex lines. In your case, this would be better: var customPath = $el.data('root-path') + type + '/something/' + slug; var result = content['aPossibleValue'] || customPath;

Was this helpful?

Have a different question?

Can't find the answer you're looking for? Submit your own question to our community.

🛎️ Get Weekly OTA Fixes

New answers, vendor issues, and updates — straight to your inbox.