Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Last active October 3, 2016 00:49
Show Gist options
  • Select an option

  • Save lonekorean/8278654 to your computer and use it in GitHub Desktop.

Select an option

Save lonekorean/8278654 to your computer and use it in GitHub Desktop.
Chained null coalescing
var obj = firstChoiceObj || secondChoiceObj || thirdChoiceObj || {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment