Skip to content

Instantly share code, notes, and snippets.

@jpitchardu
Created May 23, 2018 16:32
Show Gist options
  • Save jpitchardu/18b554bfbc1e50f731a430397e857455 to your computer and use it in GitHub Desktop.
Save jpitchardu/18b554bfbc1e50f731a430397e857455 to your computer and use it in GitHub Desktop.

Revisions

  1. jpitchardu created this gist May 23, 2018.
    1 change: 1 addition & 0 deletions deep-null.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    console.log( obj && obj.prop1 && obj.prop1.prop2 && obj.prop1.prop2.prop3 ); // => undefined