maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
727 stars 58 forks source link

Unpredictable behavior of "?" operator #135

Open msyrus opened 9 years ago

msyrus commented 9 years ago
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