Skip to content

Instantly share code, notes, and snippets.

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

Revisions

  1. jpitchardu created this gist May 23, 2018.
    1 change: 1 addition & 0 deletions optional-chaining.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    obj?.arrayProp?[0]?.someProp?.someFunc?.();