Skip to content

Fix improper comparison for undefined#33

Open
fny wants to merge 1 commit intosenchalabs:masterfrom
fny:patch-1
Open

Fix improper comparison for undefined#33
fny wants to merge 1 commit intosenchalabs:masterfrom
fny:patch-1

Conversation

@fny
Copy link

@fny fny commented Dec 30, 2013

// This is false
typeof undefined === undefined
// This is true
typeof undefined === "undefined"
// Because
typeof typeof anything === "string" // is true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments