Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

[] and {} create new objects. === always compares by identity, which isn't a unique feature. It's equivalent to Java's ==, and two different objects aren't ever equal to each other. === is equivalent to Python's `is`, and you'll get false from `[] is []` in Python for example.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: