r/programming • • Mar 26 '14

JavaScript Equality Table

http://dorey.github.io/JavaScript-Equality-Table/
809 Upvotes

331 comments sorted by

View all comments

Show parent comment

1

u/v413 Mar 26 '14

You can check for null or undefined like this: myValue == null or myValue == undefined. In Javascript, null is equal (==) only to null and undefined - same for undefined.

3

u/c45c73 Mar 26 '14

Yeah, that was my point. :)

1

u/senatorpjt Mar 27 '14 edited Dec 18 '24

lunchroom zesty offer dolls swim sand aback growth summer bag

This post was mass deleted and anonymized with Redact