Skip to main content
added 66 characters in body
Source Link
Jack
  • 1.9k
  • 1
  • 19
  • 33

Not yet. Maybe soon. There is currently a draft spec:

https://github.com/tc39/proposal-optional-chaining

https://tc39.github.io/proposal-optional-chaining/

For now, though, I like to use lodash get(object, path [,defaultValue]) or dlv delve(obj, keypath)

Update (as of Dec 23, 2019):

optional chaining has moved to stage 4

There is currently a draft spec:

https://github.com/tc39/proposal-optional-chaining

https://tc39.github.io/proposal-optional-chaining/

For now, though, I like to use lodash get(object, path [,defaultValue]) or dlv delve(obj, keypath)

Update (as of Dec 23, 2019):

optional chaining has moved to stage 4

edited body
Source Link
Jack
  • 1.9k
  • 1
  • 19
  • 33
added 14 characters in body
Source Link
Jack
  • 1.9k
  • 1
  • 19
  • 33
Source Link
Jack
  • 1.9k
  • 1
  • 19
  • 33
Loading