coffee-script icon indicating copy to clipboard operation
coffee-script copied to clipboard

Unpredictable behavior of "?" operator

Open msyrus opened this issue 11 years ago • 0 comments

if x?.y
  return true

here undefined is tested for x But

if anObject.x?.y
  return true

here undefined isn't tested for x

msyrus avatar Oct 10 '14 18:10 msyrus